# apparmor.d - Full set of apparmor profiles # Copyright (C) 2024 Alexandre Pujol # Copyright (C) 2024 Besanon # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/lxqt-config-powermanagement profile lxqt-config-powermanagement @{exec_path} { include include include include @{exec_path} mr, /etc/machine-id r, owner @{user_config_dirs}/lxqt/#@{int} rw, owner @{user_config_dirs}/lxqt/lxqt-powermanagement.conf.lock rwk, owner @{user_config_dirs}/lxqt/lxqt-powermanagement.conf.@{rand6} rw, owner @{user_config_dirs}/lxqt/lxqt-powermanagement.conf.@{rand6} l -> @{user_config_dirs}/lxqt/#@{int}, @{sys}/class/leds/ r, @{sys}/devices/@{pci}/backlight/**/{,max_,actual_}brightness rw, @{sys}/devices/@{pci}/backlight/**/{uevent,type,enabled} r, @{sys}/devices/@{pci}/backlight/**/brightness rw, @{sys}/devices/@{pci}/drm/card@{int}/**/{,max_,actual_}brightness rw, @{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r, @{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw, @{sys}/devices/@{pci}/*_backlight/{,max_,actual_}brightness rw, @{sys}/devices/@{pci}/*_backlight/{uevent,type,enabled} r, owner /tmp/@{int} r, /dev/tty rw, include if exists } # vim:syntax=apparmor