diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2015-12-14 12:22:16 -0500 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2015-12-15 15:59:58 -0500 |
commit | 21bcf6b127c1bb24e74845327e8d20df26e560bc (patch) | |
tree | 0a034064354ab57e70c37dc1daca1e7dafca2334 /src/mongo/db/auth/role_graph_builtin_roles.cpp | |
parent | 1ef94fe1099da7b6396bf9c0ddf93747c8b80f2a (diff) | |
download | mongo-21bcf6b127c1bb24e74845327e8d20df26e560bc.tar.gz |
SERVER-21724 Let backup role read system.profile
Diffstat (limited to 'src/mongo/db/auth/role_graph_builtin_roles.cpp')
-rw-r--r-- | src/mongo/db/auth/role_graph_builtin_roles.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/auth/role_graph_builtin_roles.cpp b/src/mongo/db/auth/role_graph_builtin_roles.cpp index 94e3b157346..7d1c6178ecc 100644 --- a/src/mongo/db/auth/role_graph_builtin_roles.cpp +++ b/src/mongo/db/auth/role_graph_builtin_roles.cpp @@ -442,6 +442,10 @@ void addBackupPrivileges(PrivilegeVector* privileges) { Privilege::addPrivilegeToPrivilegeVector( privileges, + Privilege(ResourcePattern::forCollectionName("system.profile"), ActionType::find)); + + Privilege::addPrivilegeToPrivilegeVector( + privileges, Privilege( ResourcePattern::forExactNamespace(AuthorizationManager::usersAltCollectionNamespace), ActionType::find)); |