You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What about adding seccomp_arch_name (inverse of seccomp_arch_resolve_name) to the API ?
It would be nice (e.g to debug rule generation) if the SCMP_ARCH_* constants can be resolved to the architecture names.
I noticed that this is already implemented and would require only a small amount of refactoring:
Sure, that sounds reasonable. The right thing to do would probably be to add a const char *name field to struct arch_def and then just leverage the existing arch_def_lookup() to create a new API function seccomp_arch_resolve_token() or similar. Does that sound okay to you?
What about adding
seccomp_arch_name
(inverse ofseccomp_arch_resolve_name
) to the API ?It would be nice (e.g to debug rule generation) if the SCMP_ARCH_* constants can be resolved to the architecture names.
I noticed that this is already implemented and would require only a small amount of refactoring:
libseccomp/src/gen_pfc.c
Lines 51 to 95 in 3734fdc
So why not expose this in the API ? e.g.
The text was updated successfully, but these errors were encountered: