diff options
author | Paul Moore <paul@paul-moore.com> | 2020-06-06 16:36:38 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-06-16 11:22:29 -0400 |
commit | 34bf78abc9567b66c72dbe67e7f243072162a25f (patch) | |
tree | 5687b1d38934d4d592f02ce0efb7eca791fa59af /include | |
parent | 047a591721631e5da13de7038680ba4000f4365b (diff) | |
download | libseccomp-34bf78abc9567b66c72dbe67e7f243072162a25f.tar.gz |
api: add the SCMP_FLTATR_API_SYSRAWRC filter attribute
See the manpage additions as part of this patch, but the basic idea
is that when this attribute is non-zero we make every effort to
convey the system's errno value back to the caller when something
goes wrong in libc or the kernel. It is important to note from a
support perspective that our ability to support callers who make use
of this attribute will be diminished as the libc and kernel errno
values are beyond libseccomp's control.
If the attribute is zero, the library hides all of the system
failures under -ECANCELED.
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 17c90b7..c78846b 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -76,6 +76,7 @@ enum scmp_filter_attr { * 2 - binary tree sorted by syscall * number */ + SCMP_FLTATR_API_SYSRAWRC = 9, /**< return the system return codes */ _SCMP_FLTATR_MAX, }; |