Skip to content

[release/1.6 backport] WithAppendAdditionalGroups: better /etc/group handling#9543

Merged
dmcgowan merged 1 commit intocontainerd:release/1.6from
rumpl:1.6_backport_fix-append-additonal-groups
Dec 18, 2023
Merged

[release/1.6 backport] WithAppendAdditionalGroups: better /etc/group handling#9543
dmcgowan merged 1 commit intocontainerd:release/1.6from
rumpl:1.6_backport_fix-append-additonal-groups

Conversation

@rumpl
Copy link
Copy Markdown
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 <[email protected]>
Copy link
Copy Markdown
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

@dmcgowan dmcgowan merged commit 5c13c78 into containerd:release/1.6 Dec 18, 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.

5 participants