ucred

package
v0.0.0-...-49f7de5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 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