Ventoy Secure Boot Policy Update

- Update Ventoy grub code to match the new policy.
This commit is contained in:
longpanda
2026-06-23 21:19:46 +08:00
parent 71ac855b36
commit 1ed7bc9596
8 changed files with 562 additions and 190 deletions

View File

@@ -24,6 +24,11 @@
#include <grub/types.h>
#include <grub/menu.h>
#define VTOY_SB_POLICY_BYPASS 0
#define VTOY_SB_POLICY_CHECK 1
extern grub_uint8_t EXPORT_VAR(g_sys_sb);
extern grub_uint8_t EXPORT_VAR(g_sb_policy);
struct grub_env_var;
typedef const char *(*grub_env_read_hook_t) (struct grub_env_var *var,