首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >setenforce:禁用SELinux

setenforce:禁用SELinux
EN

Server Fault用户
提问于 2013-05-19 22:11:48
回答 2查看 12.6K关注 0票数 4

我在一台CentOS 5机器上,尝试安装vsftpd。我想使用ftp_home_dir配置setsebool -P ftp_home_dir on,但它说:

setsebool: SELinux is disabled.

我尝试使用setenforce启用它,它仍然是这样说的:

setenforce: SELinux is disabled

然后我试着:

semodule -n -B

上面写着:

semodule: SELinux policy is not managed or store cannot be accessed.

我的配置文件:

代码语言:javascript
运行
复制
# 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 - SELinux is fully disabled.
SELINUX=permissive
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

注意:多次重新启动。

EN

回答 2

Server Fault用户

回答已采纳

发布于 2013-05-19 22:43:40

您使用的内核是在没有SELinux支持的情况下构建的。使用库存内核将不包括您的VPS的适当部分。使用SELinux支持重新构建内核将导致VPS部件无法工作。您不能在VPS上使用SELinux。

票数 7
EN

Server Fault用户

发布于 2013-05-19 23:29:31

您的VPS运行在OpenVZ上,这是一种基于容器的“虚拟化”,不支持SELinux。如果您需要SELinux,您将需要切换到另一个在来宾中支持SELinux的管理程序,例如Hyper-V、VMware、KVM、Xen以及其他可能的管理程序。

票数 10
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/509114

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档