- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 367 for getgid (0.09 sec)
-
src/os/proc.go
} func runtime_args() []string // in package runtime // Getuid returns the numeric user id of the caller. // // On Windows, it returns -1. func Getuid() int { return syscall.Getuid() } // Geteuid returns the numeric effective user id of the caller. // // On Windows, it returns -1. func Geteuid() int { return syscall.Geteuid() } // Getgid returns the numeric group id of the caller. // // On Windows, it returns -1.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.3K bytes - Viewed (0) -
src/runtime/security_aix.go
package runtime // secureMode is only ever mutated in schedinit, so we don't need to worry about // synchronization primitives. var secureMode bool func initSecureMode() { secureMode = !(getuid() == geteuid() && getgid() == getegid()) } func isSecureMode() bool { return secureMode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 449 bytes - Viewed (0) -
src/runtime/os_aix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/ctrlz/topics/proc.go
Threads int `json:"threads"` Goroutines int `json:"goroutines"` } func getProcInfo() *procInfo { pi := procInfo{ Egid: os.Getegid(), Euid: os.Geteuid(), GID: os.Getgid(), Pid: os.Getpid(), Ppid: os.Getppid(), UID: os.Getuid(), TempDir: os.TempDir(), Goroutines: runtime.NumGoroutine(), } pi.Groups, _ = os.Getgroups() pi.Wd, _ = os.Hostname()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 2.3K bytes - Viewed (0) -
src/syscall/syscall_js.go
} const ImplementsGetwd = true func Getwd() (wd string, err error) { var buf [PathMax]byte n, err := Getcwd(buf[0:]) if err != nil { return "", err } return string(buf[:n]), nil } func Getuid() int { return jsProcess.Call("getuid").Int() } func Getgid() int { return jsProcess.Call("getgid").Int() } func Geteuid() int { return jsProcess.Call("geteuid").Int() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 6.7K bytes - Viewed (0) -
src/os/user/lookup_stubs.go
} func currentUID() string { if id := os.Getuid(); id >= 0 { return strconv.Itoa(id) } // Note: Windows returns -1, but this file isn't used on // Windows anyway, so this empty return path shouldn't be // used. return "" } func currentGID() string { if id := os.Getgid(); id >= 0 { return strconv.Itoa(id) } return ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 16:09:09 UTC 2022 - 1.8K bytes - Viewed (0) -
src/syscall/creds_test.go
} switch err { case syscall.EPERM, syscall.EINVAL: default: t.Fatalf("WriteMsgUnix failed with %v, want EPERM or EINVAL", err) } } ucred.Pid = int32(os.Getpid()) ucred.Uid = uint32(os.Getuid()) ucred.Gid = uint32(os.Getgid()) oob := syscall.UnixCredentials(&ucred) // On SOCK_STREAM, this is internally going to send a dummy byte n, oobn, err := cli.(*net.UnixConn).WriteMsgUnix(nil, oob, nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 17 02:43:05 UTC 2022 - 3.4K bytes - Viewed (0) -
src/syscall/exec_linux_test.go
} func TestCloneNEWUSERAndRemap(t *testing.T) { for _, setgroups := range []bool{false, true} { setgroups := setgroups t.Run(fmt.Sprintf("setgroups=%v", setgroups), func(t *testing.T) { uid := os.Getuid() gid := os.Getgid() cmd := whoamiNEWUSER(t, uid, gid, setgroups) out, err := cmd.CombinedOutput() t.Logf("%v: %v", cmd, err) if uid != 0 && setgroups {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 20.6K bytes - Viewed (0) -
src/os/os_unix_test.go
defer f.Close() dir, err := f.Stat() if err != nil { t.Fatalf("stat %s: %s", f.Name(), err) } // Can't change uid unless root, but can try // changing the group id. First try our current group. gid := Getgid() t.Log("gid:", gid) if err = Chown(f.Name(), -1, gid); err != nil { t.Fatalf("chown %s -1 %d: %s", f.Name(), gid, err) } sys := dir.Sys().(*syscall.Stat_t) checkUidGid(t, f.Name(), int(sys.Uid), gid)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:32:43 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
//sys Fstatfs(fd int, buf *Statfs_t) (err error) //sys Ftruncate(fd int, length int64) (err error) //sysnb Getegid() (egid int) //sysnb Geteuid() (euid int) //sysnb Getgid() (gid int) //sysnb Getrlimit(resource int, rlim *Rlimit) (err error) //sysnb Getuid() (uid int) //sys Lchown(path string, uid int, gid int) (err error) //sys Listen(s int, n int) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.4K bytes - Viewed (0)