博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
配置SELINUX
阅读量:7211 次
发布时间:2019-06-29

本文共 1136 字,大约阅读时间需要 3 分钟。

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的状态:

# sestatusSELinux status:                 enabledSELinuxfs mount:                /sys/fs/selinuxSELinux root directory:         /etc/selinuxLoaded policy name:             targetedCurrent mode:                   permissiveMode from config file:          enforcingPolicy MLS status:              enabledPolicy deny_unknown status:     allowedMax kernel policy version:      28# getenforcePermissive

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

# setenforce 1# getenforceEnforcing# setenforce 0# getenforcePermissive#

 

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

转载地址:http://oyrum.baihongyu.com/

你可能感兴趣的文章
Linux下mysql备份 恢复
查看>>
iOS 开发-单元测试
查看>>
[TypeScript] Installing TypeScript and Running the TypeScript Compiler (tsc)
查看>>
VMware: linux起步提示 memory for crashkernel(0*0 to 0*0)not within permissible
查看>>
使用.NET Framework的配置文件app.config
查看>>
图算法之最小生成树
查看>>
drop table big_table 调试
查看>>
如何把Eclipse工程导入到Android Studio
查看>>
未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包。
查看>>
Web Design - The Viewport
查看>>
程序员学习能力提升三要素
查看>>
何时使用hadoop fs、hadoop dfs与hdfs dfs命令(转)
查看>>
【Coursera】Third Week(1)
查看>>
管道和重定向笔记
查看>>
C++11 并发指南------std::thread 详解
查看>>
windows下编译chromium浏览器的15个流程整理
查看>>
Android监听返回键、Home键+再按一次返回键退出应用
查看>>
p2p穿透技术
查看>>
BZOJ1841 : 蚂蚁搬家
查看>>
html成绩单表格
查看>>