landlock_unmask_layers(9)
π¦ landlock_unmask_layers(9) π¦
okay so bestie, welcome to the Kernel API Manual page for landlock_unmask_layers(9) β yes that's the whole title, and yes it's lowkey a mouthful, but we're gonna get through it together π
β¨ NAME β¨
landlock_unmask_layers β literally removes the access rights in masks that are granted by a matching rule π
β¨ SYNOPSIS β¨
bool landlock_unmask_layers (const struct landlock_domain *const domain
, const struct landlock_id id , struct layer_masks *masks , const struct
landlock_rule **matched_rule );
β¨ ARGUMENTS β¨
domainβ the Landlock domain you're searching for a matching rule in π this is the main character of the search tbhidβ the identifier for the rule target, like an inode or a port π― iykykmasksβ a whole matrix of unfulfilled access rights, one set per layer π yes, a matrix, she's fancymatched_ruleβ optional output for the matched rule, for tracing purposes β¨ when it's non-NULLit gets set to the matching rule; otherwise it stays unchanged, no cap π«Ά
β¨ DESCRIPTION β¨
So the way this works: it looks up the rule matching id in domain, then it updates the set of (per-layer) unfulfilled access rights masks so that all the access rights granted by that rule get removed β because babes, they're fulfilled now π
periodt.
β¨ RETURN β¨
Returns true if the request is allowed β meaning the access rights that got granted covered all the remaining unfulfilled access rights and masks has no leftover set bits left over πΈ no stragglers, no crumbs, immaculate.
β¨ SEE ALSO β¨
- Kernel file
./security/landlock/domain.cπ landlock_init_layer_masks(9)landlock_merge_ruleset(9)get_current_exe(9)landlock_init_hierarchy_log(9)landlock_get_quiet_optional_accesses(9)
go read those next bestie, they're giving required reading energy πβ¨
that's the whole page!! this iconic lil number lives in ./security/landlock and the version vibes are October 2026 ποΈπ slay, go unmask some layers, ily, bye π§ββοΈπ
π¦ 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