xref: /linux/include/linux/secure_boot.h (revision 9cdca336677b4d15579ec462e33c8a330ab3a9de)
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  */
18 bool arch_get_secureboot(void);
19 #else
20 static inline bool arch_get_secureboot(void) { return false; }
21 #endif
22 
23 #endif /* _LINUX_SECURE_BOOT_H */
24