]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
UBUNTU: SAUCE: (namespace) fuse: Restrict allow_other to the superblock's namespace...
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 2 Oct 2014 20:34:45 +0000 (15:34 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 29 Jan 2018 13:44:56 +0000 (07:44 -0600)
commit1223588451c6ae950fc254c7531a536a70f029b1
treec9480c85263faea4bf255af5293357ec9d9d6c89
parentb4d1889491a0b5ceaacc0b850333bbc9d627d43a
UBUNTU: SAUCE: (namespace) fuse: Restrict allow_other to the superblock's namespace or a descendant

Unprivileged users are normally restricted from mounting with the
allow_other option by system policy, but this could be bypassed
for a mount done with user namespace root permissions. In such
cases allow_other should not allow users outside the userns
to access the mount as doing so would give the unprivileged user
the ability to manipulate processes it would otherwise be unable
to manipulate. Restrict allow_other to apply to users in the same
userns used at mount or a descendant of that namespace. Also
export current_in_userns() for use by fuse when built as a
module.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/fuse/dir.c
kernel/user_namespace.c