Skip to content

Commit c26b218

Browse files
committed
Clarify seccomp pidFd description and example
Signed-off-by: Rodrigo Campos <[email protected]>
1 parent 04c430b commit c26b218

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config-linux.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,9 @@ The following parameters can be specified to set up seccomp:
634634

635635
The runtime sends the following file descriptors using `SCM_RIGHTS` and set their names in the `fds` array of the [container process state](#containerprocessstate):
636636

637-
* **`seccompFd`** (int, REQUIRED) is the seccomp file descriptor returned by the seccomp syscall.
638-
* **`pidFd`** (int, OPTIONAL) is the process file descriptor (e.g as returned by `pidfd_open(2)` or by `clone(2)` with the `CLONE_PID` flag).
637+
* **`seccompFd`** (string, REQUIRED) is the seccomp file descriptor returned by the seccomp syscall.
638+
* **`pidFd`** (string, OPTIONAL) is the process file descriptor (e.g as returned by `pidfd_open(2)` or by `clone(2)` with the `CLONE_PID` flag).
639+
This refers to the container's pid 1 if the container is being created or to the process that entered the container with exec.
639640

640641
* **`listenerMetadata`** *(string, OPTIONAL)* - specifies an opaque data to pass to the seccomp agent.
641642
This string will be sent as the `metadata` field in the [container process state](#containerprocessstate).
@@ -718,7 +719,7 @@ The container process state includes the following properties:
718719
* **`metadata`** (string, OPTIONAL) opaque metadata.
719720
* **`state`** ([state](runtime.md#state), REQUIRED) is the state of the container.
720721

721-
Example:
722+
Example sending `seccompFD` as the first file descriptor in the `SCM_RIGHTS` array and `pidFd` as second:
722723

723724
```json
724725
{

0 commit comments

Comments
 (0)