summaryrefslogtreecommitdiff
path: root/src/mongo/db/audit.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2013-07-09 16:57:51 -0400
committerAndy Schwerin <schwerin@10gen.com>2013-07-17 14:37:37 -0400
commit457e50ba8c19cc6df8d865a870268a5a5462de8b (patch)
tree73353e939615493ae44cae2f73c2b279922a8bcb /src/mongo/db/audit.cpp
parentf62d600cb0a2680b72a35023e812140da50056ca (diff)
downloadmongo-457e50ba8c19cc6df8d865a870268a5a5462de8b.tar.gz
SERVER-1891 Add hook for auditing access control checks for commands.
Diffstat (limited to 'src/mongo/db/audit.cpp')
-rw-r--r--src/mongo/db/audit.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mongo/db/audit.cpp b/src/mongo/db/audit.cpp
new file mode 100644
index 00000000000..15d7814d84f
--- /dev/null
+++ b/src/mongo/db/audit.cpp
@@ -0,0 +1,31 @@
+/**
+ * Copyright (C) 2013 10gen Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "mongo/db/audit.h"
+
+#if !MONGO_ENTERPRISE_VERSION
+
+namespace mongo {
+namespace audit {
+
+ void logCommandAuthzCheck(ClientBasic* client,
+ const NamespaceString& ns,
+ const BSONObj& cmdObj,
+ ErrorCodes::Error result) {}
+} // namespace audit
+} // namespace mongo
+
+#endif // !MONGO_ENTERPRISE