SLIDE 16 16
permissions system cares which user account but SELinux cares which program user can normally access more files than a particular program should my progX doesn't need access to all the same files as my progY, just
because they're both mine!
gaining illicit control, which access do you want attacker to get?
Trying to access a resource Trying to access a resource
(permissions (permissions vs vs SELinux SELinux) )
Why should I use SELinux? In short because SELinux can help protect you from bugs in applications. Most people treat applications as user surrogates (e.g., "I go to google.com" not "I tell my browser to go to google.com and it does so on my behalf"). However applications, especially the desktop applications we all use, come in at millions of lines of code. Without knowing what those millions
- f lines of code do there is no way to know if an application will really do what you tell it or if it
becomes malicious because of vulnerabilities. With SELinux you can treat the applications you run differently from yourself thereby limiting what an exploited application can do. http://selinuxproject.org/page/FAQ
who! what!
What labels are there? where are What labels are there? where are SELinux SELinux’ ’s s? ?
filenames – those are labels themselves (on data) permission strings – those are labels (on files) SELinux contexts – another set of lables (also on files)
( “context” == “label” )
context/label – 4 components
secon shows them individually we care only about the “type” or “type label” (“net_conf_t in this case)