免费注册 查看新帖 |

Chinaunix

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

RHEL5.3出现大量audit失败,正常不? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-29 12:40 |只看该作者 |倒序浏览
这样的屏幕输出反复出现,好像都是ethtool的问题,这样正常么

怎么关闭audit?



Apr 29 20:36:39 vmme01 kernel: printk: 192 messages suppressed.
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:39: avc:  denied  { read write } for  pid=2823 comm="ethtool" path="socket:[7373]" dev=sockfs ino=7373 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=tcp_socket
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:399): avc:  denied  { write } for  pid=2823 comm="ethtool" path="/etc/hd.cfg" dev=sda1 ino=261384 scontext=system_u:system_r:ifconfig_t:s0 tcontext=rootbject_r:etc_t:s0 tclass=file
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:400): avc:  denied  { read write } for  pid=2823 comm="ethtool" path="socket:[7385]" dev=sockfs ino=7385 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=udp_socket
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:401): avc:  denied  { search } for  pid=2823 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:402): avc:  denied  { search } for  pid=2823 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir
Apr 29 20:36:39 vmme01 kernel: type=1400 audit(1241008599.260:403): avc:  denied  { search } for  pid=2823 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir
Apr 29 20:37:10 vmme01 kernel: printk: 192 messages suppressed.
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.310:46: avc:  denied  { read write } for  pid=2886 comm="ethtool" path="socket:[7373]" dev=sockfs ino=7373 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=tcp_socket
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.310:469): avc:  denied  { write } for  pid=2886 comm="ethtool" path="/etc/hd.cfg" dev=sda1 ino=261384 scontext=system_u:system_r:ifconfig_t:s0 tcontext=rootbject_r:etc_t:s0 tclass=file
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.311:470): avc:  denied  { read write } for  pid=2886 comm="ethtool" path="socket:[7385]" dev=sockfs ino=7385 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=udp_socket
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.311:471): avc:  denied  { search } for  pid=2886 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.311:472): avc:  denied  { search } for  pid=2886 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir
Apr 29 20:37:10 vmme01 kernel: type=1400 audit(1241008630.311:473): avc:  denied  { search } for  pid=2886 comm="ethtool" name="bin" dev=sda1 ino=2581089 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_ubject_r:bin_t:s0 tclass=dir

论坛徽章:
0
2 [报告]
发表于 2009-04-29 12:45 |只看该作者
是因为你的selinux开着呢。将/etc/sysconfig/selinux中按照提示将其改为disable.

论坛徽章:
0
3 [报告]
发表于 2009-04-29 13:20 |只看该作者
原帖由 jerrywjl 于 2009-4-29 12:45 发表
是因为你的selinux开着呢。将/etc/sysconfig/selinux中按照提示将其改为disable.


果然这个原因,以前text安装 RHEL4.7时候可以选择关闭SELinux,RHEL5.3不行,必须安装以后修改

非常感谢!

论坛徽章:
0
4 [报告]
发表于 2009-11-12 15:40 |只看该作者
好帖子啊,顶一下!

招聘 : 技术支持/维
论坛徽章:
0
5 [报告]
发表于 2010-01-18 21:44 |只看该作者

回复 #1 不进一环 的帖子

关掉selinux试试看

论坛徽章:
0
6 [报告]
发表于 2010-01-19 10:53 |只看该作者
/etc/init.d/auditd stop(不建议这样做,有些内核事件的审核也靠他)

关闭selinux也不是办法,关键是学会用selinux。。。

要关闭的话

[root@mytest ~]# vi /etc/sysconfig/selinux
SELINUX=disabled

在不重启的情况下可以设置为permissive模式,即只警告,不拦截操作

[root@mytest ~]# setenforce 0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP