]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSecurityRestoreAllLabel: Don't use transactions
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Jan 2017 09:06:39 +0000 (10:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Feb 2017 09:40:53 +0000 (10:40 +0100)
commit3e6839d4e801cdcc9d49cd9e4bf83a3694b2a273
tree4b73f36c4cfb5c4ad1178f71014607e859faee6e
parent0a4652381fefa13f7fad5a1c4f0d699546ed3f42
qemuSecurityRestoreAllLabel: Don't use transactions

Because of the nature of security driver transactions, it is
impossible to use them properly. The thing is, transactions enter
the domain namespace and commit all the seclabel changes.
However, in RestoreAllLabel() this is impossible - the qemu
process, the only process running in the namespace, is gone. And
thus is the namespace. Therefore we shouldn't use the transactions
as there is no namespace to enter.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_security.c