STRUCT LANDLOCK_DETAILS(9)
π struct landlock_details(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct landlock_details β this one's a whole vibe, it's literally just a little receipt of who created a domain. periodt.
β¨ NAME β¨
struct landlock_details β the domain's creation information, like a birth certificate but for a Landlock domain π
πΈ SYNOPSIS πΈ
no cap, here's the whole thing, copy it exactly:
struct landlock_details {
struct pid *pid;
uid_t uid;
char comm[TASK_COMM_LEN];
char exe_path[];
};
π¦ Members π¦
pidβ the PID of the task that initially restricted itself, and it still identifies that same task. Keeping a reference to this PID means it will not be recycled. iconic, honestly β no zombie PID shenanigans here.uidβ the UID of the task that initially restricted itself, captured at creation time. π«Άcommβ the command line of the task that initially restricted itself, at creation time. It's alwaysNULLterminated. always. π―exe_pathβ the executable path of the task that initially restricted itself, at creation time. Also alwaysNULLterminated, and never greater thanLANDLOCK_PATH_MAX_SIZE. she has limits and she respects them π
π§ Description π§
This thing is rarely accessed β mainly when you're logging the first domain's denial. lowkey a special-occasion struct, she doesn't come out for just anything π
The contained pointers are initialized at the domain creation time and never changed again. fr fr, they're set once and then they're forever frozen in time β no mutating, no editing, no take-backs. π
π SEE ALSO π
Kernel file ./security/landlock/domain.h, plus these besties:
struct landlock_hierarchy(9)struct landlock_domain(9)landlock_union_access_masks(9)
go read them too, iykyk π
that's the whole page bestie, slay β this one lives in ./security/landlock and it's dated October 2026. mwah, see u in the kernel π¦β¨π
π¦ 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