1
分类: LINUX
2006-08-05 12:57:40
[root@dreammaker ~]# rpm -qa | grep selinux
libselinux-1.23.10-2
selinux-policy-targeted-1.23.16-6
[root@dreammaker ~]# more /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 - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
SELINUXTYPE 的两个值的含义是:
targeted 只会对特定的限制级的域下面启动的进程进行策略检查,而对于无限制的域下面运行的进程是不检查策略文件的。
strict 将会对所有进程进行策略检查,被设计用来对于不同安全级别的域进行更好的策略控制,可以建立多级的分层策略控制。
本文不准备详细介绍 SELinux 的其他知识,相关文档可以查阅