linux/security/keys
Dan Carpenter 4303ef19c6 KEYS: Propagate error code instead of returning -EINVAL
This is from a Smatch check I'm writing.

strncpy_from_user() returns -EFAULT on error so the first change just
silences a warning but doesn't change how the code works.

The other change is a bug fix because install_thread_keyring_to_cred()
can return a variety of errors such as -EINVAL, -EEXIST, -ENOMEM or
-EKEYREVOKED.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-06-27 07:02:34 -07:00
..
Makefile
compat.c
gc.c KEYS: Fix RCU handling in key_gc_keyring() 2010-05-05 11:39:23 +10:00
internal.h umh: creds: convert call_usermodehelper_keys() to use subprocess_info->init() 2010-05-27 09:12:45 -07:00
key.c KEYS: Do preallocation for __key_link() 2010-05-06 22:25:02 +10:00
keyctl.c KEYS: Propagate error code instead of returning -EINVAL 2010-06-27 07:02:34 -07:00
keyring.c kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN 2010-05-25 08:07:02 -07:00
permission.c security: whitespace coding style fixes 2010-04-23 10:10:23 +10:00
proc.c Merge branch 'master' into next 2010-05-06 10:56:07 +10:00
process_keys.c umh: creds: convert call_usermodehelper_keys() to use subprocess_info->init() 2010-05-27 09:12:45 -07:00
request_key.c umh: creds: convert call_usermodehelper_keys() to use subprocess_info->init() 2010-05-27 09:12:45 -07:00
request_key_auth.c
sysctl.c
user_defined.c KEYS: Fix an RCU warning in the reading of user keys 2010-05-05 11:38:52 +10:00