-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Fix seccomp contributed profile for clone syscall #3314
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
Conversation
32bfa60 to
add4120
Compare
|
Build succeeded.
|
add4120 to
1442839
Compare
|
Build succeeded.
|
Codecov Report
@@ Coverage Diff @@
## master #3314 +/- ##
======================================
Coverage 44.6% 44.6%
======================================
Files 112 112
Lines 12180 12180
======================================
Hits 5433 5433
Misses 5913 5913
Partials 834 834
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3314 +/- ##
======================================
Coverage 44.6% 44.6%
======================================
Files 112 112
Lines 12180 12180
======================================
Hits 5433 5433
Misses 5913 5913
Partials 834 834
Continue to review full report at Codecov.
|
|
This looks reasonable; however, given this is contributed content ( Thanks! |
1442839 to
f811b4a
Compare
|
Build succeeded.
|
f811b4a to
30bdb45
Compare
|
Build succeeded.
|
30bdb45 to
c3b49b6
Compare
|
Build succeeded.
|
c3b49b6 to
767d5f4
Compare
|
Build succeeded.
|
All clone flags for namespace should be denied. Also x/sys should be used instead of syscall. Signed-off-by: Kenta Tada <[email protected]>
767d5f4 to
5b9a43d
Compare
|
Build succeeded.
|
|
@estesp Thank you for the review. I changed the title and comment. Could you confirm it? |
|
LGTM |
estesp
left a comment
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
|
@KentaTada could you check if changes are needed to the default seccomp profile in moby/moby? https://github.com/moby/moby/blob/61da822eeb7905a61eeaf18ea386e1a786cf0601/profiles/seccomp/seccomp_default.go#L517-L538 |
|
@justincormack ptal |
|
@thaJeztah yes the changes should be the same on moby/moby |
|
Thx, yes, found the difference after posting here; let me do a PR for moby/moby |
|
opened moby/moby#39308 |
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
This commit changes the value of seccomp test for clone syscall. Also hardcoded values should be changed because it is unclear to understand what flags are tested. Related issues: * containerd/containerd#3314 * moby/moby#39308 * opencontainers/runtime-tools#694 Signed-off-by: Kenta Tada <[email protected]>
All clone flags for namespace should be denied.
Also x/sys should be used instead of syscall.
Signed-off-by: Kenta Tada [email protected]