diff options
author | Oleg Nesterov <oleg@redhat.com> | 2010-06-23 22:43:32 +0200 |
---|---|---|
committer | Jiri Slaby <jirislaby@gmail.com> | 2010-07-16 09:48:46 +0200 |
commit | eb2d55a32b9a91bca0dea299eedb560bafa8b14e (patch) | |
tree | 1ba1a701c56614fc03d282b572164e1c409a0df0 /mm | |
parent | 2fb9d2689a0041b88b25bc3187eada2968e25995 (diff) | |
download | op-kernel-dev-eb2d55a32b9a91bca0dea299eedb560bafa8b14e.zip op-kernel-dev-eb2d55a32b9a91bca0dea299eedb560bafa8b14e.tar.gz |
rlimits: selinux, do rlimits changes under task_lock
When doing an exec, selinux updates rlimits in its code of current
process depending on current max. Make sure max or cur doesn't change
in the meantime by grabbing task_lock which do_prlimit needs for
changing limits too.
While at it, use rlimit helper for accessing CPU rlimit a line below.
To have a volatile access too.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions