]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Don't return EAGAIN to keyctl_assume_authority()
authorDavid Howells <dhowells@redhat.com>
Mon, 13 Jun 2011 21:33:52 +0000 (22:33 +0100)
committerJames Morris <jmorris@namei.org>
Tue, 14 Jun 2011 05:03:29 +0000 (15:03 +1000)
commit33ee7b5f2c99e52354a9a7e724030916b0b9c67e
tree47ae7c273186e49a49440f95d0655cc538e2b829
parente4a295acf056954b47d45cbab5ea53b67244c730
KEYS: Don't return EAGAIN to keyctl_assume_authority()

Don't return EAGAIN to keyctl_assume_authority() to indicate that a key could
not be found (ENOKEY is only returned if a negative key is found).  Instead
return ENOKEY in both cases.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/request_key_auth.c