PKCS#7: Make trust determination dependent on contents of trust keyring
Make the determination of the trustworthiness of a key dependent on whether
a key that can verify it is present in the supplied ring of trusted keys
rather than whether or not the verifying key has KEY_FLAG_TRUSTED set.
verify_pkcs7_signature() will return -ENOKEY if the PKCS#7 message trust
chain cannot be verified.
Signed-off-by:
David Howells <dhowells@redhat.com>
Showing
- certs/system_keyring.c 4 additions, 9 deletionscerts/system_keyring.c
- crypto/asymmetric_keys/pkcs7_key_type.c 1 addition, 1 deletioncrypto/asymmetric_keys/pkcs7_key_type.c
- crypto/asymmetric_keys/pkcs7_parser.h 0 additions, 1 deletioncrypto/asymmetric_keys/pkcs7_parser.h
- crypto/asymmetric_keys/pkcs7_trust.c 3 additions, 15 deletionscrypto/asymmetric_keys/pkcs7_trust.c
- crypto/asymmetric_keys/verify_pefile.c 1 addition, 1 deletioncrypto/asymmetric_keys/verify_pefile.c
- crypto/asymmetric_keys/x509_parser.h 0 additions, 1 deletioncrypto/asymmetric_keys/x509_parser.h
- include/crypto/pkcs7.h 1 addition, 2 deletionsinclude/crypto/pkcs7.h
- include/linux/verification.h 0 additions, 1 deletioninclude/linux/verification.h
- kernel/module_signing.c 1 addition, 1 deletionkernel/module_signing.c
Loading
Please register or sign in to comment