X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=security%2Fkeys%2Fproc.c;h=12b750e51fbf5c133ca4877b13a184081b73e652;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=686a9ee0c5dee8b43fbcf72e407dc386e52e7086;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/security/keys/proc.c b/security/keys/proc.c index 686a9ee0c..12b750e51 100644 --- a/security/keys/proc.c +++ b/security/keys/proc.c @@ -137,13 +137,6 @@ static int proc_keys_show(struct seq_file *m, void *v) struct timespec now; unsigned long timo; char xbuf[12]; - int rc; - - /* check whether the current task is allowed to view the key (assuming - * non-possession) */ - rc = key_task_permission(make_key_ref(key, 0), current, KEY_VIEW); - if (rc < 0) - return 0; now = current_kernel_time();