Skip to content

[release/1.4] seccomp: support "clone3" (return ENOSYS unless SYS_ADMIN is granted)#6014

Merged
estesp merged 1 commit intocontainerd:release/1.4from
AkihiroSuda:cherrypick-5982-1.4
Sep 17, 2021
Merged

[release/1.4] seccomp: support "clone3" (return ENOSYS unless SYS_ADMIN is granted)#6014
estesp merged 1 commit intocontainerd:release/1.4from
AkihiroSuda:cherrypick-5982-1.4

Conversation

@AkihiroSuda
Copy link
Copy Markdown
Member

Cherry-pick #5982 (clean)


clone3 is explicitly requested to give ENOSYS instead of the default EPERM, when CAP_SYS_ADMIN is unset.
See moby/moby PR 42681 (thanks to berrange).

Without this commit, rawhide image does not work:

$ sudo ctr run --rm --net-host --seccomp registry.fedoraproject.org/fedora:rawhide foo /usr/bin/curl google.com
curl: (6) getaddrinfo() thread failed to start

clone3 is explicitly requested to give ENOSYS instead of the default EPERM, when CAP_SYS_ADMIN is unset.
See moby/moby PR 42681 (thanks to berrange).

Without this commit, rawhide image does not work:
```console
$ sudo ctr run --rm --net-host --seccomp registry.fedoraproject.org/fedora:rawhide foo /usr/bin/curl google.com
curl: (6) getaddrinfo() thread failed to start
```

Signed-off-by: Akihiro Suda <[email protected]>
(cherry picked from commit 55923da)
Signed-off-by: Akihiro Suda <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Sep 16, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 7802895 into containerd:release/1.4 Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants