summaryrefslogtreecommitdiff
path: root/security/landlock/setup.c
diff options
context:
space:
mode:
authorGünther Noack <gnoack3000@gmail.com>2022-10-18 21:22:07 +0300
committerMickaël Salaün <mic@digikod.net>2022-10-19 10:01:43 +0300
commit106794c46b13a2820d3954d7a2892fa1978b4162 (patch)
tree253c3824b76926c0a7c0c20f5462342c5c58cbbd /security/landlock/setup.c
parent3350607dc5637be2563f484dcfe2fed456f3d4ff (diff)
downloadlinux-106794c46b13a2820d3954d7a2892fa1978b4162.tar.xz
landlock: Refactor check_access_path_dual() into is_access_to_paths_allowed()
Rename check_access_path_dual() to is_access_to_paths_allowed(). Make it return true iff the access is allowed. Calculate the EXDEV/EACCES error code in the one place where it's needed. Suggested-by: Mickaël Salaün <mic@digikod.net> Signed-off-by: Günther Noack <gnoack3000@gmail.com> Link: https://lore.kernel.org/r/20221018182216.301684-3-gnoack3000@gmail.com Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/setup.c')
0 files changed, 0 insertions, 0 deletions