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: add support for seccomp notify #190

Merged
merged 2 commits into from
Jun 2, 2021

Conversation

giuseppe
Copy link
Member

add support for seccomp notify and add a basic support for emulating
mknod and mknodat. The handler implementation is likely going to
change, for now it is just a PoC to show how it would work.

Requires: containers/crun#438
Requires: libseccomp-2.5

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

@lgtm-com
Copy link

lgtm-com bot commented Jul 27, 2020

This pull request introduces 2 alerts when merging 0ed1348 into 3c396d4 - view on LGTM.com

new alerts:

  • 2 for Local variable hides global variable

src/ctrl.c Outdated Show resolved Hide resolved
@giuseppe giuseppe force-pushed the seccomp-notify branch 10 times, most recently from 8b9239c to 14cfa57 Compare August 5, 2020 06:21
@giuseppe giuseppe marked this pull request as ready for review August 25, 2020 07:31
@giuseppe giuseppe force-pushed the seccomp-notify branch 2 times, most recently from 389ea32 to 2b8da9d Compare August 25, 2020 07:48
@giuseppe
Copy link
Member Author

@haircommander LGTY?

src/conn_sock.c Outdated Show resolved Hide resolved
src/ctrl.c Outdated Show resolved Hide resolved
src/seccomp_notify.c Outdated Show resolved Hide resolved
@haircommander
Copy link
Collaborator

sorry, a couple of nits. I prefer it where a callee is defined below the caller. that allows the file to be read top down.

@TomSweeneyRedHat
Copy link
Member

Other than @haircommander 's comments
LGTM

@saschagrunert
Copy link
Member

@giuseppe please rebase to get the static build fixed.

Makefile Outdated Show resolved Hide resolved
@giuseppe giuseppe force-pushed the seccomp-notify branch 2 times, most recently from 47d6aa7 to 8dc536c Compare September 28, 2020 10:16
@giuseppe giuseppe force-pushed the seccomp-notify branch 2 times, most recently from e207e16 to e577f9f Compare April 26, 2021 16:58
@giuseppe
Copy link
Member Author

adapted to follow the OCI runtime specs, needs: https://github.com/giuseppe/libpod/tree/seccomp-notify

@giuseppe
Copy link
Member Author

also needs: containers/crun#652

@giuseppe giuseppe force-pushed the seccomp-notify branch 4 times, most recently from 9e8f5c2 to d26cdcb Compare April 27, 2021 13:37
@giuseppe giuseppe marked this pull request as ready for review April 29, 2021 07:25
@giuseppe
Copy link
Member Author

@haircommander @rhatdan adapted to follow the OCI specs

Makefile Outdated Show resolved Hide resolved
@rhatdan
Copy link
Member

rhatdan commented May 6, 2021

@giuseppe needs a rebase.

@giuseppe
Copy link
Member Author

I am not sure the CI failures are related to this PR

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
add support for seccomp notify and add a basic support for emulating
mknod and mknodat.  The handler implementation is likely going to
change, for now it is just a PoC to show how it would work.

Requires: containers/crun#438
Requires: libseccomp-2.5

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member Author

giuseppe commented Jun 1, 2021

kubernetes e2e is green as well

@rhatdan
Copy link
Member

rhatdan commented Jun 1, 2021

LGTM
@haircommander PTAL

@haircommander
Copy link
Collaborator

I would like to get #267 in and then we can merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants