mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profile): add dbus-broker.
This commit is contained in:
parent
78d5ce9ecc
commit
72ade58c98
2 changed files with 45 additions and 2 deletions
43
apparmor.d/groups/bus/dbus-broker
Normal file
43
apparmor.d/groups/bus/dbus-broker
Normal 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>
|
||||||
|
}
|
|
@ -87,8 +87,8 @@ cups-notifier-mailto complain
|
||||||
cups-notifier-rss complain
|
cups-notifier-rss complain
|
||||||
cups-pk-helper-mechanism complain
|
cups-pk-helper-mechanism complain
|
||||||
cupsd attach_disconnected,complain
|
cupsd attach_disconnected,complain
|
||||||
dbus-broker complain
|
dbus-broker attach_disconnected,complain
|
||||||
dbus-broker-launch complain
|
dbus-broker-launch attach_disconnected,complain
|
||||||
dbus-daemon attach_disconnected,complain
|
dbus-daemon attach_disconnected,complain
|
||||||
DiscoverNotifier complain
|
DiscoverNotifier complain
|
||||||
dkms attach_disconnected,complain
|
dkms attach_disconnected,complain
|
||||||
|
|
Loading…
Reference in a new issue