Was looking through my movies directory on linux server (Centos 7 x86_64) and noticed that the new movies I have don't have a selinux context associated with them, but ones only a couple weeks ago do. I learned about this because I got an error when moving a file which was only put in the directory a couple days ago.
Code:
mv: setting attribute ‘security.selinux’ for ‘security.selinux’: Operation not permitted
I grabbed the info on 2 files to show. 1 file is newer and 1 older to show what I'm dealing with.
Code:
ls -lZ
-rwxr-xr-x username username ? Baywatch (2017) 720p AC3 Blu-ray.mkv
-rwxr-xr-x. username username system_u:object_r:unlabeled_t:s0 Shot Caller (2017) 720p AC3 Blu-ray.mkv
ls -lh
-rwxr-xr-x 1 username username 4.4G Aug 18 09:05 Baywatch (2017) 720p AC3 Blu-ray.mkv
-rwxr-xr-x. 1 username username 4.4G Aug 7 10:30 Shot Caller (2017) 720p AC3 Blu-ray.mkv
I looked through my logs and I haven't even installed any new packages since July 27th according to yum log, so I'm not sure what has caused selinux contexts to be different on newer files. Nor have I changed the processes how these files are moved around the filesystems. So I'm a bit stumped. Any help to diagnose is appreciated.
Thanks