Create lxqt-config-brightness

This commit is contained in:
Besanon 2024-12-14 10:54:23 +01:00 committed by GitHub
parent 557d804974
commit f7e8a5e225
Failed to generate hash of commit

View file

@ -0,0 +1,33 @@
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/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/lxqt-config-brightness
profile lxqt-config-brightness @{exec_path} {
include <abstractions/base>
include <abstractions/lxqt>
@{exec_path} mr,
@{bin}/pkexec rpx,
@{sh_path} rix,
owner @{HOME}/ r,
owner /tmp/@{int} r,
@{sys}/class/backlight/ r,
@{sys}/devices/@{pci}/**/**/drm/card@{int}/card@{int}-eDP-@{int}/amdgpu_bl@{int}/* rw,
@{sys}/devices/@{pci}/**/drm/card@{int}/card@{int}-eDP-@{int}/intel_backlight/* rw,
/dev/tty rw,
include if exists <local/lxqt-config-brightness>
}
# vim:syntax=apparmor