SM: Use TzPlatformConfig for global app dir
[platform/core/test/security-tests.git] / src / security-manager-tests / common / sm_commons.h
index ec0210b..efd0b40 100644 (file)
@@ -29,6 +29,7 @@
 #include <memory.h>
 #include <sm_db.h>
 #include <temp_test_user.h>
+#include <tzplatform.h>
 
 DEFINE_SMARTPTR(cap_free, _cap_struct, CapsSetsUniquePtr);
 
@@ -43,7 +44,8 @@ extern const privileges_t SM_ALLOWED_PRIVILEGES;
 extern const privileges_t SM_DENIED_PRIVILEGES;
 extern const privileges_t SM_NO_PRIVILEGES;
 extern const std::vector<std::string> SM_ALLOWED_GROUPS;
-static const char *const SM_RW_PATH = "/opt/usr/apps/sm_test_02_pkg_id_full/app_dir";
+const std::string SM_RW_PATH =
+        TzPlatformConfig::globalAppDir() + "/sm_test_02_pkg_id_full/app_dir";
 
 const std::string uidToStr(const uid_t uid);