diff options
| author | Mickaël Salaün <mic@digikod.net> | 2025-01-08 16:43:13 +0100 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2025-01-17 19:05:34 +0100 |
| commit | 622e2f5954763385c4fa1f9a11a11366952a9b60 (patch) | |
| tree | 600f3dcd55b1d6904d3628a044c27c15df20f2dc /security/landlock/fs.c | |
| parent | 924f4403d869ad24bd2c54ad97ad87d4b838d09c (diff) | |
| download | linux-next-622e2f5954763385c4fa1f9a11a11366952a9b60.tar.gz linux-next-622e2f5954763385c4fa1f9a11a11366952a9b60.zip | |
landlock: Move access types
Move LANDLOCK_ACCESS_FS_INITIALLY_DENIED, access_mask_t, struct
access_mask, and struct access_masks_all to a dedicated access.h file.
Rename LANDLOCK_ACCESS_FS_INITIALLY_DENIED to
_LANDLOCK_ACCESS_FS_INITIALLY_DENIED to make it clear that it's not part
of UAPI. Add some newlines when appropriate.
This file will be extended with following commits, and it will help to
avoid dependency loops.
Cc: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20250108154338.1129069-6-mic@digikod.net
[mic: Fix rebase conflict because of the new cleanup headers]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/fs.c')
| -rw-r--r-- | security/landlock/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/landlock/fs.c b/security/landlock/fs.c index 4023354dd8e3..e323f7fb5a98 100644 --- a/security/landlock/fs.c +++ b/security/landlock/fs.c @@ -36,6 +36,7 @@ #include <uapi/linux/fiemap.h> #include <uapi/linux/landlock.h> +#include "access.h" #include "common.h" #include "cred.h" #include "fs.h" @@ -393,7 +394,7 @@ get_handled_fs_accesses(const struct landlock_ruleset *const domain) { /* Handles all initially denied by default access rights. */ return landlock_union_access_masks(domain).fs | - LANDLOCK_ACCESS_FS_INITIALLY_DENIED; + _LANDLOCK_ACCESS_FS_INITIALLY_DENIED; } static const struct access_masks any_fs = { |
