(netNS *os.File, bin string, args []string)
| 876 | } |
| 877 | |
| 878 | func commandInNetNS(netNS *os.File, bin string, args []string) *exec.Cmd { |
| 879 | //nolint:gosec |
| 880 | cmd := exec.Command("nsenter", append([]string{"--net=/proc/self/fd/3", bin}, args...)...) |
| 881 | cmd.ExtraFiles = []*os.File{netNS} |
| 882 | return cmd |
| 883 | } |
| 884 | |
| 885 | func wrapExitErr(err error) error { |
| 886 | if err == nil { |
no test coverage detected