vfs: check i_nlink limits in vfs_{mkdir,rename_dir,link}
New field of struct super_block - ->s_max_links. Maximal allowed
value of ->i_nlink or 0; in the latter case all checks still need
to be done in ->link/->mkdir/->rename instances. Note that this
limit applies both to directoris and to non-directories.
Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/exofs/namei.c 1 addition, 12 deletionsfs/exofs/namei.c
- fs/exofs/super.c 1 addition, 0 deletionsfs/exofs/super.c
- fs/ext2/namei.c 1 addition, 12 deletionsfs/ext2/namei.c
- fs/ext2/super.c 1 addition, 0 deletionsfs/ext2/super.c
- fs/jfs/namei.c 0 additions, 13 deletionsfs/jfs/namei.c
- fs/jfs/super.c 1 addition, 0 deletionsfs/jfs/super.c
- fs/logfs/dir.c 0 additions, 3 deletionsfs/logfs/dir.c
- fs/logfs/super.c 1 addition, 0 deletionsfs/logfs/super.c
- fs/minix/inode.c 5 additions, 5 deletionsfs/minix/inode.c
- fs/minix/minix.h 0 additions, 1 deletionfs/minix/minix.h
- fs/minix/namei.c 1 addition, 13 deletionsfs/minix/namei.c
- fs/namei.c 13 additions, 0 deletionsfs/namei.c
- fs/nilfs2/namei.c 0 additions, 11 deletionsfs/nilfs2/namei.c
- fs/nilfs2/super.c 1 addition, 0 deletionsfs/nilfs2/super.c
- fs/sysv/namei.c 1 addition, 11 deletionsfs/sysv/namei.c
- fs/sysv/super.c 12 additions, 12 deletionsfs/sysv/super.c
- fs/sysv/sysv.h 0 additions, 1 deletionfs/sysv/sysv.h
- fs/udf/namei.c 0 additions, 13 deletionsfs/udf/namei.c
- fs/udf/super.c 3 additions, 0 deletionsfs/udf/super.c
- fs/ufs/namei.c 1 addition, 13 deletionsfs/ufs/namei.c
Loading
Please register or sign in to comment