The patch titled user namespace: remove exceptions for initial namespace has been removed from the -mm tree. Its filename was user_ns-handle-file-sigio-fix-2.patch This patch was dropped because it was folded into user_ns-handle-file-sigio.patch ------------------------------------------------------ Subject: user namespace: remove exceptions for initial namespace From: Serge E. Hallyn <serue@xxxxxxxxxx> Both sigio and file access checks for user namespace equivalence were being skipped for processes in the initial namespace. Remove these exceptions, enforcing the same cross-namespace checks for all processes in all user namespaces. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> Cc: Serge E. Hallyn <serue@xxxxxxxxxx> Cc: Herbert Poetzl <herbert@xxxxxxxxxxxx> Cc: Kirill Korotaev <dev@xxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/fcntl.c | 3 +-- include/linux/sched.h | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff -puN fs/fcntl.c~user_ns-handle-file-sigio-fix-2 fs/fcntl.c --- a/fs/fcntl.c~user_ns-handle-file-sigio-fix-2 +++ a/fs/fcntl.c @@ -460,8 +460,7 @@ static const long band_table[NSIGPOLL] = static inline int sigio_perm(struct task_struct *p, struct fown_struct *fown, int sig) { - if (fown->user_ns != init_task.nsproxy->user_ns && - fown->user_ns != p->nsproxy->user_ns) + if (fown->user_ns != p->nsproxy->user_ns) return 0; return (((fown->euid == 0) || (fown->euid == p->suid) || (fown->euid == p->uid) || diff -puN include/linux/sched.h~user_ns-handle-file-sigio-fix-2 include/linux/sched.h --- a/include/linux/sched.h~user_ns-handle-file-sigio-fix-2 +++ a/include/linux/sched.h @@ -1609,12 +1609,10 @@ extern int cond_resched_softirq(void); static inline int task_mnt_same_uidns(struct task_struct *tsk, struct vfsmount *mnt) { - if (tsk->nsproxy == init_task.nsproxy) + if (mnt->mnt_user_ns == tsk->nsproxy->user_ns) return 1; if (mnt->mnt_flags & MNT_SHARE_NS) return 1; - if (mnt->mnt_user_ns == tsk->nsproxy->user_ns) - return 1; return 0; } #else _ 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 introduce-and-use-get_task_mnt_ns.patch nsproxy-externalizes-exit_task_namespaces.patch user-namespace-add-the-framework.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-implement-shared-mounts.patch user_ns-handle-file-sigio.patch user_ns-handle-file-sigio-fix-2.patch user-ns-implement-user-ns-unshare.patch user-ns-implement-user-ns-unshare-tidy.patch rename-attach_pid-to-find_attach_pid.patch attach_pid-with-struct-pid-parameter.patch remove-find_attach_pid.patch statically-initialize-struct-pid-for-swapper.patch explicitly-set-pgid-sid-of-init.patch uts-namespace-remove-config_uts_ns.patch ipc-namespace-remove-config_ipc_ns.patch ipc-namespace-remove-config_ipc_ns-linkage-fix.patch ipc-namespace-remove-config_ipc_ns-linkage-fix-fix.patch integrity-service-api-and-dummy-provider-fix.patch sysctl-move-utsname-sysctls-to-their-own-file.patch sysctl-move-sysv-ipc-sysctls-to-their-own-file.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