STRUCT SECCOMP(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŒธ NAME ๐ŸŒธ

struct seccomp โ€” literally the state of a process that's been seccomp'ed, bestie ๐Ÿ’…


โœจ SYNOPSIS โœจ

struct seccomp {
    int mode;
    atomic_t filter_count;
    struct seccomp_filter *filter;
};

๐ŸŽ€ Members ๐ŸŽ€

  • mode โ€” tells you which of the valid values above the process is rocking, i.e. what controlled system calls it's allowed to make. Main character setting fr ๐Ÿ‘‘
  • filter_count โ€” the number of seccomp filters. That's it, that's the count ๐Ÿงฎ
  • filter โ€” this one HAS to always point to a valid seccomp-filter or NULL, no cap, because it gets accessed without locking during system call entry. The way this is non-negotiable ๐Ÿ’€

๐Ÿฆ‹ Description ๐Ÿฆ‹

Okay so listen: filter must ONLY be accessed from the context of current, because there is no read locking. Like, none. Zero. Don't try it ๐Ÿ™ˆ

So justโ€ฆ stay in your lane, access it as current, and we all slay โœจ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Kernel file ./include/linux/seccomp_types.h โ€” go read it, iykyk ๐Ÿ“–


that's the whole page, bestie, hope it ate ๐Ÿ’–

source: ./include/linux ยท date: October 2026 ยท mwah, kisses, go read your kernel headers ๐Ÿซถ๐ŸŽ€

๐Ÿ“ฆ where this page comes from