landlock: Make ruleset's access masks more generic
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Thu, 26 Oct 2023 01:47:40 +0000 (09:47 +0800)
committerMickaël Salaün <mic@digikod.net>
Thu, 26 Oct 2023 19:07:09 +0000 (21:07 +0200)
commit13fc6455fa19b0859e1b9640bf09903bec8df4f4
tree1e8feb1150c35a56c8c1249b1fdf8201181283af
parent05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1
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>
security/landlock/fs.c
security/landlock/limits.h
security/landlock/ruleset.c
security/landlock/ruleset.h
security/landlock/syscalls.c