KEYS: Add an optional lookup_restriction hook to key_type
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Fri, 6 May 2016 22:38:17 +0000 (15:38 -0700)
committerMat Martineau <mathew.j.martineau@linux.intel.com>
Tue, 4 Apr 2017 21:10:11 +0000 (14:10 -0700)
commitefba797b977c99bc6e0c301299272c80fb8b287f
tree746410c0909fee9a126c418df1dd51b85a3a94ec
parent2b6aa412ff23a02ac777ad307249c60a839cfd25
KEYS: Add an optional lookup_restriction hook to key_type

The restrict_link functions used to validate keys as they are linked
to a keyring can be associated with specific key types.  Each key type
may be loaded (or not) at runtime, so lookup of restrict_link
functions needs to be part of the key type implementation to ensure
that the requested keys can be examined.

Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Documentation/security/keys.txt
include/linux/key-type.h