audit_set_loginuid(9)
π 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:
struct audit_net(9)struct auditd_connection(9)struct audit_ctl_mutex(9)auditd_test_task(9)audit_ctl_lock(9)audit_ctl_unlock(9)audit_ctl_owner_current(9)auditd_pid_vnr(9)audit_cfg_lsm(9)audit_get_sk(9)audit_log_lost(9)auditd_conn_free(9)auditd_set(9)kauditd_printk_skb(9)kauditd_rehold_skb(9)kauditd_hold_skb(9)kauditd_retry_skb(9)auditd_reset(9)auditd_send_unicast_skb(9)kauditd_send_queue(9)kauditd_thread(9)audit_send_reply(9)audit_receive(9)audit_serial(9)audit_log_start(9)audit_expand(9)audit_log_format(9)audit_log_n_hex(9)audit_string_contains_control(9)audit_log_n_untrustedstring(9)audit_log_untrustedstring(9)audit_buffer_aux_new(9)audit_buffer_aux_end(9)audit_log_subj_ctx(9)audit_log_path_denied(9)audit_signal_info(9)__audit_log_end(9)audit_log_end(9)audit_log(9)
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
- 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