audit_set_loginuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– audit_set_loginuid(9) πŸ’–

okay so this is from the Kernel API Manual bestie, and it's like... a tiny one. like, suspiciously tiny. but we're gonna give it the full main-character treatment anyway because that's just who I am πŸŽ€


✨ NAME ✨

audit_set_loginuid β€” sets the current task's loginuid. that's it. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

int audit_set_loginuid (kuid_t loginuid );

yes the spacing is like that, don't come for me, I'm quoting it exactly πŸ’…


✨ ARGUMENTS ✨

  • loginuid β€” the loginuid value. literally just the value that gets set. no notes. πŸ‘‘

✨ DESCRIPTION ✨

okay so it returns 0. slay! that's the documented return, no cap, that's what it says 🌸

and where does it get called from? bestie it gets set from fs/proc/base.c::proc_loginuid_write. iconic path, love that for it. so if you ever wondered who's writing your loginuid, it's that girl. 🧚

lowkey this page is short enough that I could hold it in one hand but the SEE ALSO section below is giving extended universe β€” someone went OFF 😭πŸ”₯

✨ SEE ALSO ✨

the kernel file is ./kernel/audit.c and then… bestie. brace yourself. the whole friend group showed up:

all 39 of them. every single one. I counted, I listed, I did not skip. periodt. πŸ’œ


and that's the page!! hope you learned something about your loginuid bestie 😌

β€” cute little sign-off: this page lives in ./kernel, it's dated October 2026, and it's still audit_set_loginuid(9) in the corner like the little icon it is. bye bestie, go read some source code 🌈⭐🫢

πŸ“¦ where this page comes from