diff options
| author | Jiri Slaby <[email protected]> | 2009-11-14 16:37:04 +0000 |
|---|---|---|
| committer | Jiri Slaby <[email protected]> | 2010-07-16 07:48:47 +0000 |
| commit | 86f162f4c75ceb6daf43165469eeeca1bc3d4639 (patch) | |
| tree | bca0e9d28d636fbaefb1846bdb85d9b57708df11 /security/selinux/hooks.c | |
| parent | rlimits: allow setrlimit to non-current tasks (diff) | |
| download | kernel-86f162f4c75ceb6daf43165469eeeca1bc3d4639.tar.gz kernel-86f162f4c75ceb6daf43165469eeeca1bc3d4639.zip | |
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 <[email protected]>
Acked-by: James Morris <[email protected]>
Cc: Heiko Carstens <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
