Skip to content

[20.10 backport] seccomp updates#43991

Merged
thaJeztah merged 2 commits into
moby:20.10from
thaJeztah:20.10_seccomp_updates
Aug 18, 2022
Merged

[20.10 backport] seccomp updates#43991
thaJeztah merged 2 commits into
moby:20.10from
thaJeztah:20.10_seccomp_updates

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Xyene and others added 2 commits August 18, 2022 18:55
This commit allows the Landlock[0] system calls in the default seccomp
policy.

Landlock was introduced in kernel 5.13, to fill the gap that inspecting
filepaths passed as arguments to filesystem system calls is not really
possible with pure `seccomp` (unless involving `ptrace`).

Allowing Landlock by default fits in with allowing `seccomp` for
containerized applications to voluntarily restrict their access rights
to files within the container.

[0]: https://www.kernel.org/doc/html/latest/userspace-api/landlock.html

Signed-off-by: Tudor Brindus <[email protected]>
(cherry picked from commit af819bf)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Kernel 5.12:

    mount_setattr: needs CAP_SYS_ADMIN

Kernel 5.14:

    quotactl_fd: needs CAP_SYS_ADMIN
    memfd_secret: always allowed

Kernel 5.15:

    process_mrelease: always allowed

Kernel 5.16:

    futex_waitv: always allowed

Signed-off-by: Djordje Lukic <[email protected]>
(cherry picked from commit 7de9f4f)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
thaJeztah merged commit 62fd718 into moby:20.10 Aug 18, 2022
@thaJeztah
thaJeztah deleted the 20.10_seccomp_updates branch August 18, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants