Skip to content
Snippets Groups Projects
Commit 6c1976ad authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Jarkko Sakkinen
Browse files

KEYS: Add new function key_create()


key_create() works like key_create_or_update() but does not allow
updating an existing key, instead returning ERR_PTR(-EEXIST).

key_create() will be used by the blacklist keyring which should not
create duplicate entries or update existing entries.
Instead a dedicated message with appropriate severity will be logged.

Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 06b53b02
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment