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)
commit37b11804ed1725dc2ea97be2236150210a69e9d5
treecc8feef112a36a4b9e10ac60d673000f7de3716a
parenta475acf01f79e89a1a5845733e10108d80f77188
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