diff options
Diffstat (limited to 'security/keys/proc.c')
-rw-r--r-- | security/keys/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/proc.c b/security/keys/proc.c index 88e9a466940f..d3f6f2fd21db 100644 --- a/security/keys/proc.c +++ b/security/keys/proc.c | |||
@@ -218,7 +218,7 @@ static int proc_keys_show(struct seq_file *m, void *v) | |||
218 | * - the caller holds a spinlock, and thus the RCU read lock, making our | 218 | * - the caller holds a spinlock, and thus the RCU read lock, making our |
219 | * access to __current_cred() safe | 219 | * access to __current_cred() safe |
220 | */ | 220 | */ |
221 | rc = key_task_permission(key_ref, ctx.cred, KEY_VIEW); | 221 | rc = key_task_permission(key_ref, ctx.cred, KEY_NEED_VIEW); |
222 | if (rc < 0) | 222 | if (rc < 0) |
223 | return 0; | 223 | return 0; |
224 | 224 | ||