From 2428d1cbd094b1e7c20991cdce31bd0e8c18d864 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Thu, 5 Apr 2012 11:19:02 -0400 Subject: doc: manpage for seccomp_reset() Signed-off-by: Paul Moore --- doc/man/man3/seccomp_release.3 | 70 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 doc/man/man3/seccomp_release.3 (limited to 'doc') diff --git a/doc/man/man3/seccomp_release.3 b/doc/man/man3/seccomp_release.3 new file mode 100644 index 0000000..22ecfa0 --- /dev/null +++ b/doc/man/man3/seccomp_release.3 @@ -0,0 +1,70 @@ +.TH "seccomp_release" 3 "5 April 2012" "paul@paul-moore.com" "libseccomp Documentation" +.////////////////////////////////////////////////////////////////////////////// +.SH NAME +.////////////////////////////////////////////////////////////////////////////// +seccomp_release \- Release the seccomp filter state +.////////////////////////////////////////////////////////////////////////////// +.SH SYNOPSIS +.////////////////////////////////////////////////////////////////////////////// +.nf +.B #include +.sp +.BI "void seccomp_release(void);" +.fi +.////////////////////////////////////////////////////////////////////////////// +.SH DESCRIPTION +.////////////////////////////////////////////////////////////////////////////// +.P +Releases the internal seccomp filter state initialized by +.BR seccomp_init (3) +or +.BR seccomp_reset (3) +and frees any memory associated with the currently configured seccomp filter. +Any seccomp filters loaded into the kernel are not affected. +.////////////////////////////////////////////////////////////////////////////// +.SH RETURN VALUE +.////////////////////////////////////////////////////////////////////////////// +Does not return a value. +.////////////////////////////////////////////////////////////////////////////// +.SH EXAMPLES +.////////////////////////////////////////////////////////////////////////////// +.nf +#include + +int main(int argc, char *argv[]) +{ + int rc; + + rc = seccomp_init(SCMP_ACT_KILL); + if (rc < 0) + return -rc; + + /* ... */ + + seccomp_release(); + return 0; +} +.fi +.////////////////////////////////////////////////////////////////////////////// +.SH NOTES +.////////////////////////////////////////////////////////////////////////////// +.P +While the seccomp filter can be generated independent of the kernel, kernel +support is required to load and enforce the seccomp filter generated by +libseccomp. +.P +The libseccomp project site, with more information and the source code +repository, can be found at http://libseccomp.sf.net. This library is currently +under development, please report any bugs at the project site or directly to +the author. +.////////////////////////////////////////////////////////////////////////////// +.SH AUTHOR +.////////////////////////////////////////////////////////////////////////////// +Paul Moore +.////////////////////////////////////////////////////////////////////////////// +.SH SEE ALSO +.////////////////////////////////////////////////////////////////////////////// +.BR seccomp_init (3), +.BR seccomp_reset (3) + + -- cgit v1.2.1