Re: [RFC PATCH v2 0/8] Count rlimits in each user namespace

2021-01-11 Thread Eric W. Biederman
Linus Torvalds writes: > On Sun, Jan 10, 2021 at 9:34 AM Alexey Gladkov > wrote: >> >> To address the problem, we bind rlimit counters to each user namespace. The >> result is a tree of rlimit counters with the biggest value at the root (aka >> init_user_ns). The rlimit counter

Re: [RFC PATCH v2 0/8] Count rlimits in each user namespace

2021-01-10 Thread Linus Torvalds
On Sun, Jan 10, 2021 at 9:34 AM Alexey Gladkov wrote: > > To address the problem, we bind rlimit counters to each user namespace. The > result is a tree of rlimit counters with the biggest value at the root (aka > init_user_ns). The rlimit counter increment/decrement occurs in the current > and

[RFC PATCH v2 0/8] Count rlimits in each user namespace

2021-01-10 Thread Alexey Gladkov
Preface --- These patches are for binding the rlimit counters to a user in user namespace. This patch set can be applied on top of: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11-rc2 Problem --- Some rlimits are set per user: RLIMIT_NPROC, RLIMIT_MEMLOCK,