File: fix-system-bus-permissions.patch

package info (click to toggle)
bluemon 1.4-8
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 236 kB
  • sloc: ansic: 1,769; makefile: 205; sh: 104; xml: 24
file content (25 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
This patch fixes the permission file for talking on the system bus.
Has always been broken, but wasn't noticed because the system bus
was allowing things anyway. This ensures that introspection is also
allowed.
--- bluemon-1.4/bluemon-dbus.conf.old	2009-01-03 21:14:39.096906916 +0000
+++ bluemon-1.4/bluemon-dbus.conf	2009-01-03 21:15:33.122191802 +0000
@@ -7,15 +7,14 @@
 
   <!-- ../system.conf have denied everything, so we just punch some holes -->
 
+  <!-- Allow bluemon to own the name -->
   <policy user="root">
    <allow own="cx.ath.matthew.bluemon.server"/>
   </policy>
 
+  <!-- Allow anyone to send to it -->
   <policy context="default">
-
-    <allow receive_interface="cx.ath.matthew.bluemon.Bluemon"/>
-    <allow send_interface="cx.ath.matthew.bluemon.ProxySignal"/>
-
+    <allow send_destination="cx.ath.matthew.bluemon.server"/>
   </policy>
 
 </busconfig>