lxd: github.com/lxc/lxd/lxd/ucred Index | Files

package ucred

import "github.com/lxc/lxd/lxd/ucred"

Index

Package Files

ucred.go ucred_gc.go

func GetUCred Uses

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

GetUCred returns the file descriptor's ucreds.

type UCred Uses

type UCred struct {
    PID int32
    UID int64
    GID int64
}

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

func GetCred Uses

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

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

Package ucred imports 4 packages (graph) and is imported by 4 packages. Updated 2019-12-01. Refresh now. Tools for package owners.