]> err.no Git - linux-2.6/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)
commitb20c8122a3204496fca8b5343c93b60fe11dad04
treef807fb699dcec3f40a8de1a5c64f3653cf68bb6a
parentbc7e982b84aceef0a040c88ff659eb5c83818f72
[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