userns: Handle invalid ids consistently in k[ug]id_has_mapping()
Calling these functions with an invlid id returnse false if user namespaces are enabled and true if they are disabled. INVALID_[UG]ID are never included in any mapping, so fix the CONFIG_USER_NS=n to return false for invalid ids. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Showing
Please register or sign in to comment