viced-audit-createfile-20051020

add the FID of the created file to the audit output for CreateFileEvent
This commit is contained in:
Jeffrey Altman 2005-10-21 00:32:40 +00:00
parent 1b7cbd1211
commit 9e1a0f8a0d

View File

@ -3708,6 +3708,8 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
TM_GetTimeOfDay(&opStartTime, 0);
#endif /* FS_STATS_DETAILED */
memset(OutFid, 0, sizeof(struct AFSFid));
if ((code = CallPreamble(acall, ACTIVECALL, &tcon)))
goto Bad_CreateFile;
@ -3740,7 +3742,7 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
osi_auditU(acall, CreateFileEvent, code,
AUD_ID, t_client ? t_client->ViceId : 0,
AUD_FID, DirFid, AUD_STR, Name, AUD_END);
AUD_FID, DirFid, AUD_STR, Name, AUD_FID, OutFid, AUD_END);
return code;
} /*SRXAFS_CreateFile */