aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
AgeCommit message (Expand)AuthorFilesLines
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
2020-07-31init: add an init_umount helperChristoph Hellwig1-2/+2
2020-07-31init: add an init_mount helperChristoph Hellwig1-1/+1
2020-07-31fs: refactor ksys_umountChristoph Hellwig1-22/+18
2020-07-31fs: refactor do_mountChristoph Hellwig1-32/+35
2020-07-14fuse: reject options on reconfigure via fsconfig(2)Miklos Szeredi1-0/+1
2020-06-10Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-4/+1
2020-06-09Merge tag 'ovl-update-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-0/+16
2020-06-04ovl: make private mounts longtermMiklos Szeredi1-0/+16
2020-06-03Merge tag 'threads-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/bra...Linus Torvalds1-4/+11
2020-06-01Merge branch 'from-miklos' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-16/+75
2020-05-29vfs: Remove duplicated d_mountpoint check in __is_local_mountpointNikolay Borisov1-4/+1
2020-05-14proc/mounts: add cursorMiklos Szeredi1-16/+75
2020-05-13nsproxy: attach to namespaces via pidfdsChristian Brauner1-0/+5
2020-05-09nsproxy: add struct nssetChristian Brauner1-4/+6
2020-04-20docs: filesystems: fix renamed referencesMauro Carvalho Chehab1-1/+1
2020-03-13LOOKUP_MOUNTPOINT: fold path_mountpointat() into path_lookupat()Al Viro1-2/+2
2020-02-27follow_automount(): get rid of dead^Wstillborn codeAl Viro1-1/+8
2020-02-27fix automount/automount race properlyAl Viro1-7/+33
2020-02-10do_add_mount(): lift lock_mount/unlock_mount into callersAl Viro1-23/+24
2020-02-03saner copy_mount_options()Al Viro1-42/+7
2020-01-04fs/namespace.c: make to_mnt_ns() staticEric Biggers1-1/+1
2019-12-12init: use do_mount() instead of ksys_mount()Dominik Brodowski1-8/+2
2019-12-08Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-3/+3
2019-10-21fs/namespace: add __user to open_tree and move_mount syscallsBen Dooks1-3/+3
2019-10-16fs/namespace.c: fix use-after-free of mount in mnt_warn_timestamp_expiry()Eric Biggers1-8/+7
2019-09-26Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2019-09-25fs/namespace: untag user pointers in copy_mount_optionsAndrey Konovalov1-1/+1
2019-09-25Merge tag 'fuse-update-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+0
2019-09-19Merge tag 'y2038-vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/p...Linus Torvalds1-1/+32
2019-09-18Merge tag 'filelock-v5.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-3/+8
2019-09-18Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-5/+5
2019-09-06vfs: subtype handling moved to fuseDavid Howells1-2/+0
2019-08-30kill the last users of user_{path,lpath,path_dir}()Al Viro1-3/+5
2019-08-30mount: Add mount warning for impending timestamp expiryDeepa Dinamani1-1/+32
2019-08-16locks: print a warning when mount fails due to lack of "mand" supportJeff Layton1-3/+8
2019-07-26fix the struct mount leak in umount_tree()Al Viro1-2/+2
2019-07-21filename_mountpoint(): make LOOKUP_NO_EVAL unconditional thereAl Viro1-2/+0
2019-07-20Merge branch 'work.dcache2' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-82/+77
2019-07-19Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-8/+7
2019-07-16switch the remnants of releasing the mountpoint away from fs_pinAl Viro1-18/+19
2019-07-16get rid of detach_mnt()Al Viro1-34/+28
2019-07-16make struct mountpoint bear the dentry reference to mountpoint, not struct mountAl Viro1-27/+25
2019-07-04mnt_init(): call shmem_init() unconditionallyAl Viro1-0/+2
2019-07-04constify ksys_mount() string argumentsAl Viro1-2/+2
2019-07-04don't bother with registering rootfsAl Viro1-6/+1
2019-07-04fs/namespace.c: shift put_mountpoint() to callers of unhash_mnt()Al Viro1-4/+6
2019-07-04__detach_mounts(): lookup_mountpoint() can't return ERR_PTR() anymoreAl Viro1-1/+1
2019-07-01vfs: move_mount: reject moving kernel internal mountsEric Biggers1-3/+4
2019-06-17fs/namespace: fix unprivileged mount propagationChristian Brauner1-0/+1
2019-06-17vfs: fsmount: add missing mntget()Eric Biggers1-0/+1
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 209Thomas Gleixner1-1/+1
2019-05-25move mount_capable() further outAl Viro1-0/+2
2019-05-09do_move_mount(): fix an unsafe use of is_anon_ns()Al Viro1-1/+1
2019-03-20vfs: syscall: Add fsmount() to create a mount for a superblockDavid Howells1-3/+143
2019-03-20teach move_mount(2) to work with OPEN_TREE_CLONEDavid Howells1-7/+55
2019-03-20vfs: syscall: Add move_mount(2) to move mounts aroundDavid Howells1-31/+95
2019-03-20vfs: syscall: Add open_tree(2) to reference or clone a mountAl Viro1-22/+135
2019-03-12Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-149/+246
2019-03-07Merge tag 'audit-pr-20190305' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-0/+2
2019-03-04Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-1/+1
2019-02-28vfs: Remove kern_mount_data()David Howells1-3/+3
2019-02-28vfs: Implement a filesystem superblock creation/configuration contextDavid Howells1-16/+9
2019-02-25Revert "x86/fault: BUG() when uaccess helpers fault on kernel addresses"Linus Torvalds1-2/+0
2019-02-01copy_mount_string: Limit string length to PATH_MAXChandan Rajendra1-1/+1
2019-01-30audit: ignore fcaps on umountRichard Guy Briggs1-0/+2
2019-01-30convert do_remount_sb() to fs_contextDavid Howells1-22/+39
2019-01-30vfs_get_tree(): evict the call of security_sb_kern_mount()Al Viro1-5/+7
2019-01-30new helper: do_new_mount_fc()David Howells1-26/+39
2019-01-30teach vfs_get_tree() to handle subtype, switch do_new_mount() to itAl Viro1-31/+46
2019-01-30new helpers: vfs_create_mount(), fc_mount()Al Viro1-24/+52
2019-01-30vfs: Introduce fs_context, switch vfs_kern_mount() to it.David Howells1-14/+32
2019-01-30saner handling of temporary namespacesAl Viro1-39/+35
2019-01-30separate copying and locking mount tree on cross-userns copiesAl Viro1-22/+37
2019-01-05Merge branch 'mount.part1' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-55/+101
2019-01-05Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2019-01-03Remove 'type' argument from access_ok() functionLinus Torvalds1-1/+1
2018-12-21LSM: hide struct security_mnt_opts from any generic codeAl Viro1-5/+4
2018-12-21new helper: security_sb_eat_lsm_opts()Al Viro1-10/+1
2018-12-21LSM: lift extracting and parsing LSM options into the caller of ->sb_remount()Al Viro1-1/+18
2018-12-20vfs: Separate changing mount flags full remountDavid Howells1-54/+92
2018-12-20vfs: Suppress MS_* flag defs within the kernel unless explicitly enabledDavid Howells1-0/+1
2018-11-29VFS: use synchronize_rcu_expedited() in namespace_unlock()NeilBrown1-1/+1
2018-11-12mnt: fix __detach_mounts infinite loopBenjamin Coddington1-3/+3
2018-11-08mount: Prevent MNT_DETACH from disconnecting locked mountsEric W. Biederman1-1/+1
2018-11-08mount: Don't allow copying MNT_UNBINDABLE|MNT_LOCKED mountsEric W. Biederman1-2/+8
2018-11-08mount: Retest MNT_LOCKED in do_umountEric W. Biederman1-2/+8
2018-10-31mm: remove include/linux/bootmem.hMike Rapoport1-1/+1
2018-09-03x86/fault: BUG() when uaccess helpers fault on kernel addressesJann Horn1-0/+2
2018-08-26Merge branch 'ida-4.19' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-38/+12
2018-08-21fs: Convert namespace IDAs to new APIMatthew Wilcox1-38/+12
2018-08-21Merge tag 'ovl-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-64/+5
2018-08-09fix __legitimize_mnt()/mntput() raceAl Viro1-0/+14
2018-08-09fix mntput/mntput raceAl Viro1-2/+12
2018-07-18vfs: fix freeze protection in mnt_want_write_file() for overlayfsMiklos Szeredi1-3/+4
2018-07-18Revert "ovl: don't allow writing ioctl on lower layer"Miklos Szeredi1-61/+3
2018-07-18Revert "ovl: fix may_write_real() for overlayfs directories"Miklos Szeredi1-3/+1
2018-05-24fs: Allow superblock owner to access do_remount_sb()Eric W. Biederman1-2/+2
2018-04-20vfs: Undo an overly zealous MS_RDONLY -> SB_RDONLY conversionDavid Howells1-1/+1
2018-04-19Don't leak MNT_INTERNAL away from internal mountsAl Viro1-1/+2
2018-04-02fs: add ksys_umount() helper; remove in-kernel call to sys_umount()Dominik Brodowski1-2/+7