audit_log_subj_ctx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– audit_log_subj_ctx β€” the Kernel API Manual, bestie edition πŸ’–

okay so this is a page from the Kernel API Manual (section 9, kernel-space functions, iykyk) and honestly? it's a tiny little function with main character energy. let's get into it 🫢


🌸 NAME 🌸

audit_log_subj_ctx β€” literally just add LSM subject information ✨ no cap, that's the whole gig.


πŸ¦‹ SYNOPSIS πŸ¦‹

int audit_log_subj_ctx (struct audit_buffer *ab , struct lsm_prop *prop
);

it returns an int, takes two args, and honestly the line break before the closing paren is giving "wrote this at 3am" πŸ’€ but we respect it.


πŸŽ€ ARGUMENTS πŸŽ€

  • ab β€” an audit_buffer, aka the thing we're writing into. your canvas, your aesthetic, your ✨audit buffer✨.
  • prop β€” LSM subject properties. this is the actual tea we're pouring into the buffer, bestie.

πŸ’… DESCRIPTION πŸ’…

so what does it do? it adds a subj= field β€” and if it's necessary, it also adds an AUDIT_MAC_TASK_CONTEXTS record. that's it. that's the whole vibe check. lowkey iconic in its simplicity πŸ‘‘


🌈 SEE ALSO 🌈

okay this list is long long, so buckle up, we're going through all of it (yes, all of it, we don't skip):

like… the whole audit subsystem showed up to the party and honestly? slay πŸ’€πŸ”₯


ngl bestie, if you're deep in the audit logs, this whole little family of functions is your new hyperfixation. go read them. i'll wait πŸ“

✨ cute sign-off time ✨ β€” this page lives at ./kernel, and the version/date on the tin is October 2026. so yeah, slightly time-travelled documentation, but we stan a forward-thinking manpage πŸ’œπŸ§š periodt.

πŸ“¦ where this page comes from