projects/linux·blob master · refs

25 lines · 521 B

1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Landlock - Unique identification number generator
4 *
5 * Copyright © 2024-2025 Microsoft Corporation
6 */
7
8#ifndef _SECURITY_LANDLOCK_ID_H
9#define _SECURITY_LANDLOCK_ID_H
10
11#ifdef CONFIG_SECURITY_LANDLOCK_LOG
12
13void __init landlock_init_id(void);
14
15u64 landlock_get_id_range(size_t number_of_ids);
16
17#else /* CONFIG_SECURITY_LANDLOCK_LOG */
18
19static inline void __init landlock_init_id(void)
20{
21}
22
23#endif /* CONFIG_SECURITY_LANDLOCK_LOG */
24
25#endif /* _SECURITY_LANDLOCK_ID_H */