LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 08-21-2017, 12:19 PM   #1
herkalurk
Member
 
Registered: Oct 2012
Location: Portland
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 34

Rep: Reputation: 2
Selinux contexts different on new files..?


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mesa Support For OpenGL Core Contexts LXer Syndicated Linux News 0 07-29-2012 02:00 AM
How do I find out what SELinux File Contexts mean? ohlookpie Linux - Newbie 3 06-22-2012 03:10 PM
SELinux: how to list all Type Enforcement contexts that exist on the system? Toomas Linux - Security 4 06-30-2011 12:10 AM
missing selinux files in RHEL4 net-warrior Red Hat 5 12-27-2005 01:54 PM
APACHE Problem 2 dirs, identical permissions and security contexts, one gives 403? tones Linux - Software 2 03-13-2005 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration