STRUCT SECCOMP(9)
๐ธ 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 orNULL, 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
- 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