LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 671|回复: 1

挂载ext3分区时出现这样的错误:audit(1151296990.978:3): avc: denied { getattr } f

[复制链接]
发表于 2006-6-26 15:20:18 | 显示全部楼层 |阅读模式
内核说明
[root@osgis lee]# uname -a
Linux osgis 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux

分区情况:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 2433 9729 58613152+ f W95 Ext'd (LBA)
/dev/hda3 1276 2432 9293602+ 83 Linux
/dev/hda5 7297 9729 19543041 b W95 FAT32
/dev/hda6 2433 2497 522049+ 82 Linux swap / Solaris
/dev/hda7 2498 5048 20490876 83 Linux
/dev/hda8 5049 7296 18057028+ 83 Linux

Partition table entries are not in disk order

挂载hda3时提示以下信息:
[root@osgis ~]# mount /dev/hda3 /mnt/hda3
audit(1151296990.978:3): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda3 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir

挂载hda7时是这样的:
[root@osgis ~]# mount /dev/hda7 /mnt/hda7
audit(1151299368.203:4): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda3 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
audit(1151299368.203:5): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir

挂载hda8时是这样的:
[root@osgis ~]# mount /dev/hda8 /mnt/hda8
audit(1151299446.660:6): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda3 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
audit(1151299446.660:7): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
audit(1151299446.660:8): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda8 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir

挂载hda5(fat32分区)时就没有任何错误。虽然出现了这些错误提示,但是这些分区都能挂载上了,并且都可以往各个分区里读写。挂载后的列表如下:
[root@osgis lee]# mount
/dev/hda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1706) on /net type autofs (rw,fd=4,pgrp=1706,minproto=2,maxproto=4)/dev/hda3 on /mnt/hda3 type ext3 (rw)
/dev/hda3 on /mnt/hda3 type ext3 (rw)
/dev/hda7 on /mnt/hda7 type ext3 (rw)
/dev/hda8 on /mnt/hda8 type ext2 (rw)

还有一点,只有在命令行模式下登录(init:3)进行挂载才会出现这些提示。如果启动x,然后在图形界面下再启动一个终端进行挂载,就不会出现这些提示,但在使用过程中会在终端窗口中出现这样的错误(我也不清楚它什么时候会冒出来):
[root@osgis lee]# audit(1151299446.660:6): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda3 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
bash: syntax error near unexpected token `1151299446.660:6'
[root@osgis lee]# audit(1151299446.660:7): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
bash: syntax error near unexpected token `1151299446.660:7'
[root@osgis lee]# audit(1151299446.660:8): avc: denied { getattr } for pid=1863 comm="hald" name="/" dev=hda8 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u: object_r:file_t:s0 tclass=dir
bash: syntax error near unexpected token `1151299446.660:8'

请问这该怎么办?如何才能消除这些错误?
 楼主| 发表于 2006-6-27 10:06:01 | 显示全部楼层
oo-ooh,没人回答我的问题,只好自己重新分区试试看
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表