avc_update_node(9)
โจ avc_update_node(9) โจ
okay so bestie, welcome to avc_update_node โ this is a page from the Kernel API Manual (section 9, kernel-dev vibes ๐
) and it's literally all about updating an AVC entry. yes. that's the whole thing. and we're gonna get into it ๐
๐ธ NAME ๐ธ
avc_update_node โ Update an AVC entry ๐ฆ
no cap, that's it. short, sweet, iconic.
โญ SYNOPSIS โญ
int avc_update_node (u32 event , u32 perms , u8 driver , u8 base_perm ,
u8 xperm , u32 ssid , u32 tsid , u16 tclass , u32 seqno , struct
extended_perms_decision *xpd , u32 flags );
eleven arguments. ELEVEN. she's high-maintenance but she's worth it ๐
๐ซถ ARGUMENTS ๐ซถ
like, so many. let's go through them one by one, bestie, don't skip ๐
eventโ the updating event. the whole reason we're here โจpermsโ permission mask bits. mask-y. permission-y. you know how it is.driverโ xperm driver information ๐base_permโ the base permission associated with the extended permission. like the base coat of your nails before the sparkle ๐xpermโ xperm permissions ๐ฅssidโ the AVC entry source sidtsidโ the AVC entry target sidtclassโ the AVC entry target object classseqnoโ sequence number from when the decision was made. receipts, basically ๐งพxpdโ theextended_perms_decisionto be added to the node ๐flagsโ theAVC_*flags, e.g.AVC_EXTENDED_PERMS, or0. pick your fighter.
๐ DESCRIPTION ๐
okay so here's the tea โ :
if a valid AVC entry doesn't exist, this function returns -ENOENT. like, she looked and it wasn't there. gone. not found. ๐ญ
if kmalloc called internal returns NULL, this function returns -ENOMEM. the memory said no. we respect the no. ๐
otherwise โ and this is the good part โจ โ this function updates the AVC entry. and the original AVC-entry object will release later by RCU. so like, the old one isn't deleted right away, she's justโฆ waiting for her RCU moment. main character exit, lowkey ๐ธ
no invented extras here, bestie โ that's genuinely the whole behavior. three outcomes:-ENOENT,-ENOMEM, or the update. periodt.
๐ฆ SEE ALSO ๐ฆ
Kernel file ./security/selinux/avc.c
and the whole friend group ๐ฏโโ๏ธ :
avc_init(9)avc_lookup(9)avc_insert(9)avc_audit_pre_callback(9)avc_audit_post_callback(9)avc_add_callback(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)
๐ and that's the page!! shoutout to ./security/selinux for hosting her, and this edition is dated October 2026 โ so she's from the future, slay ๐ฎ๐ bye bestie, go update some nodes ๐
๐ฆ 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