feat(dbus): rewrite some dbus rules (5).

This commit is contained in:
Alexandre Pujol 2023-12-04 21:54:45 +00:00
parent f5862c9862
commit da3b5103e4
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
40 changed files with 119 additions and 400 deletions

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = @{lib}/packagekitd
profile packagekitd @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus/login>
include <abstractions/bus/polkit>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>
@ -64,11 +65,6 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) {
member={CheckPermissions,DeviceAdded,DeviceRemoved,StateChanged}
peer=(name=:*, label=NetworkManager),
dbus receive bus=system path=/org/freedesktop/login1
interface=org.freedesktop.login1.Manager
member={SessionNew,PrepareForShutdown,SessionRemoved,UserNew,UserRemoved,PrepareForSleep}
peer=(name=:*, label=systemd-logind),
@{exec_path} mr,
@{bin}/gpg{,2} rCx -> gpg,