KEYS: user_defined: sanitize key payloads
authorEric Biggers <ebiggers@google.com>
Thu, 8 Jun 2017 13:49:04 +0000 (14:49 +0100)
committerJames Morris <james.l.morris@oracle.com>
Fri, 9 Jun 2017 03:29:48 +0000 (13:29 +1000)
commit6966c74932b328b3d6df92b11b083bfbcd067986
tree0ce4998b3543b9dbbf884a929b580dc3bb698443
parent57070c850a03ee0cea654fc22cb8032fc3139d39
KEYS: user_defined: sanitize key payloads

Zero the payloads of user and logon keys before freeing them.  This
prevents sensitive key material from being kept around in the slab
caches after a key is released.

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>
security/keys/user_defined.c