avc_lookup(9)
π avc_lookup β aka the Kernel API Manual's avc_lookup(9) page π
Okay bestie, gather round, because this one is a little lookup function that has main character energy and honestly? It eats. β¨
πΈ NAME πΈ
avc_lookup β literally just: look up an AVC entry. That's the whole vibe check. π
β¨ SYNOPSIS β¨
struct avc_node * avc_lookup (u32 ssid , u32 tsid , u16 tclass );
Yes, it returns a struct avc_node *. Yes, it takes three args. No, we're not skipping any of them, keep reading. π«Ά
π¦ ARGUMENTS π¦
ssidβ the source security identifier. Like, who's the one doing the thing. πtsidβ the target security identifier. Like, who's on the receiving end. π―tclassβ the target security class. It's giving "what kind of object are we even talking about". π
πΈ DESCRIPTION πΈ
So here's the tea, bestie: this function goes looking for an AVC entry that's valid for the (ssid, tsid) pair, and it interprets the permissions based on tclass. Not me explaining permissions as if they're a personality trait π
If a valid AVC entry exists, then this function returns the avc_node. Slay. Iconic. Returned.
Otherwise? This function returns NULL. π That's it, that's the whole twist. No drama, just NULL.
π§ SEE ALSO π§
Kernel file ./security/selinux/avc.c β plus the whole friend group:
avc_init(9)avc_insert(9)avc_audit_pre_callback(9)avc_audit_post_callback(9)avc_add_callback(9)avc_update_node(9)avc_flush(9)avc_ss_reset(9)avc_compute_av(9)avc_perm_nonode(9)avc_has_perm_noaudit(9)avc_has_perm(9)
Fr fr, that's the entire invite list. π
Okay byeee, this page is brought to you by ./security/selinux and it's dated October 2026 β and honestly, avc_lookup(9) said "periodt". π
π₯
π¦ 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