ucred

package
v0.0.0-...-04e5504 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUCred

func GetUCred(fd int) (uint32, uint32, int32, error)

GetUCred returns the file descriptor's ucreds.

Types

type UCred

type UCred struct {
	PID int32
	UID int64
	GID int64
}

UCred represents the credentials being used to access a unix socket.

func GetCred

func GetCred(conn *net.UnixConn) (*UCred, error)

GetCred returns the credentials being used to access a unix socket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL