Skip to content
Commit 2b6aa412 authored by Mat Martineau's avatar Mat Martineau
Browse files

KEYS: Use structure to capture key restriction function and data



Replace struct key's restrict_link function pointer with a pointer to
the new struct key_restriction. The structure contains pointers to the
restriction function as well as relevant data for evaluating the
restriction.

The garbage collector checks restrict_link->keytype when key types are
unregistered. Restrictions involving a removed key type are converted
to use restrict_link_reject so that restrictions cannot be removed by
unregistering key types.

Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
parent e9cc0f68
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment