Skip to content
Snippets Groups Projects
Commit 4bc799dc authored by Sami Tolvanen's avatar Sami Tolvanen Committed by James Morris
Browse files

security: fix the key_permission LSM hook function type


Commit 8c0637e9 ("keys: Make the KEY_NEED_* perms an enum rather than
a mask") changed the type of the key_permission callback functions, but
didn't change the type of the hook, which trips indirect call checking with
Control-Flow Integrity (CFI). This change fixes the issue by changing the
hook type to match the functions.

Fixes: 8c0637e9 ("keys: Make the KEY_NEED_* perms an enum rather than a mask")
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 48778464
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment