Conversation
|
Claude finished @joshiste's task in 12s —— View job Review of PR #512
No issues found. The change in
One caveat, which isn't a blocker: the result is cached on first call. If anything calls into |
achoimet
added a commit
to steadybit/extension-container
that referenced
this pull request
Sep 25, 2026
achoimet
added a commit
to steadybit/extension-host
that referenced
this pull request
Sep 25, 2026
…itialization isCapSysPtraceSet was evaluated when the package was initialized, from the effective capability set. Extensions whose binary carries its file capabilities without the effective bit (setcap ...+ip) only make them effective in main(), so the check always failed: every namespace lookup took the slower fallback (a root readlink process) and logged a false "CAP_SYS_PTRACE capability is not set" warning.
joshiste
force-pushed
the
fix/lazy-sys-ptrace-check
branch
from
October 15, 2026 09:15
d46a5b4 to
34abb81
Compare
|
joshiste
pushed a commit
to steadybit/extension-host
that referenced
this pull request
Oct 15, 2026
joshiste
pushed a commit
to steadybit/extension-container
that referenced
this pull request
Oct 15, 2026
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.



Why
ociruntimedecides once, when the package is initialized, whetherCAP_SYS_PTRACEis in the effective set (var isCapSysPtraceSet = hasCap(unix.CAP_SYS_PTRACE)). Without it, every namespace lookup falls back to spawning a rootreadlinkprocess and logs "CAP_SYS_PTRACE capability is not set. Using fallback with reduced performance."extension-container and extension-host are moving their file capabilities from
setcap …+eipto+ip, so that a missing capability no longer makesexecfail (the extension crash-loops today). Their capabilities then only become effective inmain()(extruntime.RaiseCapabilities), after package initialization, and this check always sees them missing: every attack would take the slow path, with a false warning.Seen in the E2E logs of steadybit/extension-container#525: the warning appears 7 times in the PR run vs once on
main.What
Evaluate the check on first use (
sync.OnceValue), which happens when an attack runs, aftermain()has raised the capabilities. Nothing changes for binaries that keep the effective bit.Related
RaiseCapabilitiessetcap +ip, they will depend on this fix