Merge tag 'rproc-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc...
[linux.git] / security / landlock / common.h
blob0eb1d34c2eaefeb3942a576ef0f89ef37901bd27
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Landlock LSM - Common constants and helpers
5 * Copyright © 2016-2020 Mickaël Salaün <mic@digikod.net>
6 * Copyright © 2018-2020 ANSSI
7 */
9 #ifndef _SECURITY_LANDLOCK_COMMON_H
10 #define _SECURITY_LANDLOCK_COMMON_H
12 #define LANDLOCK_NAME "landlock"
14 #ifdef pr_fmt
15 #undef pr_fmt
16 #endif
18 #define pr_fmt(fmt) LANDLOCK_NAME ": " fmt
20 #define BIT_INDEX(bit) HWEIGHT(bit - 1)
22 #endif /* _SECURITY_LANDLOCK_COMMON_H */