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

This commit is contained in:
Alexandre Pujol 2023-07-09 14:59:53 +01:00
parent 7c2c806ffa
commit 2b2c42d23c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
155 changed files with 938 additions and 938 deletions

View file

@ -6,24 +6,24 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/update-dlocatedb
@{exec_path} = @{bin}/update-dlocatedb
profile update-dlocatedb @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
@{bin}/{,ba,da}sh rix,
/{usr/,}bin/cat rix,
/{usr/,}bin/uname rix,
/{usr/,}bin/sed rix,
/{usr/,}bin/sort rix,
/{usr/,}bin/uniq rix,
@{bin}/cat rix,
@{bin}/uname rix,
@{bin}/sed rix,
@{bin}/sort rix,
@{bin}/uniq rix,
/{usr/,}bin/ionice rix,
@{bin}/ionice rix,
/usr/share/dlocate/updatedb rCx -> updatedb,
/{usr/,}bin/dpkg rPx -> child-dpkg,
@{bin}/dpkg rPx -> child-dpkg,
owner @{PROC}/@{pid}/fd/2 w,
@ -38,7 +38,7 @@ profile update-dlocatedb @{exec_path} {
include <abstractions/perl>
/usr/share/dlocate/updatedb r,
/{usr/,}bin/perl r,
@{bin}/perl r,
/etc/default/dlocate r,
@ -54,7 +54,7 @@ profile update-dlocatedb @{exec_path} {
/var/lib/dpkg/info/*.list r,
# For compression
/{usr/,}bin/gzip rix,
@{bin}/gzip rix,
/var/lib/dlocate/dlocatedb.gz rw,
}