Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2026 Red Hat, Inc. All Rights Reserved.
4 *
5 * Author: Coiby Xu <coxu@redhat.com>
6 */
7
8#ifndef _LINUX_SECURE_BOOT_H
9#define _LINUX_SECURE_BOOT_H
10
11#include <linux/types.h>
12
13#ifdef CONFIG_HAVE_ARCH_GET_SECUREBOOT
14/*
15 * Returns true if the platform secure boot is enabled.
16 * Returns false if disabled or not supported.
17 */
18bool arch_get_secureboot(void);
19#else
20static inline bool arch_get_secureboot(void) { return false; }
21#endif
22
23#endif /* _LINUX_SECURE_BOOT_H */