LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   rc script to mount filesystem not working? (https://www.linuxquestions.org/questions/linux-security-4/rc-script-to-mount-filesystem-not-working-504742/)

ginda 11-25-2006 09:29 AM

rc script to mount filesystem not working?
 
my system is a intel laptop on fedora core 6

I am trying to mount a ntfs partition using ntfs-3g using two scripts first one in rc5.d to mount and second one to unmount in rc0.d


I have getting the error in messages log

Nov 25 15:13:42 localhost kernel: audit(1164467622.166:80): avc: denied { read write } for pid=2810 comm="fusermount" name="fuse" dev=tmpfs ino=1403 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=chr_file


Also when i trying running rc script it fails see below:

[root@localhost init.d]# ./ntfsmount
fusermount: failed to open /dev/fuse: Permission denied
Retrying mount ...
fusermount: failed to open /dev/fuse: Permission denied
Failed to mount NTFSUnmounting /dev/hda1 ()

Any ideas? i suspect selinux, so i stopped and started selinux so it relabelled the filesystem and it did relabel the two scripts see below

-rwxr-xr-x root root system_u:object_r:initrc_exec_t ntfsmount
-rwxr-xr-x root root system_u:object_r:initrc_exec_t ntfsunmount

Thanks in advance

KenJackson 11-26-2006 09:51 PM

I haven't used ntfs-3g, but have you tried adding a line to /etc/fstab instead of custom scripts? That's the normal way to specify which disks are mounted during boot.

ginda 11-28-2006 07:02 AM

Quote:

Originally Posted by KenJackson
I haven't used ntfs-3g, but have you tried adding a line to /etc/fstab instead of custom scripts? That's the normal way to specify which disks are mounted during boot.

Hi

Yes i tried that initially, but that also did not work

igu 12-01-2006 07:28 PM

This should help: http://www.ntfs-3g.org/support.html#selinux


All times are GMT -5. The time now is 04:24 AM.