-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Seccomp Notify support #1
base: master
Are you sure you want to change the base?
Conversation
d53362d
to
483dfbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor comments and suggestions.
Thanks for the review @mauriciovasquezbernal ! I addressed your comments. Another change I'd like to make is on the State, to make it look like in the proposal:
|
Without this, Travis CI only works on the main repository (github.com/opencontainers/runtime-spec) but not on forks. It is useful to make Travis CI work on forks for contributors to be able to test their work before submitting a PR upstream. See: https://docs.travis-ci.com/user/languages/go#go-import-path Symptoms: ``` $ make docs go run ./.tool/version-doc.go > version.md .tool/version-doc.go:10:2: cannot find package "github.com/opencontainers/runtime-spec/specs-go" in any of: /home/travis/.gimme/versions/go1.11.13.linux.amd64/src/github.com/opencontainers/runtime-spec/specs-go (from $GOROOT) /home/travis/gopath/src/github.com/opencontainers/runtime-spec/specs-go (from $GOPATH) Makefile:53: recipe for target 'version.md' failed make: *** [version.md] Error 1 The command "make docs" exited with 2. ``` Signed-off-by: Alban Crequy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more minor comments, one important about the exec
phase.
Should this PR also update the Lifecycle ?
This adds the specification for Seccomp Userspace Notification and the Golang bindings. This contains: - A new OCI hook "sendSeccompFd" used to pass the seccompfd to an external seccomp agent via the hook. - Additional SeccompState struct containing the container state and file descriptors passed for seccomp. This was discussed in the OCI Weekly Discussion on September 16th, 2020, see: - https://hackmd.io/El8Dd2xrTlCaCG59ns5cwg#September-16-2020 - https://docs.google.com/document/d/1xHw5GQjMj6ZKR-40aKmTWZRkvlPuzMGQRu-YpOFQc30/edit Documentation for this feature: - https://www.kernel.org/doc/html/v5.0/userspace-api/seccomp_filter.html#userspace-notification - man pages: seccomp_user_notif.2 at https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/log/?h=seccomp_user_notif - brauner's blog: https://brauner.github.io/2020/07/23/seccomp-notify.html This PR is an alternative proposal to PR 1038. Signed-off-by: Alban Crequy <[email protected]>
Fixup following reviews Signed-off-by: Alban Crequy <[email protected]>
I updated the branch based on reviews.
I am not sure. I didn't update it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Upstream PR 1073 |
This adds the specification for Seccomp Userspace Notification and the Golang bindings. This contains:
This was discussed in the OCI Weekly Discussion on September 16th, 2020, see:
Documentation for this feature:
This PR is an alternative proposal to PR 1038.
Signed-off-by: Alban Crequy [email protected]