diff options
author | Mat Martineau <mathew.j.martineau@linux.intel.com> | 2016-04-25 11:30:39 -0700 |
---|---|---|
committer | Mat Martineau <mathew.j.martineau@linux.intel.com> | 2017-04-03 10:24:55 -0700 |
commit | 469ff8f7d46d75b36de68a0411a2ce80109ad00b (patch) | |
tree | 4b4841cc00943da7565a259fbe90ea5e02a6082f /Documentation/security | |
parent | 73cdd29044e081d56ef6b3186d22cdf25d9dd333 (diff) | |
download | linux-469ff8f7d46d75b36de68a0411a2ce80109ad00b.tar.bz2 |
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.txt | 5 |
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); |