selinux简介
selinux概念 由美国国家安全局(NSA)和SCC联合开发的,强制访问控制的安全模块。2000年以GPL开源,linux2.6内核后集成在内核里。 不启用selinux时,访问模式叫:DAC(discretionary access control)自由访问控制 在DAC模式下的进程能够访问哪些资源是由启用这个进程的用户身份决定的,这个用户能访问的,这个进程都可以访问。 启用selinux时,访问模式叫:MAC(Mandatory access control)强制访问控制 在MAC模式下的进程能够访问哪些资源是由selinux设定的。 selinux的工作类型 selinux的工作类型定义在/etc/selinux/config文件中 centos7: # cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux