]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_security: Run transactions more frequently
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 5 Sep 2018 12:00:20 +0000 (14:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Sep 2018 08:58:17 +0000 (10:58 +0200)
commit37131adada5b2829e31ead6dd40de4d5cfffd639
tree329d1db64cbed54b500f361b3c02ffa989dd4147
parentd41c162177d90f760039671d4d8536d2674f10bc
qemu_security: Run transactions more frequently

Now that committing transactions using pid == -1 means that we're
not fork()-ing to run the transaction in a specific namespace, we
can utilize the transaction processing semantics in order to
start, run a or multiple commands, and then commit the
transaction without being concerned with other interactions or
transactions interrupting the processing.  This will eventually
allow us to have a single place where all the paths can be
locked, followed by relabeling and unlocking again.

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