Results 1 to 3 of 3
I've been reading up on selinux and there is one thing I have thus far been unable to find out. I suspect I am not searching for the correct things.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-15-2013 #1
selinux: domains and types
I've been reading up on selinux and there is one thing I have thus far been unable to find out. I suspect I am not searching for the correct things.
If I was to examine a file under the /var/www/html directory I would see something like
If I was to look at the Apache process, I would seeCode:$ ls -Z /var/www/html/index.html -rw-r--r-- username username system_u:object_r:httpd_sys_content_t /var/www/html/index.html
My question is what links the domain type httpd_t to the type httpd_sys_content_t?Code:$ ps axZ | grep httpd system_u:system_r:httpd_t 3234 ? Ss 0:00 /usr/sbin/httpd
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn
- 01-15-2013 #2Linux Enthusiast
- Join Date
- Apr 2012
- Location
- Virginia, USA
- Posts
- 561
This is the behind the scenes stuff of SELinux.
You have a confined process, httpd. httpd can only access files that have specific contexts such has httpd_sys_content_t.
Policy modules define which processes are confined, and which file contexts they can access.
The most pressing question is, how do I know what's already configured? On RHEL and related distros, you can check out the targeted service man pages:
man -k '_selinux'
Here are some links to some information:
https://fedoraproject.org/wiki/SELin.../PolicyModules
Red Hat Magazine | A step-by-step guide to building a new SELinux policy*module
HowTos/SELinux - CentOS Wiki
- 01-16-2013 #3If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
The Fifth Continent reborn


Reply With Quote

