Skip to contentSkip to conversation

dbus: remove deprecated at_console statement

PATCH In review Petr Lautrbach 1 participant 3 messages Nov 16, 2018 – Nov 22, 2018 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dbus: remove deprecated at_console statement

From: Tom Gundersen <[email protected]>

As described in [0], this likely did not have the intended effect, so simply remove it. The change in behavior is that up until this patch it would be possible for any non-system user to potentially gain access to selinux' dbus interface. Now this is extended to also allow any system user.

As the comment indicates, PolicyKit is used to enforce access, so this should be perfectly harmless.

[0]: <https://www.spinics.net/lists/linux-bluetooth/msg75267.html>

---

This patch is from PR 113 - https://github.com/SELinuxProject/selinux/pull/113

 dbus/org.selinux.conf | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
dbus/org.selinux.conf +1 -5
index a3509781..1ae079d2 100644
@@ -12,12 +12,8 @@
 
   <!-- Allow anyone to invoke methods on the interfaces,
        authorization is performed by PolicyKit -->
-  <policy at_console="true">
-    <allow send_destination="org.selinux"/>
-  </policy>
   <policy context="default">
-    <allow send_destination="org.selinux"
-	   send_interface="org.freedesktop.DBus.Introspectable"/>
+    <allow send_destination="org.selinux"/>
   </policy>
 
 </busconfig>
Signature · 1 line
2.19.1
author Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

From: Tom Gundersen <[email protected]>

As described in [0], this likely did not have the intended effect, so simply remove it. The change in behavior is that up until this patch it would be possible for any non-system user to potentially gain access to selinux' dbus interface. Now this is extended to also allow any system user.

Quoted 7 lines

As the comment indicates, PolicyKit is used to enforce access, so this should be perfectly harmless.

[0]: <https://www.spinics.net/lists/linux-bluetooth/msg75267.html>

Quoted 25 lines

---

This patch is from PR 113 - https://github.com/SELinuxProject/selinux/pull/113

 dbus/org.selinux.conf | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
dbus/org.selinux.conf +1 -5
index a3509781..1ae079d2 100644
@@ -12,12 +12,8 @@
 
   <!-- Allow anyone to invoke methods on the interfaces,
        authorization is performed by PolicyKit -->
-  <policy at_console="true">
-    <allow send_destination="org.selinux"/>
-  </policy>
   <policy context="default">
-    <allow send_destination="org.selinux"
-	   send_interface="org.freedesktop.DBus.Introspectable"/>
+    <allow send_destination="org.selinux"/>
   </policy>
 
 </busconfig>
#2 lore raw
Quoted 11 lines · Petr Lautrbach
Quoted 11 lines

From: Tom Gundersen <[email protected]>

As described in [0], this likely did not have the intended effect, so simply remove it. The change in behavior is that up until this patch it would be possible for any non-system user to potentially gain access to selinux' dbus interface. Now this is extended to also allow any system user.

As the comment indicates, PolicyKit is used to enforce access, so this should be perfectly harmless.

Quoted 6 lines
Quoted 4 lines

[0]: <https://www.spinics.net/lists/linux-bluetooth/msg75267.html>

Merged. Thanks!

Quoted 25 lines
Quoted 25 lines

---

This patch is from PR 113 - https://github.com/SELinuxProject/selinux/pull/113

 dbus/org.selinux.conf | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
dbus/org.selinux.conf +1 -5
index a3509781..1ae079d2 100644
@@ -12,12 +12,8 @@
 
   <!-- Allow anyone to invoke methods on the interfaces,
        authorization is performed by PolicyKit -->
-  <policy at_console="true">
-    <allow send_destination="org.selinux"/>
-  </policy>
   <policy context="default">
-    <allow send_destination="org.selinux"
-	   send_interface="org.freedesktop.DBus.Introspectable"/>
+    <allow send_destination="org.selinux"/>
   </policy>
 
 </busconfig>