Skip to content

On exec, honor additional_gids from the process spec - #645

Merged
giuseppe merged 1 commit into
containers:masterfrom
owtaylor:additional-gids
Apr 11, 2021
Merged

giuseppe merged 1 commit into
containers:masterfrom
owtaylor:additional-gids

Conversation

@owtaylor

@owtaylor owtaylor commented Apr 9, 2021

Copy link
Copy Markdown
Contributor

The code was using the process defined in the container definition to find additional_gids,
not the one passed on the command line or created by default.

Fixes #644

…er definition

The code was using the process defined in the container definition to find additional_gids,
not the one passed on the command line or created by default.

Fixes containers#644

Signed-off-by: Owen W. Taylor <[email protected]>
@owtaylor

owtaylor commented Apr 9, 2021

Copy link
Copy Markdown
Contributor Author

The test here fails when run rootless - getgroups() returns the nobody group. I'm not quite sure what namespace gyrations would be needed to fix that.

@giuseppe giuseppe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi Owen, thanks for the patch!

LGTM

@giuseppe
giuseppe merged commit f302dd8 into containers:master Apr 11, 2021
@debarshiray

Copy link
Copy Markdown
Member

Thanks for tracking this down to crun and fixing it, @owtaylor !

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.

additional_gids ignored on exec

3 participants