feat(profile): various core update.

This commit is contained in:
Alexandre Pujol 2025-03-09 23:04:32 +01:00
parent 7badf80854
commit 47b6e3c616
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 30 additions and 21 deletions

View file

@ -31,6 +31,8 @@ profile systemd-cryptsetup @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/virtual/bdi/*/read_ahead_kb r,
@{sys}/fs/ r,
@{run}/systemd/ask-password/ r,
@{PROC}/devices r,
owner @{PROC}/@{pid}/mountinfo r,

View file

@ -18,6 +18,7 @@ profile systemd-generator-ds-identify @{exec_path} flags=(attach_disconnected) {
@{sh_path} rix,
@{bin}/blkid rPx,
@{bin}/grep rix,
@{bin}/systemd-detect-virt rPx,
@{bin}/tr rix,
@{bin}/uname rix,

View file

@ -8,7 +8,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-modules-load
profile systemd-modules-load @{exec_path} {
profile systemd-modules-load @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/common/systemd>

View file

@ -7,7 +7,7 @@ abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-remount-fs
profile systemd-remount-fs @{exec_path} {
profile systemd-remount-fs @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/common/systemd>
@ -17,7 +17,7 @@ profile systemd-remount-fs @{exec_path} {
capability sys_resource,
mount options=(rw, remount) -> /,
mount options=(rw, remount) -> /proc/,
mount options=(rw, remount) -> @{PROC}/,
@{exec_path} mr,

View file

@ -17,10 +17,11 @@ profile systemd-tty-ask-password-agent @{exec_path} {
capability net_admin,
capability sys_resource,
signal (receive) set=(term cont) peer=*//systemctl,
signal (receive) set=(term cont) peer=default,
signal (receive) set=(term cont) peer=logrotate,
signal (receive) set=(term cont) peer=rpm,
signal receive set=(term cont) peer=*//systemctl,
signal receive set=(term cont) peer=default,
signal receive set=(term cont) peer=logrotate,
signal receive set=(term cont) peer=role_*,
signal receive set=(term cont) peer=rpm,
@{exec_path} mrix,

View file

@ -27,8 +27,8 @@ profile zram-generator @{exec_path} flags=(attach_disconnected) {
owner @{run}/systemd/generator/swap.target.wants/{,dev-zram@{int}.swap} rw,
owner @{run}/systemd/generator/systemd-zram-setup@zram@{int}.service.d/{,*.conf} rw,
@{sys}/block/zram@{int}/{disksize,reset} rw,
@{sys}/devices/virtual/block/zram@{int}/{disksize,reset,comp_algorithm} rw,
@{sys}/block/zram@{int}/* rw,
@{sys}/devices/virtual/block/zram@{int}/* rw,
@{sys}/module/compression r,
@{PROC}/crypto r,