配置SELINUX
2024-10-20 06:21:42
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,然后重启系统。
最新文章
- EditText获取和失去焦点,软键盘的关闭,和软键盘的显示和隐藏的监听
- 【.NET深呼吸】存储基于本地线程的值
- MWeb for iOS 测试版介绍
- 字节对齐导致的iOS EXC_ARM_DA_ALIGN崩溃
- MBProgressHUD框架的使用:https://github.com/jdg/MBProgressHUD
- HTTP长连接短连接
- 特定用户QQ群聊天记录导出的实现
- tttt
- elk 架构
- 记录一次EF优化
- [STL] day 1~2 Problem Set
- MySql查询不区分大小写解决方案(两种)
- 【莫比乌斯反演】BZOJ2820 YY的GCD
- teamviewer连接未就绪的解决(Manjaro Linux)
- iOS启动速度优化
- Docker学习笔记:基础
- 利用crash 分析软死锁问题【转】
- [转]MySQL group_concat设置group_concat_max_len
- c#while循环注意continue的地方
- jquery插件--在input下输入密码时提示大写锁定键
热门文章
- [leetcode]Valid Number @ Python
- Kafka集群环境搭建(2.9.2-0.8.2.2)
- 数字签名算法(C#)
- (转)unity3d中脚本生命周期(MonoBehaviour lifecycle)
- json树递归js查询json父子节点
- linux ---jenkins的安装与配置
- SqlServer 之 用 IP 地址连接数据库报错"; 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误 ";
- Linux下时间格式转换及获取方法
- 《C++游戏开发》十六 游戏中的寻路算法(二):迷宫&;A*算法基础
- Windows平台Hadoop编译、安装、配置与运行(转)