Read-only root compatibility (#86)
* Read-only root compatibility * remove complain Co-authored-by: nobodysu <nobodysu@users.noreply.github.com>
This commit is contained in:
parent
5fdbc2d00e
commit
f94faf697e
13 changed files with 26 additions and 27 deletions
|
|
@ -105,8 +105,8 @@ profile NetworkManager @{exec_path} flags=(attach_disconnected) {
|
|||
/ r,
|
||||
/etc/ r,
|
||||
/etc/machine-id r,
|
||||
/etc/resolv.conf rw,
|
||||
/etc/resolv.conf.[0-9A-Z]* rw,
|
||||
@{etc_rw}/resolv.conf rw,
|
||||
@{etc_rw}/resolv.conf.[0-9A-Z]* rw,
|
||||
/etc/network/interfaces r,
|
||||
/etc/network/interfaces.d/{,*} r,
|
||||
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/etc/mullvad-vpn/{,*} r,
|
||||
/etc/mullvad-vpn/*.json rw,
|
||||
/etc/resolv.conf rw,
|
||||
/etc/resolv.conf.mullvadbackup rw,
|
||||
@{etc_rw}/resolv.conf rw,
|
||||
@{etc_rw}/resolv.conf.mullvadbackup rw,
|
||||
|
||||
/var/cache/mullvad-vpn/{,*} rw,
|
||||
/var/log/mullvad-vpn/{,*} rw,
|
||||
|
|
@ -59,4 +59,4 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
|
|||
/dev/net/tun rw,
|
||||
|
||||
include if exists <local/mullvad-daemon>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ profile tailscaled @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/etc/iproute2/rt_tables r,
|
||||
|
||||
/etc/resolv.*.conf rw,
|
||||
/etc/resolv.conf rw,
|
||||
/etc/resolv.conf.*.tmp rw,
|
||||
@{etc_rw}/resolv.*.conf rw,
|
||||
@{etc_rw}/resolv.conf rw,
|
||||
@{etc_rw}/resolv.conf.*.tmp rw,
|
||||
|
||||
owner @{run}/tailscale/{,**} rw,
|
||||
owner /var/cache/{,**} rw,
|
||||
|
|
@ -80,4 +80,4 @@ profile tailscaled @{exec_path} flags=(attach_disconnected) {
|
|||
}
|
||||
|
||||
include if exists <local/tailscaled>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ profile systemd-timedated @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/dev/rtc[0-9] r,
|
||||
|
||||
/etc/.#adjtime* rw,
|
||||
/etc/adjtime rw,
|
||||
@{etc_rw}/.#adjtime* rw,
|
||||
@{etc_rw}/adjtime rw,
|
||||
|
||||
/etc/.#localtime* rw,
|
||||
/etc/localtime rw,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ profile systemd-timesyncd @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/adjtime r,
|
||||
@{etc_rw}/adjtime r,
|
||||
/etc/systemd/timesyncd.conf r,
|
||||
/etc/systemd/timesyncd.conf.d/{,**} r,
|
||||
|
||||
|
|
|
|||
|
|
@ -132,8 +132,8 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
|
|||
/usr/share/mime/mime.cache r,
|
||||
/usr/share/qemu/{,**} r,
|
||||
|
||||
/etc/apparmor.d/libvirt/libvirt-@{uuid} r,
|
||||
/etc/libvirt/{,**} rw,
|
||||
@{etc_rw}/apparmor.d/libvirt/libvirt-@{uuid} r,
|
||||
@{etc_rw}/libvirt/{,**} rw,
|
||||
/etc/mdevctl.d/{,**} r,
|
||||
/etc/xml/catalog r,
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
# Force the use of virt-aa-helper
|
||||
audit deny /{usr/,}{s,}bin/apparmor_parser rwxl,
|
||||
audit deny /etc/apparmor.d/libvirt/** wxl,
|
||||
audit deny @{etc_rw}/apparmor.d/libvirt/** wxl,
|
||||
audit deny @{sys}/kernel/security/apparmor/features rwxl,
|
||||
audit deny @{sys}/kernel/security/apparmor/matching rwxl,
|
||||
audit deny @{sys}/kernel/security/apparmor/.* rwxl,
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ profile virt-aa-helper @{exec_path} {
|
|||
/{usr/,}{s,}bin/apparmor_parser rPx,
|
||||
|
||||
/etc/apparmor.d/libvirt/* r,
|
||||
/etc/apparmor.d/libvirt/libvirt-@{uuid} rw,
|
||||
@{etc_rw}/apparmor.d/libvirt/libvirt-@{uuid} rw,
|
||||
|
||||
/etc/libnl{,-3}/classid r, # Allow reading libnl's classid file
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue