Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical teardown defects discard unmount errors and target the wrong path when TMPDIR is customized, allowing the command to run while the exported filesystem remains accessible.
2 open issues
What changed in this PR
This PR adds cleanup of the temporary client filesystem after namespace setup, aiming to reduce filesystem exposure before the session command runs.
Changes:
- Attempts to unmount
/tmp/cpuafter namespace andCPU_FSTABsetup. - Documents the security motivation for removing the mount.
| File | Description |
|---|---|
session/session.go |
Adds the unmount attempt before terminal setup and command execution. |
Review effort: Balanced
rminnich
force-pushed
the
teardown-tmp/cpu
branch
2 times, most recently
from
November 2, 2026 19:31
14237eb to
d0aa095
Compare
Collaborator
|
from gemini: |
rminnich
force-pushed
the
teardown-tmp/cpu
branch
3 times, most recently
from
November 2, 2026 19:43
8870c43 to
c1d58eb
Compare
Member
Author
|
Thanks for review, great suggestions. |
rminnich
force-pushed
the
teardown-tmp/cpu
branch
from
November 2, 2026 21:13
c1d58eb to
6750213
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A failed unmount still allows the remote command to run with the mount accessible, and a successful command hides the teardown error, leaving a critical security cleanup gap.
1 open issue
2 resolved since last review
Review effort: Balanced
We have been told that leaving /tmp/cpu up is considered a security risk. Once the namespace is ready, tear it down. Signed-off-by: Ronald Minnich <rminnich@gmail.com>
rminnich
force-pushed
the
teardown-tmp/cpu
branch
from
November 3, 2026 20:48
6750213 to
51554c3
Compare
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.

We have been told that leaving /tmp/cpu up is considered a security risk. Once the namespace is ready, tear it down.