diff options
author | Paul Moore <pmoore@redhat.com> | 2014-05-07 17:00:44 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-05-07 17:00:44 -0400 |
commit | f05fc7cbc294f95fd62fb0aea52561c14f52aba9 (patch) | |
tree | a48843c82082c385db2f84b07fbc5c547eb35927 /include | |
parent | e8a449fb5b87ba0479524b661fe962a5d977d400 (diff) | |
download | libseccomp-f05fc7cbc294f95fd62fb0aea52561c14f52aba9.tar.gz |
api: add the seccomp_arch_resolve_name() API call
As requested by the systemd developers and used by our own tools.
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 07336e6..e119c8c 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -254,6 +254,16 @@ void seccomp_release(scmp_filter_ctx ctx); int seccomp_merge(scmp_filter_ctx ctx_dst, scmp_filter_ctx ctx_src); /** + * Resolve the architecture name to a architecture token + * @param arch_name the architecture name + * + * This function resolves the given architecture name to a token suitable for + * use with libseccomp, returns zero on failure. + * + */ +uint32_t seccomp_arch_resolve_name(const char *arch_name); + +/** * Return the native architecture token * * This function returns the native architecture token value, e.g. SCMP_ARCH_*. |