]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virSecuritySELinuxTransactionRun: Implement rollback
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Sep 2018 13:46:56 +0000 (15:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Dec 2018 14:32:35 +0000 (15:32 +0100)
commitedacf25da7c4eb4e769e8df0b22eb191b6649270
treee5257f74a33c4a390f37ec1133ad131b9422a06c
parentb44fd4201692c4c31383851f9d1887fa575c7482
virSecuritySELinuxTransactionRun: Implement rollback

When iterating over list of paths/disk sources to relabel it may
happen that the process fails at some point. In that case, for
the sake of keeping seclabel refcount (stored in XATTRs) in sync
with reality we have to perform rollback. However, if that fails
too the only thing we can do is warn user.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/security/security_selinux.c