diff options
author | Eric Biggers <ebiggers@google.com> | 2017-06-08 14:48:57 +0100 |
---|---|---|
committer | James Morris <james.l.morris@oracle.com> | 2017-06-09 13:29:48 +1000 |
commit | 57070c850a03ee0cea654fc22cb8032fc3139d39 (patch) | |
tree | be043744d16a49c9b33fc17f6d1d6f2a6ee89102 /security/keys/encrypted-keys | |
parent | 63a0b0509e700717a59f049ec6e4e04e903c7fe2 (diff) | |
download | op-kernel-dev-57070c850a03ee0cea654fc22cb8032fc3139d39.zip op-kernel-dev-57070c850a03ee0cea654fc22cb8032fc3139d39.tar.gz |
KEYS: sanitize add_key() and keyctl() key payloads
Before returning from add_key() or one of the keyctl() commands that
takes in a key payload, zero the temporary buffer that was allocated to
hold the key payload copied from userspace. This may contain sensitive
key material that should not be kept around in the slab caches.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'security/keys/encrypted-keys')
0 files changed, 0 insertions, 0 deletions