Skip to content

On exec, honor additional_gids from the process spec#645

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

On exec, honor additional_gids from the process spec#645
giuseppe merged 1 commit intocontainers:masterfrom
owtaylor:additional-gids

Conversation

@owtaylor
Copy link
Copy Markdown
Contributor

@owtaylor owtaylor commented Apr 9, 2021

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 <otaylor@fishsoup.net>
@owtaylor
Copy link
Copy Markdown
Contributor Author

owtaylor commented Apr 9, 2021

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.

Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

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
@giuseppe
Copy link
Copy Markdown
Member

@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