aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-03security: Place security_path_post_mknod() where the original IMA call wasRoberto Sassu1-5/+2
2024-03-12Merge tag 'lsm-pr-20240312' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-5/+7
2024-03-12Merge tag 'hardening-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+1
2024-03-11Merge tag 'vfs-6.9.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs...Linus Torvalds1-4/+2
2024-02-25rcu pathwalk: prevent bogus hard errors from may_lookup()Al Viro1-1/+5
2024-02-15ima: Move to LSM infrastructureRoberto Sassu1-6/+0
2024-02-15security: Introduce inode_post_create_tmpfile hookRoberto Sassu1-0/+1
2024-02-15security: Introduce path_post_mknod hookRoberto Sassu1-0/+5
2024-02-15security: Introduce file_post_open hookRoberto Sassu1-0/+2
2024-02-01kernel.h: removed REPEAT_BYTE from kernel.hTanzir Hasan1-1/+1
2024-01-23Merge tag 'exportfs-6.9' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/gi...Christian Brauner1-4/+2
2024-01-23fs: Create a generic is_dot_dotdot() utilityChuck Lever1-4/+2
2024-01-12Merge tag 'pull-bcachefs-fix' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-3/+13
2024-01-11Merge tag 'pull-rename' of git://git.kernel.org/pub/scm/linux/kernel/git/viro...Linus Torvalds1-26/+61
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-21Merge branch 'vfs.file'Christian Brauner1-4/+1
2023-12-21fs: fix doc comment typo fs tree wideAlexander Mikhalitsyn1-11/+11
2023-12-12file: massage cleanup of files that failed to openAl Viro1-4/+1
2023-11-25rename(): avoid a deadlock in the case of parents having no common ancestorAl Viro1-8/+29
2023-11-25rename(): fix the locking of subdirectoriesAl Viro1-23/+37
2023-11-20fs: namei: Fix spelling mistake "Retuns" to "Returns"YangXin1-2/+2
2023-11-15new helper: user_path_locked_at()Al Viro1-3/+13
2023-10-30Merge tag 'vfs-6.7.misc' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfsLinus Torvalds1-24/+7
2023-10-24vfs: Convert BUG_ON to WARN_ON_ONCE in open_last_lookupsBernd Schubert1-1/+2
2023-10-19vfs: shave work on failed file openMateusz Guzik1-1/+4
2023-10-19fs: simplify misleading code to remove ambiguity regarding ihold()/iput()Luís Henriques1-3/+1
2023-10-19fs: add a new SB_I_NOUMASK flagJeff Layton1-19/+0
2023-10-13audit,io_uring: io_uring openat triggers audit reference count underflowDan Clash1-4/+5
2023-08-19fs: Fix kernel-doc warningsMatthew Wilcox (Oracle)1-0/+3
2023-07-14fs: Fix error checking for d_hash_and_lookup()Wang Ming1-1/+1
2023-07-04fs: no need to check sourceJan Kara1-2/+1
2023-06-26Merge tag 'v6.5/vfs.file' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-11/+13
2023-06-19fs: rename {vfs,kernel}_tmpfile_open()Amir Goldstein1-11/+13
2023-06-02fs: Lock moved directoriesJan Kara1-8/+14
2023-06-02fs: Establish locking order for unrelated directoriesJan Kara1-2/+2
2023-04-29Merge tag '6.4-rc-ksmbd-server-fixes' of git://git.samba.org/ksmbdLinus Torvalds1-23/+102
2023-04-24ksmbd: fix racy issue from using ->d_parent and ->d_nameNamjae Jeon1-12/+45
2023-04-20fs: introduce lock_rename_child() helperAl Viro1-11/+57
2023-03-12fs: Fix description of vfs_tmpfile()Roberto Sassu1-2/+2
2023-02-22Merge tag 'nfsd-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds1-3/+3
2023-02-20Merge tag 'fs.idmapped.v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-229/+221
2023-02-20fs: namei: Allow follow_down() to uncover auto mountsRichard Weinberger1-3/+3
2023-01-19fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmapChristian Brauner1-29/+21
2023-01-19fs: port privilege checking helpers to mnt_idmapChristian Brauner1-22/+16
2023-01-19fs: port inode_owner_or_capable() to mnt_idmapChristian Brauner1-3/+2
2023-01-19fs: port acl to mnt_idmapChristian Brauner1-16/+17
2023-01-19fs: port xattr to mnt_idmapChristian Brauner1-4/+2
2023-01-19fs: port ->permission() to pass mnt_idmapChristian Brauner1-84/+82
2023-01-19fs: port ->tmpfile() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->rename() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mknod() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->mkdir() to pass mnt_idmapChristian Brauner1-1/+1
2023-01-19fs: port ->symlink() to pass mnt_idmapChristian Brauner1-2/+3
2023-01-19fs: port ->create() to pass mnt_idmapChristian Brauner1-3/+5
2023-01-18fs: port vfs_*() helpers to struct mnt_idmapChristian Brauner1-93/+100
2023-01-11filelock: move file locking definitions to separate header fileJeff Layton1-0/+1
2022-12-13Merge tag 'landlock-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2022-12-12Merge tag 'fs.vfsuid.conversion.v6.2' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-20/+20
2022-12-12Merge tag 'fs.acl.rework.v6.2' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+2
2022-11-19vfs: vfs_tmpfile: ensure O_EXCL flag is enforcedPeter Griffin1-1/+2
2022-10-26fs: use type safe idmapping helpersChristian Brauner1-20/+20
2022-10-20fs: rename current get acl methodChristian Brauner1-2/+2
2022-10-19security: Create file_truncate hook from path_truncate hookGünther Noack1-1/+1
2022-10-10Merge tag 'pull-tmpfile' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-33/+55
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-1/+1
2022-10-03mm: fs: initialize fsdata passed to write_begin/write_end interfaceAlexander Potapenko1-1/+1
2022-09-24vfs: open inside ->tmpfile()Miklos Szeredi1-2/+1
2022-09-24vfs: move open right after ->tmpfile()Miklos Szeredi1-50/+33
2022-09-24vfs: make vfs_tmpfile() staticMiklos Szeredi1-2/+1
2022-09-24vfs: add vfs_tmpfile_open() helperMiklos Szeredi1-0/+41
2022-09-01nd_jump_link(): constify pathAl Viro1-1/+1
2022-09-01may_linkat(): constify pathAl Viro1-1/+1
2022-08-09Merge tag 'fs.setgid.v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/b...Linus Torvalds1-11/+69
2022-07-21fs: move S_ISGID stripping into the vfs_*() helpersYang Xu1-13/+69
2022-07-19fs: Add missing umask strip in vfs_tmpfileYang Xu1-0/+2
2022-07-06step_into(): move fetching ->d_inode past handle_mounts()Al Viro1-20/+11
2022-07-06lookup_fast(): don't bother with inodeAl Viro1-18/+4
2022-07-06follow_dotdot{,_rcu}(): don't bother with inodeAl Viro1-11/+4
2022-07-06step_into(): lose inode argumentAl Viro1-6/+9
2022-07-06namei: stash the sampled ->d_seq into nameidataAl Viro1-50/+48
2022-07-06namei: move clearing LOOKUP_RCU towards rcu_read_unlock()Al Viro1-9/+12
2022-07-05switch try_to_unlazy_next() to __legitimize_mnt()Al Viro1-2/+7
2022-07-05follow_dotdot{,_rcu}(): change calling conventionsAl Viro1-9/+7
2022-07-05namei: get rid of pointless unlikely(read_seqcount_retry(...))Al Viro1-9/+9
2022-07-05__follow_mount_rcu(): verify that mount_lock remains unchangedAl Viro1-0/+2
2022-06-04Merge tag 'pull-18-rc1-work.namei' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-9/+2
2022-05-30Merge tag 'ovl-update-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-10/+60
2022-05-27Merge tag 'mm-nonmm-stable-2022-05-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-4/+4
2022-05-19namei: cleanup double word in commentTom Rix1-1/+1
2022-05-19get rid of dead code in legitimize_root()Al Viro1-7/+0
2022-05-19fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy()Al Viro1-1/+1
2022-05-13proc/sysctl: make protected_* world readableJulius Hemanth Pitti1-4/+4
2022-05-08namei: Call aops write_begin() and write_end() directlyMatthew Wilcox (Oracle)1-3/+3
2022-05-08namei: Convert page_symlink() to use memalloc_nofs_save()Matthew Wilcox (Oracle)1-4/+7
2022-05-08namei: Merge page_symlink() and __page_symlink()Matthew Wilcox (Oracle)1-11/+2
2022-04-28fs: add two trivial lookup helpersChristian Brauner1-10/+60
2022-04-14VFS: filename_create(): fix incorrect intent.NeilBrown1-12/+10
2022-01-28Merge tag 'fsnotify_for_v5.17-rc2' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-5/+5
2022-01-24fsnotify: invalidate dcache before IN_DELETE eventAmir Goldstein1-5/+5
2022-01-22fs: move namei sysctls to its own fileLuis Chamberlain1-4/+54
2022-01-07vfs, cachefiles: Mark a backing file in use with an inode flagDavid Howells1-1/+2
2021-11-01Merge tag 'locks-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/jlay...Linus Torvalds1-3/+1
2021-10-26fs: remove leftover comments from mandatory locking removalJeff Layton1-3/+1
2021-09-07putname(): IS_ERR_OR_NULL() is wrong hereAl Viro1-1/+1
2021-09-07namei: Standardize callers of filename_create()Stephen Brennan1-17/+15
2021-09-07namei: Standardize callers of filename_lookup()Stephen Brennan1-17/+20
2021-09-07rename __filename_parentat() to filename_parentat()Al Viro1-9/+9
2021-09-07namei: Fix use after free in kern_path_lockedStephen Brennan1-15/+14
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+7
2021-09-03fs, mm: fix race in unlinking swapfileHugh Dickins1-1/+7
2021-08-31Merge tag 'for-5.15-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kda...Linus Torvalds1-6/+37
2021-08-30Merge tag 'for-5.15/io_uring-vfs-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-102/+137
2021-08-23io_uring: add support for IORING_OP_LINKATDmitry Kadashev1-1/+1
2021-08-23io_uring: add support for IORING_OP_SYMLINKATDmitry Kadashev1-2/+1
2021-08-23namei: update do_*() helpers to return intsDmitry Kadashev1-5/+5
2021-08-23namei: make do_linkat() take struct filenameDmitry Kadashev1-16/+29
2021-08-23namei: add getname_uflags()Dmitry Kadashev1-0/+8
2021-08-23namei: make do_symlinkat() take struct filenameDmitry Kadashev1-11/+12
2021-08-23namei: make do_mknodat() take struct filenameDmitry Kadashev1-8/+11
2021-08-23namei: make do_mkdirat() take struct filenameDmitry Kadashev1-7/+19
2021-08-23namei: change filename_parentat() calling conventionsDmitry Kadashev1-55/+53
2021-08-23namei: ignore ERR/NULL names in putname()Dmitry Kadashev1-4/+5
2021-08-23namei: add mapping aware lookup helperChristian Brauner1-6/+37
2021-08-23fs: remove mandatory file locking supportJeff Layton1-3/+1
2021-07-03Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-35/+45
2021-04-27Merge tag 'fs.idmapped.helpers.v5.13' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-8/+3
2021-04-27Merge tag 'fs.idmapped.docs.v5.13' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-11/+3
2021-04-07namei: make sure nd->depth is always validAl Viro1-1/+1
2021-04-07teach set_nameidata() to handle setting the root as wellAl Viro1-12/+16
2021-04-07take LOOKUP_{ROOT,ROOT_GRABBED,JUMPED} out of LOOKUP_... spaceAl Viro1-23/+31
2021-04-07switch file_open_root() to struct pathAl Viro1-5/+3
2021-04-06LOOKUP_MOUNTPOINT: we are cleaning "jumped" flag too lateAl Viro1-4/+4
2021-04-06Make sure nd->path.mnt and nd->path.dentry are always valid pointersAl Viro1-2/+4
2021-03-23namei: fix kernel-doc for struct renamedata and moreRandy Dunlap1-11/+3
2021-03-23fs: introduce fsuidgid_has_mapping() helperChristian Brauner1-8/+3
2021-03-23fs: document and rename fsid helpersChristian Brauner1-4/+4
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-131/+380
2021-02-20fix handling of nd->depth on LOOKUP_CACHED failures in try_to_unlazy*Al Viro1-4/+5
2021-01-24ima: handle idmapped mountsChristian Brauner1-2/+2
2021-01-24fs: make helpers idmap mount awareChristian Brauner1-23/+32
2021-01-24open: handle idmapped mounts in do_truncate()Christian Brauner1-1/+1
2021-01-24namei: prepare for idmapped mountsChristian Brauner1-43/+184
2021-01-24namei: introduce struct renamedataChristian Brauner1-6/+15
2021-01-24namei: handle idmapped mounts in may_*() helpersChristian Brauner1-56/+92
2021-01-24inode: make init and permission helpers idmapped mount awareChristian Brauner1-2/+3
2021-01-24namei: make permission helpers idmapped mount awareChristian Brauner1-35/+86
2021-01-24capability: handle idmapped mountsChristian Brauner1-5/+8
2021-01-04fs: add support for LOOKUP_CACHEDJens Axboe1-0/+9
2021-01-04saner calling conventions for unlazy_child()Al Viro1-14/+14
2021-01-04fs: make unlazy_walk() error handling consistentJens Axboe1-26/+17
2021-01-04fs/namei.c: Remove unlikely of status being -ECHILD in lookup_fast()Steven Rostedt (VMware)1-1/+1
2021-01-03do_tmpfile(): don't mess with finish_open()Al Viro1-4/+2
2020-12-25Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+3
2020-12-10Make sure that make_create_in_sticky() never sees uninitialized value of dir_...Al Viro1-1/+3
2020-12-09fs: make do_renameat2() take struct filenameJens Axboe1-18/+22
2020-10-24Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+2
2020-09-24fs: remove the unused SB_I_MULTIROOT flagChristoph Hellwig1-2/+2
2020-08-27Add a "nosymfollow" mount option.Mattias Nissler1-1/+2
2020-08-14exec: restore EACCES of S_ISDIR execve()Kees Cook1-1/+3
2020-08-12Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+8
2020-08-12exec: move path_noexec() check earlierKees Cook1-0/+4
2020-08-12exec: move S_ISREG() check earlierKees Cook1-2/+4
2020-08-12fix breakage in do_rmdir()Al Viro1-1/+1
2020-07-31init: add an init_mknod helperChristoph Hellwig1-1/+1
2020-07-31init: add an init_mkdir helperChristoph Hellwig1-1/+1
2020-07-31init: add an init_symlink helperChristoph Hellwig1-1/+1
2020-07-31init: add an init_link helperChristoph Hellwig1-2/+2
2020-07-31fs: push the getname from do_rmdir into the callersChristoph Hellwig1-6/+4
2020-06-08vfs: clean up posix_acl_permission() logic aroudn MAY_NOT_BLOCKLinus Torvalds1-1/+1
2020-06-08vfs: do not do group lookup when not necessaryLinus Torvalds1-15/+29
2020-05-14vfs: allow unprivileged whiteout creationMiklos Szeredi1-18/+3
2020-04-06fix a braino in legitimize_path()Al Viro1-1/+1
2020-04-02lookup_open(): don't bother with fallbacks to lookup+createAl Viro1-25/+9
2020-04-02atomic_open(): no need to pass struct open_flags anymoreAl Viro1-2/+1
2020-04-02open_last_lookups(): move complete_walk() into do_open()Al Viro1-10/+8
2020-04-02open_last_lookups(): lift O_EXCL|O_CREAT handling into do_open()Al Viro1-5/+2
2020-04-02open_last_lookups(): don't abuse complete_walk() when all we want is unlazyAl Viro1-9/+5
2020-04-02open_last_lookups(): consolidate fsnotify_create() callsAl Viro1-5/+2
2020-04-02take post-lookup part of do_last() out of loopAl Viro1-12/+9
2020-04-02link_path_walk(): sample parent's i_uid and i_mode for the last componentAl Viro1-10/+7
2020-04-02__nd_alloc_stack(): make it return boolAl Viro1-27/+18
2020-04-02reserve_stack(): switch to __nd_alloc_stack()Al Viro1-11/+8
2020-04-02pick_link(): take reserving space on stack into a new helperAl Viro1-21/+25
2020-04-02pick_link(): more straightforward handling of allocation failuresAl Viro1-8/+7
2020-04-02fold path_to_nameidata() into its only remaining callerAl Viro1-13/+6
2020-04-02pick_link(): pass it struct path already with normal refcounting rulesAl Viro1-6/+6
2020-04-02fs/namei.c: kill follow_mount()Al Viro1-20/+2
2020-04-02non-RCU analogue of the previous commitAl Viro1-17/+39
2020-04-02helper for mount rootwards traversalAl Viro1-16/+24
2020-04-02follow_dotdot(): be lazy about changing nd->pathAl Viro1-5/+13
2020-04-02follow_dotdot_rcu(): be lazy about changing nd->pathAl Viro1-15/+20
2020-04-02follow_dotdot{,_rcu}(): massage loopsAl Viro1-32/+45
2020-04-02lift all calls of step_into() out of follow_dotdot/follow_dotdot_rcuAl Viro1-34/+37
2020-03-13follow_dotdot{,_rcu}(): switch to use of step_into()Al Viro1-24/+7
2020-03-13handle_dots(), follow_dotdot{,_rcu}(): preparation to switch to step_into()Al Viro1-27/+25
2020-03-13move handle_dots(), follow_dotdot() and follow_dotdot_rcu() past step_into()Al Viro1-130/+130
2020-03-13follow_dotdot{,_rcu}(): lift LOOKUP_BENEATH checks out of loopAl Viro1-10/+10
2020-03-13follow_dotdot{,_rcu}(): lift switching nd->path to parent out of loopAl Viro1-8/+12
2020-03-13expand path_parent_directory() in its callersAl Viro1-18/+11