]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] selinux: fix tty locking
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 26 Sep 2006 06:32:03 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:53 +0000 (08:48 -0700)
commit8c927d24f0bcabf75e65f7981b0f5abf97438901
treef807fb699dcec3f40a8de1a5c64f3653cf68bb6a
parentbeec4a64e60a5603e7db3745a221ec1ae5c28423
[PATCH] selinux: fix tty locking

Take tty_mutex when accessing ->signal->tty in selinux code.  Noted by Alan
Cox.  Longer term, we are looking at refactoring the code to provide better
encapsulation of the tty layer, but this is a simple fix that addresses the
immediate bug.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Alan Cox <alan@redhat.com>
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