]> xenbits.xensource.com Git - libvirt.git/commit
virt-aa-helper: don't deny writes to readonly mounts
authorCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 17 Nov 2015 09:11:30 +0000 (10:11 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Thu, 14 Jan 2016 14:42:05 +0000 (15:42 +0100)
commitc726af2d5a2248f0dad01201b2fc5231fbd4c20f
treeaa496217902dc3a49e2e4f5f1d9526369c7277d2
parent3e2d637458a050030402fc90e6d7d176fd580d13
virt-aa-helper: don't deny writes to readonly mounts

There is no need to deny writes on a readonly mount: write still
won't be accepted, even if the user remounts the folder as RW in
the guest as qemu sets the 9p mount as ro.

This deny rule was leading to problems for example with readonly /:
The qemu process had to write to a bunch of files in / like logs,
sockets, etc. This deny rule was also preventing auditing of these
denials, making it harder to debug.
src/security/virt-aa-helper.c