diff --git a/apparmor.d/groups/bus/dbus-broker-launch b/apparmor.d/groups/bus/dbus-broker-launch new file mode 100644 index 00000000..86bcd698 --- /dev/null +++ b/apparmor.d/groups/bus/dbus-broker-launch @@ -0,0 +1,32 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/dbus-broker-launch +profile dbus-broker-launch @{exec_path} { + include + include + + capability net_admin, + capability setgid, + capability setuid, + + @{exec_path} mr, + + @{bin}/dbus-broker rPUx, + + @{system_share_dirs}/dbus-1/{,**} r, + @{system_share_dirs}/dbus-1/services/{,**} r, + /usr/share/dbus-1/{,**} r, + /usr/share/defaults/**.conf r, + + /etc/machine-id r, + + @{PROC}/sys/kernel/random/boot_id r, + + include if exists +} \ No newline at end of file diff --git a/dists/flags/main.flags b/dists/flags/main.flags index bc206bc3..828f69a1 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -87,6 +87,8 @@ cups-notifier-mailto complain cups-notifier-rss complain cups-pk-helper-mechanism complain cupsd attach_disconnected,complain +dbus-broker complain +dbus-broker-launch complain dbus-daemon attach_disconnected,complain DiscoverNotifier complain dkms attach_disconnected,complain