aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
AgeCommit message (Expand)AuthorFilesLines
2025-05-26Merge tag 'vfs-6.16-rc1.mount' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-10/+33
2025-05-23statmount: update STATMOUNT_SUPPORTED macroDmitry V. Levin1-1/+3
2025-05-23->mnt_devname is never NULLAl Viro1-6/+7
2025-05-23mount: add a comment about concurrent changes with statmount()/listmount()Christian Brauner1-3/+23
2025-05-09fix IS_MNT_PROPAGATING usesAl Viro1-1/+2
2025-05-09do_move_mount(): don't leak MNTNS_PROPAGATING on failuresAl Viro1-3/+2
2025-05-09do_umount(): add missing barrier before refcount checks in sync caseAl Viro1-1/+2
2025-05-09__legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lockAl Viro1-5/+1
2025-04-23fix a couple of races in MNT_TREE_BENEATH handling by do_move_mount()Al Viro1-33/+36
2025-04-11fs: use namespace_{lock,unlock} in dissolve_on_fput()Jan Stancek1-1/+3
2025-04-11mount: ensure we don't pointlessly walk the mount treeChristian Brauner1-12/+18
2025-04-03fs: actually hold the namespace semaphoreChristian Brauner1-1/+2
2025-03-28fs: namespace: Avoid -Wflex-array-member-not-at-end warningGustavo A. R. Silva1-1/+3
2025-03-24Merge tag 'vfs-6.15-rc1.mount.namespace' of git://git.kernel.org/pub/scm/linu...Linus Torvalds1-60/+307
2025-03-24Merge tag 'vfs-6.15-rc1.mount' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-122/+363
2025-03-19umount: Allow superblock owners to force umountTrond Myklebust1-1/+2
2025-03-04mount: handle mount propagation for detached mount treesChristian Brauner1-15/+27
2025-03-04fs: namespace: fix uninitialized variable useArnd Bergmann1-0/+2
2025-03-04fs: allow creating detached mounts from fsmount() file descriptorsChristian Brauner1-2/+7
2025-03-04fs: mount detached mounts onto detached mountsChristian Brauner1-2/+84
2025-03-04fs: support getname_maybe_null() in move_mount()Christian Brauner1-33/+60
2025-03-04fs: create detached mounts from detached mountsChristian Brauner1-1/+37
2025-03-04fs: add may_copy_tree()Christian Brauner1-7/+37
2025-03-04fs: add fastpath for dissolve_on_fput()Christian Brauner1-12/+47
2025-03-04fs: add assert for move_mount()Christian Brauner1-2/+5
2025-03-04fs: add mnt_ns_empty() helperChristian Brauner1-2/+2
2025-03-04fs: record sequence number of origin mount namespaceChristian Brauner1-2/+17
2025-02-12Merge patch series "fs: allow changing idmappings"Christian Brauner1-81/+171
2025-02-12fs: allow changing idmappingsChristian Brauner1-21/+32
2025-02-12fs: add kflags member to struct mount_kattrChristian Brauner1-8/+15
2025-02-12fs: add open_tree_attr()Christian Brauner1-0/+39
2025-02-12fs: add copy_mount_setattr() helperChristian Brauner1-33/+40
2025-02-12fs: add vfs_open_tree() helperChristian Brauner1-23/+26
2025-02-12statmount: add a new supported_mask fieldJeff Layton1-0/+23
2025-02-12statmount: allow to retrieve idmappingsChristian Brauner1-1/+58
2025-02-12fs: allow detached mounts in clone_private_mount()Christian Brauner1-35/+43
2025-02-07fs: fix adding security options to statmount.mnt_optMiklos Szeredi1-15/+14
2025-02-07statmount: let unset strings be emptyMiklos Szeredi1-9/+16
2025-02-05vfs: add notifications for mount attach and detachMiklos Szeredi1-1/+78
2025-02-05fanotify: notify on mount attach and detachMiklos Szeredi1-3/+11
2025-01-28treewide: const qualify ctl_tables where applicableJoel Granados1-1/+1
2025-01-20Merge tag 'vfs-6.14-rc1.mount.v2' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-76/+124
2025-01-20Merge tag 'vfs-6.14-rc1.pidfs' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-2/+8
2025-01-20Merge tag 'vfs-6.14-rc1.misc' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-1/+1
2025-01-16fs: Fix return type of do_mount() from long to intSentaro Onizuka1-1/+1
2025-01-09Merge tag 'vfs-6.14-rc7.mount.fixes'Christian Brauner1-8/+6
2025-01-09fs: remove useless lockdep assertionChristian Brauner1-2/+0
2025-01-09fs: use xarray for old mount idChristian Brauner1-9/+10
2025-01-09fs: cache first and last mountChristian Brauner1-4/+13
2025-01-09fs: simplify rwlock to spinlockChristian Brauner1-9/+6
2025-01-09fs: lockless mntns lookup for nsfsChristian Brauner1-13/+29
2025-01-09fs: lockless mntns rbtree lookupChristian Brauner1-46/+70
2025-01-09fs: add mount namespace to rbtree lateChristian Brauner1-1/+1
2025-01-09mount: remove inlude/nospec.h includeChristian Brauner1-1/+0
2025-01-09fs: prepend statmount.mnt_opts string with security_sb_mnt_opts()Jeff Layton1-0/+4
2025-01-09fs: kill MNT_ONRBChristian Brauner1-8/+6
2024-12-22pidfs: allow bind-mountsChristian Brauner1-2/+8
2024-12-13fs: fix is_mnt_ns_file()Miklos Szeredi1-2/+8
2024-11-21statmount: fix security option retrievalChristian Brauner1-1/+1
2024-11-21statmount: clean up unescaped option handlingMiklos Szeredi1-25/+19
2024-11-18Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-32/+15
2024-11-18Merge tag 'vfs-6.13.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-7/+154
2024-11-14statmount: retrieve security mount optionsChristian Brauner1-14/+60
2024-11-13statmount: add flag to retrieve unescaped optionsMiklos Szeredi1-1/+46
2024-11-13fs: add the ability for statmount() to report the sb_sourceJeff Layton1-1/+35
2024-11-12fs: add the ability for statmount() to report the fs_subtypeJeff Layton1-2/+17
2024-11-12fs: don't let statmount return empty stringsJeff Layton1-4/+11
2024-11-03fdget(), more trivial conversionsAl Viro1-32/+15
2024-10-22namespace: Use atomic64_inc_return() in alloc_mnt_ns()Uros Bizjak1-1/+1
2024-10-17fs: don't try and remove empty rbtree nodeChristian Brauner1-1/+3
2024-09-24Merge tag 'fuse-update-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+4
2024-09-23Merge tag 'pull-stable-struct_fd' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-9/+9
2024-09-16Merge tag 'vfs-6.12.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-11/+63
2024-09-04namespace: introduce SB_I_NOIDMAP flagAlexander Mikhalitsyn1-0/+4
2024-08-30fs/namespace.c: Fix typo in commentYuesong Li1-2/+2
2024-08-19mount: handle OOM on mnt_warn_timestamp_expiryOlaf Hering1-3/+11
2024-08-12introduce fd_file(), convert all accessors to it.Al Viro1-6/+6
2024-08-09Merge patch series "nsfs: iterate through mount namespaces"Christian Brauner1-11/+63
2024-08-09nsfs: iterate through mount namespacesChristian Brauner1-4/+31
2024-08-09fs: allow mount namespace fdChristian Brauner1-7/+32
2024-07-24fs: use all available idsChristian Brauner1-1/+1
2024-07-15Merge tag 'vfs-6.11.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-76/+374
2024-07-08fs: reject invalid last mount id earlyChristian Brauner1-1/+7
2024-07-08fs: refuse mnt id requests with invalid ids earlyChristian Brauner1-1/+5
2024-07-06fs: find rootfs mount of the mount namespaceChristian Brauner1-5/+11
2024-07-04fs: only copy to userspace on success in listmount()Christian Brauner1-0/+2
2024-06-28fs: export mount options via statmount()Josef Bacik1-1/+36
2024-06-28fs: use guard for namespace_sem in statmount()Christian Brauner1-77/+83
2024-06-28fs: Allow statmount() in foreign mount namespaceChristian Brauner1-6/+25
2024-06-28fs: Allow listmount() in foreign mount namespaceChristian Brauner1-18/+70
2024-06-28fs: export the mount ns id via statmountJosef Bacik1-0/+11
2024-06-28fs: keep an index of current mount namespacesJosef Bacik1-2/+111
2024-06-28fs: relax permissions for statmount()Christian Brauner1-1/+2
2024-06-28fs: relax permissions for listmount()Christian Brauner1-1/+1
2024-06-28listmount: allow listing in reverse orderChristian Brauner1-10/+49
2024-06-28fs: simplify error handlingChristian Brauner1-12/+6
2024-06-28fs: don't copy to userspace under namespace semaphoreChristian Brauner1-42/+56
2024-06-27vfs: support statx(..., NULL, AT_EMPTY_PATH, ...)Mateusz Guzik1-13/+0
2024-06-21Improve readability of copy_treeJemmy1-28/+31
2024-05-28fhandle: relax open_by_handle_at() permission checksChristian Brauner1-1/+1
2024-02-07fs: relax mount_setattr() permission checksChristian Brauner1-3/+8
2024-01-13fs: rework listmount() implementationChristian Brauner1-22/+28
2024-01-10Merge tag 'sysctl-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2024-01-10Merge tag 'for-6.8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdav...Linus Torvalds1-0/+11
2024-01-08Merge tag 'vfs-6.8.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-101/+526
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-12-15fs: indicate request originates from old mount APIChristian Brauner1-0/+11
2023-12-14fs: keep struct mnt_id_req extensibleChristian Brauner1-4/+30
2023-12-14add listmount(2) syscallMiklos Szeredi1-2/+84
2023-12-14statmount: simplify string option retrievalChristian Brauner1-102/+145
2023-12-11statmount: simplify numeric option retrievalChristian Brauner1-25/+17
2023-12-11add statmount(2) syscallMiklos Szeredi1-0/+281
2023-11-28mnt_idmapping: remove check_fsmapping()Christian Brauner1-1/+1
2023-11-21fs: add missing @mp parameter documentationChristian Brauner1-0/+1
2023-11-18namespace: extract show_path() helperMiklos Szeredi1-0/+9
2023-11-18mounts: keep list of mounts in an rbtreeMiklos Szeredi1-101/+89
2023-11-18add unique mount IDMiklos Szeredi1-0/+4
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-8/+8
2023-10-19vfs: stop counting on gcc not messing with mnt_expiry_mark if not askedMateusz Guzik1-2/+2
2023-10-18treewide: mark stuff as __ro_after_initAlexey Dobriyan1-8/+8
2023-09-11fs: export mnt_{get,put}_write_access() to modulesAmir Goldstein1-0/+2
2023-09-11fs: rename __mnt_{want,drop}_write*() helpersAmir Goldstein1-17/+17
2023-06-26Merge tag 'v6.5/vfs.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-80/+371
2023-06-20fs: Provide helpers for manipulating sb->s_readonly_remountJan Kara1-9/+16
2023-05-19fs: allow to mount beneath top mountChristian Brauner1-48/+304
2023-05-19fs: use a for loop when locking a mountChristian Brauner1-21/+28
2023-05-19fs: properly document __lookup_mnt()Christian Brauner1-3/+19
2023-05-19fs: add path_mounted()Christian Brauner1-12/+24
2023-04-24Merge tag 'pull-fd' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-6/+6
2023-04-24Merge tag 'v6.4/vfs.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vf...Linus Torvalds1-6/+3
2023-04-20build_mount_idmapped(): switch to fdget()Al Viro1-6/+6
2023-03-31fs: drop peer group ids under namespace lockChristian Brauner1-1/+1
2023-03-15fs/namespace: fnic: Switch to use %ptTdAndy Shevchenko1-6/+3
2023-02-24Merge branch 'work.namespace' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-4/+14
2023-01-27ipc,namespace: batch free ipc_namespace structuresRik van Riel1-4/+14
2023-01-19fs: move mnt_idmapChristian Brauner1-90/+2
2023-01-19fs: port i_{g,u}id_into_vfs{g,u}id() to mnt_idmapChristian Brauner1-26/+0
2022-12-12Merge tag 'fs.idmapped.mnt_idmap.v6.2' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-34/+142
2022-11-24copy_mnt_ns(): handle a corner case (overmounted mntns bindings) sanerAl Viro1-1/+2
2022-10-31fs: introduce dedicated idmap type for mountsChristian Brauner1-34/+142
2022-08-17fs: require CAP_SYS_ADMIN in target namespace for idmapped mountsSeth Forshee1-0/+7
2022-07-05switch try_to_unlazy_next() to __legitimize_mnt()Al Viro1-1/+1
2022-06-04Merge tag 'pull-18-rc1-work.mount' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-1/+1
2022-05-19uninline may_mount() and don't opencode it in fspick(2)/fsopen(2)Al Viro1-1/+1
2022-05-12fs: hold writers when changing mount's idmappingChristian Brauner1-2/+3
2022-04-21fs: unset MNT_WRITE_HOLD on failureChristian Brauner1-1/+13
2022-04-01Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-11/+12
2022-03-24Merge tag 'fs.rt.v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/brau...Linus Torvalds1-2/+18
2022-03-24Merge tag 'fs.v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner...Linus Torvalds1-70/+78
2022-03-22mount: warn only once about timestamp range expirationAnthony Iliopoulos1-0/+2
2022-03-15mount_setattr(): clean the control flow and calling conventionsAl Viro1-42/+40
2022-02-14fs: clean up mount_setattr control flowChristian Brauner1-41/+43
2022-02-14fs: don't open-code mnt_hold_writers()Christian Brauner1-5/+2
2022-02-14fs: simplify check in mount_setattr_commit()Christian Brauner1-7/+2
2022-02-14fs: add mnt_allow_writers() and simplify mount_setattr_prepare()Christian Brauner1-6/+22
2022-02-14fs: add kernel doc for mnt_{hold,unhold}_writers()Christian Brauner1-0/+30
2022-02-13clean overflow checks in count_mounts() a bitAl Viro1-9/+10
2022-01-30constify struct path argument of finish_automount()/do_add_mount()Al Viro1-2/+2
2022-01-22fs: move namespace sysctls and declare fs base directoryLuis Chamberlain1-1/+23
2022-01-11Merge tag 'fs.idmapped.v5.17' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-14/+39
2021-12-30fs/mount_setattr: always cleanup mount_kattrChristian Brauner1-5/+4
2021-12-05fs: support mapped mounts of mapped filesystemsChristian Brauner1-13/+38
2021-12-03fs: add is_idmapped_mnt() helperChristian Brauner1-1/+1
2021-11-26fs/namespace: Boost the mount_lock.lock owner instead of spinning on PREEMPT_RT.Sebastian Andrzej Siewior1-2/+18
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+4
2021-09-03memcg: enable accounting for new namesapces and struct nsproxyVasily Averin1-1/+1
2021-09-03memcg: enable accounting for mnt_cache entriesVasily Averin1-2/+3
2021-08-31Merge tag 'fs.move_mount.move_mount_set_group.v5.15' of git://git.kernel.org/...Linus Torvalds1-1/+76
2021-08-23fs: remove mandatory file locking supportJeff Layton1-19/+10
2021-08-21Merge tag 'locks-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/jlay...Linus Torvalds1-1/+5
2021-08-21fs: warn about impending deprecation of mandatory locksJeff Layton1-1/+5
2021-08-10ovl: prevent private clone if bind mount is not allowedMiklos Szeredi1-14/+28
2021-07-26move_mount: allow to add a mount into an existing groupPavel Tikhomirov1-1/+76
2021-06-01mount: Support "nosymfollow" in new mount apiChristian Brauner1-3/+6
2021-05-12fs/mount_setattr: tighten permission checksChristian Brauner1-1/+5
2021-03-31fs/namespace: correct/improve kernel-doc notationRandy Dunlap1-6/+8
2021-02-27Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-33/+20
2021-01-24fs: introduce MOUNT_ATTR_IDMAPChristian Brauner1-7/+115
2021-01-24fs: add mount_setattr()Christian Brauner1-0/+263
2021-01-24fs: add attr_flags_to_mnt_flags helperChristian Brauner1-16/+24
2021-01-24fs: split out functions to hold writersChristian Brauner1-6/+18
2021-01-24namespace: only take read lock in do_reconfigure_mnt()Christian Brauner1-6/+6
2021-01-24mount: make {lock,unlock}_mount_hash() staticChristian Brauner1-0/+10
2021-01-24namespace: take lock_mount_hash() directly when changing flagsChristian Brauner1-14/+8
2021-01-24mount: attach mappings to mountsChristian Brauner1-0/+9
2021-01-04umount(2): move the flag validity checks firstAl Viro1-2/+5
2021-01-04vfs: don't unnecessarily clone write access for writable fdsEric Biggers1-33/+20
2020-12-25Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-3/+6
2020-12-14Merge tag 'fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brau...Linus Torvalds1-2/+2
2020-12-10fs/namespace.c: WARN if mnt_count has become negativeEric Biggers1-3/+6
2020-10-24Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+2
2020-10-17task_work: cleanup notification modesJens Axboe1-1/+1
2020-10-12Merge branch 'compat.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2020-09-22fs: remove compat_sys_mountChristoph Hellwig1-2/+2
2020-09-04fs: Handle intra-page faults in copy_mount_options()Catalin Marinas1-7/+18
2020-08-27Add a "nosymfollow" mount option.Mattias Nissler1-0/+2
2020-08-19mnt: Use generic ns_common::countKirill Tkhai1-2/+2
2020-08-07Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-14/+18
2020-08-07fs: fix a struct path leak in path_umountChristoph Hellwig1-14/+18
2020-08-07Merge branch 'hch.init_path' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-54/+53