[seccomp/libseccomp] 3f0e47: api: extend BPF export API to write to a memory bu...

4 views
Skip to first unread message

Mike Frysinger

unread,
Oct 8, 2021, 2:42:54 PM10/8/21
to libse...@googlegroups.com
Branch: refs/heads/main
Home: https://github.com/seccomp/libseccomp
Commit: 3f0e47fe2717b73ccef68ca18f9f7297ee73ebb2
https://github.com/seccomp/libseccomp/commit/3f0e47fe2717b73ccef68ca18f9f7297ee73ebb2
Author: Mike Frysinger <vap...@gentoo.org>
Date: 2021-10-08 (Fri, 08 Oct 2021)

Changed paths:
M doc/Makefile.am
M doc/man/man3/seccomp_export_bpf.3
A doc/man/man3/seccomp_export_bpf_mem.3
M include/seccomp.h.in
M src/api.c
M src/python/libseccomp.pxd
M src/python/seccomp.pyx
M tests/11-basic-basic_errors.c
M tests/11-basic-basic_errors.py

Log Message:
-----------
api: extend BPF export API to write to a memory buffer

The API to export to a fd is helpful, but for tools that want to
generate & read the BPF program, outputting to a buffer would be
much more helpful.

Signed-off-by: Mike Frysinger <vap...@gentoo.org>
Reviewed-by: Tom Hromatka <tom.hr...@oracle.com>
[PM: rename seccomp_export_bpf_buf() to seccomp_export_bpf_mem()]
[PM: 'make check-syntax' fixes]
Signed-off-by: Paul Moore <pa...@paul-moore.com>


Reply all
Reply to author
Forward
0 new messages