Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(build): add syscall validation before creating profile #35

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Conversation

alegrey91
Copy link
Owner

@alegrey91 alegrey91 commented Aug 13, 2024

Fix #22
In this PR I've added a new function under the internal/seccomputils/ package to validate the syscalls before adding the to the seccomp profile.
This is done because we could include even files not generated by harpoon, so to ensure all the syscalls we are going to add to the profile are valid, there's now a function that avoid putting garbage on that.
Additionally I moved the old package internal/syscallwriter/ under internal/seccomputils/ since their scopes are quite similar.

Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
internal/writer/write.go Outdated Show resolved Hide resolved
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
@alegrey91 alegrey91 merged commit 4e5c47e into main Aug 14, 2024
3 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

skip unknown system calls when build command is collecting
2 participants