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
commit04a0e6b8f6fd74fb675bdbe8f79c4beee813082b (patch)
treecd1f639bf1930e616b93cea0f4b5a3f29bab891a
parent4e5ff0d9ab47ecf6162a2af4ee491aab603c19f9 (diff)
keys: Timestamp new keys (bsc#1120902).
-rw-r--r--patches.fixes/0001-keys-Timestamp-new-keys.patch28
-rw-r--r--series.conf1
2 files changed, 29 insertions, 0 deletions
diff --git a/patches.fixes/0001-keys-Timestamp-new-keys.patch b/patches.fixes/0001-keys-Timestamp-new-keys.patch
new file mode 100644
index 0000000000..8eceed12e9
--- /dev/null
+++ b/patches.fixes/0001-keys-Timestamp-new-keys.patch
@@ -0,0 +1,28 @@
+From 7c1857bdbdf1e4c541e45eab477ee23ed4333ea4 Mon Sep 17 00:00:00 2001
+From: David Howells <dhowells@redhat.com>
+Date: Thu, 14 Feb 2019 16:20:37 +0000
+Subject: [PATCH] keys: Timestamp new keys
+Git-commit: 7c1857bdbdf1e4c541e45eab477ee23ed4333ea4
+Patch-mainline: v5.0
+References: bsc#1120902
+
+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: Oliver Neukum <oneukum@suse.com>
+---
+ security/keys/key.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/security/keys/key.c
++++ b/security/keys/key.c
+@@ -291,6 +291,7 @@ struct key *key_alloc(struct key_type *t
+ 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;
diff --git a/series.conf b/series.conf
index da065e8d8b..67dd6bc8cd 100644
--- a/series.conf
+++ b/series.conf
@@ -25224,6 +25224,7 @@
patches.suse/floppy-check_events-callback-should-not-return-a-neg.patch
patches.fixes/md-raid1-don-t-clear-bitmap-bits-on-interrupted-reco.patch
patches.suse/0001-net-dsa-bcm_sf2-Do-not-assume-DSA-master-supports-Wo.patch
+ patches.fixes/0001-keys-Timestamp-new-keys.patch
patches.suse/mm-memory_hotplug-fix-off-by-one-in-is_pageblock_rem.patch
patches.suse/kallsyms-handle-too-long-symbols-in-kallsyms-c.patch
patches.fixes/copy_mount_string-Limit-string-length-to-PATH_MAX.patch