Re: [RFC] FAT extension filters

Albert D. Cahalan (acahalan@cs.uml.edu)
Tue, 14 May 2002 23:18:25 -0400 (EDT)


> (Sorry if I'm doing stupid things - I'm a newbie. Send me a private
> email and I'll fix them.)
>
> This is a patch that adds an extra mount option for msdos/vfat
> partitions, which allows you to specify a specific umask/uid/gid for
> files with a particular extension. Supports multiple filters using
> linked list. Note that this does not provide security on an inherently
> insecure fs.
>
> Use -o filter=ext[:[umask][:[uid][:[gid]]]]

Some ideas:

1. use this to express the existing showexec option
2. make this work for all non-UNIX filesystems
3. specify the data some other place

While you're hacking around FAT stuff, see about
using the timestamp of the volume name file for
the root directory. Remember that very old
filesystems won't have a volume name file, so
you might need to create one.

Also I found a bug in the vfat code. It doesn't
properly handle old (pre-vfat) files with names
that start with 0xE5; these are stored on disk
with 0x05 as the first character.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/