From 40f62c927a3ebd1a32b6900715ef42ffd401e4b9 Mon Sep 17 00:00:00 2001 From: Eric Richter Date: Wed, 16 Sep 2020 11:21:14 -0500 Subject: include/secvar.h: add .lockdown() hook to secvar storage driver Previously, it was implied that the storage driver would lock itself after performing a write action. As this behavior is not particularly clear when reviewing the main secvar flow, this action instead has been made explicit. Signed-off-by: Eric Richter Signed-off-by: Oliver O'Halloran --- include/secvar.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/secvar.h b/include/secvar.h index ec812b8..7652553 100644 --- a/include/secvar.h +++ b/include/secvar.h @@ -9,9 +9,10 @@ struct secvar; struct secvar_storage_driver { - int (*load_bank)(struct list_head *bank, int section); - int (*write_bank)(struct list_head *bank, int section); - int (*store_init)(void); + int (*load_bank)(struct list_head *bank, int section); + int (*write_bank)(struct list_head *bank, int section); + int (*store_init)(void); + void (*lockdown)(void); uint64_t max_var_size; }; -- cgit v1.1