Skip to content

Commit

Permalink
fix(cnbBuild): do not set supplementary groups for lifecycle (#4675)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Dillmann <[email protected]>
  • Loading branch information
pbusko and modulo11 authored Nov 14, 2023
1 parent 6e2ecef commit 63b7fd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/cnbBuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ func runCnbBuild(config *cnbBuildOptions, telemetry *buildpacks.Telemetry, image
creatorArgs = append(creatorArgs, fmt.Sprintf("%s:%s", containerImage, targetImage.ContainerImageTag))
attr := &syscall.SysProcAttr{
Credential: &syscall.Credential{
Uid: uint32(uid),
Gid: uint32(gid),
Uid: uint32(uid),
Gid: uint32(gid),
NoSetGroups: true,
},
}

Expand Down

0 comments on commit 63b7fd7

Please sign in to comment.