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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 18:01:23 +0000 (20:01 +0200)
commit40b08cdac9ae0877dd39d2dcfe2f8c7c68c8ce59
tree35961b0d837b1c0e3a0641c49dbfb0b305a1b7c9
parentba99ff79ac84a768cc9163897ec6b616bd14858f
Replace magic for trusting the secondary keyring with #define

commit 817aef260037f33ee0f44c17fe341323d3aebd6d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
certs/system_keyring.c
crypto/asymmetric_keys/pkcs7_key_type.c
include/linux/verification.h