Re: [PATCH 2/2] [FIXED] Replace magic for trusting the secondary keyring with #define

From: Linus Torvalds
Date: Wed Aug 15 2018 - 18:01:41 EST


On Wed, Aug 15, 2018 at 2:19 PM Yannik Sembritzki <yannik@xxxxxxxxxxxxx> wrote:
>
>
> +// Allow both builtin trusted keys and secondary trusted keys
> +#ifndef TRUST_SECONDARY_KEYRING
> +#define TRUST_SECONDARY_KEYRING ((struct key *)1UL)
> +#endif
>
> Sorry, I've fixed this now.

Actually, just remove the ifndef/endif entirely. There is no possible
other valid #define this could have, and the header itself is
protected from multi-inclusion the standard way.

Linus