The patch titled user ns fixes has been added to the -mm tree. Its filename is user-namespace-add-the-framework-fixes.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: user ns fixes From: "Serge E. Hallyn" <serue@xxxxxxxxxx> Don't do user_ns permission checks when !CONFIG_USER_NS. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- include/linux/sched.h | 8 ++++++++ include/linux/user_namespace.h | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff -puN include/linux/sched.h~user-namespace-add-the-framework-fixes include/linux/sched.h --- a/include/linux/sched.h~user-namespace-add-the-framework-fixes +++ a/include/linux/sched.h @@ -1582,6 +1582,7 @@ extern int cond_resched(void); extern int cond_resched_lock(spinlock_t * lock); extern int cond_resched_softirq(void); +#ifdef CONFIG_USER_NS /* * Does a critical section need to be broken due to another * task waiting?: @@ -1602,6 +1603,13 @@ static inline int lock_need_resched(spin return 1; return 0; } +#else +static inline int task_mnt_same_uidns(struct task_struct *tsk, + struct vfsmount *mnt) +{ + return 1; +} +#endif /* Reevaluate whether the task has signals pending delivery. This is required every time the blocked sigset_t changes. diff -puN include/linux/user_namespace.h~user-namespace-add-the-framework-fixes include/linux/user_namespace.h --- a/include/linux/user_namespace.h~user-namespace-add-the-framework-fixes +++ a/include/linux/user_namespace.h @@ -34,6 +34,16 @@ static inline void put_user_ns(struct us kref_put(&ns->kref, free_user_ns); } +static inline int clone_mnt_userns_permission(struct vfsmount *old) +{ + if (!(old->mnt_flags & MNT_SHARE_NS)) { + if (old->mnt_user_ns != current->nsproxy->user_ns) + return 0; + } + + return 1; +} + #else static inline struct user_namespace *get_user_ns(struct user_namespace *ns) @@ -49,6 +59,11 @@ static inline int copy_user_ns(int flags static inline void put_user_ns(struct user_namespace *ns) { } + +static inline int clone_mnt_userns_permission(struct vfsmount *old) +{ + return 1; +} #endif #endif /* _LINUX_USER_H */ _ Patches currently in -mm which might be from serue@xxxxxxxxxx are implement-file-posix-capabilities.patch file-capabilities-dont-do-file-caps-if-mnt_nosuid.patch file-capabilities-honor-secure_noroot.patch nsproxy-externalizes-exit_task_namespaces.patch user-namespace-add-the-framework.patch user-namespace-add-the-framework-fix.patch user-namespace-add-the-framework-fixes.patch user-ns-add-user_namespace-ptr-to-vfsmount.patch user-ns-hook-permission.patch user-ns-prepare-copy_tree-copy_mnt-and-their-callers-to-handle-errs.patch user-ns-prepare-copy_tree-copy_mnt-and-their-callers-to-handle-errs-fix.patch user-ns-implement-shared-mounts.patch user-ns-implement-shared-mounts-fixes.patch user_ns-handle-file-sigio.patch user-ns-implement-user-ns-unshare.patch user-ns-implement-user-ns-unshare-tidy.patch user-ns-always-on.patch integrity-service-api-and-dummy-provider-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html