diff options
author | Jay Guo <guojiannan@cn.ibm.com> | 2016-11-02 22:13:00 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-02 19:40:20 -0500 |
commit | 5bcf70b0a15da1fd86fa6373a9d811060c3d9e4a (patch) | |
tree | 70b14df81bab73c72c8c950d7b8aa5a9195bfbce /include | |
parent | 516e41e881bb26c23aa31ca18fd706bc66fc91d8 (diff) | |
download | libseccomp-5bcf70b0a15da1fd86fa6373a9d811060c3d9e4a.tar.gz |
doc: refined header comment of `seccomp_arch_add`.
Refined `seccomp_arch_add` to be more verbose about return code `-EEXIST`
in case of existing arch in filter. Adding this information helps developers
write code to safely ignore the ret code in this case.
Signed-off-by: Jiannan Guo <guojiannan1101@gmail.com>
[PM: tweaked subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 5fc687c..b45de86 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -366,8 +366,8 @@ int seccomp_arch_exist(const scmp_filter_ctx ctx, uint32_t arch_token); * Any new rules added after this function successfully returns will be added * to this architecture but existing rules will not be added to this * architecture. If the architecture token is SCMP_ARCH_NATIVE then the native - * architecture will be assumed. Returns zero on success, negative values on - * failure. + * architecture will be assumed. Returns zero on success, -EEXIST if + * specified architecture is already present, other negative values on failure. * */ int seccomp_arch_add(scmp_filter_ctx ctx, uint32_t arch_token); |