Red Hat Bugzilla – Bug 54831
Files always have +x in vfat (2.4.9-6) even with noexec
Last modified: 2007-04-18 12:37:40 EDT
Description of Problem:
In vfat filesystems files always appear with execute permissions turned on even when using the noexec option. But with the noexec option files can't be executed (as usual) even if they are showing +x for all.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mount a vfat filesystem with the noexec option
2. do a ls in some directory with files
All files have execute permissions
Files should't have execute permissions.
The problem still persists with RedHat 7.2's 2.4.9-13.
With version 2.4.9-12 at least, the problem appears to be in the
display of permissions. If I copy a simple bash shell script to
a vfat partition, I can actually execute it if I mount the partition
with the option 'exec' but not with the option 'noexec'. (In either
case the permission is displayed as executable.)
If I reboot Linux using my previous kernel 2.4.3-12, the execute
permissions are correctly displayed.
The option "showexec" is a decent workaround (although .exe and .com files
still appear green).