mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
viced-audit-createfile-20051020
add the FID of the created file to the audit output for CreateFileEvent
This commit is contained in:
parent
1b7cbd1211
commit
9e1a0f8a0d
@ -3708,6 +3708,8 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
|
|||||||
TM_GetTimeOfDay(&opStartTime, 0);
|
TM_GetTimeOfDay(&opStartTime, 0);
|
||||||
#endif /* FS_STATS_DETAILED */
|
#endif /* FS_STATS_DETAILED */
|
||||||
|
|
||||||
|
memset(OutFid, 0, sizeof(struct AFSFid));
|
||||||
|
|
||||||
if ((code = CallPreamble(acall, ACTIVECALL, &tcon)))
|
if ((code = CallPreamble(acall, ACTIVECALL, &tcon)))
|
||||||
goto Bad_CreateFile;
|
goto Bad_CreateFile;
|
||||||
|
|
||||||
@ -3740,7 +3742,7 @@ SRXAFS_CreateFile(struct rx_call * acall, struct AFSFid * DirFid, char *Name,
|
|||||||
|
|
||||||
osi_auditU(acall, CreateFileEvent, code,
|
osi_auditU(acall, CreateFileEvent, code,
|
||||||
AUD_ID, t_client ? t_client->ViceId : 0,
|
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;
|
return code;
|
||||||
|
|
||||||
} /*SRXAFS_CreateFile */
|
} /*SRXAFS_CreateFile */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user