A test run sweep judges only roots made in its own pid namespace (martha#203) #208
Loading…
Reference in a new issue
No description provided.
Delete branch "uranus/203-sweep-own-pid-namespace"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #203. Lands right after PR 201 (#195). The two touch the same file but different functions, so merging 201 first conflicts nowhere I can see.
What:
owner.jsonnames the run's pid namespace (readlink /proc/self/ns/pid).sweepOneRootjudges the owner pid only when that namespace is its own. A root from another namespace, or one with no recorded namespace, is kept with what works in it, and said on stderr. Threat model: issue comment 5165.Proof: one run at a time, inside
unshare --user --map-root-user --pid --fork --mount-proc, afterpgrepshowed no other run.if (elsewhere !== undefined) …removed:tsc,eslinton the directory,check:restated-valuesandcheck:private(on the range) are clean.6957a0e2(martha#195) into the pid-namespace sweep (martha#203)