feat(profile): start implementing systemctl subprofile instead of using child-systemctl.
This commit is contained in:
parent
a7e37528d5
commit
70963a50b6
11 changed files with 75 additions and 17 deletions
|
|
@ -31,7 +31,7 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/python3.@{int} rix,
|
||||
@{bin}/sed rix,
|
||||
@{bin}/stty rix,
|
||||
@{bin}/systemctl rPx -> child-systemctl,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{bin}/systemd-detect-virt rPx,
|
||||
@{bin}/udevadm rPx,
|
||||
@{bin}/unix_chkpwd rPx,
|
||||
|
|
@ -72,5 +72,14 @@ profile needrestart @{exec_path} flags=(attach_disconnected) {
|
|||
/dev/ r,
|
||||
/dev/**/ r,
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemctl>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
include if exists <local/needrestart_systemctl>
|
||||
}
|
||||
|
||||
include if exists <local/needrestart>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue