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

This commit is contained in:
Alexandre Pujol 2023-07-09 14:34:42 +01:00
parent 43b0f09b65
commit fcedbbfd95
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
122 changed files with 873 additions and 876 deletions

View file

@ -6,20 +6,20 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/kvm-ok
@{exec_path} = @{bin}/kvm-ok
profile kvm-ok @{exec_path} {
include <abstractions/base>
@{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/id rix,
@{bin}/uname rix,
@{bin}/{,e}grep rix,
@{bin}/id rix,
/{usr/,}bin/kmod rCx -> kmod,
@{bin}/kmod rCx -> kmod,
/{usr/,}{s,}bin/rdmsr rPx,
@{bin}/rdmsr rPx,
#/proc/cpuinfo r,
#/dev/kvm r,
@ -32,12 +32,12 @@ profile kvm-ok @{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,
@{lib}/modprobe.d/ r,
@{lib}/modprobe.d/*.conf r,
@{PROC}/cmdline r,