avc_compute_av(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, we're on avc_compute_av(9) from the Kernel API Manual πŸ’– and this page is literally:

  • avc_compute_av β€” Add an entry to the AVC based on the security policy

🌸 SYNOPSIS 🌸

void avc_compute_av (u32 ssid , u32 tsid , u16 tclass , struct av_decision *avd , struct avc_xperms_node *xp_node );

πŸŽ€ ARGUMENTS πŸŽ€

  • ssid β€” subject
  • tsid β€” object/target
  • tclass β€” object class
  • avd β€” access vector decision
  • xp_node β€” AVC extended permissions node

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this is the slow-path helper function for avc_has_perm_noaudit, specifically for when the avc_node lookup fails. no cap, that's the whole vibe check.

and bestie, the page is like very serious about this part:

Don't inline this, since it's the slow-path and just results in a bigger stack frame. πŸ’€

like… do not do it. it's giving "please respect the stack frame," fr fr.


🌈 SEE ALSO 🌈

the kernel file ./security/selinux/avc.c is the main character here, and the related pages are all:


source/version: ./security/selinux Β· date: October 2026 Β· page: avc_compute_av(9) β€” ok bye bestie, slay responsibly πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from