prctl_set_seccomp(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual corner π this one is prctl_set_seccomp(9), and its whole main-character job is literally configuring current->seccomp.mode. no cap, that's the vibe β¨
β¨ SYNOPSIS β¨
long prctl_set_seccomp (unsigned long seccomp_mode , void __user *filter
);
π ARGUMENTS π
seccomp_modeβ the requested mode to use π«Ά like, this is the mode you're asking for, bestie.filterβ optionalstruct sock_fprogfor use withSECCOMP_MODE_FILTERπ¦ it's optional, so don't panic.
π¦ DESCRIPTION π¦
Returns 0 on success or -EINVAL on failure π that's it, that's the whole plot. 0 = slay, -EINVAL = not slay π
π SEE ALSO π
Kernel file ./kernel/seccomp.c β go peek, iykyk π
the whole squad:
struct seccomp_kaddfd(9)struct notification(9)struct action_cache(9)struct seccomp_filter(9)seccomp_check_filter(9)seccomp_cache_check_allow(9)seccomp_run_filters(9)seccomp_can_sync_threads(9)seccomp_filter_release(9)seccomp_sync_threads(9)seccomp_prepare_filter(9)seccomp_prepare_user_filter(9)seccomp_is_const_allow(9)seccomp_cache_prepare(9)seccomp_attach_filter(9)seccomp_set_mode_strict(9)seccomp_set_mode_filter(9)
mwah π cute sign-off from ./kernel, stamped October 2026, signing off as prctl_set_seccomp(9) πΈβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms