From ecf8ad987548705e773d23d5ddc3973cbc1ea7e5 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 11 May 2018 12:59:17 -0400 Subject: SERVER-33008 Slice Authorization framework The Authorization framework was intertwined with many subsystems and needed to be properly abstracted in order to facilitate cutting down on certain unnecessary dependencies in some libraries. This also facilitates creating a reduced authorization framework for use in embedded builds. --- src/mongo/rpc/SConscript | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src/mongo/rpc') diff --git a/src/mongo/rpc/SConscript b/src/mongo/rpc/SConscript index 637c62ffaa7..b588608bdee 100644 --- a/src/mongo/rpc/SConscript +++ b/src/mongo/rpc/SConscript @@ -132,13 +132,12 @@ env.Library( ], ) -env.Clone().InjectModule("enterprise").Library( +env.Library( target=[ 'metadata', ], source=[ 'metadata.cpp', - 'metadata/audit_metadata.cpp', 'metadata/config_server_metadata.cpp', 'metadata/egress_metadata_hook_list.cpp', 'metadata/logical_time_metadata.cpp', @@ -149,6 +148,7 @@ env.Clone().InjectModule("enterprise").Library( ], LIBDEPS=[ 'client_metadata', + 'audit_metadata', '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/bson/util/bson_extract', '$BUILD_DIR/mongo/client/read_preference', @@ -158,6 +158,23 @@ env.Clone().InjectModule("enterprise").Library( ], ) +env.Clone().InjectModule("enterprise").Library( + target=[ + 'audit_metadata', + ], + source=[ + 'metadata/audit_metadata.cpp', + ], + LIBDEPS_PRIVATE=[ + '$BUILD_DIR/mongo/bson/util/bson_extract', + '$BUILD_DIR/mongo/db/auth/auth_rolename', + '$BUILD_DIR/mongo/db/auth/user_name', + ], + LIBDEPS=[ + '$BUILD_DIR/mongo/base', + ], +) + env.CppUnitTest( target=[ 'rpc_metadata_test', -- cgit v1.2.1