diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-05-11 12:59:17 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-05-11 12:59:17 -0400 |
commit | ecf8ad987548705e773d23d5ddc3973cbc1ea7e5 (patch) | |
tree | 62164575b6303aebecbe41670c74b713cfa314c7 /src/mongo/rpc | |
parent | 56cbcf28c6bd4d9f9e739fb834d83b61c99516f1 (diff) | |
download | mongo-ecf8ad987548705e773d23d5ddc3973cbc1ea7e5.tar.gz |
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.
Diffstat (limited to 'src/mongo/rpc')
-rw-r--r-- | src/mongo/rpc/SConscript | 21 |
1 files changed, 19 insertions, 2 deletions
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', |