From 66ea57d0672c84a9ee15060e740b6a02ece26650 Mon Sep 17 00:00:00 2001 From: nixpig <143995476+nixpig@users.noreply.github.com> Date: Tue, 24 Dec 2024 08:15:41 +0000 Subject: [PATCH] chore: fix go audit issues --- container/container_reexec.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/container/container_reexec.go b/container/container_reexec.go index 5e43be1..aa9d475 100644 --- a/container/container_reexec.go +++ b/container/container_reexec.go @@ -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, @@ -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)