SELinux Relabeling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello everyone,

If create a folder called "whatever" under /var, the context is:

root:object_r:var_t  /var/whatever/

That's expected as it is under /var.  If I then change its type:

chcont -t httpd_sys_content_t /var/whatever

The context looks like:

root:object_r:httpd_sys_content_t  /var/whatever/

My question is...Shouldn't a relabeling of the filesystem change the type of 
this directory back to var_t?  I just performed a relabel (/.autorelabel) and 
the directory stayed with httpd_sys_content_t.  I thought that the only way 
this could happen was if I used "semanage fcontext -a ...." so that a new 
line would be appended in:
/etc/selinux//etc/selinux/targeted/contexts/files/file_contexts.local.


Not only that, If I perform "matchpathcon  /var/whatever" I still get var_t as 
its default type. Then again, why it kept the httpd_sys_content_t after the 
relabel?

Thansk in advance,
Jorge
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux