Documentation ¶
Overview ¶
Package keyctl is a Go interface to linux kernel keyrings (keyctl interface)
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.
func ReadUserKeyring ¶
ReadUserKeyring reads user keyring and returns slice of key with id(key_serial_t) representing the IDs of all the keys that are linked to it
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.