File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ func (d Dbus) own(rules map[string]string) aa.Rules {
110
110
interfaces := getInterfaces (rules )
111
111
112
112
res := aa.Rules {
113
+ & aa.Include {
114
+ IsMagic : true , Path : "abstractions/bus/own-" + rules ["bus" ],
115
+ },
113
116
& aa.Dbus {
114
117
Access : []string {"bind" }, Bus : rules ["bus" ], Name : rules ["name" ],
115
118
},
Original file line number Diff line number Diff line change 8
8
"testing"
9
9
)
10
10
11
- const dbusOwnSystemd1 = ` dbus bind bus=system name=org.freedesktop.systemd1{,.*},
11
+ const dbusOwnSystemd1 = ` include <abstractions/bus/own-system>
12
+
13
+ dbus bind bus=system name=org.freedesktop.systemd1{,.*},
12
14
dbus receive bus=system path=/org/freedesktop/systemd1{,/**}
13
15
interface=org.freedesktop.systemd1{,.*}
14
16
peer=(name="@{busname}"),
@@ -71,7 +73,9 @@ func TestDbus_Apply(t *testing.T) {
71
73
Raw : " #aa:dbus own bus=session name=com.rastersoft.ding interface+=org.gtk.Actions" ,
72
74
},
73
75
profile : " #aa:dbus own bus=session name=com.rastersoft.ding interface+=org.gtk.Actions" ,
74
- want : ` dbus bind bus=session name=com.rastersoft.ding{,.*},
76
+ want : ` include <abstractions/bus/own-session>
77
+
78
+ dbus bind bus=session name=com.rastersoft.ding{,.*},
75
79
dbus receive bus=session path=/com/rastersoft/ding{,/**}
76
80
interface=com.rastersoft.ding{,.*}
77
81
peer=(name="@{busname}"),
You can’t perform that action at this time.
0 commit comments