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
|
|
@ -94,7 +94,7 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/kmod rPx,
|
||||
@{bin}/netconfig rPUx,
|
||||
@{bin}/resolvconf rPx,
|
||||
@{bin}/systemctl rPx -> child-systemctl,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
@{lib}/{,NetworkManager/}nm-daemon-helper rPx,
|
||||
@{lib}/{,NetworkManager/}nm-dhcp-helper rPx,
|
||||
@{lib}/{,NetworkManager/}nm-dispatcher rPx,
|
||||
|
|
@ -153,5 +153,12 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/dev/rfkill rw,
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemctl>
|
||||
|
||||
include if exists <local/NetworkManager_systemctl>
|
||||
}
|
||||
|
||||
include if exists <local/NetworkManager>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,14 +49,10 @@ profile netplan.script @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/systemd-common>
|
||||
include <abstractions/systemctl>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{bin}/systemctl mr,
|
||||
|
||||
owner @{run}/systemd/private rw,
|
||||
|
||||
include if exists <local/netplan.script_systemctl>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue