xindex_is_subset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


okay bye bestie, source: ./security/apparmor Β· version/date: October 2026 Β· page: xindex_is_subset(9) πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from