unmask_scoped_access(9)
π unmask_scoped_access(9) π
okay so bestie, this is the manual page for unmask_scoped_access(9) β kernel API manual energy, and we're getting into it.
π NAME π
unmask_scoped_access β removes access right bits in @masks in all layers where @client and @server have the same domain. periodt.
β¨ SYNOPSIS β¨
void unmask_scoped_access (const struct landlock_domain *const client ,
const struct landlock_domain *const server , struct layer_masks *const
masks , const access_mask_t access );
π ARGUMENTS π
clientβ client domain. That's the client domain, bestie.serverβ server domain. And this one's the server domain.masksβ layer access masks to unmask. The layer access masks we're unmasking.accessβ access bits that control scoping. These are the access bits that control scoping.
π«Ά DESCRIPTION π«Ά
This one does the same thing as domain_is_scoped, except it unmasks bits in masks. It can not return early as domain_is_scoped does β nope, it's gotta keep going. π
A scoped access for a given access right bit is allowed iff, for all layer depths where the access bit is set, the client and server domain are the same. iykyk
This function clears the access rights access in masks at all layer depths where the client and server domain are the same, so that, when they are all cleared, the access is allowed. slay.
π SEE ALSO π
Kernel file ./security/landlock/fs.c is hanging out with is_masked_device_ioctl(9), get_inode_id(9), is_access_to_paths_allowed(9), collect_domain_accesses(9), current_check_refer_path(9), and get_required_file_open_access(9). go read those too, bestie π«Ά
Signed with love from the ./security/landlock source spot, 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