Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for Ucred (0.03 sec)

  1. src/syscall/sockcmsg_linux.go

    // authentication.
    func UnixCredentials(ucred *Ucred) []byte {
    	b := make([]byte, CmsgSpace(SizeofUcred))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_SOCKET
    	h.Type = SCM_CREDENTIALS
    	h.SetLen(CmsgLen(SizeofUcred))
    	*(*Ucred)(h.data(0)) = *ucred
    	return b
    }
    
    // ParseUnixCredentials decodes a socket control message that contains
    // credentials in a Ucred structure. To receive such a message, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 17 18:42:47 UTC 2019
    - 1.1K bytes
    - Viewed (0)
  2. src/syscall/creds_test.go

    		cli, err := net.FileConn(cliFile)
    		if err != nil {
    			t.Errorf("FileConn: %v", err)
    			return
    		}
    		defer cli.Close()
    
    		var ucred syscall.Ucred
    		if os.Getuid() != 0 {
    			ucred.Pid = int32(os.Getpid())
    			ucred.Uid = 0
    			ucred.Gid = 0
    			oob := syscall.UnixCredentials(&ucred)
    			_, _, err := cli.(*net.UnixConn).WriteMsgUnix(nil, oob, nil)
    			if op, ok := err.(*net.OpError); ok {
    				err = op.Err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 02:43:05 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_linux.go

    // authentication.
    func UnixCredentials(ucred *Ucred) []byte {
    	b := make([]byte, CmsgSpace(SizeofUcred))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_SOCKET
    	h.Type = SCM_CREDENTIALS
    	h.SetLen(CmsgLen(SizeofUcred))
    	*(*Ucred)(h.data(0)) = *ucred
    	return b
    }
    
    // ParseUnixCredentials decodes a socket control message that contains
    // credentials in a Ucred structure. To receive such a message, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:21 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go

    // authentication.
    func UnixCredentials(ucred *Ucred) []byte {
    	b := make([]byte, CmsgSpace(SizeofUcred))
    	h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
    	h.Level = SOL_SOCKET
    	h.Type = SCM_CREDENTIALS
    	h.SetLen(CmsgLen(SizeofUcred))
    	*(*Ucred)(h.data(0)) = *ucred
    	return b
    }
    
    // ParseUnixCredentials decodes a socket control message that contains
    // credentials in a Ucred structure. To receive such a message, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. cmd/jwt.go

    					return nil, errAccessKeyDisabled
    				}
    				return nil, errInvalidAccessKeyID
    			}
    			cred := u.Credentials
    			// Expired credentials return error.
    			if cred.IsTemp() && cred.IsExpired() {
    				return nil, errInvalidAccessKeyID
    			}
    			return []byte(cred.SecretKey), nil
    		} // this means claims.AccessKey == rootAccessKey
    		if !globalAPIConfig.permitRootAccess() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go

    	Profhz  int32
    }
    
    type CtlInfo struct {
    	Id   uint32
    	Name [96]byte
    }
    
    const SizeofKinfoProc = 0x288
    
    type Eproc struct {
    	Paddr   uintptr
    	Sess    uintptr
    	Pcred   Pcred
    	Ucred   Ucred
    	Vm      Vmspace
    	Ppid    int32
    	Pgid    int32
    	Jobc    int16
    	Tdev    int32
    	Tpgid   int32
    	Tsess   uintptr
    	Wmesg   [8]byte
    	Xsize   int32
    	Xrssize int16
    	Xccount int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go

    	Profhz  int32
    }
    
    type CtlInfo struct {
    	Id   uint32
    	Name [96]byte
    }
    
    const SizeofKinfoProc = 0x288
    
    type Eproc struct {
    	Paddr   uintptr
    	Sess    uintptr
    	Pcred   Pcred
    	Ucred   Ucred
    	Vm      Vmspace
    	Ppid    int32
    	Pgid    int32
    	Jobc    int16
    	Tdev    int32
    	Tpgid   int32
    	Tsess   uintptr
    	Wmesg   [8]byte
    	Xsize   int32
    	Xrssize int16
    	Xccount int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    type Utimbuf struct {
    	Actime  int64
    	Modtime int64
    }
    
    type Utsname struct {
    	Sysname  [16]byte
    	Nodename [32]byte
    	Release  [8]byte
    	Version  [8]byte
    	Machine  [16]byte
    }
    
    type Ucred struct {
    	Pid int32
    	Uid uint32
    	Gid uint32
    }
    
    type RawSockaddrInet4 struct {
    	Len    uint8
    	Family uint8
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/syscall/ztypes_linux_loong64.go

    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    	Data [8]uint32
    }
    
    type Ucred struct {
    	Pid int32
    	Uid uint32
    	Gid uint32
    }
    
    type TCPInfo struct {
    	State          uint8
    	Ca_state       uint8
    	Retransmits    uint8
    	Probes         uint8
    	Backoff        uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 20:15:45 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  10. src/syscall/ztypes_linux_mips64le.go

    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    	Data [8]uint32
    }
    
    type Ucred struct {
    	Pid int32
    	Uid uint32
    	Gid uint32
    }
    
    type TCPInfo struct {
    	State          uint8
    	Ca_state       uint8
    	Retransmits    uint8
    	Probes         uint8
    	Backoff        uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top