avc_update_node(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ 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 sid
  • tsid โ€” the AVC entry target sid
  • tclass โ€” the AVC entry target object class
  • seqno โ€” sequence number from when the decision was made. receipts, basically ๐Ÿงพ
  • xpd โ€” the extended_perms_decision to be added to the node ๐Ÿ’–
  • flags โ€” the AVC_* flags, e.g. AVC_EXTENDED_PERMS, or 0. 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 ๐Ÿ‘ฏโ€โ™€๏ธ :


๐Ÿ’œ 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