MCPcopy
hub / github.com/opencontainers/runc / JoinSessionKeyring

Function JoinSessionKeyring

libcontainer/keys/keyctl.go:15–21  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

13type KeySerial uint32
14
15func JoinSessionKeyring(name string) (KeySerial, error) {
16 sessKeyID, err := unix.KeyctlJoinSessionKeyring(name)
17 if err != nil {
18 return 0, fmt.Errorf("unable to create session key: %w", err)
19 }
20 return KeySerial(sessKeyID), nil
21}
22
23// ModKeyringPerm modifies permissions on a keyring by reading the current permissions,
24// anding the bits with the given mask (clearing permissions) and setting

Callers 2

InitMethod · 0.92
InitMethod · 0.92

Calls 1

KeySerialTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…