Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added --uid and --gid support when running as root without --unshare-user or --userns #616

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

axelfontaine
Copy link

Fixes #551

Disclaimer: My C skills are quite rusty, so apologies in advance in case I made some glaring mistake or if I missed something obvious. In my tests at least this worked for this use-case and didn't introduce any new issues.

@smcv
Copy link
Collaborator

smcv commented Mar 15, 2024

This is security-sensitive and will need careful review, to make sure it isn't introducing a security vulnerability in the case where bwrap is setuid root.

@axelfontaine
Copy link
Author

Why? This only deals with the case where real_uid is 0.

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.

Allow --uid and --gid without --unshare-user when running as root
2 participants