scope(9)
πΈ scope(9) β from the Kernel API Manual, bestie β¨
okay so this one's short but it's important, so pay attention π
π NAME
scope β the scope flags, aka the lil switches that decide what your sandboxed process is allowed to reach outside its own vibe bubble π«§
β¨ Scope flags β¨
So here's the tea β: these flags let you isolate a sandboxed process from a whole set of IPC actions. Basically you flip a flag on for a ruleset and boom β the Landlock domain gets isolated, and it's now forbidden from connecting to resources outside the domain. No cap, it's a whole lockdown ππ
π Heads up bestie: this is supported since Landlock ABI version 6. If you're on anything older, this is not the moment, iykyk.
π Scopes π
LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKETβ restricts a sandboxed process from connecting to an abstract UNIX socket that was created by a process outside the related Landlock domain (like, say, a parent domain, or a non-sandboxed process) ππ«LANDLOCK_SCOPE_SIGNALβ restricts a sandboxed process from sending a signal to another process outside the domain. no sending signals to strangers, periodt βπ
π¦ SEE ALSO
like, go read these next, fr fr π«Ά
- Kernel file
./include/uapi/linux/landlock.hstruct landlock_ruleset_attr landlock_ruleset_attr(9)landlock_create_ruleset_flags(9)landlock_add_rule_flags(9)landlock_restrict_self_flags(9)enum landlock_rule_type(9)struct landlock_path_beneath_attr(9)struct landlock_net_port_attr(9)fs_access(9)net_access(9)
and that's the whole page, bestie β short, sweet, and absolutely iconic π
this lil gem lives at ./include/uapi/linux, dated October 2026, and it's the scope(9) page π mwah, go sandbox responsibly π§β¨
π¦ 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