How to set Apache-accessible SELinux policy for EFS mounted user directories?

0

When I mount my EFS to a user directory, the directory policy becomes system_u:object_r:nfs_t:s0, which is too restrictive - I need it to behave more like a typical user directory, which is unconfined_u:object_r:user_home_dir_t:s0. How do I change this?

1 Answer
0
Accepted Answer

I was able to fix this by defining the context while mounting the directories. I also had to define it in my fstab configuration to ensure the definition persisted after reboot. Additionally, I needed to set domain policy to httpd_sys_content_t, which allowed apache to access the content.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions