From Fedora Project Wiki
Line 47: Line 47:


* Confined System Domains
* Confined System Domains
** httpd - apache
**httpd - apache
   man httpd_selinux
   man httpd_selinux
** samba
**samba
man samba_selinux
  man samba_selinux
** ftp
**ftp
man ftpd_selinux       
  man ftpd_selinux       
** rsync     
**rsync     
man rsync_selinux  
  man rsync_selinux  
** kerberos
**kerberos
man kerberos_selinux   
  man kerberos_selinux   
** named
**named
man named_selinux       
  man named_selinux       
** nfs  
**nfs  
man nfs_selinux     
  man nfs_selinux     
** nis
**nis
man nis_selinux   
  man nis_selinux   
** ypbind
**ypbind
man ypbind_selinux
  man ypbind_selinux
...
...



Revision as of 17:00, 13 August 2008

Content Specification (Draft-only)

SELinux Introduction

SELinux Basics

Someone suggested having a section, that detailed if you are not going to do anything else with SELinux, then at least do these 3-4 things...

SELinux Contexts and Attributes

SELinux Contexts and Attributes

Subjects and Objects

Subjects and Objects

Working with SELinux

Working with SELinux

Working with System Services

Apache: " avc: denied { getattr }" when file labeled with incorrect context (hook before open()?)


Access Control

Describe the concepts of the following, using <http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.2/html/Deployment_Guide/selg-overview.html> as a guide:

  • Discretionary Access Control (DAC)
  • Mandatory Access Control (MAC)
  • Multi-Level Security (MLS)
  • Mutli-Category Security (MCS)
  • Type Enforcement (TE)
  • Role Based Access Control (RBAC)

SELinux rules are not checked if DAC rules deny access.

RBAC: Roles are associated with domain types, and domain types are associated with SELinux users. When not taking domain transition into account, roles do not restrict access between subjects and objects, but limit which SELinux users can exist and transition to which domains. For example, domain transition fails if the SELinux user and the new domain type are not allowed to exist in the security context that is created after a domain transition occurs. Roles are important when writing policies, but do not restrict access per se, and as such, are not discussed in detail in this guide.

Targeted Policy Overview

  • Confined and unconfined processes. Explain unconfined.
  • Confined System Domains
    • httpd - apache
  man httpd_selinux
    • samba
  man samba_selinux
    • ftp
  man ftpd_selinux      
    • rsync
  man rsync_selinux 
    • kerberos
  man kerberos_selinux  
    • named
  man named_selinux       
    • nfs
  man nfs_selinux     
    • nis
  man nis_selinux  
    • ypbind
  man ypbind_selinux

...

  • Confined user domains
    • Minimal login user - guest_t
    • Minimal X-Windows Login User -xguest_t
    • Standard User Account - user_t
    • Admin User Account - staff_t
    • Unconfined User - Unconfined_t