]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security_dac: Restore label on failed chown() attempt
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Sep 2018 15:10:06 +0000 (17:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Dec 2018 14:31:59 +0000 (15:31 +0100)
commit86def3c88ce357a23ed989da89ee9f10fa4bd9c8
tree898e2af3c70844d076a5a320de2c2e2d4364706a
parentf9a0019fea52dd847a90aaa95baad2e79939286c
security_dac: Restore label on failed chown() attempt

It's important to keep XATTRs untouched (well, in the same state
they were in when entering the function). Otherwise our
refcounting would be messed up.

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_dac.c