feat(profile): add dbus-broker-launch.

This commit is contained in:
Alexandre Pujol 2024-01-21 13:27:19 +00:00
parent 18dbc60ff0
commit 46cb726834
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/dbus-broker-launch
profile dbus-broker-launch @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
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 <local/dbus-broker-launch>
}

View File

@ -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