[libvirt] securityselinuxlabeltest test fails on v1.2.5

Jincheng Miao jmiao at redhat.com
Fri Jun 27 03:39:23 UTC 2014


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 at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list