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

Message ID 20160707205337.2061-3-mathew.j.martineau@linux.intel.com
State New
Headers show

Commit Message

Mat Martineau July 7, 2016, 8:53 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(+)

Patch
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;
 	};