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?

preguntada hace un año428 visualizaciones
1 Respuesta
0
Respuesta aceptada

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.

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas