lkml.org 
[lkml]   [2017]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] KEYS: prevent KEYCTL_READ on negative key
Date
Eric Biggers <ebiggers3@gmail.com> wrote:

> + if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) {
> + ret = -ENOKEY;
> + goto error2;
> + }

It might be better to do this check in key_validate(). Also, it should
perhaps take the error from key->reject_error.

David

\
 
 \ /
  Last update: 2017-09-19 18:10    [W:0.128 / U:1.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site