seccomp_release(3)
π seccomp_release β the libseccomp manual page, bestie edition π
okay so you're here for seccomp_release(3) from the libseccomp Documentation and honestly? you came to the right place. this is the page about letting go and it's giving closure era fr fr π¦
β¨ NAME β¨
seccomp_release β release the seccomp filter state π
πΈ SYNOPSIS πΈ
#include <seccomp.h>
typedef void * scmp_filter_ctx;
void seccomp_release(scmp_filter_ctx ctx);
link with -lseccomp, bestie, don't forget it π
π DESCRIPTION π
okay so here's the tea: seccomp_release releases the seccomp filter sitting in ctx β the one you first initialized with seccomp_init(3) or seccomp_reset(3) β and it frees any memory associated with that given seccomp filter context. clean up your room, metaphorically π
and the important part, no cap: any seccomp filters loaded into the kernel are not affected. this function is not out here snatching filters back from the kernel. it's just tidying up your local context, periodt.
β¨ RETURN VALUE β¨
Does not return a value. literally nothing. it's void. no notes π
π EXAMPLES π
here's the whole vibe, copy-paste ready:
#include <seccomp.h>
int main(int argc, char *argv[])
{
int rc;
scmp_filter_ctx ctx;
ctx = seccomp_init(SCMP_ACT_KILL);
if (ctx == NULL)
return 1;
/* ... */
seccomp_release(ctx);
return 0;
}
see how it starts with seccomp_init and ends with seccomp_release? balanced. we love a full arc π«Ά
π NOTES π
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. so like, the filter exists regardless, but actually enforcing it? that needs the kernel's blessing, iykyk β¨
the libseccomp project site β with more info and the source code repository β lives at https://github.com/seccomp/libseccomp. this tool, as well as the libseccomp library, is currently under development, so please report any bugs at the project site or directly to the author. do your civic duty bestie π
π¦ AUTHOR π¦
Paul Moore <paul@paul-moore.com>
β SEE ALSO β
and that's the page!! shoutout to paul@paul-moore.com for writing this icon on 25 July 2012 β the manpage footer says so and we respect the date π no cap, go release your contexts and free your memory, you're doing amazing sweetie πβ¨π
π¦ where this page comes from
- alpine 3.22: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- alpine 3.23: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- alpine 3.24: libseccomp-doc 2.6.1-r0 Β· LGPL-2.1-or-later
- arch rolling: libseccomp 2.6.0-1 Β· LGPL-2.1-only
- centos-stream 10: libseccomp-devel 2.5.6-1.el10 Β· LGPL-2.1-only
- centos-stream 9: libseccomp-devel 2.5.6-1.el9 Β· LGPLv2
- centos-stream 9: libseccomp-devel 2.5.6-1.el9 Β· LGPLv2
- debian bookworm: libseccomp-dev 2.5.4-1+deb12u1 Β· LGPL-2.1-only
- debian trixie: libseccomp-dev 2.6.0-2 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.0-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.0-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.1-2.fc43 Β· LGPL-2.1-only
- fedora 43: libseccomp-devel 2.6.1-2.fc43 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.0-3.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.0-3.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.1-2.fc44 Β· LGPL-2.1-only
- fedora 44: libseccomp-devel 2.6.1-2.fc44 Β· LGPL-2.1-only
- nixpkgs unstable: libseccomp 2.6.1
- opensuse-leap 16.0: libseccomp-devel 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-devel 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-devel 2.6.0-160000.2.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: libseccomp-devel 2.6.0-160000.2.2 Β· LGPL-2.1-only
- ubuntu jammy: libseccomp-dev 2.5.3-2ubuntu2 Β· LGPL-2.1-only
- ubuntu jammy: libseccomp-dev 2.5.3-2ubuntu3~22.04.1 Β· LGPL-2.1-only
- ubuntu noble: libseccomp-dev 2.5.5-1ubuntu3 Β· LGPL-2.1-only
- ubuntu noble: libseccomp-dev 2.5.5-1ubuntu3.1 Β· LGPL-2.1-only
- ubuntu questing: libseccomp-dev 2.6.0-2ubuntu2
- ubuntu resolute: libseccomp-dev 2.6.0-2ubuntu5 Β· LGPL-2.1-only
- ubuntu stonking: libseccomp-dev 2.6.1-1ubuntu1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms