Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for gids (0.06 sec)

  1. src/os/user/listgroups_unix_test.go

    	{in: testGroupFile, user: "user777", gid: "7", gids: []string{"7", "777", "1000"}},
    	{in: testGroupFile, user: "user1111", gid: "1111", gids: []string{"1111", "1000"}},
    	{in: testGroupFile, user: "user1000", gid: "1000", gids: []string{"1000"}},
    	{in: testGroupFile, user: "user7500", gid: "7500", gids: []string{"1000", "7500"}},
    	{in: testGroupFile, user: "no-such-user", gid: "2345", gids: []string{"2345"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. pkg/kubelet/userns/userns_manager.go

    			return nil, err
    		}
    	}
    
    	var uids []*runtimeapi.IDMapping
    	var gids []*runtimeapi.IDMapping
    
    	for _, u := range userNs.UIDMappings {
    		uids = append(uids, &runtimeapi.IDMapping{
    			HostId:      u.HostId,
    			ContainerId: u.ContainerId,
    			Length:      u.Length,
    		})
    	}
    	for _, g := range userNs.GIDMappings {
    		gids = append(gids, &runtimeapi.IDMapping{
    			HostId:      g.HostId,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. src/syscall/syscall_aix.go

    	n, err = getgroups(n, &a[0])
    	if err != nil {
    		return nil, err
    	}
    	gids = make([]int, n)
    	for i, v := range a[0:n] {
    		gids[i] = int(v)
    	}
    	return
    }
    
    func Setgroups(gids []int) (err error) {
    	if len(gids) == 0 {
    		return setgroups(0, nil)
    	}
    
    	a := make([]_Gid_t, len(gids))
    	for i, v := range gids {
    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	n, err = getgroups(n, &a[0])
    	if err != nil {
    		return nil, err
    	}
    	gids = make([]int, n)
    	for i, v := range a[0:n] {
    		gids[i] = int(v)
    	}
    	return
    }
    
    func Setgroups(gids []int) (err error) {
    	if len(gids) == 0 {
    		return setgroups(0, nil)
    	}
    
    	a := make([]_Gid_t, len(gids))
    	for i, v := range gids {
    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		if cl.SecurityContext.NamespaceOptions.UsernsOptions != nil {
    			for _, mount := range config.Mounts {
    				mount.UidMappings = cl.SecurityContext.NamespaceOptions.UsernsOptions.Uids
    				mount.GidMappings = cl.SecurityContext.NamespaceOptions.UsernsOptions.Gids
    			}
    		}
    	}
    	return nil
    }
    
    // generateLinuxContainerConfig generates linux container config for kubelet runtime v1.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    func Chown(path string, uid int, gid int) (err error)  { return syscall.EWINDOWS }
    func Lchown(path string, uid int, gid int) (err error) { return syscall.EWINDOWS }
    func Fchown(fd Handle, uid int, gid int) (err error)   { return syscall.EWINDOWS }
    
    func Getuid() (uid int)                  { return -1 }
    func Geteuid() (euid int)                { return -1 }
    func Getgid() (gid int)                  { return -1 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    }
    
    // getKubeletMappings returns the range of IDs that can be used to configure user namespaces.
    // If subordinate user or group ID ranges are specified for the kubelet user and the getsubids tool
    // is installed, then the single mapping specified both for user and group IDs will be used.
    // If the tool is not installed, or there are no IDs configured, the default mapping is returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  9. tools/istio-clean-iptables/pkg/cmd/testdata/dns-uid-gid.golden

    iptables -t raw -D ISTIO_OUTPUT -p udp --dport 53 -m owner --gid-owner 1 -j CT --zone 1
    ip6tables -t raw -D ISTIO_OUTPUT -p udp --dport 53 -m owner --gid-owner 1 -j CT --zone 1
    iptables -t raw -D ISTIO_OUTPUT -p udp --sport 15053 -m owner --gid-owner 1 -j CT --zone 2
    ip6tables -t raw -D ISTIO_OUTPUT -p udp --sport 15053 -m owner --gid-owner 1 -j CT --zone 2
    iptables -t raw -D ISTIO_OUTPUT -p udp --dport 53 -m owner --gid-owner 2 -j CT --zone 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 15:51:15 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/capture/testdata/ipv6-uid-gid.golden

    iptables -t nat -A ISTIO_OUTPUT -o lo -m owner ! --gid-owner 1 -j RETURN
    iptables -t nat -A ISTIO_OUTPUT -m owner --gid-owner 1 -j RETURN
    iptables -t nat -A ISTIO_OUTPUT -o lo ! -d 127.0.0.1/32 -p tcp ! --dport 15008 -m owner --gid-owner 2 -j ISTIO_IN_REDIRECT
    iptables -t nat -A ISTIO_OUTPUT -o lo -m owner ! --gid-owner 2 -j RETURN
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top