Closed chelseakomlo closed 8 years ago
I've added skeletons for these, but not implementations. We might want to add CompileBlacklist and InstallBlacklist as well, for compatibility?
Yes, we should add.
For CheckSupport, should we do just as go-seccomp does? https://github.com/subgraph/go-seccomp/blob/master/seccomp.go#L452
Actually @olabini, another question.
Should we support Compile and CompileBlackList as before? Or should Compile be able to handle both?
We need to talk about a good testing strategy for this. (mocking syscalls, etc)
I think we should keep both Compile and CompileBlacklist and try to make the API backwards compatible that way. They should all just be thin shims around the Prepare call with appropriate configurations in the config struct.
As mentioned in person, I'm not super concerned with mocking the syscalls and this stuff, it's small enough.
Prepare is currently not calling the simplifier, but once that's done, we are done.