diff options
author | Mickaël Salaün <mic@digikod.net> | 2024-11-09 12:08:54 +0100 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2024-11-09 19:52:10 +0100 |
commit | 0c0effb07f7d662af3e6f74da4d34241e412029b (patch) | |
tree | b43586ba60a21a34658f4d825edd3722d0736501 /security/landlock/net.c | |
parent | 53b9d789df983790015ef04b0283ac5a33917cad (diff) | |
download | lwn-0c0effb07f7d662af3e6f74da4d34241e412029b.tar.gz lwn-0c0effb07f7d662af3e6f74da4d34241e412029b.zip |
landlock: Refactor filesystem access mask management
Replace get_raw_handled_fs_accesses() with a generic
landlock_union_access_masks(), and replace get_fs_domain() with a
generic landlock_get_applicable_domain(). These helpers will also be
useful for other types of access.
Cc: Mikhail Ivanov <ivanov.mikhail1@huawei-partners.com>
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20241109110856.222842-2-mic@digikod.net
[mic: Slightly improve doc as suggested by Günther]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'security/landlock/net.c')
0 files changed, 0 insertions, 0 deletions