Skip to content

Add newCgroupNamespace option to isolate shell cgroup subtree#98

Merged
jasondellaluce merged 1 commit intomainfrom
jasondellaluce-cgroup-namespace-isolation
Mar 12, 2026
Merged

Add newCgroupNamespace option to isolate shell cgroup subtree#98
jasondellaluce merged 1 commit intomainfrom
jasondellaluce-cgroup-namespace-isolation

Conversation

@jasondellaluce
Copy link
Contributor

This allows to optionally make a PTY unshare to a new cgroup namespaces. This allows better isolation that prevents "breakout" attempts where a shell session attempts joining another cgroup scope out of its own subtree.

Copy link
Member

@cbrewster cbrewster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I suspect this won't work without goval 3 since we block unshare. I wonder if there's a way we can enable this but gracefully fall back? Once we're on goval 3 we can make this error if the syscall fails

@jasondellaluce jasondellaluce merged commit b67065b into main Mar 12, 2026
9 checks passed
@jasondellaluce jasondellaluce deleted the jasondellaluce-cgroup-namespace-isolation branch March 12, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants