feat(profile): add dbus-broker.

This commit is contained in:
Alexandre Pujol 2024-01-27 19:39:54 +00:00
parent 78d5ce9ecc
commit 72ade58c98
Failed to generate hash of commit
2 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,43 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/dbus-broker
profile dbus-broker @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-accessibility>
include <abstractions/bus-session>
include <abstractions/bus-system>
include <abstractions/nameservice-strict>
network netlink raw,
signal (receive) set=(cont, term) peer=systemd-user,
dbus bus=accessibility,
dbus bus=session,
dbus bus=system,
@{exec_path} mr,
@{bin}/* rPUx,
# Extra rules for GDM
/var/lib/gdm{3,}/.local/share/icc/ r,
/var/lib/gdm{3,}/.local/share/icc/edid-*.icc r,
@{user_share_dirs}/icc/ r,
@{user_share_dirs}/icc/edid-*.icc r,
@{run}/systemd/sessions/*.ref rw,
@{run}/systemd/inhibit/*.ref rw,
/dev/dri/card@{int} rw,
/dev/input/event@{int} rw,
include if exists <local/dbus-broker>
}

View file

@ -87,8 +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-broker attach_disconnected,complain
dbus-broker-launch attach_disconnected,complain
dbus-daemon attach_disconnected,complain
DiscoverNotifier complain
dkms attach_disconnected,complain