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 17:55:54 +0000 (19:55 +0200)
commitf70805bef73eda436ad664deab818b3291cc8407
tree1a13852f239bbd98f71127c0a2b3ae085d25ab33
parent9cbb32610233e3531ec74e17b44d702c1ca353f0
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