aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
AgeCommit message (Expand)AuthorFilesLines
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 209Thomas Gleixner1-1/+1
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
2018-04-02fs: add ksys_mount() helper; remove in-kernel calls to sys_mount()Dominik Brodowski1-2/+8
2017-12-09VFS: Handle lazytime in do_mount()Markus Trippelsdorf1-0/+1
2017-10-25locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns ...Mark Rutland1-1/+1
2017-10-17vfs: fix mounting a filesystem with i_versionMimi Zohar1-1/+2
2017-10-05ovl: fix may_write_real() for overlayfs directoriesAmir Goldstein1-1/+3
2017-09-14Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-5/+3
2017-09-14Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-28/+34
2017-09-05ovl: don't allow writing ioctl on lower layerMiklos Szeredi1-3/+61
2017-08-28namespace.c: Don't reinvent the wheel but use existing llist APIByungchul Park1-5/+3
2017-07-17VFS: Differentiate mount flags (MS_*) from internal superblock flagsDavid Howells1-25/+31
2017-07-17VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)David Howells1-3/+3
2017-07-15Merge branch 'work.mount' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-61/+2
2017-07-11VFS: Kill off s_options and helpersDavid Howells1-59/+0
2017-07-06mm: update callers to use HASH_ZERO flagPavel Tatashin1-8/+2
2017-07-06VFS: Clean up whitespace in fs/namespace.c and fs/super.cDavid Howells1-2/+2
2017-07-05Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-0/+1
2017-06-15fs: don't forget to put old mntns in mntns_installAndrei Vagin1-0/+2
2017-05-23mnt: In propgate_umount handle visiting mounts in any orderEric W. Biederman1-1/+1
2017-05-23mnt: In umount propagation reparent in a separate passEric W. Biederman1-0/+1
2017-05-12Merge branch 'work.sane_pwd' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+11
2017-04-21make sure that mntns_install() doesn't end up with referral for rootAl Viro1-7/+11
2017-04-10fsnotify: Free fsnotify_mark_connector when there is no mark attachedJan Kara1-3/+0
2017-04-10fsnotify: Move mark list head from object into dedicated structureJan Kara1-3/+3
2017-03-02sched/headers: Prepare to move 'init_task' and 'init_thread_union' from <linu...Ingo Molnar1-0/+2
2017-03-02sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>Ingo Molnar1-0/+1
2017-02-04mnt: Tuck mounts under others instead of creating shadow/side mounts.Eric W. Biederman1-50/+60
2017-02-02fs: Better permission checking for submountsEric W. Biederman1-1/+16
2017-01-10mnt: Protect the mountpoint hashtable with mount_lockEric W. Biederman1-19/+45
2016-12-22Merge branch 'work.namespace' into for-linusAl Viro1-6/+2
2016-12-16Merge branch 'work.autofs' into for-linusAl Viro1-0/+29
2016-12-16reorganize do_make_slave()Al Viro1-0/+2
2016-12-16clone_private_mount() doesn't need to touch namespace_semAl Viro1-2/+0
2016-12-16remove a bogus claim about namespace_sem being held by callers of mnt_alloc_id()Al Viro1-4/+0
2016-12-05namespace.c: constify struct path passed to a bunch of primitivesAl Viro1-4/+4
2016-12-05fs: Constify path_is_under()'s argumentsMickaël Salaün1-1/+1
2016-12-03vfs: add path_is_mountpoint() helperIan Kent1-0/+29
2016-10-15Merge tag 'gcc-plugins-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+1
2016-10-10latent_entropy: Mark functions with __latent_entropyEmese Revfy1-0/+1
2016-10-10Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-09-30mnt: Add a per mount namespace limit on the number of mountsEric W. Biederman1-1/+48
2016-09-22Merge branch 'nsfs-ioctls' into HEADEric W. Biederman1-0/+6
2016-09-22kernel: add a helper to get an owning user namespace for a namespaceAndrey Vagin1-0/+6
2016-09-22userns: When the per user per user namespace limit is reached return ENOSPCEric W. Biederman1-1/+1
2016-09-16locks: fix file locking on overlayfsMiklos Szeredi1-1/+1
2016-08-31mntns: Add a limit on the number of mount namespaces.Eric W. Biederman1-1/+21
2016-07-29Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-52/+47
2016-07-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-0/+1
2016-06-30namespace: update event counter when umounting a deleted dentryAndrey Ulanov1-0/+1
2016-06-24fs: Treat foreign mounts as nosuidAndy Lutomirski1-0/+13
2016-06-23userns: Remove implicit MNT_NODEV fragility.Eric W. Biederman1-18/+1
2016-06-23mnt: Simplify mount_too_revealingEric W. Biederman1-17/+8
2016-06-23mnt: Move the FS_USERNS_MOUNT check into sget_usernsEric W. Biederman1-4/+0
2016-06-23mnt: Refactor fs_fully_visible into mount_too_revealingEric W. Biederman1-13/+25
2016-06-15mnt: Account for MS_RDONLY in fs_fully_visibleEric W. Biederman1-0/+4
2016-06-06mnt: fs_fully_visible test the proper mount for MNT_LOCKEDEric W. Biederman1-1/+1
2016-06-06mnt: If fs_fully_visible fails call put_filesystem.Eric W. Biederman1-1/+3
2016-01-22wrappers for ->i_mutex accessAl Viro1-5/+5
2016-01-12Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-20/+19
2016-01-04saner calling conventions for copy_mount_options()Al Viro1-18/+17
2015-12-06fs/namespace.c: path_is_under can be booleanYaowei Bai1-2/+2
2015-11-16locks: Don't allow mounts in user namespaces to enable mandatory lockingEric W. Biederman1-1/+1
2015-11-16locks: Allow disabling mandatory locking at compile timeJeff Layton1-0/+10
2015-09-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-8/+25
2015-07-23mnt: In detach_mounts detach the appropriate unmounted mountEric W. Biederman1-5/+2
2015-07-22mnt: Clarify and correct the disconnect logic in umount_treeEric W. Biederman1-4/+31
2015-07-10mnt: fs_fully_visible enforce noexec and nosuid if !SB_I_NOEXECEric W. Biederman1-8/+25
2015-07-03Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-6/+33
2015-07-01mnt: Update fs_fully_visible to test for permanently empty directoriesEric W. Biederman1-3/+2
2015-07-01vfs: Ignore unlocked mounts in fs_fully_visibleEric W. Biederman1-2/+6
2015-06-30fs: use seq_open_private() for proc_mountsYann Droneaud1-3/+3
2015-06-04mnt: Modify fs_fully_visible to deal with locked ro nodev and atimeEric W. Biederman1-3/+21
2015-05-13mnt: Refactor the logic for mounting sysfs and proc in a user namespaceEric W. Biederman1-1/+7
2015-05-11new helper: __legitimize_mnt()Al Viro1-8/+19
2015-05-09mnt: Fix fs_fully_visible to verify the root directory is visibleEric W. Biederman1-0/+6
2015-04-09mnt: Update detach_mounts to leave mounts connectedEric W. Biederman1-2/+6
2015-04-09mnt: Fix the error check in __detach_mountsEric W. Biederman1-1/+1
2015-04-09mnt: Honor MNT_LOCKED when detaching mountsEric W. Biederman1-3/+26
2015-04-09mnt: Factor umount_mnt from umount_treeEric W. Biederman1-3/+11
2015-04-09mnt: Factor out unhash_mnt from detach_mnt and umount_treeEric W. Biederman1-9/+12
2015-04-09mnt: Fail collect_mounts when applied to unmounted mountsEric W. Biederman1-2/+5
2015-04-02mnt: On an unmount propagate clearing of MNT_LOCKEDEric W. Biederman1-0/+3
2015-04-02mnt: Delay removal from the mount hash.Eric W. Biederman1-5/+8
2015-04-02mnt: Add MNT_UMOUNT flagEric W. Biederman1-1/+3
2015-04-02mnt: In umount_tree reuse mnt_list instead of mnt_hashEric W. Biederman1-9/+11
2015-04-02mnt: Don't propagate umounts in __detach_mountsEric W. Biederman1-1/+1
2015-04-02mnt: Improve the umount_tree flagsEric W. Biederman1-15/+16
2015-04-02mnt: Use hlist_move_list in namespace_unlockEric W. Biederman1-7/+5
2015-02-22VFS: (Scripted) Convert S_ISLNK/DIR/REG(dentry->d_inode) to d_is_*(dentry)David Howells1-5/+5
2015-02-17Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-27/+17
2015-02-13fs/namespace: convert devname allocation to kstrdup_constAndrzej Hajda1-3/+3
2015-01-25switch the IO-triggering parts of umount to fs_pinAl Viro1-27/+17
2014-12-18mnt: Fix a memory stomp in umountEric W. Biederman1-0/+2
2014-12-17Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-3/+15
2014-12-10take the targets of /proc/*/ns/* symlinks to separate fsAl Viro1-3/+6
2014-12-04bury struct proc_ns in fs/procAl Viro1-11/+2
2014-12-04copy address of proc_ns_ops into ns_commonAl Viro1-0/+1
2014-12-04new helpers: ns_alloc_inum/ns_free_inumAl Viro1-2/+2
2014-12-04make proc_ns_operations work with struct ns_common * instead of void *Al Viro1-10/+3
2014-12-04make mntns ->get()/->put()/->install()/->inum() work with &mnt_ns->nsAl Viro1-8/+13
2014-12-04common object embedded into various struct ....nsAl Viro1-3/+3
2014-12-02mnt: Clear mnt_expire during pivot_rootEric W. Biederman1-0/+2
2014-12-02mnt: Carefully set CL_UNPRIVILEGED in clone_mntEric W. Biederman1-1/+2
2014-12-02mnt: Move the clear of MNT_LOCKED from copy_tree to it's callers.Eric W. Biederman1-1/+0
2014-12-02umount: Do not allow unmounting rootfs.Eric W. Biederman1-0/+1
2014-12-02umount: Disallow unprivileged mount forceEric W. Biederman1-0/+3
2014-12-02mnt: Implicitly add MNT_NODEV on remount when it was implicitly added by mountEric W. Biederman1-1/+7
2014-10-24vfs: introduce clone_private_mount()Miklos Szeredi1-0/+27
2014-10-15Merge branch 'CVE-2014-7970' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+3
2014-10-14mnt: Prevent pivot_root from creating a loop in the mount treeEric W. Biederman1-0/+3
2014-10-14Merge branch 'CVE-2014-7975' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+2
2014-10-09vfs: move getname() from callers to do_mount()Seunghun Lee1-16/+3
2014-10-09fs: namespace: suppress 'may be used uninitialized' warningsTim Gardner1-18/+8
2014-10-09vfs: Add a function to lazily unmount all mounts from any dentry.Eric W. Biederman1-0/+31
2014-10-09vfs: factor out lookup_mountpoint from new_mountpointEric W. Biederman1-3/+12
2014-10-09vfs: Keep a list of mounts on a mount pointEric W. Biederman1-0/+6
2014-10-09vfs: Don't allow overwriting mounts in the current mount namespaceEric W. Biederman1-0/+35
2014-10-09delayed mntputAl Viro1-18/+53
2014-10-08fs: Add a missing permission check to do_umountAndy Lutomirski1-0/+2
2014-08-30fix EBUSY on umount() from MNT_SHRINKABLEAl Viro1-0/+6
2014-08-30get rid of propagate_umount() mistakenly treating slaves as busy.Al Viro1-1/+3
2014-08-11Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-34/+33
2014-08-11fix copy_tree() regressionAl Viro1-7/+24
2014-08-09Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-10/+55
2014-08-07death to mnt_pinnedAl Viro1-26/+9
2014-08-07make fs/{namespace,super}.c forget about acct.hAl Viro1-2/+1
2014-08-07acct: get rid of acct_listAl Viro1-1/+1
2014-08-06list: fix order of arguments for hlist_add_after(_rcu)Ken Helias1-1/+1
2014-07-31mnt: Change the default remount atime from relatime to the existing valueEric W. Biederman1-0/+8
2014-07-31mnt: Correct permission checks in do_remountEric W. Biederman1-3/+33
2014-07-31mnt: Move the test for MNT_LOCK_READONLY from change_mount_flags into do_remountEric W. Biederman1-3/+10
2014-07-31mnt: Only change user settable mount flags in remountEric W. Biederman1-1/+1
2014-07-29namespaces: Use task_lock and not rcu to protect nsproxyEric W. Biederman1-3/+3
2014-04-01VFS: Make delayed_free() call free_vfsmnt()David Howells1-12/+8
2014-04-01mark struct file that had write access grabbed by open()Al Viro1-3/+1
2014-04-01reduce m_start() cost...Al Viro1-3/+18
2014-04-01smarter propagate_mnt()Al Viro1-3/+8
2014-03-30switch mnt_hash to hlistAl Viro1-36/+43
2014-03-30don't bother with propagate_mnt() unless the target is sharedAl Viro1-10/+7
2014-03-30keep shadowed vfsmounts togetherAl Viro1-9/+23
2014-03-30resizable namespace.c hashesAl Viro1-23/+58
2014-01-20Merge tag 'driver-core-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+2
2013-11-29sysfs, kernfs: prepare mount path for kernfsTejun Heo1-0/+2
2013-11-26vfs: Fix a regression in mounting procEric W. Biederman1-1/+1
2013-11-09RCU'd vfsmountsAl Viro1-48/+87
2013-10-24split __lookup_mnt() in two functionsAl Viro1-19/+23
2013-10-24new helpers: lock_mount_hash/unlock_mount_hashAl Viro1-48/+48
2013-10-24namespace.c: get rid of mnt_ghostsAl Viro1-15/+7
2013-10-24fold dup_mnt_ns() into its only surviving callerAl Viro1-30/+18
2013-10-24mnt_set_expiry() doesn't need vfsmount_lockAl Viro1-2/+0
2013-10-24finish_automount() doesn't need vfsmount_lock for removal from expiry listAl Viro1-2/+0
2013-10-24fs/namespace.c: bury long-dead defineAl Viro1-2/+0