mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
refractor(profile): clean some dbus rules.
This commit is contained in:
parent
e26302b155
commit
ed7585c3d0
4 changed files with 25 additions and 29 deletions
|
@ -32,7 +32,7 @@ profile ibus-extension-gtk3 @{exec_path} flags=(attach_disconnected) {
|
|||
member={RequestName,ReleaseName}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
|
||||
dbus send bus=session path=/org/gtk/Settings
|
||||
dbus send bus=session path=/org/gtk/Settings
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll
|
||||
peer=(name=:*, label=gsd-xsettings),
|
||||
|
@ -42,7 +42,7 @@ profile ibus-extension-gtk3 @{exec_path} flags=(attach_disconnected) {
|
|||
member=GetAddress
|
||||
peer=(name=org.a11y.Bus, label=at-spi-bus-launcher),
|
||||
|
||||
dbus send bus=accessibility path=/org/a11y/atspi/registry
|
||||
dbus send bus=accessibility path=/org/a11y/atspi/registry
|
||||
interface=org.a11y.atspi.Registry
|
||||
member=GetRegisteredEvents
|
||||
peer=(name=org.a11y.atspi.Registry), # all peer's labels
|
||||
|
|
|
@ -22,7 +22,7 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
|
|||
include <abstractions/trash>
|
||||
include <abstractions/vulkan>
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/hostname[0-9]
|
||||
dbus send bus=system path=/org/freedesktop/hostname1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
|
@ -34,11 +34,9 @@ profile nautilus @{exec_path} flags=(attach_disconnected) {
|
|||
member={IsSupported,List}
|
||||
peer=(name=:*),
|
||||
|
||||
dbus bind bus=session
|
||||
name=org.gnome.Nautilus,
|
||||
dbus bind bus=session name=org.gnome.Nautilus,
|
||||
|
||||
dbus bind bus=session
|
||||
name=org.freedesktop.FileManager1,
|
||||
dbus bind bus=session name=org.freedesktop.FileManager1,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
|
|
@ -22,33 +22,32 @@ profile ModemManager @{exec_path} flags=(attach_disconnected) {
|
|||
member={RequestName,ReleaseName}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-daemon),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
||||
dbus send bus=system path=/org/freedesktop/PolicyKit1/Authority
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/login[0-9]
|
||||
interface=org.freedesktop.login[0-9].Manager
|
||||
dbus send bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.login1.Manager
|
||||
member=Inhibit,
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/login[0-9]
|
||||
interface=org.freedesktop.login[0-9].Manager
|
||||
dbus receive bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.login1.Manager
|
||||
member={UserNew,SessionNew,PrepareForShutdown,SeatNew,UserRemoved,SessionRemoved,PrepareForSleep}
|
||||
peer=(name=:*, label=systemd-logind),
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/ModemManager[0-9]
|
||||
dbus receive bus=system path=/org/freedesktop/ModemManager1
|
||||
interface=org.freedesktop.DBus.ObjectManager
|
||||
member=GetManagedObjects,
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/ModemManager[0-9]
|
||||
dbus receive bus=system path=/org/freedesktop/ModemManager1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
||||
interface=org.freedesktop.PolicyKit[0-9].Authority
|
||||
dbus receive bus=system path=/org/freedesktop/PolicyKit1/Authority
|
||||
interface=org.freedesktop.PolicyKit1.Authority
|
||||
member=Changed,
|
||||
|
||||
dbus bind bus=system
|
||||
name=org.freedesktop.ModemManager[0-9],
|
||||
dbus bind bus=system name=org.freedesktop.ModemManager1,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
dbus (send,receive) bus=system path=/org/freedesktop/NetworkManager{,/**}
|
||||
interface=org.freedesktop.{DBus.Properties,DBus.Introspectable,NetworkManager*},
|
||||
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
||||
interface=org.freedesktop.PolicyKit[0-9].Authority
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/PolicyKit1/Authority
|
||||
interface=org.freedesktop.PolicyKit1.Authority
|
||||
member={Changed,CheckAuthorization,CancelCheckAuthorization},
|
||||
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/login[0-9]
|
||||
interface=org.freedesktop.login[0-9].Manager
|
||||
dbus (send,receive) bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.login1.Manager
|
||||
member={SessionRemoved,UserNew,SessionNew,Inhibit,PrepareForShutdown,UserRemoved,PrepareForSleep}
|
||||
peer=(name=:*, label=systemd-logind),
|
||||
|
||||
|
@ -63,20 +63,20 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
member=Action
|
||||
peer=(name=org.freedesktop.nm_dispatcher),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/ModemManager[0-9]
|
||||
dbus send bus=system path=/org/freedesktop/ModemManager1
|
||||
interface=org.freedesktop.DBus.ObjectManager
|
||||
member=GetManagedObjects,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/resolve[0-9]
|
||||
interface=org.freedesktop.resolve[0-9].Manager
|
||||
dbus send bus=system path=/org/freedesktop/resolve1
|
||||
interface=org.freedesktop.resolve1.Manager
|
||||
member={SetLink*,ResolveHostname},
|
||||
# org.freedesktop.resolve1
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/hostname[0-9]
|
||||
dbus send bus=system path=/org/freedesktop/hostname1
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member=GetAll,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/ModemManager[0-9]
|
||||
dbus send bus=system path=/org/freedesktop/ModemManager1
|
||||
interface=org.freedesktop.DBus.ObjectManager
|
||||
member=GetManagedObjects,
|
||||
|
||||
|
@ -93,8 +93,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
interface=org.freedesktop.DBus.Properties
|
||||
peer=(name=:*),
|
||||
|
||||
dbus bind bus=system
|
||||
name=org.freedesktop.NetworkManager,
|
||||
dbus bind bus=system name=org.freedesktop.NetworkManager,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
|
Loading…
Reference in a new issue