OSDN Git Service

keys: Timestamp new keys
authorDavid Howells <dhowells@redhat.com>
Thu, 14 Feb 2019 16:20:37 +0000 (16:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:23 +0000 (14:50 +0100)
commit0abc0d523aa25d4e993c266374e7a807d5897461
tree096ca6b9e10c2843e4e0cbd1e878ff28d347ecba
parentb77f9249e60ff1bea923e2205c7be063b9964747
keys: Timestamp new keys

[ Upstream commit 7c1857bdbdf1e4c541e45eab477ee23ed4333ea4 ]

Set the timestamp on new keys rather than leaving it unset.

Fixes: 31d5a79d7f3d ("KEYS: Do LRU discard in full keyrings")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/keys/key.c