From 46cb726834226527a7635c94ed51e56eb96bf895 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 21 Jan 2024 13:27:19 +0000 Subject: [PATCH] feat(profile): add dbus-broker-launch. --- apparmor.d/groups/bus/dbus-broker-launch | 32 ++++++++++++++++++++++++ dists/flags/main.flags | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 apparmor.d/groups/bus/dbus-broker-launch diff --git a/apparmor.d/groups/bus/dbus-broker-launch b/apparmor.d/groups/bus/dbus-broker-launch new file mode 100644 index 000000000..86bcd6983 --- /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 bc206bc3a..828f69a11 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