diff mbox

[v6,2/6] KEYS: Add a key pointer for use by restrict functions

Message ID 20160721233139.4085-3-mathew.j.martineau@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mat Martineau July 21, 2016, 11:31 p.m. UTC
Some restrict functions need to reference an existing key or keyring
in order to evaluate a key being linked to a keyring. The restrict_key
member of struct key (when it represents a keyring) points to the
existing key(s) to use when linking to a restricted keyring.

Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
 include/linux/key.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox


diff --git a/include/linux/key.h b/include/linux/key.h
index df05059..8556e13 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -204,6 +204,7 @@  struct key {
 			/* Keyring bits */
 			struct list_head name_link;
 			struct assoc_array keys;
+			struct key *restrict_key;
 		int reject_error;