[PATCH v3 4/6] KEYS: Introduce keyring_is_empty()
Eric Biggers
ebiggers at kernel.org
Mon Oct 26 23:55:28 UTC 2026
On Sun, Oct 25, 2026 at 03:10:12AM +0300, Jarkko Sakkinen wrote:
> +/**
> + * keyring_is_empty - Check whether a keyring contains any links
> + * @keyring: The keyring to check.
> + */
"contains any links" => "contains no links"? Or even just "is empty".
Otherwise it sounds backwards.
Note that another "is the keyring empty" check just showed up in
mainline in kernel/bpf/keys.c. So a new version of this patch will be
needed to update that one too.
Otherwise this patch looks good.
- Eric
More information about the Linux-security-module-archive
mailing list