hi,
i try to access the cd-rom, i attach a usb-device (stick,camera,..) and try to access, ==> i get errors "unable to mount"
mounting as root is possible. # mount /dev/hdc /media/cdrecorder # mount /dev/sda1 /media/usbstick
powerbook g4 fc4t1-ppc disabled selinux hal-0.5.0.cvs20050310-1 (updated)
which packages i need to update?
outsch. # grep fscontext /etc/fstab /dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0 /dev/sda1 /media/usbdisk vfat pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,noatime,sync,managed 0 0
<snip usb-camera /var/log/messages> Mar 17 15:40:05 pbg4 kernel: sda: assuming drive cache: write through [...] Mar 17 15:40:05 pbg4 kernel: sda: sda1 [...] Mar 17 15:40:05 pbg4 kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0 Mar 17 15:40:05 pbg4 kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0 [...] Mar 17 15:40:05 pbg4 scsi.agent[4781]: disk at /devices/pci0001:10/0001:10:1b.0/usb3/3-1/3-1:1.0/host3/target3:0:0/3:0:0:0 [...] Mar 17 15:40:06 pbg4 fstab-sync[4815]: added mount point /media/usbdisk for /dev/sda1 [...] Mar 17 15:40:06 pbg4 kernel: FAT: Unrecognized mount option "fscontext=system_u:object_r:removable_t" or missing value </snip>
On Thu, 17 Mar 2005 17:03:45 +0100, shrek-m@gmx.de shrek-m@gmx.de wrote:
Mar 17 15:40:06 pbg4 kernel: FAT: Unrecognized mount option "fscontext=system_u:object_r:removable_t" or missing value
</snip>
I bet you have selinux disabled.... Appearently there is a problem with mount not recognizing the fscontext option if you have selinux completely disabled. It would seem much more correct to me to have mount just ignore the fscontext option if selinux is disabled instead of seeing it as an unrecongnized mount option. I think someone has filed this, but I can't seem to find the bugticket.
-jef
On Thu, 2005-03-17 at 11:19 -0500, Jeff Spaleta wrote:
On Thu, 17 Mar 2005 17:03:45 +0100, shrek-m@gmx.de shrek-m@gmx.de wrote:
Mar 17 15:40:06 pbg4 kernel: FAT: Unrecognized mount option "fscontext=system_u:object_r:removable_t" or missing value
</snip>
I bet you have selinux disabled.... Appearently there is a problem with mount not recognizing the fscontext option if you have selinux completely disabled. It would seem much more correct to me to have mount just ignore the fscontext option if selinux is disabled instead of seeing it as an unrecongnized mount option. I think someone has filed this, but I can't seem to find the bugticket.
I've got a fix for this which I'll put into Rawhide soon :-)
David
David Zeuthen wrote:
On Thu, 2005-03-17 at 11:19 -0500, Jeff Spaleta wrote:
On Thu, 17 Mar 2005 17:03:45 +0100, shrek-m@gmx.de shrek-m@gmx.de wrote:
Mar 17 15:40:06 pbg4 kernel: FAT: Unrecognized mount option "fscontext=system_u:object_r:removable_t" or missing value
</snip>
I bet you have selinux disabled....
yes ;-) in permissive|enforcing mode all is ok. thanks :-)
Appearently there is a problem with mount not recognizing the fscontext option if you have selinux completely disabled. It would seem much more correct to me to have mount just ignore the fscontext option if selinux is disabled instead of seeing it as an unrecongnized mount option. I think someone has filed this, but I can't seem to find the bugticket.
util-linux https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=151009
I've got a fix for this which I'll put into Rawhide soon :-)
thanks :-)