summaryrefslogtreecommitdiff
path: root/security/landlock/limits.h
diff options
context:
space:
mode:
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>2023-10-26 09:47:40 +0800
committerMickaël Salaün <mic@digikod.net>2023-10-26 21:07:09 +0200
commit13fc6455fa19b0859e1b9640bf09903bec8df4f4 (patch)
tree1e8feb1150c35a56c8c1249b1fdf8201181283af /security/landlock/limits.h
parent05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 (diff)
landlock: Make ruleset's access masks more generic
Rename ruleset's access masks and modify it's type to access_masks_t to support network type rules in following commits. Add filesystem helper functions to add and get filesystem mask. Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com> Link: https://lore.kernel.org/r/20231026014751.414649-2-konstantin.meskhidze@huawei.com Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/limits.h')
-rw-r--r--security/landlock/limits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/landlock/limits.h b/security/landlock/limits.h
index 82288f0e9e5e..bafb3b8dc677 100644
--- a/security/landlock/limits.h
+++ b/security/landlock/limits.h
@@ -21,6 +21,7 @@
#define LANDLOCK_LAST_ACCESS_FS LANDLOCK_ACCESS_FS_TRUNCATE
#define LANDLOCK_MASK_ACCESS_FS ((LANDLOCK_LAST_ACCESS_FS << 1) - 1)
#define LANDLOCK_NUM_ACCESS_FS __const_hweight64(LANDLOCK_MASK_ACCESS_FS)
+#define LANDLOCK_SHIFT_ACCESS_FS 0
/* clang-format on */