diff options
author | Andrew Donnellan <ajd@linux.ibm.com> | 2023-02-10 19:03:46 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-02-12 22:12:37 +1100 |
commit | 50a466bf3e6f6f177dc0aeefa46a2f8927075a1d (patch) | |
tree | c495161a8da82cc0f6d95f10ee31d437cf2f9d36 /arch/powerpc/kernel/compat_audit.c | |
parent | 86b6c0ae2caee9cadee1256d31b204ea54cb55c0 (diff) |
powerpc/secvar: Allow backend to populate static list of variable names
Currently, the list of variables is populated by calling
secvar_ops->get_next() repeatedly, which is explicitly modelled on the
OPAL API (including the keylen parameter).
For the upcoming PLPKS backend, we have a static list of variable names.
It is messy to fit that into get_next(), so instead, let the backend put
a NULL-terminated array of variable names into secvar_ops->var_names,
which will be used if get_next() is undefined.
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230210080401.345462-12-ajd@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kernel/compat_audit.c')
0 files changed, 0 insertions, 0 deletions