]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: add jail support to ForkExec on FreeBSD
authorHarald Böhm <harald@boehm.dev>
Sun, 27 Nov 2022 14:34:28 +0000 (15:34 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 22 Feb 2023 20:38:48 +0000 (20:38 +0000)
commite0e2685c80d2c7f3d68b35b6122545659737ad94
tree29583ddbf5c7ab880b2613344c284c5cdbebc11c
parente6faa375b4804588cdeb67eff9d01add8093f6e1
syscall: add jail support to ForkExec on FreeBSD

Introduce a new SysProcAttr member called Jail on FreeBSD. This allows
supplying an existing jail's ID to which the child process is attached
before calling the exec system call.

Fixes #46259

Change-Id: Ie282e5b83429131f9a9e1e27cfcb3bcc995d1d4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/458335
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Goutnik <dgoutnik@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Samuel Karp <samuelkarp@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
api/next/46259.txt [new file with mode: 0644]
src/syscall/exec_freebsd.go
src/syscall/exec_freebsd_test.go [new file with mode: 0644]