Skip to content

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