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 /doc/man/man3 | |
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 'doc/man/man3')
-rw-r--r-- | doc/man/man3/seccomp_arch_add.3 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/man/man3/seccomp_arch_add.3 b/doc/man/man3/seccomp_arch_add.3 index f03376d..dd000fc 100644 --- a/doc/man/man3/seccomp_arch_add.3 +++ b/doc/man/man3/seccomp_arch_add.3 @@ -1,4 +1,4 @@ -.TH "seccomp_arch_add" 3 "16 April 2014" "paul@paul-moore.com" "libseccomp Documentation" +.TH "seccomp_arch_add" 3 "7 May 2014" "paul@paul-moore.com" "libseccomp Documentation" .\" ////////////////////////////////////////////////////////////////////////// .SH NAME .\" ////////////////////////////////////////////////////////////////////////// @@ -15,6 +15,7 @@ seccomp_arch_add, seccomp_arch_remove, seccomp_arch_exist, seccomp_arch_native \ .B #define SCMP_ARCH_X86 .B #define SCMP_ARCH_X86_64 .sp +.BI "uint32_t seccomp_arch_resolve_name(const char *" arch_name ");" .BI "uint32_t seccomp_arch_native();" .BI "int seccomp_arch_exist(const scmp_filter_ctx " ctx ", uint32_t " arch_token ");" .BI "int seccomp_arch_add(scmp_filter_ctx " ctx ", uint32_t " arch_token ");" @@ -46,7 +47,12 @@ constant always referring to the native compiled architecture. The .BR seccomp_arch_native () function returns the system's architecture such that it will match one of the .BR SCMP_ARCH_* -constants. +constants. While the +.BR seccomp_arch_resolve_name () +function also returns a +.BR SCMP_ARCH_* +constant, the returned token matches the name of the architecture +passed as an argument to the function. .P When a seccomp filter is initialized with the call to .BR seccomp_init (3) |