diff options
author | Ratan Gupta <ratagupt@linux.vnet.ibm.com> | 2019-04-03 07:38:11 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-07-09 19:36:10 +0300 |
commit | 12c04ef5d04d62fd7b19506faf4eb2b08662e979 (patch) | |
tree | 80598052c6a8187619d159dba63ffd2b636ceccf /src | |
parent | e90c50528a87fd15a7ae3f6b49e0ab83b1873d0c (diff) | |
download | bmcweb-12c04ef5d04d62fd7b19506faf4eb2b08662e979.tar.xz |
Redfish(Authorization): Add the privilege in the user session object.
This commit fetches the user privilege during creation of the
session by making D-bus call and add the privilege in the
user session object.
Change-Id: I0e9da8a52df00fc753b13101066ce6d0be9e2ce3
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/webserver_main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index 1c9c1f18d3..602c216709 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -99,6 +99,10 @@ int main(int argc, char** argv) std::make_shared<sdbusplus::asio::connection>(*io); redfish::RedfishService redfish(app); + // Keep the user role map hot in memory and + // track the changes using match object + crow::persistent_data::UserRoleMap::getInstance(); + app.run(); io->run(); |