Re: [PATCH 2/4] qemusecuritytest: Test SELinux too

2020-11-04 Thread Andrea Bolognani
On Tue, 2020-11-03 at 14:13 +0100, Michal Privoznik wrote: > +++ b/tests/qemusecuritymock.c > @@ -71,6 +82,10 @@ virHashTablePtr xattr_paths = NULL; > * the lower half is UID and the higher is GID. */ > virHashTablePtr chown_paths = NULL; > > +/* The SELinux label is stored in a hash table.

[PATCH 2/4] qemusecuritytest: Test SELinux too

2020-11-03 Thread Michal Privoznik
The qemusecuritytest checks for random domain XMLs from qemuxml2argvdata/ whether set+restore seclabels leaves something behind. It can be an XATTR that we forgot to remove or a file that the owner was not restored on. But so far only DAC driver is checked. Implement missing pieces and enable