Update tlp

This commit is contained in:
barmogund 2024-10-27 18:49:04 +01:00 committed by GitHub
parent 2411da2214
commit 875180dac1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
@{bin}/systemctl rix, @{bin}/systemctl rix,
@{bin}/logger rix, @{bin}/logger rix,
@{shells_path} rix, @{sh_path} rix,
@{bin}/cp rix, @{bin}/cp rix,
@{bin}/chmod rix, @{bin}/chmod rix,
@{bin}/flock rix, @{bin}/flock rix,
@ -44,25 +44,24 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
@{bin}/iw rpx, @{bin}/iw rpx,
@{bin}/hdparm rix, @{bin}/hdparm rix,
@{bin}/uname rpx, @{bin}/uname rpx,
@{bin}/udevadm rix, @{bin}/udevadm rCx -> udevadm,
/usr/share/tlp/tlp-readconfs rix, /usr/share/tlp/tlp-readconfs rix,
owner / r, / r,
owner /etc/tlp.d/ r, /etc/tlp.d/ r,
owner /etc/tlp.d/** rw, /etc/tlp.d/** rw,
owner /etc/udev/udev.conf r,
/etc/tlp.conf rw, /etc/tlp.conf rw,
/etc/udev/udev.conf r,
owner /usr/share/tlp/** rw, /usr/share/tlp/** rw,
owner /usr/share/tlp/func.d/** rw, /usr/share/tlp/func.d/** rw,
/usr/share/tlp/tlp-readconfs rw, /usr/share/tlp/tlp-readconfs rw,
/var/lib/power-profiles-daemon/{,**} rw, /var/lib/power-profiles-daemon/state.ini rw,
owner /usr/share/tlp/bat.d/** rw, owner /usr/share/tlp/bat.d/** rw,
owner /usr/share/perl5/core_perl/** r,
@{run}/udev/data/+platform:* r, @{run}/udev/data/+platform:* r,
owner @{run}/tlp/* rw, owner @{run}/tlp/* rw,
@ -104,7 +103,6 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
@{sys}/firmware/acpi/platform_profile* rw, @{sys}/firmware/acpi/platform_profile* rw,
@{sys}/firmware/acpi/pm_profile* rw, @{sys}/firmware/acpi/pm_profile* rw,
@{sys}/devices/virtusl/** rw,
owner @{PROC}/sys/vm/laptop_mode rw, owner @{PROC}/sys/vm/laptop_mode rw,
owner @{PROC}/sys/vm/dirty_writeback_centisecs rw, owner @{PROC}/sys/vm/dirty_writeback_centisecs rw,
@ -117,6 +115,13 @@ profile tlp @{exec_path} flags=(attach_disconnected) {
/dev/tty rw, /dev/tty rw,
include if exists <local/tlp> include if exists <local/tlp>
profile udevadm {
include <abstractions/base>
include <abstractions/app/udevadm>
include if exists <local/tlp_udevadm>
}
} }
# vim:syntax=apparmor # vim:syntax=apparmor