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

[RFE] Seccomp Notify in Flatcar #499

Closed
5 tasks done
alban opened this issue Sep 8, 2021 · 10 comments
Closed
5 tasks done

[RFE] Seccomp Notify in Flatcar #499

alban opened this issue Sep 8, 2021 · 10 comments
Labels
area/packages Issues related to the package maintainence. kind/feature A feature request

Comments

@alban
Copy link
Member

alban commented Sep 8, 2021

Current situation

The Seccomp Notify feature was just merged in runc (opencontainers/runc#2682) and it is not yet available in Flatcar

Impact

Ideal future situation

Flatcar can run containers with Seccomp Profiles that uses of the Seccomp Notify feature.

**Implementation options

Additional information

cc @rata @mauriciovasquezbernal

@alban alban added kind/feature A feature request area/packages Issues related to the package maintainence. labels Sep 8, 2021
@dongsupark
Copy link
Member

As for linux-headers, all channels of Flatcar have actually linux-headers 5.8 or older.
We should update it to >= 5.10, as most Kernels are 5.10.

@jepio
Copy link
Member

jepio commented Nov 25, 2021

@rata @alban
I built a torcx package for upstream docker components (from current master branch), runc is statically linked against libseccomp 2.5.2. You can try it out using the following ignition yaml snippet:

ignition:
  config:
    append:
    - source: "https://raw.githubusercontent.com/jepio/torcx-docker-upstream/main/config.json"
      verification:
        hash:
          function: sha512
          sum: 24cb90dde3ca9795918cd3fdb377632fec2c2615666c654f1b3341cb703ba0edea4e4a308dc4af87d649dbfe53790c0c7569f213b99c0c5cfd69bda8ad15ee04

This might let you proceed with your demo/testing, let me know whether it actually works.

@alban
Copy link
Member Author

alban commented Jan 19, 2022

Runc 1.1.0 is released:

https://github.com/opencontainers/runc/releases/tag/v1.1.0

@rata
Copy link
Member

rata commented Feb 3, 2022

I guess what is missing here to use with containerd is libseccomp 2.5.2?

@jepio
Copy link
Member

jepio commented Feb 3, 2022

Is the strictly necessary? The linked libseccomp commit says

If libseccomp is built against kernel headers after this commit but is run on a kernel that was built prior to this commit, then the ioctl will always return -1 EINVAL and thus seccomp_notify_id_valid will incorrectly return -ENOENT.

We have both kernel and kernel-headers built from sources after this commit, so this does not apply.

@rata
Copy link
Member

rata commented Feb 3, 2022

Oh, didn't know that. I guess not, then. Thanks!

@rata
Copy link
Member

rata commented Feb 3, 2022

@jepio one more question, runc 1.1 is included in https://www.flatcar.org/releases/#release-3033.2.1 ? Or is it included in any flatcar release? I'm asking as I want to mention it in a blog post :)

@jepio
Copy link
Member

jepio commented Feb 3, 2022

It's included in alpha 3127 https://www.flatcar.org/releases/#alpha-release.

@rata
Copy link
Member

rata commented Feb 3, 2022

Thanks!

@dongsupark
Copy link
Member

Flatcar already has runc 1.1, which is already statically linked to libseccomp 2.5.2+.
Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packages Issues related to the package maintainence. kind/feature A feature request
Projects
None yet
Development

No branches or pull requests

4 participants