Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func UserSessionKeyring() (Keyring, error) {
return newKeyring(keySpecUserSessionKeyring)
}

func UserKeyring() (Keyring, error) {
return newKeyring(keySpecUserKeyring)
}

// Return the current group keyring.
func GroupKeyring() (Keyring, error) {
return newKeyring(keySpecGroupKeyring)
Expand Down
7 changes: 7 additions & 0 deletions sys_linux_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package keyctl
//taken from https://github.com/jsipprell/keyctl/pull/17
const (
syscall_keyctl uintptr = 219
syscall_add_key uintptr = 217
syscall_setfsgid uintptr = 152
)