summaryrefslogtreecommitdiff
path: root/include/linux/secure_boot.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2026-06-16 21:47:16 +0200
committerJiri Kosina <jkosina@suse.com>2026-06-16 21:47:16 +0200
commitaa776949fb77462ee712eee28bc54a9ce95c5b40 (patch)
tree389848f195054d64ac6fc137a2218e0a63655288 /include/linux/secure_boot.h
parent6df6b1f2c49678211f65647c300bc51dda02893b (diff)
parent12b7731995ca577d86e02196e99ba9c126f47282 (diff)
Merge branch 'for-7.2/wiimote' into for-linus
Diffstat (limited to 'include/linux/secure_boot.h')
-rw-r--r--include/linux/secure_boot.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/secure_boot.h b/include/linux/secure_boot.h
new file mode 100644
index 000000000000..d17e92351567
--- /dev/null
+++ b/include/linux/secure_boot.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2026 Red Hat, Inc. All Rights Reserved.
+ *
+ * Author: Coiby Xu <coxu@redhat.com>
+ */
+
+#ifndef _LINUX_SECURE_BOOT_H
+#define _LINUX_SECURE_BOOT_H
+
+#include <linux/types.h>
+
+#ifdef CONFIG_HAVE_ARCH_GET_SECUREBOOT
+/*
+ * Returns true if the platform secure boot is enabled.
+ * Returns false if disabled or not supported.
+ */
+bool arch_get_secureboot(void);
+#else
+static inline bool arch_get_secureboot(void) { return false; }
+#endif
+
+#endif /* _LINUX_SECURE_BOOT_H */