aboutsummaryrefslogtreecommitdiff
path: root/security/keys/proc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-02-22 17:48:50 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-02-22 17:48:50 -0800
commitcb268d806972c76c34e5d74343fb6064cd722c7c (patch)
treeb51d3f5c0431da9b15c65736fe67f9d27e7aca93 /security/keys/proc.c
parentef4edb3ed830cbbb443de9906b8cf16dc0653a74 (diff)
parentede0fa98a900e657d1fcd80b50920efc896c1a4c (diff)
Merge branch 'fixes-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull keys fixes from James Morris: "Two fixes from Eric Biggers" * 'fixes-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: KEYS: always initialize keyring_index_key::desc_len KEYS: user: Align the payload buffer
Diffstat (limited to 'security/keys/proc.c')
-rw-r--r--security/keys/proc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/keys/proc.c b/security/keys/proc.c
index d2b802072693..78ac305d715e 100644
--- a/security/keys/proc.c
+++ b/security/keys/proc.c
@@ -165,8 +165,7 @@ static int proc_keys_show(struct seq_file *m, void *v)
int rc;
struct keyring_search_context ctx = {
- .index_key.type = key->type,
- .index_key.description = key->description,
+ .index_key = key->index_key,
.cred = m->file->f_cred,
.match_data.cmp = lookup_user_key_possessed,
.match_data.raw_data = key,