summaryrefslogtreecommitdiffstats
path: root/Documentation/security
diff options
context:
space:
mode:
authorMat Martineau2016-04-25 20:30:39 +0200
committerMat Martineau2017-04-03 19:24:55 +0200
commit469ff8f7d46d75b36de68a0411a2ce80109ad00b (patch)
tree4b4841cc00943da7565a259fbe90ea5e02a6082f /Documentation/security
parentMerge branch 'keys-blacklist' into keys-next (diff)
downloadkernel-qcow2-linux-469ff8f7d46d75b36de68a0411a2ce80109ad00b.tar.gz
kernel-qcow2-linux-469ff8f7d46d75b36de68a0411a2ce80109ad00b.tar.xz
kernel-qcow2-linux-469ff8f7d46d75b36de68a0411a2ce80109ad00b.zip
KEYS: Use a typedef for restrict_link function pointers
This pointer type needs to be returned from a lookup function, and without a typedef the syntax gets cumbersome. Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Diffstat (limited to 'Documentation/security')
-rw-r--r--Documentation/security/keys.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/Documentation/security/keys.txt b/Documentation/security/keys.txt
index 0e03baf271bd..4502237b12a7 100644
--- a/Documentation/security/keys.txt
+++ b/Documentation/security/keys.txt
@@ -1032,10 +1032,7 @@ payload contents" for more information.
struct key *keyring_alloc(const char *description, uid_t uid, gid_t gid,
const struct cred *cred,
key_perm_t perm,
- int (*restrict_link)(struct key *,
- const struct key_type *,
- unsigned long,
- const union key_payload *),
+ key_restrict_link_func_t restrict_link,
unsigned long flags,
struct key *dest);