Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/os/os_unix_test.go

    func checkUidGid(t *testing.T, path string, uid, gid int) {
    	dir, err := Lstat(path)
    	if err != nil {
    		t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err)
    	}
    	sys := dir.Sys().(*syscall.Stat_t)
    	if int(sys.Uid) != uid {
    		t.Errorf("Lstat %q: uid %d want %d", path, sys.Uid, uid)
    	}
    	if int(sys.Gid) != gid {
    		t.Errorf("Lstat %q: gid %d want %d", path, sys.Gid, gid)
    	}
    }
    
    func TestChown(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/users/users_linux.go

    			}
    			for _, g := range groups {
    				if g.id != user.gid {
    					continue
    				}
    				// Found matching group GID for user GID
    				if g.name != uc.name {
    					return nil, nil, errors.Errorf("user %q has GID %d but the group with that GID is not named %q",
    						uc.name, g.id, uc.name)
    				}
    				goto skipUser // Valid group GID and name; skip
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  3. src/cmd/internal/archive/archive.go

    			return v
    		}
    		size := get(48, 58, 10, 64)
    		var (
    			mtime    int64
    			uid, gid int
    			mode     os.FileMode
    		)
    		if verbose {
    			mtime = get(16, 28, 10, 64)
    			uid = int(get(28, 34, 10, 32))
    			gid = int(get(34, 40, 10, 32))
    			mode = os.FileMode(get(40, 48, 8, 32))
    		}
    		if err != nil {
    			return errCorruptArchive
    		}
    		data = data[60:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. src/os/user/lookup_windows.go

    		}
    		sids = append(sids, sid)
    	}
    	return sids, nil
    }
    
    func newUser(uid, gid, dir, username, domain string) (*User, error) {
    	domainAndUser := domain + `\` + username
    	name, e := lookupFullName(domain, username, domainAndUser)
    	if e != nil {
    		return nil, e
    	}
    	u := &User{
    		Uid:      uid,
    		Gid:      gid,
    		Username: domainAndUser,
    		Name:     name,
    		HomeDir:  dir,
    	}
    	return u, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fchown(fd int, uid int, gid int) (err error) {
    	_, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fchown(fd int, uid int, gid int) (err error) {
    	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fstat(fd int, stat *Stat_t) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  9. src/os/file_plan9.go

    }
    
    // Chown changes the numeric uid and gid of the named file.
    // If the file is a symbolic link, it changes the uid and gid of the link's target.
    // A uid or gid of -1 means to not change that value.
    // If there is an error, it will be of type *PathError.
    //
    // On Windows or Plan 9, Chown always returns the syscall.EWINDOWS or
    // EPLAN9 error, wrapped in *PathError.
    func Chown(name string, uid, gid int) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go

    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Fchown(fd int, uid int, gid int) (err error) {
    	_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 16K bytes
    - Viewed (0)
Back to top