feat(profile): improve support for some profiles.

Most of the rules have come from the integration tests.
This commit is contained in:
Alexandre Pujol 2024-11-12 22:18:11 +00:00
parent e4f0f06648
commit 66455a9251
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
29 changed files with 50 additions and 22 deletions

View file

@ -42,6 +42,7 @@ profile snap @{exec_path} {
@{exec_path} mrix,
@{bin}/mount rix,
@{bin}/getent rix,
@{bin}/gpg{,2} rCx -> gpg,
@{bin}/systemctl rCx -> systemctl,

View file

@ -13,9 +13,8 @@ profile sync @{exec_path} {
@{exec_path} mr,
# Common paths where sync is used to flush all write operations on a single file to disk
# TODO: /** rw, ?
/boot/initrd-*-default rw,
# All paths where sync can be used to flush all write operations on a single file to disk
/** rw,
include if exists <local/sync>
}

View file

@ -17,8 +17,8 @@ profile uuidd @{exec_path} flags=(attach_disconnected) {
owner /var/lib/libuuid/clock.txt rwk,
@{run}/uuidd/request w,
@{att}/@{run}/uuidd/request w,
@{run}/uuidd/request rw,
@{att}/@{run}/uuidd/request rw,
include if exists <local/uuidd>
}