docs(design): SEC-1.p Landlock LSM as defense-in-depth for daemon receiver#4699
Open
oferchen wants to merge 1 commit into
Open
docs(design): SEC-1.p Landlock LSM as defense-in-depth for daemon receiver#4699oferchen wants to merge 1 commit into
oferchen wants to merge 1 commit into
Conversation
…eiver Audit + design doc proposing Linux Landlock LSM (via the landlock crate) as a kernel-enforced allowlist layered above the SEC-1 *at syscall chain. Documents threat-model gaps the *at helpers do not close (missed call sites, normalization bugs, out-of-tree operands), the integration point in module_access/transfer.rs, the kernel-version matrix (v1/v2/v3) with best-effort downgrade, feature gating mirroring iouring-send-zc, a 3-test integration plan, and a single-PR implementation estimate (~310 LoC). Recommendation: PROCEED.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audit + design doc evaluating Linux Landlock LSM (via the
landlockcrate from https://github.com/landlock-lsm/rust-landlock) as a kernel-enforced allowlist layered ABOVE the SEC-1*atsyscall chain. No code changes.*athelpers do not close on their own (missed call sites, normalization bugs insingle_component_leaf, out-of-tree operand expansion, inherited hook processes).crates/daemon/src/daemon/sections/module_access/transfer.rs:352, right afterapply_module_privilege_restrictionsreturns.ABI::set_best_effort(true)downgrade and per-tier security analysis.iouring-send-zc(crates/fast_io/Cargo.toml:110-117).Recommendation: PROCEED.
Test plan
cargo fmt --allno-op for .md files.*athelper exports already shipped (crates/fast_io/src/dir_sandbox/at_syscalls.rs,at_syscalls_metadata.rs,at_syscalls_rename.rs).