QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1402|回复: 4

求助:挂载ext3分区时出错

[复制链接]
发表于 2006-6-27 11:19:42 | 显示全部楼层 |阅读模式
内核是 2.6.15-1.2054_FC5
新安装的FC5,挂载ext3分区时出现以下错误:
audit(1151376493.815:2): avc:  denied  { getattr } for  pid=1910 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir

虽然出现了错误提示,但还是能挂载上了,并且都可以往分区里读写。
我的分区情况是这样的:
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            1276        9729    67906755    5  Extended
/dev/hda5            1276        1340      522081   82  Linux swap / Solaris
/dev/hda6            1341        2615    10241406   83  Linux
/dev/hda7            2616        5165    20482843+  83  Linux
/dev/hda8            5166        7715    20482843+  83  Linux
/dev/hda9            7716        8990    10241406   83  Linux
/dev/hda10           8991        9729     5935986    c  W95 FAT32 (LBA)
 楼主| 发表于 2006-6-28 11:46:23 | 显示全部楼层
help, Please.
回复

使用道具 举报

发表于 2006-6-28 15:30:34 | 显示全部楼层
你准备挂那个分区,你是如何挂的,把你挂载的命令系列帖出来看看
回复

使用道具 举报

 楼主| 发表于 2006-6-28 16:24:42 | 显示全部楼层
谢天谢地,总算有人理我了。
下面是挂载的命令和错误提示。我把每个分区都依次挂载上去了,错误提示的内容比较多,请不要失去耐心。
[root@osgis /]# mount /dev/hda6 /mnt/hda6
audit(1151482452.686:21): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
[root@osgis /]# mount /dev/hda7 /mnt/hda7
audit(1151482470.127:22): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482470.127:23): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
[root@osgis /]# mount /dev/hda8 /mnt/hda8
audit(1151482484.920:24): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482484.920:25): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482484.920:26): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda8 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
[root@osgis ~]# mount /dev/hda9 /mnt/hda9
audit(1151482649.514:27): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482649.514:2: avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda7 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482649.514:29): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda8 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
audit(1151482649.514:30): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda9 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_ubject_r:file_t:s0 tclass=dir
[root@osgis ~]# mount /dev/hda10 /mnt/hda10
audit(1151482679.796:31): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda6 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir
audit(1151482679.800:32): avc:  denied  { getattr } for  pid=1876 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(1151482679.800:33): avc:  denied  { getattr } for  pid=1876 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
audit(1151482679.800:34): avc:  denied  { getattr } for  pid=1876 comm="hald" name="/" dev=hda9 ino=2 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=dir

最后查看挂载情况是这样的:
[root@osgis ~]# 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(pid1644) on /net type autofs (rw,fd=4,pgrp=1644,minproto=2,maxproto=4)/dev/hda6 on /mnt/hda6 type ext3 (rw)
/dev/hda7 on /mnt/hda7 type ext3 (rw)
/dev/hda8 on /mnt/hda8 type ext3 (rw)
/dev/hda9 on /mnt/hda9 type ext3 (rw)
/dev/hda10 on /mnt/hda10 type vfat (rw)
回复

使用道具 举报

 楼主| 发表于 2006-6-29 10:17:03 | 显示全部楼层
I've got a reply from fedoraforum.org. It follows.
******************
as of your error messages, this is a selinux related issue....

it depends on which selinux mode you are running (setup in /etc/sysconfig/selinux - either warning or enfroced)...i guess you were running in warning mode. this is why you get these messages, but everthing works.

if you haven't a need for selinux, disable it completly (with selinux=disable in /etc/sysconfig/selinux)
******************
It works to disable selinux.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-22 21:31 , Processed in 0.044549 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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