]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KEYS: Add a 'trusted' flag and a 'trusted only' flag
authorDavid Howells <dhowells@redhat.com>
Thu, 17 Jan 2013 16:25:00 +0000 (16:25 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:17 +0000 (01:05 +0000)
commitff71810b38316f14ba9e97024c8c8225a4af5dbb
treea911e76b23648c641b05e32b3e60c0349f11ffa1
parentebe2e946f60e0012c02a27845bdab70e34cc4202
KEYS: Add a 'trusted' flag and a 'trusted only' flag

Add KEY_FLAG_TRUSTED to indicate that a key either comes from a trusted source
or had a cryptographic signature chain that led back to a trusted key the
kernel already possessed.

Add KEY_FLAGS_TRUSTED_ONLY to indicate that a keyring will only accept links to
keys marked with KEY_FLAGS_TRUSTED.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
include/linux/key-type.h
include/linux/key.h
kernel/system_keyring.c
security/keys/key.c
security/keys/keyring.c