apparmor.d/apparmor.d/groups/bus/dbus-daemon-launch-helper

40 lines
1.2 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/dbus-1*/dbus-daemon-launch-helper
profile dbus-daemon-launch-helper @{exec_path} {
include <abstractions/base>
include <abstractions/app-launcher-root>
include <abstractions/nameservice-strict>
capability setgid,
capability setuid,
capability sys_resource,
@{exec_path} mr,
@{lib}/{,cups-pk-helper/}cups-pk-helper-mechanism rPx,
@{lib}/{,polkit-1/}polkitd rPx,
@{lib}/{,udisks2/}udisksd rPx,
@{lib}/@{multiarch}/cups-pk-helper-mechanism rPx,
@{lib}/kauth/{,libexec/}* rPx,
@{lib}/language-selector/ls-dbus-backend rPx,
@{lib}/software-properties/software-properties-dbus rPx,
/usr/share/org.gnome.Characters/org.gnome.Characters.BackgroundService rPx,
/usr/share/usb-creator/usb-creator-helper rPx,
/usr/share/hplip/pkservice.py rPx,
/usr/share/dbus-1*/{,**} r,
/etc/dbus-1/{,**} r,
owner @{PROC}/@{pid}/oom_score_adj rw,
include if exists <local/dbus-daemon-launch-helper>
}