feat(profile): small profiles update.

This commit is contained in:
Alexandre Pujol 2024-10-06 20:43:18 +01:00
parent 01a1af6c1b
commit 6b0b498244
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 57 additions and 39 deletions

View file

@ -14,15 +14,13 @@ profile cron-debsums @{exec_path} {
@{exec_path} mr,
@{sh_path} rix,
@{bin}/true rix,
@{bin}/{,e}grep rix,
@{bin}/debsums rPx,
@{bin}/ionice rix,
@{bin}/logger rix,
@{bin}/sed rix,
@{bin}/{,e}grep rix,
@{bin}/ionice rix,
@{bin}/debsums rPx,
@{bin}/tee rCx -> tee,
@{bin}/true rix,
/etc/ r,
/etc/default/debsums r,
@ -31,17 +29,15 @@ profile cron-debsums @{exec_path} {
# For shell pwd
/ r,
profile tee {
include <abstractions/base>
include <abstractions/consoles>
# Needed to write to /proc/self/fd/3
capability dac_override,
@{bin}/tee mr,
owner @{PROC}/@{pid}/fd/3 rw,
owner @{PROC}/@{pid}/fd/@{int} rw,
include if exists <local/cron-debsums_tee>
}