0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-17135 Add permissions on config.settings to backup auth role

This commit is contained in:
Amalia Hawkins 2015-02-19 13:21:31 -05:00
parent 7d8adb6da8
commit 44a8c494fc

View File

@ -544,6 +544,14 @@ namespace {
Privilege(ResourcePattern::forExactNamespace(
AuthorizationManager::versionCollectionNamespace),
ActionType::find));
ActionSet configSettingsActions;
configSettingsActions << ActionType::insert << ActionType::update << ActionType::find;
Privilege::addPrivilegeToPrivilegeVector(
privileges,
Privilege(ResourcePattern::forExactNamespace(NamespaceString("config",
"settings")),
configSettingsActions));
}
void addRestorePrivileges(PrivilegeVector* privileges) {