Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1372105
| From | Mimi Zohar <zohar@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 11/12] certs: Add a secondary system keyring that can be added to dynamically [ver #3] |
| Date | 2016-04-06 02:50 +0200 |
| Message-ID | <rkJPs-3T2-9@gated-at.bofh.it> (permalink) |
| References | <raKjM-77j-5@gated-at.bofh.it> <raKtt-7bN-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 2016-03-09 at 11:19 +0000, David Howells wrote:
> +#ifdef CONFIG_SECONDARY_TRUSTED_KEYRING
> +/**
> + * restrict_link_by_builtin_and_secondary_trusted - Restrict keyring
> + * addition by both builtin and secondary keyrings
> + *
> + * Restrict the addition of keys into a keyring based on the key-to-be-added
> + * being vouched for by a key in either the built-in or the secondary system
> + * keyrings.
> + */
> +int restrict_link_by_builtin_and_secondary_trusted(
> + struct key *keyring,
> + const struct key_type *type,
> + const union key_payload *payload)
> +{
> + /* If we have a secondary trusted keyring, then that contains a link
> + * through to the builtin keyring and the search will follow that link.
> + */
> + if (type == &key_type_keyring &&
> + keyring == secondary_trusted_keys &&
> + payload == &builtin_trusted_keys->payload)
> + /* Allow the builtin keyring to be added to the secondary */
> + return 0;
> +
> + return restrict_link_by_signature(builtin_trusted_keys, type, payload);
Shouldn't thi be secondary_trusted_keys?
Mimi
> +}
> +#endif
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [RFC PATCH 11/12] certs: Add a secondary system keyring that can be added to dynamically [ver #3] Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-04-06 02:50 +0200 Re: [RFC PATCH 11/12] certs: Add a secondary system keyring that can be added to dynamically [ver #3] David Howells <dhowells@redhat.com> - 2016-04-06 18:20 +0200
csiph-web