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

Make sure root UID/GID are mapped properly #6

Open
ryanlovett opened this issue Feb 23, 2023 · 1 comment
Open

Make sure root UID/GID are mapped properly #6

ryanlovett opened this issue Feb 23, 2023 · 1 comment

Comments

@ryanlovett
Copy link
Owner

I've discovered that UID 0 / GID 0 is being mapped to 65534 on a local system in a server spawned with portwrap. This was flagged when a user attempted to use git/ssh from this jupyter server, and ssh complained that a file in /etc/ssh/ssh_config.d/ had the wrong permissions. They are 65534:65534 within the user namespace and 0:0 on the host. I suspect this is happening because of how subuid/subgid are configured on the system, but I need to test.

@ryanlovett
Copy link
Owner Author

Actually, it looks like this is due to how bubblewrap initializes the namespace, to not map root-to-root. There may be other code paths to take if bubblewrap were setuid, but I'm not sure what all the pros and cons to that are.

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

No branches or pull requests

1 participant