kernel-hacking-2024-linux-s.../fs
Al Viro 059338aae3 move mount_capable() calls to vfs_get_tree()
sget_fc() is called only from ->get_tree() instances and
the only instance not calling it is legacy_get_tree(),
which calls mount_capable() directly.

In all sget_fc() callers the checks could be moved to the
very beginning of ->get_tree() - ->user_ns is not changed
in between.  So lifting the checks to the only caller of
->get_tree() is OK.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2019-05-25 18:00:01 -04:00
..
9p
adfs Wimplicit-fallthrough patches for 5.2-rc1 2019-05-07 12:48:10 -07:00
affs Wimplicit-fallthrough patches for 5.2-rc1 2019-05-07 12:48:10 -07:00
afs afs: Fix application of the results of a inline bulk status fetch 2019-05-16 22:23:21 +01:00
autofs
befs
bfs
btrfs mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
cachefiles fs/cachefiles/namei.c: remove duplicate header 2019-05-14 19:52:52 -07:00
ceph On the filesystem side we have: 2019-05-16 16:24:01 -07:00
cifs minor cleanup and fixes, one for stable, also adds SEEK_HOLE support 2019-05-19 11:38:18 -07:00
coda fs/coda/psdev.c: remove duplicate header 2019-05-14 19:52:52 -07:00
configfs configs updates for Linux 5.2: 2019-05-16 11:46:58 -07:00
cramfs
crypto Clean up fscrypt's dcache revalidation support, and other 2019-05-07 21:28:04 -07:00
debugfs Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-05-07 20:03:32 -07:00
devpts
dlm
ecryptfs Merge branch 'work.icache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-05-07 10:57:05 -07:00
efivarfs
efs
exportfs
ext2 \n 2019-05-13 14:59:55 -07:00
ext4 Some bug fixes, and an update to the URL's for the final version of 2019-05-19 11:43:16 -07:00
f2fs f2fs-for-5.2-rc1 2019-05-14 08:55:43 -07:00
fat fs/fat/file.c: issue flush after the writeback of FAT 2019-05-14 19:52:50 -07:00
freevxfs
fscache
fuse fuse update for 5.2 2019-05-14 08:59:14 -07:00
gfs2 gfs2: Fix error path kobject memory leak 2019-05-13 15:43:01 -07:00
hfs
hfsplus
hostfs This pull request contains the following changes for UML: 2019-05-12 17:52:13 -04:00
hpfs
hugetlbfs hugetlbfs: always use address space in inode for resv_map pointer 2019-05-14 09:47:50 -07:00
isofs
jbd2 jbd2: fix potential double free 2019-05-10 21:15:47 -04:00
jffs2 Wimplicit-fallthrough patches for 5.2-rc1 2019-05-07 12:48:10 -07:00
jfs Several minor jfs fixes 2019-05-07 11:37:27 -07:00
kernfs Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-05-07 20:03:32 -07:00
lockd This pull consists mostly of nfsd container work: 2019-05-15 18:21:43 -07:00
minix
nfs AFS fixes 2019-05-16 17:00:13 -07:00
nfs_common
nfsd vfs: Convert nfsctl to use the new mount API 2019-05-25 17:59:57 -04:00
nilfs2
nls
notify \n 2019-05-13 15:08:16 -07:00
ntfs
ocfs2 treewide: prefix header search paths with $(srctree)/ 2019-05-18 11:49:57 +09:00
omfs
openpromfs
orangefs mm/gup: change GUP fast to use flags rather than a write 'bool' 2019-05-14 09:47:46 -07:00
overlayfs overlayfs update for 5.2 2019-05-14 09:02:14 -07:00
proc procfs: set ->user_ns before calling ->get_tree() 2019-05-25 18:00:00 -04:00
pstore
qnx4
qnx6
quota
ramfs
reiserfs reiserfs: add comment to explain endianness issue in xattr_hash 2019-05-14 19:52:50 -07:00
romfs
squashfs
sysfs no need to protect against put_user_ns(NULL) 2019-05-25 17:59:54 -04:00
sysv Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-05-07 20:03:32 -07:00
tracefs
ubifs ubifs: Convert xattr inum to host order 2019-05-15 21:56:48 +02:00
udf \n 2019-05-13 14:59:55 -07:00
ufs Wimplicit-fallthrough patches for 5.2-rc1 2019-05-07 12:48:10 -07:00
unicode unicode: update to Unicode 12.1.0 final 2019-05-12 13:26:08 -04:00
xfs treewide: prefix header search paths with $(srctree)/ 2019-05-18 11:49:57 +09:00
aio.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
anon_inodes.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c binfmt_elf: move brk out of mmap when doing direct loader exec 2019-05-14 19:52:50 -07:00
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
block_dev.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c
coredump.c
d_path.c unexport simple_dname() 2019-05-21 08:23:41 +01:00
dax.c mm: page_mkclean vs MADV_DONTNEED race 2019-05-14 09:47:48 -07:00
dcache.c Clean up fscrypt's dcache revalidation support, and other 2019-05-07 21:28:04 -07:00
dcookies.c
direct-io.c
drop_caches.c
eventfd.c fs/eventfd.c: make eventfd_ida static 2019-05-14 19:52:51 -07:00
eventpoll.c
exec.c fs/exec.c: move ->recursion_depth out of critical sections 2019-05-14 19:52:50 -07:00
fcntl.c
fhandle.c
file.c
file_table.c
filesystems.c
fs-writeback.c fs/writeback.c: use rcu_barrier() to wait for inflight wb switches going into workqueue when umount 2019-05-18 15:52:26 -07:00
fs_context.c move mount_capable() calls to vfs_get_tree() 2019-05-25 18:00:01 -04:00
fs_parser.c
fs_pin.c
fs_struct.c
fs_types.c
fsopen.c uapi, fsopen: use square brackets around "fscontext" [ver #2] 2019-05-16 12:23:45 -04:00
inode.c Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-05-07 20:50:27 -07:00
internal.h switch mount_capable() to fs_context 2019-05-25 17:59:59 -04:00
io_uring.c for-linus-20190516 2019-05-16 19:10:37 -07:00
ioctl.c
iomap.c for-5.2/block-20190507 2019-05-07 18:14:36 -07:00
Kconfig
Kconfig.binfmt
libfs.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
locks.c This pull consists mostly of nfsd container work: 2019-05-15 18:21:43 -07:00
Makefile Add as a feature case-insensitive directories (the casefold feature) 2019-05-07 21:12:44 -07:00
mbcache.c
mount.h
mpage.c
namei.c Clean up fscrypt's dcache revalidation support, and other 2019-05-07 21:28:04 -07:00
namespace.c do_move_mount(): fix an unsafe use of is_anon_ns() 2019-05-09 02:32:50 -04:00
no-block.c
nsfs.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
open.c vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM files 2019-05-06 17:46:52 +03:00
pipe.c mount_pseudo(): drop 'name' argument, switch to d_make_root() 2019-05-25 17:59:24 -04:00
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c vfs: pass ppos=NULL to .read()/.write() of FMODE_STREAM files 2019-05-06 17:46:52 +03:00
readdir.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
statfs.c
super.c move mount_capable() calls to vfs_get_tree() 2019-05-25 18:00:01 -04:00
sync.c fs/sync.c: sync_file_range(2) may use WB_SYNC_ALL writeback 2019-05-14 09:47:50 -07:00
timerfd.c
userfaultfd.c userfaultfd/sysctl: add vm.unprivileged_userfaultfd 2019-05-14 09:47:45 -07:00
utimes.c
xattr.c