Redfish privileges
Redfish privilege authorization subsystem controlled by the
privilege_registy.json configuration file.
PropertyOverrides, SubordinateOverrides and ResourceURIOverrides
are not yet implemented.
Change-Id: I4d5670d557f4da172460ada3512e015830dab667
Signed-off-by: Borawski.Lukasz <lukasz.borawski@intel.com>
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c017fe1..c68c53f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,6 +125,7 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/redfish-core/include)
set(SRC_FILES
+ redfish-core/src/privileges.cpp
${GENERATED_SRC_FILES}
)
@@ -135,6 +136,7 @@
# Unit Tests
if(${BMCWEB_BUILD_UT})
set(UT_FILES
+ redfish-core/ut/privileges_test.cpp
src/crow_test.cpp
src/gtest_main.cpp
src/token_authorization_middleware_test.cpp
@@ -175,6 +177,8 @@
endif(${BMCWEB_BUILD_UT})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/static/ DESTINATION share/www)
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/redfish-core/privilege_registry.json
+ DESTINATION /etc/redfish.conf.d/)
# bmcweb
add_executable(bmcweb ${WEBSERVER_MAIN} ${HDR_FILES} ${SRC_FILES})