Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2019-05-20 17:03:28 +0200
committerOliver Neukum <oneukum@suse.com>2019-05-20 17:03:28 +0200
commit3c7828240329265cda741a892b2f80e7a40aebe7 (patch)
tree012c8568fed62266866a7a35b42243ffa621e659
parent548dda0fd93a2da3ee7e606bb7b4c745fbe584cd (diff)
keys: Timestamp new keys (bsc#1120902).
-rw-r--r--security/keys/key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index 4de2204520cc..f4619352eee7 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -291,6 +291,7 @@ struct key *key_alloc(struct key_type *type, const char *desc,
key->uid = uid;
key->gid = gid;
key->perm = perm;
+ key->last_used_at = ktime_get_real_seconds();
if (!(flags & KEY_ALLOC_NOT_IN_QUOTA))
key->flags |= 1 << KEY_FLAG_IN_QUOTA;