How to get SELinux to prevent Apache/HTTPD from reading specific files [closed]
What am I missing with SELinux? I thought it was supposed to be another layer of security but I built a web page vulnerable to command injection and it can basically traverse most of my file system.
I thought SELinux was suppose to block httpd from even reading arbitrary files. I'm specifically worried about an attacker reading the /etc/passwd file. I know Dan Walsh mentioned that ( http://danwalsh.livejournal.com/56760.html?thread=335032 ).
Other than the regular Discretionary Access Controls, is there a way to block this through SELinux? Would I have to build my own policy? SELinux is in Enforcing mode.
This is a duplicate of https://ask.fedoraproject.org/en/question/57827/how-to-get-selinux-to-prevent-apachehttpd-from-reading-specific-files/ One issue, one question.