1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * Landlock LSM - Common constants and helpers 3 * Landlock LSM - Common constants and helpers 4 * 4 * 5 * Copyright © 2016-2020 Mickaël Salaün <mi 5 * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net> 6 * Copyright © 2018-2020 ANSSI 6 * Copyright © 2018-2020 ANSSI 7 */ 7 */ 8 8 9 #ifndef _SECURITY_LANDLOCK_COMMON_H 9 #ifndef _SECURITY_LANDLOCK_COMMON_H 10 #define _SECURITY_LANDLOCK_COMMON_H 10 #define _SECURITY_LANDLOCK_COMMON_H 11 11 12 #define LANDLOCK_NAME "landlock" 12 #define LANDLOCK_NAME "landlock" 13 13 14 #ifdef pr_fmt 14 #ifdef pr_fmt 15 #undef pr_fmt 15 #undef pr_fmt 16 #endif 16 #endif 17 17 18 #define pr_fmt(fmt) LANDLOCK_NAME ": " fmt 18 #define pr_fmt(fmt) LANDLOCK_NAME ": " fmt 19 19 20 #define BIT_INDEX(bit) HWEIGHT(bit - 1) << 21 << 22 #endif /* _SECURITY_LANDLOCK_COMMON_H */ 20 #endif /* _SECURITY_LANDLOCK_COMMON_H */ 23 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.