Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Gid (0.02 sec)

  1. src/syscall/exec_linux_test.go

    	"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")
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/capture/run.go

    					"-o", "lo", "-m", "owner", "!", "--gid-owner", gid, "-j", constants.RETURN)
    			}
    		}
    
    		// Avoid infinite loops. Don't redirect Envoy traffic directly back to
    		// Envoy for non-loopback traffic.
    		cfg.ruleBuilder.AppendRule(iptableslog.UndefinedCommand, constants.ISTIOOUTPUT, constants.NAT, "-m", "owner", "--gid-owner", gid, "-j", constants.RETURN)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_test.go

    		{call: "Setregid(101,0)", fn: func() error { return syscall.Setregid(101, 0) }, filter: "Gid:", expect: "\t101\t0\t0\t0"},
    		{call: "Setregid(0,102)", fn: func() error { return syscall.Setregid(0, 102) }, filter: "Gid:", expect: "\t0\t102\t102\t102"},
    		{call: "Setregid(0,0)", fn: func() error { return syscall.Setregid(0, 0) }, filter: "Gid:", expect: "\t0\t0\t0\t0"},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. src/syscall/syscall_aix.go

    //sys	Fchown(fd int, uid int, gid int) (err error)
    //sys	Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
    //sys	Fpathconf(fd int, name int) (val int, err error)
    //sys	Fstat(fd int, stat *Stat_t) (err error)
    //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getgid() (gid int)
    //sysnb	Getpid() (pid int)
    //sys	Geteuid() (euid int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/syscall/syscall_darwin.go

    //sys	Adjtime(delta *Timeval, olddelta *Timeval) (err error)
    //sys	Chdir(path string) (err error)
    //sys	Chflags(path string, flags int) (err error)
    //sys	Chmod(path string, mode uint32) (err error)
    //sys	Chown(path string, uid int, gid int) (err error)
    //sys	Chroot(path string) (err error)
    //sys	Close(fd int) (err error)
    //sys	closedir(dir uintptr) (err error)
    //sys	Dup(fd int) (nfd int, err error)
    //sys	Dup2(from int, to int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_aix_ppc64.go

    func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
    	r0, _, e1 := rawSyscall6(uintptr(unsafe.Pointer(&libc_getgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0)
    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func setgroups(ngid int, gid *_Gid_t) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  7. src/syscall/syscall_linux.go

    		}
    		return EACCES
    	}
    
    	var fmode uint32
    	if uint32(uid) == st.Uid {
    		fmode = (st.Mode >> 6) & 7
    	} else {
    		var gid int
    		if flags&_AT_EACCESS != 0 {
    			gid = Getegid()
    		} else {
    			gid = Getgid()
    		}
    
    		if uint32(gid) == st.Gid || isGroupMember(int(st.Gid)) {
    			fmode = (st.Mode >> 3) & 7
    		} else {
    			fmode = st.Mode & 7
    		}
    	}
    
    	if fmode&mode == mode {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. src/archive/tar/writer_test.go

    				Uid:      73025,
    				Gid:      5000,
    				Uname:    "dsymonds",
    				Gname:    "eng",
    				ModTime:  time.Unix(1246508266, 0),
    			}, nil},
    			testWrite{"Kilts", 5, nil},
    
    			testHeader{Header{
    				Typeflag: TypeReg,
    				Name:     "small2.txt",
    				Size:     11,
    				Mode:     0640,
    				Uid:      73025,
    				Uname:    "dsymonds",
    				Gname:    "eng",
    				Gid:      5000,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  9. pkg/kubelet/volumemanager/volume_manager.go

    }
    
    // getExtraSupplementalGid returns the value of an extra supplemental GID as
    // defined by an annotation on a volume and a boolean indicating whether the
    // volume defined a GID that the pod doesn't already request.
    func getExtraSupplementalGid(volumeGidValue string, pod *v1.Pod) (int64, bool) {
    	if volumeGidValue == "" {
    		return 0, false
    	}
    
    	gid, err := strconv.ParseInt(volumeGidValue, 10, 64)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  10. pkg/kubelet/userns/userns_manager.go

    		return
    	}
    
    	if len(userNs.UIDMappings) != len(userNs.GIDMappings) {
    		err = fmt.Errorf("invalid user namespace configuration: GID and UID mappings should be identical.")
    		return
    	}
    
    	if userNs.UIDMappings[0] != userNs.GIDMappings[0] {
    		err = fmt.Errorf("invalid user namespace configuration: GID and UID mapping should be identical")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top