求助:挂载ext3分区时出错
内核是 2.6.15-1.2054_FC5新安装的FC5,挂载ext3分区时出现以下错误:
audit(1151376493.815:2): avc:denied{ getattr } forpid=1910 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
虽然出现了错误提示,但还是能挂载上了,并且都可以往分区里读写。
我的分区情况是这样的:
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 IdSystem
/dev/hda1 * 1 1275 10241406 83Linux
/dev/hda2 1276 9729 67906755 5Extended
/dev/hda5 1276 1340 522081 82Linux swap / Solaris
/dev/hda6 1341 2615 10241406 83Linux
/dev/hda7 2616 5165 20482843+83Linux
/dev/hda8 5166 7715 20482843+83Linux
/dev/hda9 7716 8990 10241406 83Linux
/dev/hda10 8991 9729 5935986 cW95 FAT32 (LBA) help, Please. 你准备挂那个分区,你是如何挂的,把你挂载的命令系列帖出来看看 谢天谢地,总算有人理我了。
下面是挂载的命令和错误提示。我把每个分区都依次挂载上去了,错误提示的内容比较多,请不要失去耐心。
# mount /dev/hda6 /mnt/hda6
audit(1151482452.686:21): avc:denied{ getattr } forpid=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
# mount /dev/hda7 /mnt/hda7
audit(1151482470.127:22): avc:denied{ getattr } forpid=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(1151482470.127:23): avc:denied{ getattr } forpid=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
# mount /dev/hda8 /mnt/hda8
audit(1151482484.920:24): avc:denied{ getattr } forpid=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(1151482484.920:25): avc:denied{ getattr } forpid=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(1151482484.920:26): avc:denied{ getattr } forpid=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
# mount /dev/hda9 /mnt/hda9
audit(1151482649.514:27): avc:denied{ getattr } forpid=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(1151482649.514:28): avc:denied{ getattr } forpid=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(1151482649.514:29): avc:denied{ getattr } forpid=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(1151482649.514:30): avc:denied{ getattr } forpid=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
# mount /dev/hda10 /mnt/hda10
audit(1151482679.796:31): avc:denied{ getattr } forpid=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 } forpid=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 } forpid=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 } forpid=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
最后查看挂载情况是这样的:
# 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) 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.
页:
[1]