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/add{user,group}
@{exec_path} = @{bin}/add{user,group}
profile adduser @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@ -20,21 +20,21 @@ profile adduser @{exec_path} {
capability fsetid,
@{exec_path} r,
/{usr/,}bin/perl r,
@{bin}/perl r,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/find rix,
/{usr/,}bin/rm rix,
@{bin}/{,ba,da}sh rix,
@{bin}/find rix,
@{bin}/rm rix,
/{usr/,}{s,}bin/groupadd rPx,
/{usr/,}{s,}bin/groupdel rPx,
/{usr/,}{s,}bin/useradd rPx,
/{usr/,}{s,}bin/userdel rPx,
/{usr/,}{s,}bin/usermod rPx,
/{usr/,}bin/chage rPx,
/{usr/,}bin/chfn rPx,
/{usr/,}bin/gpasswd rPx,
/{usr/,}bin/passwd rPx,
@{bin}/chage rPx,
@{bin}/chfn rPx,
@{bin}/gpasswd rPx,
@{bin}/groupadd rPx,
@{bin}/groupdel rPx,
@{bin}/passwd rPx,
@{bin}/useradd rPx,
@{bin}/userdel rPx,
@{bin}/usermod rPx,
/etc/{group,passwd,shadow} r,
/etc/adduser.conf r,