- Apache is supposed to read these directories and connect to these ports.
- USER-X Should not be allowed to execute files in his home directory.
- The database should only be access through its unix domain socket.
What is a process supposed to do?
Allow the process to do this and nothing else.
In the case of a logged in user, you group all the processes together under a single type (guest_t). And then you end up with all processes running as guest_t. None of them can execute in the home directory, None can connect to the network, none can execute the setuid system call to become root.
Often I give talks on SELinux and we get too deep into the internals of SELinux, I believe we need to bring it down to these simpler terms.
The beauty of this system is that it works for everyone from the highest levels of security in DOD environments down to the kiosk machine at your local library.
Are non government entities starting to use SELinux? You betch ya.
New York Stock Exchange
2008-05-16 06:16 pm (UTC)
In typical environment one user can use mod_php, mod_python, mod_whatever functionality to see files (which contain passwords) from other users web pages on the same server. Can selinux protect one user public_html files from another one in such case?
I know only one method - apparmor and different HATs for different vhosts, but this sucks because isn't upstream and has bunch of oponents due to various reasons. I would like to use selinux for that but... I can't.
2008-05-16 08:35 pm (UTC)