refactor(profiles): use @{bin} and @{lib} in profiles (4)

This commit is contained in:
Alexandre Pujol 2023-07-09 14:23:22 +01:00
parent 27daa7c9bb
commit 43b0f09b65
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
173 changed files with 909 additions and 916 deletions

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/check-bios-nx
@{exec_path} = @{bin}/check-bios-nx
profile check-bios-nx @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@ -16,15 +16,15 @@ profile check-bios-nx @{exec_path} {
capability dac_override,
@{exec_path} r,
/{usr/,}bin/{,ba,da}sh rix,
@{bin}/{,ba,da}sh rix,
/{usr/,}bin/uname rix,
/{usr/,}bin/{,e}grep rix,
/{usr/,}bin/getopt rix,
@{bin}/uname rix,
@{bin}/{,e}grep rix,
@{bin}/getopt rix,
/{usr/,}bin/kmod rCx -> kmod,
@{bin}/kmod rCx -> kmod,
/{usr/,}{s,}bin/rdmsr rPx,
@{bin}/rdmsr rPx,
owner @{PROC}/@{pid}/fd/2 w,
@ -32,13 +32,13 @@ profile check-bios-nx @{exec_path} {
profile kmod {
include <abstractions/base>
/{usr/,}bin/kmod mr,
@{bin}/kmod mr,
/etc/modprobe.d/ r,
/etc/modprobe.d/*.conf r,
/{usr/,}lib/modprobe.d/ r,
/{usr/,}lib/modprobe.d/*.conf r,
/{usr/,}lib/modules/*/modules.* r,
@{lib}/modprobe.d/ r,
@{lib}/modprobe.d/*.conf r,
@{lib}/modules/*/modules.* r,
@{PROC}/cmdline r,