]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecurityManagerTransactionCommit: Accept pid == -1
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 5 Sep 2018 11:27:50 +0000 (13:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Sep 2018 08:58:17 +0000 (10:58 +0200)
commitd41c162177d90f760039671d4d8536d2674f10bc
tree5b1fa3cc255d1fd7dd94188b07c0396590106f9c
parentccafaacd61fc4ac99dac9c49cf470c3836487506
virSecurityManagerTransactionCommit: Accept pid == -1

It will be desirable to run transactions more often than we
currently do. Even if the domain we're relabeling the paths for
does not run in a namespace. If that's the case, there is no need
to fork() as we are already running in the right namespace. To
differentiate whether transaction code should fork() or not the
@pid argument now accepts -1 (which means do not fork).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/security/security_dac.c
src/security/security_manager.c
src/security/security_selinux.c