| 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_AUDIT |
| 12 |
|
| 13 |
void __init landlock_init_id(void); |
| 14 |
|
| 15 |
u64 landlock_get_id_range(size_t number_of_ids); |
| 16 |
|
| 17 |
#else /* CONFIG_AUDIT */ |
| 18 |
|
| 19 |
static inline void __init landlock_init_id(void) |
| 20 |
{ |
| 21 |
} |
| 22 |
|
| 23 |
#endif /* CONFIG_AUDIT */ |
| 24 |
|
| 25 |
#endif /* _SECURITY_LANDLOCK_ID_H */ |