landlock: Refactor landlock_add_rule() syscall
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Thu, 26 Oct 2023 01:47:46 +0000 (09:47 +0800)
committerMickaël Salaün <mic@digikod.net>
Thu, 26 Oct 2023 19:07:14 +0000 (21:07 +0200)
commit0e0fc7e8eb4a11bd9f89a9c74bc7c0e144c56203
tree8a51c6875bb0681e43e40e97d164af5b0abf88d4
parent7a11275c378753fbdf00f2cfc80bc86a119ca67d
landlock: Refactor landlock_add_rule() syscall

Change the landlock_add_rule() syscall to support new rule types with
next commits. Add the add_rule_path_beneath() helper to support current
filesystem rules.

Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Link: https://lore.kernel.org/r/20231026014751.414649-8-konstantin.meskhidze@huawei.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/syscalls.c