Skip to content

Commit dc86c9a

Browse files
committed
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 <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent 306c540 commit dc86c9a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

api/go1.9.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,17 @@ pkg syscall (freebsd-arm-cgo), type Credential struct, NoSetGroups bool
131131
pkg syscall (freebsd-arm), func Pipe2([]int, int) error
132132
pkg syscall (freebsd-arm), type Credential struct, NoSetGroups bool
133133
pkg syscall (linux-386-cgo), type Credential struct, NoSetGroups bool
134+
pkg syscall (linux-386-cgo), type SysProcAttr struct, AmbientCaps []uintptr
134135
pkg syscall (linux-386), type Credential struct, NoSetGroups bool
136+
pkg syscall (linux-386), type SysProcAttr struct, AmbientCaps []uintptr
135137
pkg syscall (linux-amd64-cgo), type Credential struct, NoSetGroups bool
138+
pkg syscall (linux-amd64-cgo), type SysProcAttr struct, AmbientCaps []uintptr
136139
pkg syscall (linux-amd64), type Credential struct, NoSetGroups bool
140+
pkg syscall (linux-amd64), type SysProcAttr struct, AmbientCaps []uintptr
137141
pkg syscall (linux-arm-cgo), type Credential struct, NoSetGroups bool
142+
pkg syscall (linux-arm-cgo), type SysProcAttr struct, AmbientCaps []uintptr
138143
pkg syscall (linux-arm), type Credential struct, NoSetGroups bool
144+
pkg syscall (linux-arm), type SysProcAttr struct, AmbientCaps []uintptr
139145
pkg syscall (netbsd-386-cgo), type Credential struct, NoSetGroups bool
140146
pkg syscall (netbsd-386), type Credential struct, NoSetGroups bool
141147
pkg syscall (netbsd-amd64-cgo), type Credential struct, NoSetGroups bool

doc/go1.9.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,13 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
784784
to set supplementary groups when starting a new process.
785785
</p>
786786

787+
<p><!-- CL 43512 -->
788+
The new field
789+
<a href="/pkg/syscall/#SysProcAttr.AmbientCaps"><code>SysProcAttr.AmbientCaps</code></a>
790+
allows setting ambient capabilities on Linux 4.3+ when creating
791+
a new process.
792+
</p>
793+
787794
<p><!-- CL 37439 -->
788795
On 64-bit x86 Linux, process creation latency has been optimized with
789796
use of <code>CLONE_VFORK</code> and <code>CLONE_VM</code>.

0 commit comments

Comments
 (0)