Re: [libvirt] [PATCH v2 13/18] security_selinux: Restore label on failed setfilecon() attempt

2018-12-06 Thread Daniel P . Berrangé
On Thu, Nov 29, 2018 at 02:52:28PM +0100, Michal Privoznik wrote: > 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 > --- > src/security/security_selin

[libvirt] [PATCH v2 13/18] security_selinux: Restore label on failed setfilecon() attempt

2018-11-29 Thread Michal Privoznik
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 --- src/security/security_selinux.c | 40 +++-- 1 file changed, 28 insertions(+), 1