diff --git a/libcontainer/standard_init_linux.go b/libcontainer/standard_init_linux.go index 4447032cf..4b7aa6775 100644 --- a/libcontainer/standard_init_linux.go +++ b/libcontainer/standard_init_linux.go @@ -167,7 +167,7 @@ func (l *linuxStandardInit) Init() error { } } - // Tell our parent that we're ready to Execv. This must be done before the + // Tell our parent that we're ready to exec. This must be done before the // Seccomp rules have been applied, because we need to be able to read and // write to a socket. if err := syncParentReady(l.pipe); err != nil { diff --git a/libcontainer/system/linux.go b/libcontainer/system/linux.go index 0b3b4da33..368364baf 100644 --- a/libcontainer/system/linux.go +++ b/libcontainer/system/linux.go @@ -7,7 +7,6 @@ import ( "fmt" "io" "os" - "os/exec" "strconv" "syscall" "unsafe" @@ -36,14 +35,6 @@ func (p ParentDeathSignal) Set() error { return SetParentDeathSignal(uintptr(p)) } -func Execv(cmd string, args []string, env []string) error { - name, err := exec.LookPath(cmd) - if err != nil { - return err - } - return Exec(name, args, env) -} - func Exec(cmd string, args []string, env []string) error { for { err := unix.Exec(cmd, args, env)