KEYS: Add a new keyctl op to reject a key with a specified error code
Add a new keyctl op to reject a key with a specified error code. This works much the same as negating a key, and so keyctl_negate_key() is made a special case of keyctl_reject_key(). The difference is that keyctl_negate_key() selects ENOKEY as the error to be reported. Typically the key would be rejected with EKEYEXPIRED, EKEYREVOKED or EKEYREJECTED, but this is not mandatory. Signed-off-by:David Howells <dhowells@redhat.com> Signed-off-by:
James Morris <jmorris@namei.org>
Showing
- Documentation/keys-request-key.txt 5 additions, 4 deletionsDocumentation/keys-request-key.txt
- Documentation/keys.txt 8 additions, 2 deletionsDocumentation/keys.txt
- include/linux/key-type.h 10 additions, 1 deletioninclude/linux/key-type.h
- include/linux/key.h 1 addition, 0 deletionsinclude/linux/key.h
- include/linux/keyctl.h 1 addition, 0 deletionsinclude/linux/keyctl.h
- security/keys/compat.c 3 additions, 0 deletionssecurity/keys/compat.c
- security/keys/internal.h 1 addition, 0 deletionssecurity/keys/internal.h
- security/keys/key.c 11 additions, 8 deletionssecurity/keys/key.c
- security/keys/keyctl.c 38 additions, 2 deletionssecurity/keys/keyctl.c
- security/keys/keyring.c 2 additions, 2 deletionssecurity/keys/keyring.c
- security/keys/request_key.c 1 addition, 1 deletionsecurity/keys/request_key.c
Loading
Please register or sign in to comment