From: Andreas Reichel <[email protected]> This patch series fixes a bug regarding user variables: The caller of map_uservar must be sure that the data pointer is not NULL.
Furthermore it introduces a garbage collector to ebg_env_finalize_update, so that the user can register arbitrary user variables, which automatically get deleted upon finalization. diff to v3: * ebg_env_get now returns -ENOENT if a user variable is not found instead of -EINVAL. * gc_register_var is now renamed to register_gc_var Signed-off-by: Andreas Reichel <[email protected]> Andreas Reichel (4): Bugfix: Don't map non-existing user variables Add registry for garbage collection on update finalization Tests: Add test for finalization garbage collector env: uservars: return -ENOENT if not found env/env_api.c | 45 +++++++++++++++++++++++++++++- env/env_api_fat.c | 3 ++ env/uservars.c | 2 +- include/ebgenv.h | 8 ++++++ include/env_api.h | 5 ++++ tools/tests/test_ebgenv_api.c | 52 ++++++++++++++++++++++++++++++++++- 6 files changed, 112 insertions(+), 3 deletions(-) -- 2.17.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20180502123953.17619-1-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
