summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2026-11-18 17:32:49 +0100
committerMickaël Salaün <mic@digikod.net>2026-11-19 11:55:41 +0100
commita873f3c213a6fc09aaa2bb389fba49f9bbe9d589 (patch)
treec1eda7ef4ee3176856ca7addff7c5540db75b856 /tools/perf/scripts/python
parent102143984d542ef7f3bff6bcfd886d3940e17ca7 (diff)
landlock: Distinguish namespace creation and entry denials
Landlock reports denied namespace creation and entry with the same internal request type. Before commit 08471914d6bb ("ns: allocate the namespace id before the namespace_init hook"), denied creation carried ID zero and could be distinguished from entry by ID alone. That commit moved ID allocation before namespace_init(), so creation now carries the ID of an unreachable new namespace while entry carries the existing target ID. Namespace IDs are object context, not operation discriminators. Split the request type into creation and entry. Keep the two namespace values together before capability; this renumbers the unreleased capability request in raw and typed trace context. Report namespace_op=create or namespace_op=enter immediately after blockers in namespace audit records and trace event text. Placing the operation before namespace_type and namespace_id lets consumers establish the semantics before interpreting the following namespace context, especially whether namespace_id is the creation-time value or identifies an existing entry target. Keep namespace.use as the policy blocker: the new value only describes the semantic hook context and does not add a policy control. Cc: Günther Noack <gnoack@google.com> Fixes: 15dd86021b57 ("landlock: Enforce namespace use restrictions") Link: https://patch.msgid.link/20261118163254.2554413-2-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions