1seccomp_release(3)         libseccomp Documentation         seccomp_release(3)
2
3
4

NAME

6       seccomp_release - Release the seccomp filter state
7

SYNOPSIS

9       #include <seccomp.h>
10
11       typedef void * scmp_filter_ctx;
12
13       void seccomp_release(scmp_filter_ctx ctx);
14
15       Link with -lseccomp.
16

DESCRIPTION

18       Releases  the seccomp filter in ctx which was first initialized by sec‐
19       comp_init(3) or seccomp_reset(3) and frees any memory  associated  with
20       the  given seccomp filter context.  Any seccomp filters loaded into the
21       kernel are not affected.
22

RETURN VALUE

24       Does not return a value.
25

EXAMPLES

27       #include <seccomp.h>
28
29       int main(int argc, char *argv[])
30       {
31            int rc;
32            scmp_filter_ctx ctx;
33
34            ctx = seccomp_init(SCMP_ACT_KILL);
35            if (ctx == NULL)
36                 return -1;
37
38            /* ... */
39
40            seccomp_release(ctx);
41            return 0;
42       }
43

NOTES

45       While the seccomp filter can be generated independent  of  the  kernel,
46       kernel  support is required to load and enforce the seccomp filter gen‐
47       erated by libseccomp.
48
49       The libseccomp project site, with more information and the source  code
50       repository,  can  be  found  at  https://github.com/seccomp/libseccomp.
51       This tool, as well as the libseccomp library, is currently under devel‐
52       opment,  please  report any bugs at the project site or directly to the
53       author.
54

AUTHOR

56       Paul Moore <paul@paul-moore.com>
57

SEE ALSO

59       seccomp_init(3), seccomp_reset(3)
60
61
62
63
64
65paul@paul-moore.com              25 July 2012               seccomp_release(3)
Impressum