Skip to content
Commit df75e774 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

userns: When the per user per user namespace limit is reached return ENOSPC



The current error codes returned when a the per user per user
namespace limit are hit (EINVAL, EUSERS, and ENFILE) are wrong.  I
asked for advice on linux-api and it we made clear that those were
the wrong error code, but a correct effor code was not suggested.

The best general error code I have found for hitting a resource limit
is ENOSPC.  It is not perfect but as it is unambiguous it will serve
until someone comes up with a better error code.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 9c722e40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment