OSDN Git Service

Replace magic for trusting the secondary keyring with #define
authorYannik Sembritzki <yannik@sembritzki.me>
Thu, 16 Aug 2018 13:05:10 +0000 (14:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Aug 2018 16:57:20 +0000 (09:57 -0700)
commit817aef260037f33ee0f44c17fe341323d3aebd6d
tree8f193bce3aa82797c09874cb7ea8274f9dc2e79c
parent4e31843f681c34f7185e7d169fe627c9d891ce2c
Replace magic for trusting the secondary keyring with #define

Replace the use of a magic number that indicates that verify_*_signature()
should use the secondary keyring with a symbol.

Signed-off-by: Yannik Sembritzki <yannik@sembritzki.me>
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: keyrings@vger.kernel.org
Cc: linux-security-module@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
certs/system_keyring.c
crypto/asymmetric_keys/pkcs7_key_type.c
include/linux/verification.h