From 22c5ff5132a3b2e615c4ccda20b51575b7a656a7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Jul 2019 20:57:23 +0200 Subject: [PATCH] bootctl: add new feature flag for indicating random seed management support --- src/boot/bootctl.c | 13 +++++++------ src/boot/efi/loader-features.h | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 66bc3dc..41a9920 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -1155,12 +1155,13 @@ static int verb_status(int argc, char *argv[], void *userdata) { uint64_t flag; const char *name; } flags[] = { - { EFI_LOADER_FEATURE_BOOT_COUNTING, "Boot counting" }, - { EFI_LOADER_FEATURE_CONFIG_TIMEOUT, "Menu timeout control" }, - { EFI_LOADER_FEATURE_CONFIG_TIMEOUT_ONE_SHOT, "One-shot menu timeout control" }, - { EFI_LOADER_FEATURE_ENTRY_DEFAULT, "Default entry control" }, - { EFI_LOADER_FEATURE_ENTRY_ONESHOT, "One-shot entry control" }, - { EFI_LOADER_FEATURE_XBOOTLDR, "Support for XBOOTLDR partition" }, + { EFI_LOADER_FEATURE_BOOT_COUNTING, "Boot counting" }, + { EFI_LOADER_FEATURE_CONFIG_TIMEOUT, "Menu timeout control" }, + { EFI_LOADER_FEATURE_CONFIG_TIMEOUT_ONE_SHOT, "One-shot menu timeout control" }, + { EFI_LOADER_FEATURE_ENTRY_DEFAULT, "Default entry control" }, + { EFI_LOADER_FEATURE_ENTRY_ONESHOT, "One-shot entry control" }, + { EFI_LOADER_FEATURE_XBOOTLDR, "Support for XBOOTLDR partition" }, + { EFI_LOADER_FEATURE_RANDOM_SEED, "Support for passing random seed to OS" }, }; _cleanup_free_ char *fw_type = NULL, *fw_info = NULL, *loader = NULL, *loader_path = NULL, *stub = NULL; diff --git a/src/boot/efi/loader-features.h b/src/boot/efi/loader-features.h index 40095e2..b3a1f79 100644 --- a/src/boot/efi/loader-features.h +++ b/src/boot/efi/loader-features.h @@ -11,3 +11,4 @@ #define EFI_LOADER_FEATURE_ENTRY_ONESHOT (UINT64_C(1) << 3) #define EFI_LOADER_FEATURE_BOOT_COUNTING (UINT64_C(1) << 4) #define EFI_LOADER_FEATURE_XBOOTLDR (UINT64_C(1) << 5) +#define EFI_LOADER_FEATURE_RANDOM_SEED (UINT64_C(1) << 6) -- 2.7.4