fix(profile): netplan profiles.
This commit is contained in:
parent
7abbf548a2
commit
761c7abc7e
2 changed files with 14 additions and 12 deletions
|
|
@ -17,6 +17,8 @@ profile netplan-generate @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
|
||||
/etc/netplan/{,*} r,
|
||||
|
||||
@{run}/systemd/generator/multi-user.target.wants/ w,
|
||||
|
|
@ -38,10 +40,22 @@ profile netplan-generate @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{sys}/devices/**/net/*/address r,
|
||||
|
||||
@{run}/netplan/ r,
|
||||
|
||||
@{run}/udev/rules.d/ r,
|
||||
@{run}/udev/rules.d/@{int}-netplan{,-*}.rules{,.@{rand6}} rw,
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/systemctl>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{att}/@{run}/systemd/private rw,
|
||||
|
||||
include if exists <local/netplan-generate_systemctl>
|
||||
}
|
||||
|
||||
include if exists <local/netplan-generate>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ profile netplan.script @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{lib}/netplan/generate rPx,
|
||||
@{bin}/udevadm rCx -> udevadm,
|
||||
@{bin}/systemctl rCx -> systemctl,
|
||||
|
||||
/usr/share/netplan/{,**} r,
|
||||
|
||||
|
|
@ -35,17 +34,6 @@ profile netplan.script @{exec_path} flags=(attach_disconnected) {
|
|||
include if exists <local/netplan.script_udevadm>
|
||||
}
|
||||
|
||||
profile systemctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app/systemctl>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{att}/@{run}/systemd/private rw,
|
||||
|
||||
include if exists <local/netplan.script_systemctl>
|
||||
}
|
||||
|
||||
include if exists <local/netplan.script>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue