feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2024-03-10 19:35:04 +00:00
parent b0d52d68f4
commit beaf1bad16
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
29 changed files with 121 additions and 58 deletions

View file

@ -7,8 +7,10 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/systemd-dissect
profile systemd-dissect @{exec_path} {
profile systemd-dissect @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/disks-read>
capability dac_read_search,
capability sys_admin,
@ -16,6 +18,9 @@ profile systemd-dissect @{exec_path} {
mount options=(rw, rslave) -> /,
mount options=(rw, nodev) -> /mnt/*/,
mount -> /tmp/dissect-@{rand6}/,
signal (send) set=(cont) peer=child-pager,
@{exec_path} mr,
@ -30,13 +35,14 @@ profile systemd-dissect @{exec_path} {
@{user_projects_dirs}/{,**} r,
@{user_vm_dirs}/{,**} r,
owner /tmp/dissect-*/{,**} rw,
owner /tmp/dissect-@{rand6}/{,**} rw,
@{sys}/devices/virtual/block/loop@{int}/{,**} r,
@{sys}/kernel/uevent_seqnum r,
@{PROC}/@{pids}/cgroup r,
/dev/btrfs-control rw,
/dev/loop-control rwk,
/dev/loop* rwk,

View file

@ -16,6 +16,7 @@ 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,