]> git.baikalelectronics.ru Git - kernel.git/commit
userns: Handle -1 in k[ug]id_has_mapping when !CONFIG_USER_NS
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 27 Jun 2016 20:52:48 +0000 (15:52 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 30 Jun 2016 23:04:36 +0000 (18:04 -0500)
commitc5f623f72613cd6a1c7b1d54bc75ef658702976c
treecc8feef112a36a4b9e10ac60d673000f7de3716a
parent396de083b1bf4b55ed04e4144876c9f046bb32ff
userns: Handle -1 in k[ug]id_has_mapping when !CONFIG_USER_NS

Refuse to admit any user namespace has a mapping of the INVALID_UID
and the INVALID_GID when !CONFIG_USER_NS.

Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/uidgid.h