Re: securityselinuxlabeltest test fails on v1.2.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/26/2014 11:38 PM, Scott Sullivan wrote:
On 06/26/2014 10:09 AM, Ján Tomko wrote:
On 06/26/2014 03:56 PM, Scott Sullivan wrote:
1) Labelling "disks" ...
internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.raw
context 'EOPNOTSUPP' did not match epected
'system_u:object_r:svirt_image_t:s0:c41,c264'
libvirt:  error : internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.raw
context 'EOPNOTSUPP' did not match epected
'system_u:object_r:svirt_image_t:s0:c41,c264'
FAILED
2) Labelling "kernel" ...
internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/vmlinuz.raw context 'EOPNOTSUPP' did not match epected 'system_u:object_r:virt_content_t:s0'
libvirt:  error : internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/vmlinuz.raw context 'EOPNOTSUPP' did not match epected 'system_u:object_r:virt_content_t:s0'
FAILED
3) Labelling "chardev" ...
internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.txt
context 'EOPNOTSUPP' did not match epected
'system_u:object_r:svirt_image_t:s0:c41,c264'
libvirt:  error : internal error: File
/home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.txt
context 'EOPNOTSUPP' did not match epected
'system_u:object_r:svirt_image_t:s0:c41,c264'
FAILED
4) Labelling "nfs" ... OK
FAIL: securityselinuxlabeltest
There was a patch skipping the test if setting xattrs is not supported, but
it's not merged yet:

https://www.redhat.com/archives/libvir-list/2014-June/msg00402.html

Jan


Jan,

Thanks for this. I've applied the patch and it has solved my issues.

Hi Scott,

Because this patch is only for compatibilities for the old kernel, and it
skips the securityselinuxlabeltest, the better way is to upgrade to the
kernel that default to support xattr in its filesystem,
or remount the currently filesystem with xattr, for ext4:
# mount -o acl,user_xattr /dev/sda1 /mount/point
or add one line to /etc/mtab
/dev/sda1 /mount/point ext4 rw,acl,user_xattr 0 0

Best wishes,
Jincheng Miao


Thanks again.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]