security_compute_av(9)
β¨ security_compute_av(9) β¨
okay so bestie, welcome to the security_compute_av page from the Kernel API Manual β yes it's a section 9 manpage, we love a kernel-internals moment π
πΈ NAME πΈ
security_compute_av β literally computes access vector decisions. that's the whole vibe. no cap. π₯
π¦ SYNOPSIS π¦
void security_compute_av (u32 ssid , u32 tsid , u16 orig_tclass , struct
av_decision *avd , struct extended_perms *xperms );
copy it exactly, don't be weird about it π«Ά
π ARGUMENTS π
ssidβ the source security identifier, iykyk πtsidβ the target security identifier, the other half of the pair β¨orig_tclassβ the target security class, keep the nameorig_tclass, we do not rename things here πavdβ the access vector decisions get written here, main character energy πxpermsβ extended permissions, yes it's astruct extended_perms *π
π DESCRIPTION π
So the way that this works: it computes a set of access vector decisions based on the SID pair (ssid, tsid) for the permissions in tclass. that's it, that's the function. it's giving "policy engine doing policy engine things" and honestly? obsessed. β
note that the parameter in the description is written tclass while the synopsis calls it orig_tclass β that's what the page says, so that's what we're saying, don't @ me π
π₯ SEE ALSO π₯
Kernel file ./security/selinux/ss/services.c β plus the whole friend group, all of these, in this order, exactly:
security_sid_to_context(9)security_sid_to_context_inval(9)security_context_to_sid(9)security_context_to_sid_default(9)security_transition_sid(9)security_member_sid(9)security_change_sid(9)services_convert_context(9)security_load_policy(9)ocontext_to_sid(9)security_port_sid(9)security_ib_pkey_sid(9)security_ib_endport_sid(9)security_netif_sid(9)security_node_sid(9)__security_genfs_sid(9)security_genfs_sid(9)security_fs_use(9)security_net_peersid_resolve(9)security_policycap_supported(9)security_netlbl_cache_add(9)security_netlbl_secattr_to_sid(9)security_netlbl_sid_to_secattr(9)__security_read_policy(9)security_read_policy(9)security_read_state_kernel(9)
π and that's the page!! π shoutout to the source dir ./security/selinux/ss and the date October 2026 β that's the sign-off bestie, mwah πβ¨π¦
π¦ 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