diff options
author | YueHaibing <yuehaibing@huawei.com> | 2023-07-29 10:40:26 +0800 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2023-10-24 03:16:52 +0300 |
commit | 03acb9ccec3f8cbcc0ed93c188b7a119ef30ef64 (patch) | |
tree | 4ea0317e1de7d908d7a92fb847315e692bf3ff47 /security/keys | |
parent | 3edc22655647378dea01900f7b04e017ff96bda9 (diff) | |
download | linux-03acb9ccec3f8cbcc0ed93c188b7a119ef30ef64.tar.gz linux-03acb9ccec3f8cbcc0ed93c188b7a119ef30ef64.tar.bz2 linux-03acb9ccec3f8cbcc0ed93c188b7a119ef30ef64.zip |
keys: Remove unused extern declarations
Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring")
iterate_over_keyring() is never used, so can be removed.
And commit b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys")
left behind keyring_search_instkey().
Fixes: b2a4df200d57 ("KEYS: Expand the capacity of a keyring")
Fixes: b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/internal.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index 3c1e7122076b..471cf36dedc0 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -109,13 +109,6 @@ extern void __key_link_end(struct key *keyring, extern key_ref_t find_key_to_update(key_ref_t keyring_ref, const struct keyring_index_key *index_key); -extern struct key *keyring_search_instkey(struct key *keyring, - key_serial_t target_id); - -extern int iterate_over_keyring(const struct key *keyring, - int (*func)(const struct key *key, void *data), - void *data); - struct keyring_search_context { struct keyring_index_key index_key; const struct cred *cred; |