2

have cifs mount on my setup mounted via /etc/fstab with context set to system_u:object_r:cifs_t:s0. There are some specific folders that I want to override default context to set public_content_t so I can share those folders between httpd and cifs processes.

1) I don't want mount entire mount point with public_content_t.

2) I don't want to set SE bool to make httpd access cifs.

I tried overriding semanage fcontext and chcon and tried many things for days now. It seems like SE Linux capability is run out to make the change satisfying

  • 1
    Could you mount the sub-directory separately with context mount option? – sebasth Mar 4 at 21:52
  • @sebasth Well there are multiple folders in that mount. So looking for other options. – Lolitha Ratnayake Mar 4 at 21:58
  • What happens when you chcon? – Timothy Pulliam Mar 5 at 2:30
  • @TimothyPulliam It gives me error saying Operation not supported – Lolitha Ratnayake Mar 5 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.