android_kernel_xiaomi_sm8350/fs/ext3
Duane Griffin 04143e2fb9 ext3: tighten restrictions on inode flags
At the moment there are few restrictions on which flags may be set on
which inodes.  Specifically DIRSYNC may only be set on directories and
IMMUTABLE and APPEND may not be set on links.  Tighten that to disallow
TOPDIR being set on non-directories and only NODUMP and NOATIME to be set
on non-regular file, non-directories.

Introduces a flags masking function which masks flags based on mode and
use it during inode creation and when flags are set via the ioctl to
facilitate future consistency.

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Acked-by: Andreas Dilger <adilger@sun.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-08 08:31:01 -08:00
..
acl.c
acl.h
balloc.c CRED: Wrap task credential accesses in the Ext3 filesystem 2008-11-14 10:38:51 +11:00
bitmap.c
dir.c ext3: Fix duplicate entries returned from getdents() system call 2008-10-25 22:37:44 -04:00
ext3_jbd.c
file.c
fsync.c
hash.c
ialloc.c ext3: tighten restrictions on inode flags 2009-01-08 08:31:01 -08:00
inode.c fs: symlink write_begin allocation context fix 2009-01-04 13:33:20 -08:00
ioctl.c ext3: tighten restrictions on inode flags 2009-01-08 08:31:01 -08:00
Kconfig fs/Kconfig: move ext2, ext3, ext4, JBD, JBD2 out 2008-10-20 11:43:59 -07:00
Makefile
namei.c fs: symlink write_begin allocation context fix 2009-01-04 13:33:20 -08:00
namei.h
resize.c ext3: don't try to resize if there are no reserved gdt blocks left 2008-10-20 08:52:37 -07:00
super.c ext3: allocate ->s_blockgroup_lock separately 2009-01-08 08:31:00 -08:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h