28 lines
No EOL
975 B
Text
28 lines
No EOL
975 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/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/xfpm-power-backlight-helper
|
|
profile xfpm-power-backlight-helper @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/xfce>
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sys}/class/backlight/ r,
|
|
@{sys}/class/leds/ r,
|
|
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
|
@{sys}/devices/@{pci}/backlight/**/{uevent,type} r,
|
|
@{sys}/devices/@{pci}/backlight/**/brightness rw,
|
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{max_brightness,actual_brightness} r,
|
|
@{sys}/devices/@{pci}/drm/card@{int}/**/{uevent,type,enabled} r,
|
|
@{sys}/devices/@{pci}/drm/card@{int}/**/brightness rw,
|
|
@{sys}/devices/@{pci}/intel_backlight/{max_,}brightness rw,
|
|
@{sys}/devices/@{pci}/intel_backlight/type r,
|
|
|
|
include if exists <local/xfpm-power-backlight-helper>
|
|
} |