From: Brad Fitzpatrick
Date: Wed, 28 Jun 2017 23:02:51 +0000 (+0000)
Subject: doc, api: add syscall.SysProcAttr.AmbientCaps change to 1.9 notes, API
X-Git-Tag: go1.9rc1~126
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dc86c9a6afa8b5b998dfa6621d1566d1296f2bf4;p=gostls13.git
doc, api: add syscall.SysProcAttr.AmbientCaps change to 1.9 notes, API
Updates #20587
Change-Id: I08377281270631ee08cd05ba835aa698ca23fa56
Reviewed-on: https://go-review.googlesource.com/47092
Run-TryBot: Brad Fitzpatrick
TryBot-Result: Gobot Gobot
Reviewed-by: Ian Lance Taylor
---
diff --git a/api/go1.9.txt b/api/go1.9.txt
index 8fe861b3e8..c23a17ea1a 100644
--- a/api/go1.9.txt
+++ b/api/go1.9.txt
@@ -131,11 +131,17 @@ pkg syscall (freebsd-arm-cgo), type Credential struct, NoSetGroups bool
pkg syscall (freebsd-arm), func Pipe2([]int, int) error
pkg syscall (freebsd-arm), type Credential struct, NoSetGroups bool
pkg syscall (linux-386-cgo), type Credential struct, NoSetGroups bool
+pkg syscall (linux-386-cgo), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (linux-386), type Credential struct, NoSetGroups bool
+pkg syscall (linux-386), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (linux-amd64-cgo), type Credential struct, NoSetGroups bool
+pkg syscall (linux-amd64-cgo), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (linux-amd64), type Credential struct, NoSetGroups bool
+pkg syscall (linux-amd64), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (linux-arm-cgo), type Credential struct, NoSetGroups bool
+pkg syscall (linux-arm-cgo), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (linux-arm), type Credential struct, NoSetGroups bool
+pkg syscall (linux-arm), type SysProcAttr struct, AmbientCaps []uintptr
pkg syscall (netbsd-386-cgo), type Credential struct, NoSetGroups bool
pkg syscall (netbsd-386), type Credential struct, NoSetGroups bool
pkg syscall (netbsd-amd64-cgo), type Credential struct, NoSetGroups bool
diff --git a/doc/go1.9.html b/doc/go1.9.html
index b02faac88b..32acf25253 100644
--- a/doc/go1.9.html
+++ b/doc/go1.9.html
@@ -784,6 +784,13 @@ CL 40331: https://golang.org/cl/40331: cmd/link,runtime/cgo: enable PT_TLS gener
to set supplementary groups when starting a new process.
+
+ The new field
+ SysProcAttr.AmbientCaps
+ allows setting ambient capabilities on Linux 4.3+ when creating
+ a new process.
+
+
On 64-bit x86 Linux, process creation latency has been optimized with
use of CLONE_VFORK
and CLONE_VM
.