首先贴下这个文件的内容
# 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 policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
我的问题是第7行也就是"# SELINUXTYPE= can take one of these two values:"这行中说的是two values,但下面的格式却是3个值.不过再仔细一看"# targeted - Targeted processes are protected,"这行最后的标点却是,,说明确实是2个值,我对这里的矛盾很不理解,请问怎么看这个文件?
您可以,
可以按字面析理解,targeted 和 minimum 是都属一个大类的安全策略。请参考:http://selinuxproject.org/page/NB_PolicyType
根据上面的意思 minimun是targeted的修正版,两个是一类的,而mls是一个更高级的参数,如同strict一样。
SELINUXTYPE=targeted or minimum
SELINUXTYPE=mls
我的centos6.5
SELINUXTYPE=targeted
SELINUXTYPE=strict
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。