Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for whoamiNEWUSER (0.09 sec)

  1. src/syscall/exec_linux_test.go

    	"os/user"
    	"path"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    // whoamiNEWUSER returns a command that runs "whoami" with CLONE_NEWUSER,
    // mapping uid and gid 0 to the actual uid and gid of the test.
    func whoamiNEWUSER(t *testing.T, uid, gid int, setgroups bool) *exec.Cmd {
    	t.Helper()
    	testenv.MustHaveExecPath(t, "whoami")
    	cmd := testenv.Command(t, "whoami")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top