From: Oleg Nesterov Date: Wed, 23 Jun 2010 20:43:32 +0000 (+0200) Subject: rlimits: selinux, do rlimits changes under task_lock X-Git-Tag: v2.6.36-rc1~300^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb2d55a32b9a91bca0dea299eedb560bafa8b14e;p=pandora-kernel.git 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 Cc: Oleg Nesterov --- Reading git-diff-tree failed