Skip to content

Commit

Permalink
chore: fix audit error
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 14, 2024
1 parent bcf3312 commit 88a7fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container/container_reexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ func (c *Container) Reexec(log *zerolog.Logger) error {
// syscall.Setgid(int(c.Spec.Process.User.GID))

if c.Spec.Linux.UIDMappings != nil {
cmd.SysProcAttr.UidMappings = user.BuildUidMappings(c.Spec.Linux.UIDMappings)
cmd.SysProcAttr.UidMappings = user.BuildUIDMappings(c.Spec.Linux.UIDMappings)
}

if c.Spec.Linux.GIDMappings != nil {
cmd.SysProcAttr.GidMappings = user.BuildGidMappings(c.Spec.Linux.GIDMappings)
cmd.SysProcAttr.GidMappings = user.BuildGIDMappings(c.Spec.Linux.GIDMappings)
}

cmd.Stdin = os.Stdin
Expand Down

0 comments on commit 88a7fb0

Please sign in to comment.