fix(profile): netplan profiles.

This commit is contained in:
Alexandre Pujol 2025-03-14 21:34:39 +01:00
parent 7abbf548a2
commit 761c7abc7e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 14 additions and 12 deletions

View file

@ -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>
}

View file

@ -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>
}