mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
securityselinuxlabeltest: Add debug statements for testUserXattrEnabled return value
I've noticed the test being skipped in my build scenario (tmpfs) and the output doesn't make it clear why it's happening. Add debug statements for the various return values of testUserXattrEnabled. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f55ea9f7ea
commit
d2ce164ee2
@ -325,10 +325,15 @@ mymain(void)
|
||||
int rc = testUserXattrEnabled();
|
||||
g_autoptr(virQEMUCaps) qemuCaps = NULL;
|
||||
|
||||
if (rc < 0)
|
||||
if (rc < 0) {
|
||||
VIR_TEST_VERBOSE("failed to determine xattr support");
|
||||
return EXIT_FAILURE;
|
||||
if (!rc)
|
||||
}
|
||||
|
||||
if (rc == 0) {
|
||||
VIR_TEST_VERBOSE("xattr unsupported");
|
||||
return EXIT_AM_SKIP;
|
||||
}
|
||||
|
||||
if (!(mgr = virSecurityManagerNew("selinux", "QEMU",
|
||||
VIR_SECURITY_MANAGER_DEFAULT_CONFINED |
|
||||
|
Loading…
Reference in New Issue
Block a user