免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4293 | 回复: 5
打印 上一主题 下一主题

selinux没有作用? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-05-07 11:35 |只看该作者 |倒序浏览
我想按照rhce课程实验,让httpd服务无法启动,通过设置selinux,目前如下

os:rhel5.6

[root@rheltest1 /]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted



[root@rheltest1 /]# cat /etc/sysconfig/selinux
# 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=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

[root@rheltest1 /]# setsebool -P httpd_disable_trans=1

[root@rheltest1 /]# getsebool httpd_disable_trans
httpd_disable_trans --> on

[root@rheltest1 /]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [  OK  ]
[root@rheltest1 /]#

请教对selinux熟悉的大师解答。

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
2 [报告]
发表于 2011-05-07 13:50 |只看该作者
回复 1# linuxboy823


    httpd_disable_trans
↑这是什么意思你知道么?

论坛徽章:
0
3 [报告]
发表于 2011-05-07 14:07 |只看该作者
回复  linuxboy823


    httpd_disable_trans
↑这是什么意思你知道么?
cst05001 发表于 2011-05-07 13:50



    刚学习selinux,视频上这么介绍的,请大师指点

论坛徽章:
0
4 [报告]
发表于 2011-05-07 19:54 |只看该作者
企业里很少有用selinux的吧

论坛徽章:
0
5 [报告]
发表于 2011-05-07 20:50 |只看该作者
httpd_disable_trans 的意思是永久不受selinux的保护

论坛徽章:
0
6 [报告]
发表于 2011-05-08 01:19 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP