diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2021-02-28 23:33:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-23 14:03:27 +0000 |
commit | c1bfa707cdfbaeec7c6b05aaac787bfb354665ba (patch) | |
tree | cee71666ec52250d8cec471a23218aaa563d136d /src/mongo/db/audit.h | |
parent | bdf7ee008434d010d4fbb95390b22ff2d2271b37 (diff) | |
download | mongo-c1bfa707cdfbaeec7c6b05aaac787bfb354665ba.tar.gz |
SERVER-54972 Add ActionTypes, ErrorCodes, and OpObserver hook for Runtime Audit Config
Diffstat (limited to 'src/mongo/db/audit.h')
-rw-r--r-- | src/mongo/db/audit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/audit.h b/src/mongo/db/audit.h index 914184c49b3..6927467abae 100644 --- a/src/mongo/db/audit.h +++ b/src/mongo/db/audit.h @@ -34,6 +34,8 @@ #pragma once +#include <functional> + #include "mongo/base/error_codes.h" #include "mongo/db/auth/privilege.h" #include "mongo/db/auth/user.h" @@ -49,6 +51,7 @@ class BSONObjBuilder; class Client; class NamespaceString; class OperationContext; +class OpObserverRegistry; class StringData; class UserName; @@ -58,6 +61,10 @@ class Document; namespace audit { +// AuditManager hooks. +extern std::function<void(OperationContext*)> initializeManager; +extern std::function<void(OpObserverRegistry*)> opObserverRegistrar; + /** * Struct that temporarily stores client information when an audit hook * executes on a separate thread with a new Client. In those cases, ImpersonatedClientAttrs |