mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
a2e06a18b0d52d8cb2010e04b372a1965d8e3439
This CL adds support for the ADD_KEY, REQUESET_KEY, and KEYCTL syscalls. These syscalls allow access to the kernel keyring facilities. In C code, these syscalls are wrapped by the libkeyutils package. See: http://man7.org/linux/man-pages/man7/keyutils.7.html The ADD_KEY and REQUEST_KEY calls are fairly straightforward, but the KEYCTL syscall is a multiplexor for a number of key management functions. See: http://man7.org/linux/man-pages/man3/keyctl.3.html The Go bindings for the KEYCTL functions attempt to replicate what libkeyutils does. This is done via generated helper functions. Change-Id: If8c97d4ef5bce14c43dee3e6772ded42dc3c595a Reviewed-on: https://go-review.googlesource.com/41415 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
Languages
Go
85.8%
Assembly
12.3%
Shell
1.7%
C
0.1%