]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-aa-helper: Ask for no deny rule for readonly disk elements
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 5 Jan 2026 20:27:21 +0000 (14:27 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Jan 2026 13:48:55 +0000 (14:48 +0100)
commit7b889af2d235d3fadfc172f371f02df0b74e40f2
tree32f3485d2799df1dd3112753e869c103cb8ae0b9
parent28482f26305b3a15bb7d43f99e73c8bb8b91fef6
virt-aa-helper: Ask for no deny rule for readonly disk elements

Just because a disk element only requests read access doesn't mean
there may not be another readwrite request.

Using 'R' when creating the apparmor rule will prevent an implicit
write-deny rule to be created alongside. This does not mean write
is allowed but it would cause a denial message and probably more
relevant, allows to add write access later.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/622
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/806
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1554031
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1692441
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Wesley Hershberger <wesley.hershberger@canonical.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/security/virt-aa-helper.c