linux/Documentation/admin-guide/LSM
Mickaël Salaün 172b6a6d84
landlock: Document tracepoints
Until now, Landlock observability documentation covered only audit
records.  The tracepoints added by the previous commits introduce a
second channel with different semantics (firing regardless of audit
configuration and domain log flags, exposing the full ruleset and domain
state to eBPF via BTF), which kernel developers, administrators, and
userspace tool authors need to discover and compare against audit.

Add a dedicated "Landlock Trace Events" reference covering the event
categories, enabling events via tracefs, ruleset versioning, eBPF access
through BPF_RAW_TRACEPOINT, and the same_exec and logged denial fields
(logged being the kernel's audit-logging decision, so a stateless ftrace
filter can select the denials audit would record with logged==1).
Cross-reference it from the administrator, kernel-internals, and
userspace API documents, contrasting tracepoints with audit: when each
channel is preferred, what each guarantees, and how NOAUDIT hooks and
audit rate limiting affect them.

Also document the relational other-party domain fields the scope and
ptrace denial tracepoints expose (tracee_domain, target_domain,
peer_domain; 0 when the other party is unsandboxed), so a consumer can
resolve them against the lifecycle events and reproduce the two-domain
verdict.

Cc: Günther Noack <gnoack@google.com>
Cc: Tingmao Wang <m@maowtm.org>
Link: https://patch.msgid.link/20260811094338.288094-20-mic@digikod.net
[mic: Update dates]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-08-17 10:17:19 +02:00
..
apparmor.rst Docs: Update LSM/apparmor.rst 2024-11-26 19:21:06 -08:00
index.rst landlock: Add audit documentation 2025-03-26 13:59:49 +01:00
ipe.rst ipe: Update documentation for script enforcement 2025-12-02 19:37:10 -08:00
landlock.rst landlock: Document tracepoints 2026-08-17 10:17:19 +02:00
LoadPin.rst security/loadpin: Update the changing interface in the source code. 2021-03-15 13:32:32 -06:00
SafeSetID.rst Documentation: Fix admin-guide typos 2025-08-18 10:31:19 -06:00
SELinux.rst documentation: add links to SELinux resources 2025-06-18 15:12:54 -04:00
Smack.rst smack: fix bug: setting task label silently ignores input garbage 2025-06-24 16:30:24 -07:00
tomoyo.rst tomoyo: update project links 2024-06-03 22:43:11 +09:00
Yama.rst doc: yama: Swap HTTP for HTTPS and replace dead link 2020-07-13 09:40:42 -06:00