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/del{user,group}
@{exec_path} = @{bin}/del{user,group}
profile deluser @{exec_path} {
include <abstractions/base>
include <abstractions/perl>
@ -20,17 +20,17 @@ profile deluser @{exec_path} {
capability dac_override,
@{exec_path} r,
/{usr/,}bin/perl r,
@{bin}/perl r,
/{usr/,}bin/{,ba,da}sh rix,
@{bin}/{,ba,da}sh rix,
/{usr/,}{s,}bin/userdel rPx,
/{usr/,}{s,}bin/groupdel rPx,
/{usr/,}bin/gpasswd rPx,
@{bin}/userdel rPx,
@{bin}/groupdel rPx,
@{bin}/gpasswd rPx,
/{usr/,}bin/crontab rPx,
@{bin}/crontab rPx,
/{usr/,}bin/mount rCx -> mount,
@{bin}/mount rCx -> mount,
/etc/adduser.conf r,
/etc/deluser.conf r,
@ -48,7 +48,7 @@ profile deluser @{exec_path} {
profile mount {
include <abstractions/base>
/{usr/,}bin/mount mr,
@{bin}/mount mr,
@{PROC}/@{pid}/mountinfo r,