aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux.go
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@golang.org>2024-05-14 10:54:40 +0200
committerMichael Stapelberg <stapelberg@golang.org>2024-05-15 07:45:37 +0000
commitd05af626956af449fb13815cef06b606bc7740c6 (patch)
treea03b38b2dbedd30f341396f95e97532db7af4ecc /src/syscall/exec_linux.go
parenta524b8725374e4ebbb7fe3da85f407ee24141d51 (diff)
downloadgo-d05af626956af449fb13815cef06b606bc7740c6.tar.xz
syscall: skip TestAmbientCapsUserns when restricted, document
fixes golang/go#67088 Change-Id: I42e7a8d02b161187772f147e3e136ab6e0f71d7f Reviewed-on: https://go-review.googlesource.com/c/go/+/585059 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/syscall/exec_linux.go')
-rw-r--r--src/syscall/exec_linux.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall/exec_linux.go b/src/syscall/exec_linux.go
index e6d6343ed8..e4b9ce1bf4 100644
--- a/src/syscall/exec_linux.go
+++ b/src/syscall/exec_linux.go
@@ -53,6 +53,10 @@ const (
// SysProcIDMap holds Container ID to Host ID mappings used for User Namespaces in Linux.
// See user_namespaces(7).
+//
+// Note that User Namespaces are not available on a number of popular Linux
+// versions (due to security issues), or are available but subject to AppArmor
+// restrictions like in Ubuntu 24.04.
type SysProcIDMap struct {
ContainerID int // Container ID.
HostID int // Host ID.