Thread (5 messages) 5 messages, 2 authors, 2017-09-25

[PATCH] KEYS: prevent KEYCTL_READ on negative key

From: dhowells@redhat.com (David Howells)
Date: 2017-09-19 16:09:07
Also in: keyrings, lkml, stable

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
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help