]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Unlock tasklist when exiting early from keyctl_session_to_parent
authorMarc Dionne <marc.c.dionne@gmail.com>
Mon, 14 Sep 2009 11:46:23 +0000 (12:46 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 14 Sep 2009 23:10:59 +0000 (09:10 +1000)
commit534489dddfbceb488441c72c385f8d52a79e7193
treea57a81dd9b48f8bd837ab13e319375c248cc7b89
parent461f5226a9d00a609b8d51ac2d71559116cc8a16
KEYS: Unlock tasklist when exiting early from keyctl_session_to_parent

When we exit early from keyctl_session_to_parent because of permissions or
because the session keyring is the same as the parent, we need to unlock the
tasklist.

The missing unlock causes the system to hang completely when using
keyctl(KEYCTL_SESSION_TO_PARENT) with a keyring shared with the parent.

Signed-off-by: Marc Dionne <marc.c.dionne@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/keyctl.c