How to run httpd from a custom location as a non-root user with SELinux confinement
Issue
- We want to run
httpdwith a customServerRootand have it executed directly as a non-root user (instead of using apache'sUserandGroupdirectives to transition). This works, but unfortunately thehttpdprocess runs unconfined by SELinux (asunconfined_u:unconfined_r:unconfined_t). How can we ensure thishttpdruns under the normalhttpd_tdomain?
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
