diff options
| author | Mickaël Salaün <mic@digikod.net> | 2026-08-11 11:43:16 +0200 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-08-17 10:17:10 +0200 |
| commit | 2bbba0905a795b46c20159cecf44033c96b87d22 (patch) | |
| tree | a2f12eed3e7ed7e4619098cab30290e5860bef90 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | e76ef456bb673c7fc5def433502a338631df0ebf (diff) | |
landlock: Move domain query functions to domain.c
Grouping domain-specific code in one compilation unit reduces coupling
between domain and ruleset implementations.
Move the access-check functions that only operate on a domain (rule
lookup, layer unmasking, layer-mask init, access-mask union) from
ruleset.[ch] to domain.[ch]. They evaluate whether a domain grants a
requested access during the pathwalk and network checks and do not
modify the domain.
The merge and inherit chain stays in ruleset.c for now because it calls
the static create_ruleset() allocator; a following commit moves it once
the domain type switch eliminates that dependency.
No behavioral change. The functions move with unchanged signatures and
bodies.
Cc: Günther Noack <gnoack@google.com>
Cc: Tingmao Wang <m@maowtm.org>
Link: https://patch.msgid.link/20260811094338.288094-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
