Documentation ¶
Overview ¶
Package keyctl is a Go interface to linux kernel keyrings (keyctl interface)
Deprecated: Most callers should use either golang.org/x/sys/unix directly, or the original (and more extensive) github.com/jsipprell/keyctl .
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶
type ID interface {
ID() int32
}
ID is unique 32-bit serial number identifiers for all Keys and Keyrings have.
type Key ¶
type Key struct { Name string // contains filtered or unexported fields }
Key represents a single key linked to one or more kernel keyrings.
type KeyPerm ¶
type KeyPerm uint32
KeyPerm represents in-kernel access control permission to keys and keyrings as a 32-bit integer broken up into four permission sets, one per byte. In MSB order, the perms are: Processor, User, Group, Other.
type Keyring ¶
Keyring is the basic interface to a linux keyctl keyring.
func SessionKeyring ¶
SessionKeyring returns the current login session keyring
func UserKeyring ¶
UserKeyring returns the keyring specific to the current user.