Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Dec 9, 2025

This changes our default Landlock policy to allow sendmsg(2) and recvmsg(2) syscalls. We believe these were originally denied out of an abundance of caution, but given that send(2) nor recv(2) are allowed today [which provide comparable capability to the *msg equivalents], we do not believe allowing them grants any privileges beyond what we already allow.

Rather than using the syscall as the security boundary, preventing access to the potentially hazardous file descriptor in the first place seems like the right layer of defense.

In particular, this makes it possible for shell-tool-mcp to run on Linux when using a read-only sandbox for the Bash process, as demonstrated by accept_elicitation_for_prompt_rule() now succeeding in CI.

@bolinfest bolinfest changed the title fix: get accept_elicitation test working on Linux fix: allow sendmsg(2) and recvmsg(2) syscalls in our Linux sandbox Dec 9, 2025
@bolinfest bolinfest merged commit a7e3e37 into main Dec 9, 2025
50 of 52 checks passed
@bolinfest bolinfest deleted the pr7779 branch December 9, 2025 17:24
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants