/openbmc/bmcweb/test/redfish-core/include/ |
H A D | privileges_test.cpp | 20 Privileges privileges{"Login", "ConfigureManager"}; in TEST() local 22 EXPECT_THAT(privileges.getActivePrivilegeNames(PrivilegeType::BASE), in TEST() 100 Privileges privileges; in TEST() local 102 EXPECT_THAT(privileges.getActivePrivilegeNames(PrivilegeType::BASE), in TEST() 105 EXPECT_THAT(privileges.getActivePrivilegeNames(PrivilegeType::OEM), in TEST() 111 Privileges privileges; in TEST() local 113 EXPECT_THAT(privileges.getActivePrivilegeNames(PrivilegeType::BASE), in TEST() 122 EXPECT_TRUE(privileges.setSinglePrivilege(privilege)); in TEST() 126 privileges.getActivePrivilegeNames(PrivilegeType::BASE), in TEST() 134 Privileges privileges{"OpenBMCHostConsole"}; in TEST() local [all …]
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | redfish_sessions.hpp | 365 .privileges(redfish::privileges::headSession) in requestRoutesSession() 370 .privileges(redfish::privileges::getSession) in requestRoutesSession() 375 .privileges(redfish::privileges::deleteSession) in requestRoutesSession() 380 .privileges(redfish::privileges::headSessionCollection) in requestRoutesSession() 385 .privileges(redfish::privileges::getSessionCollection) in requestRoutesSession() 395 .privileges({}) in requestRoutesSession() 400 .privileges({}) in requestRoutesSession() 405 .privileges(redfish::privileges::headSessionService) in requestRoutesSession() 410 .privileges(redfish::privileges::getSessionService) in requestRoutesSession() 415 .privileges(redfish::privileges::patchSessionService) in requestRoutesSession()
|
H A D | aggregation_service.hpp | 58 .privileges(redfish::privileges::headAggregationService) in requestRoutesAggregationService() 62 .privileges(redfish::privileges::getAggregationService) in requestRoutesAggregationService() 128 .privileges(redfish::privileges::getAggregationSourceCollection) in requestRoutesAggregationSourceCollection() 133 .privileges(redfish::privileges::getAggregationSourceCollection) in requestRoutesAggregationSourceCollection() 221 .privileges(redfish::privileges::getAggregationSource) in requestRoutesAggregationSource()
|
H A D | redfish_v1.hpp | 228 .privileges(redfish::privileges::getJsonSchemaFile) in requestRoutesRedfish() 232 .privileges(redfish::privileges::getJsonSchemaFileCollection) in requestRoutesRedfish() 237 .privileges(redfish::privileges::getJsonSchemaFile) in requestRoutesRedfish() 244 .privileges(redfish::privileges::privilegeSetLogin)( in requestRoutesRedfish() 249 .privileges(redfish::privileges::privilegeSetLogin)( in requestRoutesRedfish()
|
H A D | certificate_service.hpp | 877 .privileges(redfish::privileges::getCertificateService) in requestRoutesCertificateService() 882 .privileges(redfish::privileges::getCertificateLocations) in requestRoutesCertificateService() 889 .privileges(redfish::privileges::postCertificateService) in requestRoutesCertificateService() 896 .privileges(redfish::privileges::postCertificateService) in requestRoutesCertificateService() 1019 .privileges(redfish::privileges::getCertificateCollection) in requestRoutesHTTPSCertificate() 1032 .privileges(redfish::privileges::getCertificate) in requestRoutesHTTPSCertificate() 1150 .privileges(redfish::privileges::getCertificate) in requestRoutesLDAPCertificate() 1155 .privileges(redfish::privileges::deleteCertificate) in requestRoutesLDAPCertificate() 1294 .privileges(redfish::privileges::getCertificate) in requestRoutesTrustStoreCertificate() 1305 .privileges(redfish::privileges::getCertificate) in requestRoutesTrustStoreCertificate() [all …]
|
H A D | log_services.hpp | 1232 .privileges(redfish::privileges::getLogService) in requestRoutesEventLogService() 1701 .privileges(redfish::privileges::getLogEntry) in requestRoutesJournalEventLogEntry() 1850 .privileges(redfish::privileges::getLogEntry) in requestRoutesDBusEventLogEntry() 1878 .privileges(redfish::privileges::patchLogEntry) in requestRoutesDBusEventLogEntry() 2444 .privileges(redfish::privileges::getLogService) in requestRoutesBMCDumpService() 2461 .privileges(redfish::privileges::getLogEntry) in requestRoutesBMCDumpEntry() 2477 .privileges(redfish::privileges::getLogEntry) in requestRoutesBMCDumpEntryDownload() 2508 .privileges(redfish::privileges::getLogEntry) in requestRoutesDBusEventLogEntryDownload() 2535 .privileges(redfish::privileges::getLogEntry) in requestRoutesFaultLogDumpEntry() 2577 .privileges(redfish::privileges::getLogEntry) in requestRoutesSystemDumpEntry() [all …]
|
H A D | thermal.hpp | 31 .privileges(redfish::privileges::getThermal) in requestRoutesThermal() 51 .privileges(redfish::privileges::patchThermal) in requestRoutesThermal()
|
H A D | environment_metrics.hpp | 80 .privileges(redfish::privileges::headEnvironmentMetrics) in requestRoutesEnvironmentMetrics() 85 .privileges(redfish::privileges::getEnvironmentMetrics) in requestRoutesEnvironmentMetrics()
|
H A D | thermal_metrics.hpp | 82 .privileges(redfish::privileges::headThermalMetrics) in requestRoutesThermalMetrics() 88 .privileges(redfish::privileges::getThermalMetrics) in requestRoutesThermalMetrics()
|
H A D | bios.hpp | 55 .privileges(redfish::privileges::getBios) in requestRoutesBiosService() 108 .privileges(redfish::privileges::postBios) in requestRoutesBiosReset()
|
H A D | power_subsystem.hpp | 89 .privileges(redfish::privileges::headPowerSubsystem) in requestRoutesPowerSubsystem() 94 .privileges(redfish::privileges::getPowerSubsystem) in requestRoutesPowerSubsystem()
|
H A D | thermal_subsystem.hpp | 97 .privileges(redfish::privileges::headThermalSubsystem) in requestRoutesThermalSubsystem() 102 .privileges(redfish::privileges::getThermalSubsystem) in requestRoutesThermalSubsystem()
|
H A D | event_service.hpp | 55 .privileges(redfish::privileges::getEventService) in requestRoutesEventService() 110 .privileges(redfish::privileges::patchEventService) in requestRoutesEventService() 179 .privileges(redfish::privileges::postEventService) in requestRoutesSubmitTestEvent() 233 .privileges(redfish::privileges::getEventDestinationCollection) in requestRoutesEventDestinationCollection() 275 .privileges(redfish::privileges::postEventDestinationCollection) in requestRoutesEventDestinationCollection() 660 .privileges(redfish::privileges::getEventDestination) in requestRoutesEventDestination() 730 .privileges({{"ConfigureManager"}}) in requestRoutesEventDestination() 815 .privileges({{"ConfigureManager"}}) in requestRoutesEventDestination()
|
H A D | service_root.hpp | 133 .privileges(redfish::privileges::headServiceRoot) in requestRoutesServiceRoot() 137 .privileges(redfish::privileges::getServiceRoot) in requestRoutesServiceRoot()
|
H A D | systems_logservices_hostlogger.hpp | 225 .privileges(redfish::privileges::getLogService) in requestRoutesSystemsLogServiceHostlogger() 230 .privileges(redfish::privileges::getLogEntryCollection) in requestRoutesSystemsLogServiceHostlogger() 236 .privileges(redfish::privileges::getLogEntry) in requestRoutesSystemsLogServiceHostlogger()
|
H A D | roles.hpp | 83 .privileges(redfish::privileges::getRole) in requestRoutesRoles() 120 .privileges(redfish::privileges::getRoleCollection) in requestRoutesRoleCollection()
|
H A D | metric_report.hpp | 64 .privileges(redfish::privileges::getMetricReportCollection) in requestRoutesMetricReportCollection() 92 .privileges(redfish::privileges::getMetricReport) in requestRoutesMetricReport()
|
H A D | message_registries.hpp | 71 .privileges(redfish::privileges::getMessageRegistryFileCollection) in requestRoutesMessageRegistryFileCollection() 151 .privileges(redfish::privileges::getMessageRegistryFile) in requestRoutesMessageRegistryFile() 266 .privileges(redfish::privileges::getMessageRegistryFile) in requestRoutesMessageRegistry()
|
H A D | fabric_adapters.hpp | 414 .privileges(redfish::privileges::getFabricAdapterCollection) in requestRoutesFabricAdapterCollection() 419 .privileges(redfish::privileges::headFabricAdapterCollection) in requestRoutesFabricAdapterCollection() 427 .privileges(redfish::privileges::getFabricAdapter) in requestRoutesFabricAdapters() 432 .privileges(redfish::privileges::headFabricAdapter) in requestRoutesFabricAdapters()
|
H A D | cable.hpp | 139 .privileges(redfish::privileges::getCable) in requestRoutesCable() 205 .privileges(redfish::privileges::getCableCollection) in requestRoutesCableCollection()
|
H A D | storage.hpp | 97 .privileges(redfish::privileges::getStorageCollection) in requestRoutesStorageCollection() 101 .privileges(redfish::privileges::getStorageCollection) in requestRoutesStorageCollection() 280 .privileges(redfish::privileges::getStorage) in requestRoutesStorage() 285 .privileges(redfish::privileges::getStorage) in requestRoutesStorage() 727 .privileges(redfish::privileges::getDrive) in requestRoutesDrive() 832 .privileges(redfish::privileges::getDriveCollection) in requestRoutesChassisDrive() 973 .privileges(redfish::privileges::getChassis) in requestRoutesChassisDriveName() 1208 .privileges(redfish::privileges::getStorageControllerCollection) in requestRoutesStorageControllerCollection() 1216 .privileges(redfish::privileges::getStorageController) in requestRoutesStorageController()
|
H A D | systems_logservices_postcodes.hpp | 582 .privileges(redfish::privileges::getLogService) in requestRoutesSystemsLogServicesPostCode() 591 .privileges({{"ConfigureComponents"}}) in requestRoutesSystemsLogServicesPostCode() 597 .privileges(redfish::privileges::getLogEntryCollection) in requestRoutesSystemsLogServicesPostCode() 603 .privileges(redfish::privileges::getLogEntry) in requestRoutesSystemsLogServicesPostCode() 610 .privileges(redfish::privileges::getLogEntry) in requestRoutesSystemsLogServicesPostCode()
|
H A D | fan.hpp | 153 .privileges(redfish::privileges::headFanCollection) in requestRoutesFanCollection() 158 .privileges(redfish::privileges::getFanCollection) in requestRoutesFanCollection() 442 .privileges(redfish::privileges::headFan) in requestRoutesFan() 447 .privileges(redfish::privileges::getFan) in requestRoutesFan()
|
/openbmc/docs/designs/ |
H A D | redfish-authorization.md | 32 type. It is used to determine whether the identity privileges of an 133 1. the set of Phosphor-user-manager privileges 165 existing Redfish privileges without recompile 172 - It rejects modification of non-OEM privileges 176 assigned such privileges 211 hardcoded table to map Redfish role to Redfish privileges. 215 privileges: secondary group can't represent associations. 254 privileges "ConfigureSelf" and "OemPrivPower". 299 privileges: `Login`, `ConfigureSelf`, `OemPrivPower`. 313 privileges; under the hood, it stores privileges as Linux groups, as today [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | parse_registries.py | 149 privileges = privilege_json["Privilege"] 151 for privilege in privileges: 169 privileges = privilege_json["Privilege"] 170 names.append("And".join(privileges))
|