The AW_IPC token places the specified interprocess communications (IPC) identifier into the audit record. This example creates a semaphore set and puts the semaphore identifier into the audit record.
int semid; semid = semget(IPC_PRIVATE, 3, IPC_CREAT); auditwrite(AW_EVENT, "AUE_second_signature", AW_IPC, AT_IPC_SEM, semid, AW_WRITE, AW_END);
The viewing terminal shows this record where 4 is the semaphore ID:
header,104,3,second signature requested,,Fri Mar 21 12:45:21 1997, + 339 msec IPC,sem,65539 subject,zelda,zelda,staff,zelda,staff,420,286,0 0 phoenix slabel,C return,success,0 |