KEYS: Remove KEY_FLAG_TRUSTED and KEY_ALLOC_TRUSTED
authorDavid Howells <dhowells@redhat.com>
Wed, 6 Apr 2016 15:14:26 +0000 (16:14 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 11 Apr 2016 21:44:15 +0000 (22:44 +0100)
commit77f68bac9481ad440f4f34dda3d28c2dce6eb87b
tree3366c0ab94b42cc67fdbe36a2af7ac6bc1a50467
parenta511e1af8b12f44c6e55786c463c9f093c214fb6
KEYS: Remove KEY_FLAG_TRUSTED and KEY_ALLOC_TRUSTED

Remove KEY_FLAG_TRUSTED and KEY_ALLOC_TRUSTED as they're no longer
meaningful.  Also we can drop the trusted flag from the preparse structure.

Given this, we no longer need to pass the key flags through to
restrict_link().

Further, we can now get rid of keyring_restrict_trusted_only() also.

Signed-off-by: David Howells <dhowells@redhat.com>
certs/system_keyring.c
include/keys/system_keyring.h
include/linux/key-type.h
include/linux/key.h
security/integrity/digsig.c
security/keys/key.c
security/keys/keyring.c