Skip to content

machined: do not allow unprivileged users to shell into the root namespace - #39102

Merged
poettering merged 1 commit into
systemd:mainfrom
bluca:machined_shell
Sep 25, 2025
Merged

poettering merged 1 commit into
systemd:mainfrom
bluca:machined_shell

Conversation

@bluca

@bluca bluca commented Sep 24, 2025

Copy link
Copy Markdown
Member

We intend to make self-registering machines an unprivileged operation, but currently that would allow an unprivileged user to register a process they own in the root namespace, and then login as any user they like, including root, which is not ideal.

Forbid non-root from shelling into a machine that is running in the root user namespace.

…space

We intend to make self-registering machines an unprivileged operation,
but currently that would allow an unprivileged user to register a
process they own in the root namespace, and then login as any
user they like, including root, which is not ideal.

Forbid non-root from shelling into a machine that is running in
the root user namespace.
@github-actions github-actions Bot added machine tests please-review PR is ready for (re-)review by a maintainer labels Sep 24, 2025
@poettering
poettering merged commit c5e48e3 into systemd:main Sep 25, 2025
77 of 87 checks passed
@bluca
bluca deleted the machined_shell branch September 25, 2025 20:18
@github-actions github-actions Bot removed the please-review PR is ready for (re-)review by a maintainer label Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants