vfs: Don't allow a user namespace root to make device nodes
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 13 Nov 2011 20:16:43 +0000 (12:16 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 3 Apr 2012 11:28:51 +0000 (04:28 -0700)
commit975d6b3932d43b87a48d2107264ed0c9a7541d8d
treead82038ec23ccb2bdb00c1cdc13ae595e5a4dfbe
parentdd775ae2549217d3ae09363e3edb305d0fa19928
vfs: Don't allow a user namespace root to make device nodes

Safely making device nodes in a container is solvable but simply
having the capability in a user namespace is not sufficient to make
this work.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/namei.c