SELinux context of files mounted from a Solaris server

Something I'm trying to run in RHEL 6 falls short as an outcome of SELinux. The trouble is momentarily conveniently addressed with setenforce 0. Nonetheless transforming SELinux off totally isn't an alternative in my instance.

The trouble is that these files are placed from an old Solaris equipment, and also the context of every little thing filled is system_u: object_r: nfs_t: s0 . I require to change simply a handful of files that are placed from that equipment to httpd_sys_content_t.

Any kind of effort to do this, nonetheless, causes " Operation not sustained ". The command I am trying to make use of is:

chcon -R -h -t httpd_sys_content_t /path/to/my/stuff

From what I can inform, this is due to the fact that every little thing from that web server is placed as system_u: object_r: nfs_t: s0 . Being Solaris, I can not most likely to the equipment itself and also make use of chcon, as SELinux and also chcon do not exist.

The remedy I can consider that will certainly function is to simply install the very same software program on this equipment, which is RHEL 6, reducing Solaris out entirely. I would certainly such as to recognize if that is my only selection or otherwise.

2022-07-25 20:40:35
Source Share
Answers: 0