dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
709 stars 324 forks source link

error when mount exfat disk #61

Closed wzhy90 closed 9 years ago

wzhy90 commented 9 years ago

In adb shell:

root@D6503:/ # insmod /system/lib/modules/exfat.ko
root@D6503:/ # mount -t exfat /dev/block/mmcblk1p1 /sdcard1                    
mount: Permission denied

Cannot mount the disk. When I use the Sony stock texfat modules it is OK. My device is Z2 D6502

root@D6503:/ # uname -a                                                        
Linux localhost 3.4.0-perf-gbd72fa3-dirty #1 SMP PREEMPT Fri Feb 27 23:19:59 CST 2015 armv7l GNU/Linux
root@D6503:/ # modinfo exfat.ko                                                
filename:       exfat.ko
license:        GPL
description:    exFAT Filesystem Driver
depends:        
vermagic:       3.4.0-perf-gbd72fa3-dirty SMP preempt mod_unload modversions ARMv7 
wzhy90 commented 9 years ago

The Sony stock texfat module's info

root@D6503:/ # modinfo texfat.ko                                               
filename:       texfat.ko
license:        Commercial. For support email exfat-support@tuxera.com
author:         Tuxera Inc. & Anton Altaparmakov
description:    Read/Write exFAT driver
version:        3014.2.7w
depends:        
vermagic:       3.4.0-perf-gd4d661a SMP preempt mod_unload modversions ARMv7 
wzhy90 commented 9 years ago

This is SELinux problem

<7>[  473.224805] SELinux: initialized (dev mmcblk1p1, type exfat), not configured for labeling
<5>[  473.224845] type=1400 audit(1425060182.423:81): avc:  denied  { mount } for  pid=5882 comm="mount" name="/" dev="mmcblk1p1" ino=1 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=filesystem op_res=-13 ppid=5503 pcomm="sh" tgid=5503 tgcomm="sh"

How to fix this?