aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
AgeCommit message (Expand)AuthorFilesLines
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
2013-10-24fold mntfree() into mntput_no_expire()Al Viro1-23/+16
2013-10-24do_remount(): pull touch_mnt_namespace() upAl Viro1-5/+1
2013-10-24dup_mnt_ns(): get rid of pointless grabbing of vfsmount_lockAl Viro1-2/+0
2013-10-24fs_is_visible only needs namespace_sem held sharedAl Viro1-2/+2
2013-10-24initialize namespace_sem staticallyAl Viro1-3/+1
2013-10-24put_mnt_ns(): use drop_collected_mounts()Al Viro1-5/+1
2013-09-11initmpfs: move rootfs code from fs/ramfs/ to init/Rob Landley1-1/+1
2013-09-08rename user_path_umountat() to user_path_mountpoint_at()Al Viro1-1/+1
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-6/+5
2013-09-07Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-26/+95
2013-09-05vfs: check unlinked ancestors before mountMiklos Szeredi1-6/+5
2013-09-03vfs: allow umount to handle mountpoints without revalidating themJeff Layton1-1/+1
2013-08-30userns: Kill nsown_capable it makes the wrong thing easyEric W. Biederman1-2/+2
2013-08-26userns: Better restrictions on when proc and sysfs can be mountedEric W. Biederman1-12/+25
2013-08-26vfs: Don't copy mount bind mounts of /proc/<pid>/ns/mnt between namespacesEric W. Biederman1-12/+34
2013-08-24VFS: collect_mounts() should return an ERR_PTRDan Carpenter1-1/+1
2013-07-24vfs: Lock in place mounts from more privileged usersEric W. Biederman1-0/+34
2013-05-04create_mnt_ns: unidiomatic use of list_add()Al Viro1-1/+1
2013-05-04do_mount(): fix a leak introduced in 3.9 ("mount: consolidate permission chec...Al Viro1-3/+2
2013-05-01Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-146/+195
2013-05-01proc: Split the namespace stuff out into linux/proc_ns.hDavid Howells1-3/+3
2013-04-09Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2013-04-09fold release_mounts() into namespace_unlock()Al Viro1-23/+30
2013-04-09switch unlock_mount() to namespace_unlock(), convert all umount_tree() callersAl Viro1-19/+14
2013-04-09more conversions to namespace_unlock()Al Viro1-14/+6
2013-04-09get rid of the second argument of shrink_submounts()Al Viro1-4/+4
2013-04-09saner umount_tree()/release_mounts(), part 1Al Viro1-4/+13
2013-04-09get rid of full-hash scan on detaching vfsmountsAl Viro1-92/+137
2013-04-09mnt: release locks on error path in do_loopbackAndrey Vagin1-1/+1
2013-03-27userns: Restrict when proc and sysfs can be mountedEric W. Biederman1-0/+21
2013-03-27vfs: Carefully propogate mounts across user namespacesEric W. Biederman1-1/+5
2013-03-27vfs: Add a mount flag to lock read only bind mountsEric W. Biederman1-0/+3
2013-03-27userns: Don't allow creation if the user is chrootedEric W. Biederman1-0/+24
2013-02-22new helper: file_inode(file)Al Viro1-1/+1
2013-02-22mount: consolidate permission checksAl Viro1-33/+7
2013-02-22get rid of unprotected dereferencing of mnt->mnt_nsAl Viro1-12/+17
2012-12-20vfs, freeze: use ACCESS_ONCE() to guard access to ->mnt_flagsMiao Xie1-1/+1
2012-12-14userns: Require CAP_SYS_ADMIN for most uses of setns.Eric W. Biederman1-1/+2
2012-11-20proc: Usable inode numbers for the namespace file descriptors.Eric W. Biederman1-0/+14
2012-11-19userns: fix return value on mntns_install() failureZhao Hongjiang1-1/+1
2012-11-19vfs: Allow unprivileged manipulation of the mount namespace.Eric W. Biederman1-26/+43
2012-11-19vfs: Only support slave subtrees across different user namespacesEric W. Biederman1-3/+8
2012-11-19vfs: Add a user namespace reference from struct mnt_namespaceEric W. Biederman1-8/+16
2012-11-19vfs: Add setns support for the mount namespaceEric W. Biederman1-0/+95
2012-10-12vfs: define struct filename and have getname() return itJeff Layton1-2/+2
2012-10-11consitify do_mount() argumentsAl Viro1-6/+6
2012-09-22do_add_mount()/umount -l racesAl Viro1-2/+8
2012-07-31fs: Add freezing handling to mnt_want_write() / mnt_drop_write()Jan Kara1-20/+77
2012-07-14VFS: Comment mount following codeDavid Howells1-2/+14