Update hdparm

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

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} = @{bin}/hdparm
profile hdparm @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/disk-read>
include <abstractions/user-download-strict>
include <abstractions/private-files-strict>
include <abstractions/disks-read>
@ -29,14 +30,6 @@ profile hdparm @{exec_path} flags=(complain) {
# Image files
owner @{user_img_dirs}/{,**} r,
# interaction with tlp
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/**/**/power/autosuspend_delay_ms r,
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/scsi_host/host0/link_power_management_policy rw,
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/target*/**/block/{sda,sr0}/* r,
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/target*/**/block/{sda,sr0}/dev r,
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/target*/**/block/sda/sda@{int}/dev r,
owner @{sys}/devices/@{pci}/ta@{int}/host@{int}/target*/**/block/sda@{int}/dev r,
# for hdparm --fibmap
@{PROC}/devices r,