AUDIT_SET_LOGINUID_IMMUTABLE(3)
π AUDIT_SET_LOGINUID_IMMUTABLE β the Linux Audit API, section 3, bestie edition π
okay so. imagine a value that you set once and then nobody, not even you, not even root, not even your most chaotic shell script, can ever change again. that's this function. it's giving "locked in" and honestly? iconic. πβ¨
β¨ NAME β¨
audit_set_loginuid_immutable β make loginuid value immutable π«Ά
πΈ SYNOPSIS πΈ
#include <libaudit.h>
int audit_set_loginuid_immutable(int fd);"
π¦ DESCRIPTION π¦
so like. audit_set_loginuid_immutable() locks the loginuid so that it can no longer be changed. that's it. that's the whole vibe. once it's locked, it's locked, periodt. π
the descriptor fd must be an open audit netlink socket β no random fd, no vibes-based guessing, an actual audit netlink socket, fr fr.
and here's the tea: this call is equivalent to using audit_set_feature() to enable and lock the AUDIT_FEATURE_LOGINUID_IMMUTABLE bit. same energy, different entrance. β¨
π RETURN VALUE π
the return value is <= 0 on error π, otherwise it's the netlink sequence id number π. so like, if you get something greater than zero, you ate. if you get <= 0, something went sideways and you should go check.
π SEE ALSO π
go read those too, they're part of the same friend group π«Ά
π AUTHOR π
Steve Grubb π
okay that's the whole page bestie, mwah π
this lil legend comes to you from Red Hat, dated July 2025, and yes it's AUDIT_SET_LOGINUID_IMMUTABLE(3) in the flesh β stay immutable, stay unbothered, drink water π§ππΈ
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libaudit-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libaudit-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libaudit-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms