I'm setting up a Fedora (Core) 24 system from scratch, and ran into this oddness:
> sudo attr -l . Attribute "selinux" has a 41 byte value for . > sudo attr -g selinux . attr_get: No data available Could not get "selinux" for .
(similar for files other than ".", the current directory, I just used that as an example).
Is this just part of selinux's own security that the tag it assigns a file is unreadable? Or is there something else going on here?
As requested, I ran some additional commands, this time on ".bashrc":
# attr -l .bashrc Attribute "selinux" has a 37 byte value for .bashrc # ls -Z .bashrc unconfined_u:object_r:user_home_t:s0 .bashrc # echo "unconfined_u:object_r:user_home_t:s0"|wc -c 37
So I guess "unconfined_u:object_r:user_home_t:s0" is the value, it's just odd "attr -g selinux" doesn't give it.