From: Jiri Slaby Date: Sat, 14 Nov 2009 16:37:04 +0000 (+0100) Subject: rlimits: do security check under task_lock X-Git-Tag: v2.6.36-rc1~300^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f162f4c75ceb6daf43165469eeeca1bc3d4639;p=pandora-kernel.git rlimits: do security check under task_lock Do security_task_setrlimit under task_lock. Other tasks may change limits under our hands while we are checking limits inside the function. From now on, they can't. Note that all the security work is done under a spinlock here now. Security hooks count with that, they are called from interrupt context (like security_task_kill) and with spinlocks already held (e.g. capable->security_capable). Signed-off-by: Jiri Slaby Acked-by: James Morris Cc: Heiko Carstens --- Reading git-diff-tree failed