go/src/syscall/exec_linux_test.go

// 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 {}

func TestCloneNEWUSERAndRemap(t *testing.T) {}

func TestEmptyCredGroupsDisableSetgroups(t *testing.T) {}

func TestUnshare(t *testing.T) {}

func TestGroupCleanup(t *testing.T) {}

func TestGroupCleanupUserNamespace(t *testing.T) {}

// Test for https://go.dev/issue/19661: unshare fails because systemd
// has forced / to be shared
func TestUnshareMountNameSpace(t *testing.T) {}

// Test for Issue 20103: unshare fails when chroot is used
func TestUnshareMountNameSpaceChroot(t *testing.T) {}

// Test for Issue 29789: unshare fails when uid/gid mapping is specified
func TestUnshareUidGidMapping(t *testing.T) {}

func prepareCgroupFD(t *testing.T) (int, string) {}

func TestUseCgroupFD(t *testing.T) {}

func TestCloneTimeNamespace(t *testing.T) {}

func testPidFD(t *testing.T, userns bool) error {}

func TestPidFD(t *testing.T) {}

func TestPidFDWithUserNS(t *testing.T) {}

func TestPidFDClone3(t *testing.T) {}

type capHeader

type capData

const CAP_SYS_TIME

const CAP_SYSLOG

type caps

func getCaps() (caps, error) {}

func TestAmbientCaps(t *testing.T) {}

func TestAmbientCapsUserns(t *testing.T) {}

func testAmbientCaps(t *testing.T, userns bool) {}