[CentOS] SELinux and access across 'similar types'

Bennett Haselton bennett at peacefire.org
Sun Jan 8 12:31:05 UTC 2012


On 1/7/2012 7:49 PM, Marko Vojinovic wrote:
> On Saturday 07 January 2012 17:23:57 Bennett Haselton wrote:
>> [root at g6950-21025 ~]# ls -lZ /tmp/hostname_SKYSLICE.INFO
>> -rw-r--r--  apache apache system_u:object_r:file_t
>> /tmp/hostname_SKYSLICE.INFO
>>
>> Any ideas?
> What does
>
> # restorecon -v /tmp/hostname_SKYSLICE.INFO
>
> return?
No output, and then the file type is the same as before:

[root at g6950-21025 ~]# ls -lZ /tmp/hostname_SKYSLICE.INFO
-rw-r--r--  apache apache system_u:object_r:file_t         
/tmp/hostname_SKYSLICE.INFO
[root at g6950-21025 ~]# restorecon -v /tmp/hostname_SKYSLICE.INFO
[root at g6950-21025 ~]# ls -lZ /tmp/hostname_SKYSLICE.INFO
-rw-r--r--  apache apache system_u:object_r:file_t         
/tmp/hostname_SKYSLICE.INFO
[root at g6950-21025 ~]#





More information about the CentOS mailing list