Re: [RFC PATCH v2 2/8] Add a reference to ucounts for each user

2021-01-13 Thread Eric W. Biederman
The subject is wrong. This should be: [RFC PATCH v2 2/8] Add a reference to ucounts for each cred. Further the explanation could use a little work. Something along the lines of: For RLIMIT_NPROC and some other rlimits the user_struct that holds the global limit is kept alive for the lifetime

[RFC PATCH v2 2/8] Add a reference to ucounts for each user

2021-01-10 Thread Alexey Gladkov
Before this, only the owner of the user namespace had an entry in ucounts. This entry addressed the user in the given user namespace. Now we create such an entry in ucounts for all users in the user namespace. Each user has only one entry for each user namespace. This commit is in preparation