carta
audit_set_loginuid_immutable(3)

audit_set_loginuid_immutable3

Make loginuid value immutable

Usage

int audit_set_loginuid_immutable(int fd);"

Overview

audit_set_loginuid_immutable() locks the loginuid so that it can no longer be changed. The descriptor fd must be an open audit netlink socket. This call is equivalent to using audit_set_feature() to enable and lock the AUDIT_FEATURE_LOGINUID_IMMUTABLE bit.

Return value

The return value is <= 0 on error, otherwise it is the netlink sequence id number.

Author

Steve Grubb

From audit 4.2.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.