SElinux给各种设置带来的困扰
#sestatusSELinux status:enabled
SELinuxfs mount:/sys/fs/selinux
SELinux root directory:/etc/selinux
Loaded policy name:targeted
Current mode:enforcing
Mode from config file:enforcing
Policy MLS status:enabled
Policy deny_unknown status:allowed
Memory protection checking:actual (secure)
Max kernel policy version:31
【SElinux给各种设置带来的困扰】这表明SELinux已启动并正在运行。
要暂时禁用SELinux,请运行命令。
# setenforce 0
另外,您可以运行命令。
# setenforce Permissive
这些命令中的任何一个都将暂时禁用SELinux,直到下次重启为止。
如何在CentOS 8上永久禁用SELinux
# vi /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 policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
#targeted - Targeted processes are protected,
#minimum - Modification of targeted policy. Only selected processes are protected.
#mls - Multi Level Security protection.
SELINUXTYPE=targeted
推荐阅读
- JS中的各种宽高度定义及其应用
- 喂,你结婚我给你随了个红包
- 成交的种子咖啡冥想
- 一百二十三夜,请嫁给我
- 每日一话(49)——一位清华教授在朋友圈给大学生的9条建议
- 历史教学书籍
- 写给陈羡
- 给予孩子心理平衡的机会
- 请给时间一点时间
- 写给我20岁时爱过的那个男孩