fix(profile): apply some fix raised by the test suite.

This commit is contained in:
Alexandre Pujol 2024-10-22 00:37:50 +01:00
parent 1f869c12ad
commit cca8e6508f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
24 changed files with 65 additions and 12 deletions

View file

@ -22,6 +22,8 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
ptrace (read),
mqueue r type=posix /,
@{exec_path} mrix,
@{sh_path} rix,
@ -76,8 +78,13 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/app/systemctl>
capability sys_resource,
capability net_admin,
signal send set=term peer=systemd-tty-ask-password-agent,
@{bin}/systemd-tty-ask-password-agent Px,
include if exists <local/needrestart_systemctl>
}

View file

@ -18,6 +18,8 @@ profile pstree @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
/usr/share/terminfo/** r,
@{PROC} r,
@{PROC}/@{pids}/attr/current r,
@{PROC}/@{pids}/stat r,