feat(dbus): dbus rules cleanup (1)
- move common rule to abs - ensure peer name or label are always present - try to make rule more standard/easier to read
This commit is contained in:
parent
9517800a9d
commit
8a49f2ebe1
16 changed files with 133 additions and 256 deletions
|
|
@ -21,10 +21,7 @@ profile polkitd @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
ptrace (read),
|
||||
|
||||
dbus (send) bus=system path=/org/freedesktop/DBus
|
||||
interface=org.freedesktop.DBus
|
||||
member={GetConnectionUnixProcessID,GetConnectionUnixUser,RequestName,ReleaseName}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
dbus (bind) bus=system name=org.freedesktop.PolicyKit1,
|
||||
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/PolicyKit1/*
|
||||
interface=org.freedesktop.{DBus.Introspectable,DBus.Properties,PolicyKit1.*}, # all members
|
||||
|
|
@ -33,8 +30,10 @@ profile polkitd @{exec_path} flags=(attach_disconnected) {
|
|||
interface=org.freedesktop.PolicyKit1.AuthenticationAgent
|
||||
peer=(name=:*), # all members
|
||||
|
||||
dbus (bind) bus=system
|
||||
name=org.freedesktop.PolicyKit1,
|
||||
dbus (send) bus=system path=/org/freedesktop/DBus
|
||||
interface=org.freedesktop.DBus
|
||||
member={GetConnectionUnixProcessID,GetConnectionUnixUser}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue