Skip to content

Commit 19df47d

Browse files
committed
dbus: remove deprecated at_console statement
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 root and any non-system user to potentially own the system-config-printer dbus names. Now this is extended to also allow any system user. [0]: <https://www.spinics.net/lists/linux-bluetooth/msg75267.html> Signed-off-by: Tom Gundersen <teg@jklm.no> CC: David Herrmann <dh.herrmann@gmail.com>
1 parent af4aea4 commit 19df47d

2 files changed

Lines changed: 2 additions & 24 deletions

File tree

dbus/com.redhat.NewPrinterNotification.conf

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,16 @@
22
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
33
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
44
<busconfig>
5-
<policy at_console="true">
6-
<allow own="com.redhat.NewPrinterNotification"/>
7-
</policy>
8-
9-
<policy user="root">
10-
<allow own="com.redhat.NewPrinterNotification"/>
11-
</policy>
12-
135
<policy user="root">
146
<allow send_destination="com.redhat.NewPrinterNotification"
157
send_interface="com.redhat.NewPrinterNotification"/>
168
</policy>
179

1810
<policy context="default">
19-
<deny own="com.redhat.NewPrinterNotification"/>
11+
<allow own="com.redhat.NewPrinterNotification"/>
2012

2113
<deny send_destination="com.redhat.NewPrinterNotification"
2214
send_interface="com.redhat.NewPrinterNotification"/>
23-
</policy>
24-
25-
<policy context="default">
2615
<allow send_destination="com.redhat.NewPrinterNotification"
2716
send_interface="org.freedesktop.DBus.Introspectable" />
2817
<allow send_destination="com.redhat.NewPrinterNotification"

dbus/com.redhat.PrinterDriversInstaller.conf

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,16 @@
22
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
33
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
44
<busconfig>
5-
<policy at_console="true">
6-
<allow own="com.redhat.PrinterDriversInstaller"/>
7-
</policy>
8-
9-
<policy user="root">
10-
<allow own="com.redhat.PrinterDriversInstaller"/>
11-
</policy>
12-
135
<policy user="root">
146
<allow send_destination="com.redhat.PrinterDriversInstaller"
157
send_interface="com.redhat.PrinterDriversInstaller"/>
168
</policy>
179

1810
<policy context="default">
19-
<deny own="com.redhat.PrinterDriversInstaller"/>
11+
<allow own="com.redhat.PrinterDriversInstaller"/>
2012

2113
<deny send_destination="com.redhat.PrinterDriversInstaller"
2214
send_interface="com.redhat.PrinterDriversInstaller"/>
23-
</policy>
24-
25-
<policy context="default">
2615
<allow send_destination="com.redhat.PrinterDriversInstaller"
2716
send_interface="org.freedesktop.DBus.Introspectable" />
2817
<allow send_destination="com.redhat.PrinterDriversInstaller"

0 commit comments

Comments
 (0)