Create lxqt-powermanagement
This commit is contained in:
parent
c4f08e1906
commit
f99dab8cb2
1 changed files with 48 additions and 0 deletions
48
apparmor.d/groups/lxqt/lxqt-powermanagement
Normal file
48
apparmor.d/groups/lxqt/lxqt-powermanagement
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# Copyright (C) 2024 Besanon <m231009ts@mailfence.com>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/lxqt-powermanagement
|
||||||
|
profile lxqt-powermanagement @{exec_path} flags=(attach_disconnected) {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/gtk>
|
||||||
|
include <abstractions/video>
|
||||||
|
include <abstractions/lxqt>
|
||||||
|
include <abstractions/qt5-shader-cache>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/gvfs-open>
|
||||||
|
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{bin}/xset rPx,
|
||||||
|
@{bin}/pkexec rPx,
|
||||||
|
@{bin}/{,ba,da}sh rix,
|
||||||
|
|
||||||
|
/etc/udev/udev.conf r,
|
||||||
|
/etc/fstab r,
|
||||||
|
|
||||||
|
owner /tmp/@{int} r,
|
||||||
|
|
||||||
|
@{run}/systemd/inhibit/* rw,
|
||||||
|
|
||||||
|
@{sys}/class/backlight/ r,
|
||||||
|
@{sys}/devices/@{pci_bus}/0000:00:08.1/0000:05:00.0/drm/card0/card0-eDP-1/amdgpu_bl0/type r,
|
||||||
|
@{sys}/devices/@{pci_bus}/0000:00:08.1/0000:05:00.0/drm/card0/card0-eDP-1/amdgpu_bl0/max_brightness r,
|
||||||
|
@{sys}/devices/@{pci_bus}/0000:00:08.1/0000:05:00.0/drm/card0/card0-eDP-1/amdgpu_bl0/bl_power r,
|
||||||
|
@{sys}/devices/@{pci_bus}/0000:00:08.1/0000:05:00.0/drm/card0/card0-eDP-1/amdgpu_bl0/actual_brightness r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
|
include if exists <local/lxqt-powermangement>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
Loading…
Add table
Add a link
Reference in a new issue