summaryrefslogtreecommitdiff
path: root/include/linux/secure_boot.h
blob: d17e9235156724b5fd8f77057037306f16af3abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */