Read the whole thread, 5 messages PreviousNext Re: [PATCH] KEYS: prevent KEYCTL_READ on negative key FromDavid Howells <dhowells@redhat.com> Date2017-09-19 16:09:07 Also inkeyrings, linux-security-module, lkmlReply toEric Biggers, 2017-09-18 Eric Biggers [off-list ref] wrote: quoted hunk ↗ jump to hunk+ 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
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help