| 1 |
@@define LIBVIRT_RL @@{RUN}/libvirt |
| 2 |
@@define LIBVIRT_VL var/lib/libvirt |
| 3 |
@@define LIBVIRT_VLQ @@{LIBVIRT_VL}/qemu |
| 4 |
@@define LIBVIRT_LOGPATH var/log/libvirt |
| 5 |
|
| 6 |
/etc/apparmor\\.d/libvirt$ d VarDir |
| 7 |
/etc/apparmor\\.d/libvirt/libvirt-@@{STRICTUUID}\\.files$ f VarFile |
| 8 |
|
| 9 |
/@@{LIBVIRT_VL}(/qemu)?$ d VarDir |
| 10 |
/@@{LIBVIRT_VLQ}(/(channel(/target)?|checkpoint|dump|(nv)?ram|save|snapshot))?$ d VarDir-n |
| 11 |
@@if defined LIBVIRT_QEMU_GUESTS |
| 12 |
!/@@{LIBVIRT_VLQ}(/channel/target)?/domain-[[:digit:]]+-@@{LIBVIRT_QEMU_GUESTS}$ d |
| 13 |
!/@@{LIBVIRT_VLQ}/domain-[[:digit:]]+-@@{LIBVIRT_QEMU_GUESTS}/master-key\\.aes$ f |
| 14 |
!/@@{LIBVIRT_VLQ}/nvram/@@{LIBVIRT_QEMU_GUESTS}_VARS(_4M)?\\.fd$ f |
| 15 |
!/@@{LIBVIRT_VLQ}(/channel/target)?/domain-[[:digit:]]+-@@{LIBVIRT_QEMU_GUESTS}/(monitor\\.sock|org\\.qemu\\.guest_agent\\.0)$ s |
| 16 |
@@endif |
| 17 |
|
| 18 |
@@if defined LIBVIRT_QEMU_GUESTS |
| 19 |
@@define LIBVIRT_LOGFILERE qemu/@@{LIBVIRT_QEMU_GUESTS}\\.log |
| 20 |
/@@{LIBVIRT_LOGPATH}$ d LogDir |
| 21 |
/@@{LIBVIRT_LOGPATH}/@@{LIBVIRT_LOGFILERE}$ f ActLog |
| 22 |
/@@{LIBVIRT_LOGPATH}/@@{LIBVIRT_LOGFILERE}\\.1$ f RotLog |
| 23 |
/@@{LIBVIRT_LOGPATH}/@@{LIBVIRT_LOGFILERE}\\.2\\.@@{LOGEXT}$ f CompSerLog |
| 24 |
/@@{LIBVIRT_LOGPATH}/@@{LIBVIRT_LOGFILERE}\\.3\\.@@{LOGEXT}$ f MidlSerLog |
| 25 |
/@@{LIBVIRT_LOGPATH}/@@{LIBVIRT_LOGFILERE}\\.4\\.@@{LOGEXT}$ f LastSerLog |
| 26 |
@@undef LIBVIRT_LOGFILERE |
| 27 |
!/@@{LIBVIRT_RL}/qemu/@@{LIBVIRT_QEMU_GUESTS}\\.(pid|xml)$ f |
| 28 |
!/@@{RUN}/systemd/machines/qemu-[[:digit:]]{1,2}-@@{LIBVIRT_QEMU_GUESTS}$ f |
| 29 |
!/@@{RUN}/systemd/machines/unit:machine-qemu\\\\x2d[[:digit:]]{1,2}\\\\x2d@@{LIBVIRT_QEMU_GUESTS}\\.scope$ l |
| 30 |
!/@@{RUN}/systemd/units/invocation:machine-qemu\\\\x2d[[:digit:]]{1,2}\\\\x2d@@{LIBVIRT_QEMU_GUESTS}\\.scope$ l |
| 31 |
!/@@{RUN}/systemd/transient/machine-qemu\\\\x2d[[:digit:]]{1,2}\\\\x2d@@{LIBVIRT_QEMU_GUESTS}\\.scope$ f |
| 32 |
@@endif |
| 33 |
|
| 34 |
/@@{RUN}/(libvirtd|virtlogd)\\.pid$ f VarFile |
| 35 |
/@@{LIBVIRT_RL}/(common|interface|network|nodedev|nwfilter|qemu|secrets|storage)$ d RecreatedDir |
| 36 |
/@@{LIBVIRT_RL}/(interface|network|nodedev|nwfilter|qemu|secrets|storage)/driver\\.pid$ f VarFile |
| 37 |
/@@{LIBVIRT_RL}/common/system\\.token$ f VarFile |
| 38 |
/@@{LIBVIRT_RL}/(network|qemu|storage)/autostarted$ f VarFile |
| 39 |
/@@{LIBVIRT_RL}(/(network|nwfilter(-binding)?|nodedev|nwfilter|qemu|secrets|storage|uml-guest))?$ d RecreatedDir |
| 40 |
/@@{LIBVIRT_RL}/(hostdevmgr|lxc|network|storage)$ d RecreatedDir |
| 41 |
/@@{LIBVIRT_RL}/network/nwfilter\\.leases$ f VarFile |
| 42 |
/@@{LIBVIRT_RL}/network/br[[:digit:]]{1,3}\\.xml$ f VarFile |
| 43 |
/@@{LIBVIRT_RL}/(libvirt-(admin-sock|sock(-ro)?)|virt(lock|log)d-sock)$ s VarFile |
| 44 |
/@@{LIBVIRT_RL}/qemu(/(dbus|passt|slirp))?$ d RecreatedDir |
| 45 |
!/@@{LIBVIRT_RL}/virt(lock|log)d-admin-sock$ s |
| 46 |
@@if defined LIBVIRT_IFACES |
| 47 |
!/@@{LIBVIRT_RL}/network/@@{LIBVIRT_IFACES}(/ports)?$ d |
| 48 |
!/@@{LIBVIRT_RL}/network/@@{LIBVIRT_IFACES}/ports/@@{STRICTUUID}\\.xml$ f |
| 49 |
!/@@{LIBVIRT_RL}/network/@@{LIBVIRT_IFACES}\\.xml$ f |
| 50 |
@@undef LIBVIRT_IFACES |
| 51 |
@@endif |
| 52 |
|
| 53 |
/@@{RUNLOCK}/libvirt-guests$ f RecreatedDir |
| 54 |
@@undef LIBVIRT_RL |
| 55 |
@@undef LIBVIRT_VL |
| 56 |
@@undef LIBVIRT_VLQ |
| 57 |
@@undef LIBVIRT_LOGPATH |