36 lines
987 B
Text
36 lines
987 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/xfce4-power-manager
|
|
profile xfce-power-manager @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/xfce>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
dbus (bind) bus=session name=org.xfce.PowerManager,
|
|
dbus (bind) bus=session name=org.freedesktop.PowerManagement,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{bin}/xfpm-power-backlight-helper rPx,
|
|
|
|
/etc/xdg/autostart/xfce4-power-manager.desktop r,
|
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/stat r,
|
|
|
|
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
|
|
|
include if exists <local/xfce-power-manager>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|