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.
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 byharpoon
, 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 packageinternal/syscallwriter/
underinternal/seccomputils/
since their scopes are quite similar.