landlock_unmask_layers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 tbh
  • id β€” the identifier for the rule target, like an inode or a port 🎯 iykyk
  • masks β€” a whole matrix of unfulfilled access rights, one set per layer 🌈 yes, a matrix, she's fancy
  • matched_rule β€” optional output for the matched rule, for tracing purposes ✨ when it's non-NULL it 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 ✨

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