selinux的配置文件:
# 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 - 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

查看selinux的状态:

# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: permissive
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: # getenforce
Permissive

设置selinux:(这样修改后立即生效,重新系统后该配置取消)

# setenforce
# getenforce
Enforcing
# setenforce
# getenforce
Permissive
#

要想修改永久生效,直接修改配置文件/etc/selinux/config,然后重启系统。

最新文章

  1. EditText获取和失去焦点,软键盘的关闭,和软键盘的显示和隐藏的监听
  2. 【.NET深呼吸】存储基于本地线程的值
  3. MWeb for iOS 测试版介绍
  4. 字节对齐导致的iOS EXC_ARM_DA_ALIGN崩溃
  5. MBProgressHUD框架的使用:https://github.com/jdg/MBProgressHUD
  6. HTTP长连接短连接
  7. 特定用户QQ群聊天记录导出的实现
  8. tttt
  9. elk 架构
  10. 记录一次EF优化
  11. [STL] day 1~2 Problem Set
  12. MySql查询不区分大小写解决方案(两种)
  13. 【莫比乌斯反演】BZOJ2820 YY的GCD
  14. teamviewer连接未就绪的解决(Manjaro Linux)
  15. iOS启动速度优化
  16. Docker学习笔记:基础
  17. 利用crash 分析软死锁问题【转】
  18. [转]MySQL group_concat设置group_concat_max_len
  19. c#while循环注意continue的地方
  20. jquery插件--在input下输入密码时提示大写锁定键

热门文章

  1. [leetcode]Valid Number @ Python
  2. Kafka集群环境搭建(2.9.2-0.8.2.2)
  3. 数字签名算法(C#)
  4. (转)unity3d中脚本生命周期(MonoBehaviour lifecycle)
  5. json树递归js查询json父子节点
  6. linux ---jenkins的安装与配置
  7. SqlServer 之 用 IP 地址连接数据库报错" 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误 "
  8. Linux下时间格式转换及获取方法
  9. 《C++游戏开发》十六 游戏中的寻路算法(二):迷宫&A*算法基础
  10. Windows平台Hadoop编译、安装、配置与运行(转)