Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for NoSetGroups (0.22 sec)

  1. api/go1.9.txt

    pkg syscall (netbsd-386), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-amd64-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-amd64), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-arm-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-arm), type Credential struct, NoSetGroups bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  2. src/os/exec/exec_posix_test.go

    		t.Fatalf("error converting Gid=%s to integer: %v", u.Gid, err)
    	}
    
    	// If NoSetGroups is true, setgroups isn't called and cmd.Run should succeed
    	cmd := helperCommand(t, "echo", "foo")
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Credential: &syscall.Credential{
    			Uid:         uint32(uid),
    			Gid:         uint32(gid),
    			NoSetGroups: true,
    		},
    	}
    
    	if err = cmd.Run(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 20:21:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  3. src/syscall/exec_bsd.go

    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(SYS_SETGROUPS, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    		_, _, err1 = RawSyscall(SYS_SETGID, uintptr(cred.Gid), 0, 0)
    		if err1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/syscall/exec_libc.go

    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			err1 = setgroups1(ngroups, groups)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    		err1 = setgid(uintptr(cred.Gid))
    		if err1 != 0 {
    			goto childerror
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  5. src/syscall/exec_freebsd.go

    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(SYS_SETGROUPS, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    		_, _, err1 = RawSyscall(SYS_SETGID, uintptr(cred.Gid), 0, 0)
    		if err1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/syscall/exec_libc2.go

    	// User and groups
    	if cred = sys.Credential; cred != nil {
    		ngroups = uintptr(len(cred.Groups))
    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !cred.NoSetGroups {
    			_, _, err1 = rawSyscall(abi.FuncPCABI0(libc_setgroups_trampoline), ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. src/syscall/exec_unix.go

    // by a child process started by [StartProcess].
    type Credential struct {
    	Uid         uint32   // User ID.
    	Gid         uint32   // Group ID.
    	Groups      []uint32 // Supplementary group IDs.
    	NoSetGroups bool     // If true, don't set supplementary groups
    }
    
    // ProcAttr holds attributes that will be applied to a new process started
    // by [StartProcess].
    type ProcAttr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/syscall/exec_linux.go

    		groups = uintptr(0)
    		if ngroups > 0 {
    			groups = uintptr(unsafe.Pointer(&cred.Groups[0]))
    		}
    		if !(sys.GidMappings != nil && !sys.GidMappingsEnableSetgroups && ngroups == 0) && !cred.NoSetGroups {
    			_, _, err1 = RawSyscall(_SYS_setgroups, ngroups, groups, 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    		_, _, err1 = RawSyscall(sys_SETGID, uintptr(cred.Gid), 0, 0)
    		if err1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), type Credential struct, Gid uint32
    pkg syscall (netbsd-arm64-cgo), type Credential struct, Groups []uint32
    pkg syscall (netbsd-arm64-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (netbsd-arm64-cgo), type Credential struct, Uid uint32
    pkg syscall (netbsd-arm64-cgo), type Dirent struct
    pkg syscall (netbsd-arm64-cgo), type Dirent struct, Fileno uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
  10. api/go1.14.txt

    pkg syscall (freebsd-arm64), type Credential struct, Gid uint32
    pkg syscall (freebsd-arm64), type Credential struct, Groups []uint32
    pkg syscall (freebsd-arm64), type Credential struct, NoSetGroups bool
    pkg syscall (freebsd-arm64), type Credential struct, Uid uint32
    pkg syscall (freebsd-arm64), type Dirent struct
    pkg syscall (freebsd-arm64), type Dirent struct, Fileno uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
Back to top