]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: AppArmor allow write when os loader readonly=no
authorMiroslav Los <mirlos@cisco.com>
Tue, 4 Jun 2024 11:10:59 +0000 (11:10 +0000)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 19 Jul 2024 14:03:05 +0000 (16:03 +0200)
commitc019350a76d79405dd3e22d3023b71384f2924f2
tree1faa52d3f53e47f8d4dd23bc68852fe74d05625c
parent65b54e791fea8e30d6a4dadce0c8c840313f7f15
security: AppArmor allow write when os loader readonly=no

Since libvirt commit 3ef9b51b10e52886e8fe8d75e36d0714957616b7,
the pflash storage for the os loader file follows its read-only flag,
and qemu tries to open the file for writing if set so.

This patches virt-aa-helper to generate the VM's AppArmor rules
that allow this, using the same domain definition flag and default.

Signed-off-by: Miroslav Los <mirlos@cisco.com>
Tested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/security/virt-aa-helper.c