Skip to content

Conversation

@cerdelen
Copy link
Contributor

Fix: #10307

Instead of blindly taking the uid as gid we will parse it out of passwd instead.

I am not sure how to write a test in the by_util/chroot.rs file as i dont see any precedence of how to create a user so im not sure how i could set up a test of a user with a different gid to their uid, happy to take pointers how this could be done in the testing framework.

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/seq/seq-epipe is now passing!

@sylvestre
Copy link
Contributor

please add a test to make sure we won't regress, thanks!

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.

chroot: incorrect gid when different from uid

2 participants