diff options
| author | Mickaël Salaün <mic@digikod.net> | 2026-10-07 12:02:45 +0200 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-10-07 12:04:10 +0200 |
| commit | 395c985dac578159ab8cce7c690481a2c7ff8655 (patch) | |
| tree | 6167e014dc81de9d27b4f887a4ba7514b55df8e4 /tools/perf/python/stackcollapse.py | |
| parent | 95662f21d6aa38e3294b002a11000fa984418740 (diff) | |
| download | linux-next-395c985dac578159ab8cce7c690481a2c7ff8655.tar.gz linux-next-395c985dac578159ab8cce7c690481a2c7ff8655.zip | |
landlock: Wrap per-layer access masks in struct layer_config
The domain layer FAM stores struct access_masks values directly, while a
ruleset stores the equivalent single mutable value. Per-category
permissions need additional per-layer data beyond the handled-access
bitfields.
Introduce struct layer_config as the common value type. Keeping the
handled bitfields in its .handled member leaves struct access_masks as a
lightweight parameter type for functions that only need those bitfields,
while the complete layer can be snapshotted with one assignment.
At this point struct layer_config only wraps the four-byte access_masks,
so it does not grow the per-domain allocation: the maximum 16-entry FAM
remains 64 bytes.
No functional change.
Cc: Günther Noack <gnoack@google.com>
Reviewed-by: Günther Noack <gnoack@google.com>
Reviewed-by: Tingmao Wang <m@maowtm.org>
Link: https://patch.msgid.link/20261007100255.1333386-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
