Something I'm attempting to run in
RHEL 6 fails as a result of SELinux. The problem is temporarily easily solved with
setenforce 0. However turning SELinux off entirely isn't an option in my case.
The problem is that these files are mounted from an old Solaris machine, and the context of everything loaded is system_u:object_r:nfs_t:s0. I need to modify just a handful of files that are mounted from that machine to httpd_sys_content_t.
Any attempt to do this, however, results in "Operation not supported". The command I am attempting to use is:
chcon -R -h -t httpd_sys_content_t /path/to/my/stuff
From what I can tell, this is because everything from that server is mounted as system_u:object_r:nfs_t:s0. Being Solaris, I can't go to the machine itself and use chcon, as SELinux and chcon don't exist.
The solution I can think of that will work is to just install the same software on this machine, which is
RHEL 6, cutting Solaris out all together. I'd like to know if that is my only choice or not.