[PATCH] SELinux: change isec semaphore to a mutex
authorEric Paris <eparis@redhat.com>
Tue, 26 Sep 2006 06:32:01 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:53 +0000 (08:48 -0700)
commit23970741720360de9dd0a4e87fbeb1d5927aa474
tree2dc28ddfeae751a673d43e1925fd131d6ed3e222
parent296fddf7513c155adbd3a443d12add1f62b5cddb
[PATCH] SELinux: change isec semaphore to a mutex

This patch converts the remaining isec->sem into a mutex.  Very similar
locking is provided as before only in the faster smaller mutex rather than a
semaphore.  An out_unlock path is introduced rather than the conditional
unlocking found in the original code.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c
security/selinux/include/objsec.h
security/selinux/ss/services.c