prctl_set_seccomp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” optional struct sock_fprog for use with SECCOMP_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:


mwah πŸ’‹ cute sign-off from ./kernel, stamped October 2026, signing off as prctl_set_seccomp(9) 🌸✨

πŸ“¦ where this page comes from