Reimplement RLIMIT_MSGQUEUE on top of ucounts
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. Signed-off-by:Alexey Gladkov <legion@kernel.org> Link: https://lkml.kernel.org/r/2531f42f7884bbfee56a978040b3e0d25cdf6cde.1619094428.git.legion@kernel.org Signed-off-by:
Eric W. Biederman <ebiederm@xmission.com>
Showing
- include/linux/sched/user.h 0 additions, 4 deletionsinclude/linux/sched/user.h
- include/linux/user_namespace.h 1 addition, 0 deletionsinclude/linux/user_namespace.h
- ipc/mqueue.c 21 additions, 19 deletionsipc/mqueue.c
- kernel/fork.c 1 addition, 0 deletionskernel/fork.c
- kernel/ucount.c 1 addition, 0 deletionskernel/ucount.c
- kernel/user_namespace.c 1 addition, 0 deletionskernel/user_namespace.c
Please register or sign in to comment