landlock: Move access types
authorMickaël Salaün <mic@digikod.net>
Wed, 8 Jan 2025 15:43:13 +0000 (16:43 +0100)
committerMickaël Salaün <mic@digikod.net>
Fri, 17 Jan 2025 18:05:34 +0000 (19:05 +0100)
commit622e2f5954763385c4fa1f9a11a11366952a9b60
tree600f3dcd55b1d6904d3628a044c27c15df20f2dc
parent924f4403d869ad24bd2c54ad97ad87d4b838d09c
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>
security/landlock/access.h [new file with mode: 0644]
security/landlock/fs.c
security/landlock/fs.h
security/landlock/ruleset.c
security/landlock/ruleset.h