xindex_is_subset(9)
π NAME π
okay bestie, this is xindex_is_subset(9) from the Kernel API Manual, and it is literally the helper for aa_path_link β¨
β¨ SYNOPSIS β¨
it's giving very specific C function signature energy:
bool xindex_is_subset (u32 link , u32 target );
π¦ ARGUMENTS π¦
linkβ the link permission set π«Άtargetβ the target permission set π
π DESCRIPTION π
so the vibe check here is: test whether the target x permissions are equal to OR a subset of the link x permissions. no cap, that's the whole test π
this is done as part of the subset test, where a hardlink must have a subset of permissions that the target has. periodt π
π RETURN π
returns true if it's a subset, else false π«
π₯ SEE ALSO π₯
Kernel file ./security/apparmor/file.c is the main-character file, and the related calls are:
file_audit_cb(9)aa_audit_file(9)aa_lookup_condperms(9)aa_str_perms(9)aa_path_perm(9)aa_path_link(9)aa_file_perm(9)
okay bye bestie, source: ./security/apparmor Β· version/date: October 2026 Β· page: xindex_is_subset(9) πΈπβ¨
π¦ 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