[PATCH 5/5] KEYS: sanitize key structs before freeing

2017-04-21 Thread Eric Biggers
From: Eric Biggers While a 'struct key' itself normally does not contain sensitive information, Documentation/security/keys.txt actually encourages this: "Having a payload is not required; and the payload can, in fact, just be a value stored in the struct key

[PATCH 5/5] KEYS: sanitize key structs before freeing

2017-04-21 Thread Eric Biggers
From: Eric Biggers While a 'struct key' itself normally does not contain sensitive information, Documentation/security/keys.txt actually encourages this: "Having a payload is not required; and the payload can, in fact, just be a value stored in the struct key itself." In case someone