1 .TH "seccomp_release" 3 "25 July 2012" "paul@paul-moore.com" "libseccomp Documentation"
2 .\" //////////////////////////////////////////////////////////////////////////
4 .\" //////////////////////////////////////////////////////////////////////////
5 seccomp_release \- Release the seccomp filter state
6 .\" //////////////////////////////////////////////////////////////////////////
8 .\" //////////////////////////////////////////////////////////////////////////
10 .B #include <seccomp.h>
12 .B typedef void * scmp_filter_ctx;
14 .BI "void seccomp_release(scmp_filter_ctx " ctx ");"
16 Link with \fI\-lseccomp\fP.
18 .\" //////////////////////////////////////////////////////////////////////////
20 .\" //////////////////////////////////////////////////////////////////////////
22 Releases the seccomp filter in
24 which was first initialized by
28 and frees any memory associated with the given seccomp filter context.
29 Any seccomp filters loaded into the kernel are not affected.
30 .\" //////////////////////////////////////////////////////////////////////////
32 .\" //////////////////////////////////////////////////////////////////////////
33 Does not return a value.
34 .\" //////////////////////////////////////////////////////////////////////////
36 .\" //////////////////////////////////////////////////////////////////////////
40 int main(int argc, char *argv[])
45 ctx = seccomp_init(SCMP_ACT_KILL);
55 .\" //////////////////////////////////////////////////////////////////////////
57 .\" //////////////////////////////////////////////////////////////////////////
59 While the seccomp filter can be generated independent of the kernel, kernel
60 support is required to load and enforce the seccomp filter generated by
63 The libseccomp project site, with more information and the source code
64 repository, can be found at https://github.com/seccomp/libseccomp. This tool,
65 as well as the libseccomp library, is currently under development, please
66 report any bugs at the project site or directly to the author.
67 .\" //////////////////////////////////////////////////////////////////////////
69 .\" //////////////////////////////////////////////////////////////////////////
70 Paul Moore <paul@paul-moore.com>
71 .\" //////////////////////////////////////////////////////////////////////////
73 .\" //////////////////////////////////////////////////////////////////////////