Repository navigation
feat(rootfs): add /proc/self, /proc/1, /proc/uptime and /proc/mounts - #2570
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 37f874b | Commit Preview URL Branch Preview URL |
Oct 07 2026, 05:36 PM |
chaliy
force-pushed
the
claude/proc-self
branch
3 times, most recently
from
October 7, 2026 16:34
5a93e7b to
e4ec293
Compare
The shell's own process gets a static synthetic view: status (uid 1000, no capabilities), comm, cmdline, stat, cgroup, mounts, exe -> /bin/bash and fd/0..2. /proc/uptime counts from filesystem build, /proc/mounts lists the single bashkit-vfs root. $BASHPID is set (1, like $$); it was empty. Never host data (TM-INF-003). Claude-Session: https://claude.ai/code/session_019aFikmptPc91Fj4N2iDXQA
chaliy
force-pushed
the
claude/proc-self
branch
from
October 7, 2026 17:35
e4ec293 to
37f874b
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.
Requested by Михайло · project thread
What changed
The rootfs now has a process view for the shell itself.
/proc/selfand/proc/1hold identical static files:status: uid/gid 1000, no capabilitiescomm,cmdline,stat,cgroup(0::/),mountsexe->/bin/bash,fd/0..2->/dev/std*/proc/uptimecounts seconds since the filesystem was built./proc/mountslists the onebashkit-vfsroot thatdfalready shows.$BASHPIDis now set to 1, the same as$$; before it was empty.Why
Step 3 of the level-up roadmap ("OS shape"). Scripts probe
/proc/self/status,/proc/1/cgroup(container detection),readlink /proc/self/exeand/proc/uptime, and they compare$BASHPIDwith$$. On bashkit these failed with "No such file", which real Linux never does.Before / After
Before:
After:
Risk
environ./proclisting were updated:/proc/uptime, which changes on every read/proc/1/exeis the synthetic/bin/bashChecklist
proc-self.test.sh, threat-model probe)https://claude.ai/code/session_019aFikmptPc91Fj4N2iDXQA
Generated by Claude Code