| 1 |
.TH "AUDIT_SET_LOGINUID_IMMUTABLE" "3" "July 2025" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_set_loginuid_immutable \- make loginuid value immutable |
| 4 |
.SH SYNOPSIS |
| 5 |
.B #include <libaudit.h> |
| 6 |
.sp |
| 7 |
.BI "int audit_set_loginuid_immutable(int " fd );" |
| 8 |
.SH DESCRIPTION |
| 9 |
.BR audit_set_loginuid_immutable () |
| 10 |
locks the loginuid so that it can no longer be changed. The descriptor |
| 11 |
.I fd |
| 12 |
must be an open audit netlink socket. This call is equivalent to using |
| 13 |
.BR audit_set_feature () |
| 14 |
to enable and lock the |
| 15 |
.BR AUDIT_FEATURE_LOGINUID_IMMUTABLE |
| 16 |
bit. |
| 17 |
.SH RETURN VALUE |
| 18 |
The return value is <= 0 on error, otherwise it is the netlink sequence id number. |
| 19 |
.SH SEE ALSO |
| 20 |
.BR audit_set_feature (3), |
| 21 |
.BR audit_open (3). |
| 22 |
.SH AUTHOR |
| 23 |
Steve Grubb |