setaudid(2)setaudid(2)NAMEsetaudid() - set the audit ID (aid) for the current process
This function is provided purely for backward compatibility. HP recom‐
mends that new applications use instead. See setauduser(3).
sets the audit ID (aid) in the audit tag for the current process. This
call is restricted to a user with the privilege.
Some or all of the actions associated with this system call require the
privilege. Processes owned by the superuser will have this privilege.
Processes owned by other users may have this privilege, depending on
system configuration. See privileges(5) for more information about
privileged access on systems that support fine-grained privileges.
Upon successful completion, returns a value of 0; otherwise, it returns
−1 and sets to indicate the error.
fails if any of the following conditions are encountered:
The caller is not a user with the
The audit ID (audid) is invalid.
was developed by HP.
SEE ALSOgetaudid(2), getauduser(3), setauduser(3), privileges(5).
TO BE OBSOLETED setaudid(2)