From bc992c0ee464a9136203433aa7d282255616ca6e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 26 Nov 2019 11:43:01 +0100 Subject: sys/linux: add new arguments to struct clone_args for clone3() Linux v5.5 extends struct clone_args for clone3() by two additional parameters: @set_tid: Pointer to an array of type *pid_t. The size of the array is defined using @set_tid_size. This array is used to select PIDs/TIDs for newly created processes. The first element in this defines the PID in the most nested PID namespace. Each additional element in the array defines the PID in the parent PID namespace of the original PID namespace. If the array has less entries than the number of currently nested PID namespaces only the PIDs in the corresponding namespaces are set. @set_tid_size: This defines the size of the array referenced in @set_tid. This cannot be larger than the kernel's limit of nested PID namespaces. Cc: Adrian Reber Signed-off-by: Christian Brauner --- sys/linux/sys.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/linux/sys.txt') diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 092bde54a..758814413 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -251,6 +251,8 @@ clone_args { stack ptr64[out, array[int8]] stack_size bytesize[stack, int64] tls ptr64[out, array[int8]] + set_tid ptr64[in, array[pid]] + set_tid_size len[set_tid, int64] } resource pid[int32]: 0, -1 -- cgit mrf-deployment