STRUCT LANDLOCK_CRED_SECURITY(9)
β¨ struct landlock_cred_security(9) β¨
okay so this is a page from the Kernel API Manual bestie, and we're talking about struct landlock_cred_security β literally the credential security blob π
π NAME π
struct landlock_cred_security β the Credential security blob, no cap π«Ά
πΈ SYNOPSIS πΈ
struct landlock_cred_security {
struct landlock_domain *domain;
#ifdef CONFIG_SECURITY_LANDLOCK_LOG;
u16 domain_exec;
u8 log_subdomains_off : 1;
#endif ;
};
π Members π
domainβ the immutable domain that's enforced on a task. like, it's set and it stays set, that's the whole vibe π₯domain_execβ a bitmask that identifies which domain layers were enforced by the current task's executed file π¦ (meaning: there's been no newexecve(2)sincelandlock_restrict_self(2)β track that, it matters)log_subdomains_offβ set if the domain descendants'slog_statusshould be set toLANDLOCK_LOG_DISABLEDπ this is not alandlock_hierarchyconfiguration, and the reason is lowkey iconic: it applies to future descendant domains and it does not require a current domain. periodt.
π Description π
okay so the whole point of this structure being packed is to minimize the size of struct landlock_file_security β it's giving space-saving main character energy β¨
but!! it's always aligned in the LSM cred blob, k? see lsm_set_blob_size for the receipts π
β οΈ heads up bestie: when you update this, also update landlock_cred_copy if needed. don't forget, i'm literally begging π
β SEE ALSO β
- Kernel file
./security/landlock/cred.h landlock_get_applicable_subject(9)
and that's the whole page, bestie π mwah π
β with love from ./security/landlock, dated October 2026 ππ¦π·
π¦ 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