Skip to content

[release/1.7 backport] WithAppendAdditionalGroups: better /etc/group handling#9544

Merged
fuweid merged 1 commit intocontainerd:release/1.7from
rumpl:1.7_backport_fix-append-additonal-groups
Dec 14, 2023
Merged

[release/1.7 backport] WithAppendAdditionalGroups: better /etc/group handling#9544
fuweid merged 1 commit intocontainerd:release/1.7from
rumpl:1.7_backport_fix-append-additonal-groups

Conversation

@rumpl
Copy link
Member

@rumpl rumpl commented Dec 14, 2023

Backport of #9494

Scratch images don't necessarily have the /etc/group file, so we shouldn't fail if opening/parsing it is not needed: if all the group to add are numeric.

(cherry picked from commit 1398186)

Scratch images don't necessarily have the /etc/group file, so we shouldn't
fail if opening/parsing it is not needed: if all the group to add are numeric.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Copy link
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit ad9e654 into containerd:release/1.7 Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants