aboutsummaryrefslogtreecommitdiff
path: root/cap/launch.go
diff options
context:
space:
mode:
authorAndrew G. Morgan <agm@google.com>2020-06-02 15:37:19 -0700
committerAndrew G. Morgan <morgan@kernel.org>2020-06-02 15:37:19 -0700
commit9e9537a1da07414a906acf678cbd18864b4f9820 (patch)
tree5013199433823e8f45ca8ebc4838107f89228093 /cap/launch.go
parentc232ad7b93fdf67e95f6b07b8242b42ff73984f9 (diff)
downloadlibcap-9e9537a1da07414a906acf678cbd18864b4f9820.tar.gz
Lint style fixes for C and Go sources.
In a couple of places I've made some Go constants internal to the Go packages. They use underscores and weren't Go-style constants and weren't really appropriate for use outside the context of the Go packages. Signed-off-by: Andrew G. Morgan <agm@google.com> Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'cap/launch.go')
-rw-r--r--cap/launch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cap/launch.go b/cap/launch.go
index abb221f..f4327c2 100644
--- a/cap/launch.go
+++ b/cap/launch.go
@@ -123,7 +123,7 @@ var ErrAmbiguousAmbient = errors.New("use Launcher for ambient caps")
var lName = []byte("cap-launcher\000")
// <uapi/linux/prctl.h>
-const pr_SET_NAME = 15
+const prSetName = 15
//go:uintptrescapes
func launch(result chan<- lResult, attr *Launcher, data interface{}) {
@@ -149,7 +149,7 @@ func launch(result chan<- lResult, attr *Launcher, data interface{}) {
// Name the launcher thread - transient, but helps if the
// callbackFn or something else hangs up.
- singlesc.prctlrcall(pr_SET_NAME, uintptr(unsafe.Pointer(&lName[0])), 0)
+ singlesc.prctlrcall(prSetName, uintptr(unsafe.Pointer(&lName[0])), 0)
pa := &syscall.ProcAttr{
Files: []uintptr{0, 1, 2},