Skip to content

Commit

Permalink
chore: fix go audit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpig committed Dec 24, 2024
1 parent 3a67d98 commit 66ea57d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions container/container_reexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ func (c *Container) Reexec() error {
return err
}

if c.Spec.Linux.Sysctl != nil {
// FIXME: why does this segfault??
// if err := sysctl.SetSysctl(c.Spec.Linux.Sysctl); err != nil {
// return fmt.Errorf("set sysctl: %w", err)
// }
}
// FIXME: why does this segfault??
// if c.Spec.Linux.Sysctl != nil {
// if err := sysctl.SetSysctl(c.Spec.Linux.Sysctl); err != nil {
// return fmt.Errorf("set sysctl: %w", err)
// }
// }

if err := filesystem.MountMaskedPaths(
c.Spec.Linux.MaskedPaths,
Expand Down Expand Up @@ -205,12 +205,12 @@ func (c *Container) Reexec() error {
}
}

if c.Spec.Process.IOPriority != nil {
// FIXME: why does this segfault??
// if err := iopriority.SetIOPriority(*c.Spec.Process.IOPriority); err != nil {
// return fmt.Errorf("set iop: %w", err)
// }
}
// FIXME: why does this segfault??
// if c.Spec.Process.IOPriority != nil {
// if err := iopriority.SetIOPriority(*c.Spec.Process.IOPriority); err != nil {
// return fmt.Errorf("set iop: %w", err)
// }
// }

if err := syscall.Setuid(int(c.Spec.Process.User.UID)); err != nil {
return fmt.Errorf("set UID: %w", err)
Expand Down

0 comments on commit 66ea57d

Please sign in to comment.