/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#define AUD_END 0 /* End of veriable list */
-#define AUD_STR 1 /* String in variable list */
-#define AUD_INT 2 /* int in variable list */
-#define AUD_LST 3 /* Variable list in a variable list */
-#define AUD_HOST 4 /* A host # to be changed to string */
-#define AUD_LONG 5 /* long in variable list */
-#define AUD_DATE 6 /* date (unsigned long) */
-#define AUD_FID 7 /* File ID */
-#define AUD_FIDS 8 /* array of Fids */
+#define AUD_END 0 /* End of variable list */
+#define AUD_STR 1 /* String in variable list */
+#define AUD_INT 2 /* int in variable list */
+#define AUD_LST 3 /* Variable list in a variable list */
+#define AUD_HOST 4 /* A host # to be changed to string */
+#define AUD_LONG 5 /* long in variable list */
+#define AUD_DATE 6 /* date (unsigned long) */
+#define AUD_FID 7 /* File ID */
+#define AUD_FIDS 8 /* array of Fids */
+#define AUD_NAME 9 /* Name */
+#define AUD_ID 10 /* Id (Vice, PTS, ...) */
+#define AUD_ACL 11 /* ACL */
/* next 3 lines on behalf of MR-AFS */
-#define AUD_RESID 20 /* resid in variable list */
-#define AUD_RSSIZERANGE 21 /* rssizerange in variable list */
-#define AUD_LOOKUPINFO 22 /* LookupInfo in variable list */
+#define AUD_RESID 20 /* resid in variable list */
+#define AUD_RSSIZERANGE 21 /* rssizerange in variable list */
+#define AUD_LOOKUPINFO 22 /* LookupInfo in variable list */
/*
* Note: the master definitions of these error codes come from *.et
* simple way to avoid circular dependence problems in the build.
*/
-#define KANOAUTH (180488L) /* kauth/kaerrors.et */
-#define RXKADNOAUTH (19270405L) /* rxkad/rxkad_errs.et */
-#define PRPERM (267269L) /* ptserver/pterror.et */
-#define VL_PERM (363546L) /* vlserver/vl_errors.et */
-#define BUDB_NOTPERMITTED (156303880L) /* budb/budb_errs.et */
-#define BZACCESS (39430L) /* bozo/boserr.et */
-#define VOLSERBAD_ACCESS (1492325127L) /* volser/volerr.et */
+#define KANOAUTH (180488L) /* kauth/kaerrors.et */
+#define RXKADNOAUTH (19270405L) /* rxkad/rxkad_errs.et */
+#define PRPERM (267269L) /* ptserver/pterror.et */
+#define VL_PERM (363546L) /* vlserver/vl_errors.et */
+#define BUDB_NOTPERMITTED (156303880L) /* budb/budb_errs.et */
+#define BZACCESS (39430L) /* bozo/boserr.et */
+#define VOLSERBAD_ACCESS (1492325127L) /* volser/volerr.et */
#define VS_StartEvent "AFS_VS_Start"
#define PTS_LstEleEvent "AFS_PTS_LstEle"
#define PTS_LstOwnEvent "AFS_PTS_LstOwn"
#define PTS_IsMemOfEvent "AFS_PTS_IsMemOf"
+#define PTS_UpdEntEvent "AFS_PTS_UpdEnt"
+#define PTS_LstSGrps "AFS_PTS_LstSGrps"
#define BUDB_StartEvent "AFS_BUDB_Start"
#define BUDB_FinishEvent "AFS_BUDB_Finish"
#define SetLockEvent "AFS_SRX_SetLock"
#define ExtendLockEvent "AFS_SRX_ExtLock"
#define ReleaseLockEvent "AFS_SRX_RelLock"
+#define GetVolumeStatusEvent "AFS_SRX_GetVolS"
#define SetVolumeStatusEvent "AFS_SRX_SetVolS"
#define FlushCPSEvent "AFS_SRX_FlusCPS"
+#define InlineBulkFetchStatusEvent "AFS_SRX_BIFchSt"
#define PrivilegeEvent "AFS_Priv"
#define PrivSetID "AFS_PrivSet"
/* Next 5 lines on behalf of MR-AFS */
#define ImportResidenciesEvent "AFS_SRX_Import"
#define GetExtendedVolumeAttributesEvent "AFS_SRX_GetVA"
#define SetExtendedVolumeAttributesEvent "AFS_SRX_SetVA"
+#define GetStatisticsEvent "AFS_SRX_GetStats"
+#define XStatsVersionEvent "AFS_SRX_XStatsVer"
#define NoAuthEvent "AFS_RunNoAuth"
#define NoAuthDisableEvent "AFS_NoAuthDsbl"
/* prototypes for audit functions */
-int osi_audit (char *audEvent, afs_int32 errCode, ...);
-int osi_auditU (struct rx_call *call, char *audEvent, int errCode, ...);
-
+int osi_audit(char *audEvent, afs_int32 errCode, ...);
+int osi_auditU(struct rx_call *call, char *audEvent, int errCode, ...);
+int osi_audit_file(const char *filename);
+void osi_audit_init(void);
+int osi_audit_interface(const char *interface);
+void osi_audit_set_user_check(void *rock, int (*islocal)(void *rock, char *name, char *inst, char *cell));
+void audit_PrintStats(FILE *out);