diff options
author | Mickaël Salaün <mic@digikod.net> | 2025-03-20 22:07:07 +0300 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2025-03-26 15:59:43 +0300 |
commit | ead9079f75696a028aea8860787770c80eddb8f9 (patch) | |
tree | d934ecd9e37a3f82bcc46b1fcee6fe9b23eead15 /lib/debugobjects.c | |
parent | 12bfcda73ac2cf3083c9d6d05724af92da3a4b4b (diff) | |
download | linux-ead9079f75696a028aea8860787770c80eddb8f9.tar.xz |
landlock: Add LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF
Add LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF for the case of sandboxer
tools, init systems, or runtime containers launching programs sandboxing
themselves in an inconsistent way. Setting this flag should only
depends on runtime configuration (i.e. not hardcoded).
We don't create a new ruleset's option because this should not be part
of the security policy: only the task that enforces the policy (not the
one that create it) knows if itself or its children may request denied
actions.
This is the first and only flag that can be set without actually
restricting the caller (i.e. without providing a ruleset).
Extend struct landlock_cred_security with a u8 log_subdomains_off.
struct landlock_file_security is still 16 bytes.
Cc: Günther Noack <gnoack@google.com>
Cc: Paul Moore <paul@paul-moore.com>
Closes: https://github.com/landlock-lsm/linux/issues/3
Link: https://lore.kernel.org/r/20250320190717.2287696-19-mic@digikod.net
[mic: Fix comment]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions