Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seccomp: always allow name_to_handle_at #8752

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

neersighted
Copy link
Contributor

This syscall is used by systemd to request unique internal names for paths in the cgroup hierarchy from the kernel, and is overall innocuous.

Due to previous mistakes in moby/moby, it ended up attached to CAP_SYS_ADMIN; however, it should not be filtered at all.

An in-depth analysis is available at moby/moby.

@k8s-ci-robot
Copy link

Hi @neersighted. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@neersighted
Copy link
Contributor Author

@k8s-ci-robot
Copy link

@neersighted: GitHub didn't allow me to request PR reviews from the following users: bartier.

Note that only containerd members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @thaJeztah @dmcgowan @AkihiroSuda @bartier

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@AkihiroSuda
Copy link
Member

/ok-to-test

Copy link
Member

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

Fantastic write up on the moby/moby thread, was fun to read :)

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@neersighted neersighted marked this pull request as draft June 28, 2023 11:35
This syscall is used by systemd to request unique internal names for
paths in the cgroup hierarchy from the kernel, and is overall innocuous.

Due to [previous][1] [mistakes][2] in moby/moby, it ended up attached to
`CAP_SYS_ADMIN`; however, it should not be filtered at all.

An in-depth analysis is available [at moby/moby][3].

  [1]: moby/moby@a01c4dc#diff-6c0d906dbef148d2060ed71a7461907e5601fea78866e4183835c60e5d2ff01aR1627-R1639
  [2]: moby/moby@c1ca124
  [3]: moby/moby#45766 (review)

Co-authored-by: Vitor Anjos <bartier@users.noreply.github.com>
Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
@neersighted neersighted marked this pull request as ready for review June 28, 2023 11:52
@neersighted neersighted requested a review from thaJeztah June 28, 2023 11:52
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

Pretty much unrelated, but I keep seeing those deprecation warnings; do we know if someone has spent time working on those? (I must admit I'm not a proficient user of Ginkgo)

critest version: 1.27.0
You're using deprecated Ginkgo functionality:
=============================================
  --ginkgo.slow-spec-threshold is deprecated --slow-spec-threshold has been deprecated and will be removed in a future version of Ginkgo.  This feature has proved to be more noisy than useful.  You can use --poll-progress-after, instead, to get more actionable feedback about potentially slow specs and understand where they might be getting stuck.

To silence deprecations that can be silenced set the following environment variable:
  ACK_GINKGO_DEPRECATIONS=2.9.2

@djdongjin
Copy link
Member

Pretty much unrelated, but I keep seeing those deprecation warnings; do we know if someone has spent time working on those? (I must admit I'm not a proficient user of Ginkgo)

I saw Ginkgo is only used in containerd for cri-tools test. We use cri-tools v1.27.0, which uses Ginkgo v2.9.2 (removed that deprecation). So we should be safe to update Ginkgo to the version used by cri-tools. Opened #8758 and the warning disappeared :) https://github.com/containerd/containerd/actions/runs/5401559918/jobs/9811676884

@kzys kzys merged commit a3c9ed7 into containerd:main Jun 28, 2023
@neersighted neersighted deleted the name_to_handle_at branch June 28, 2023 15:25
@neersighted
Copy link
Contributor Author

Thanks! Backports to 1.7 and 1.6 are open at #8753 and #8754.

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.

8 participants