id.h 473 B

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