SM: Rename and use one label generators
[platform/core/test/security-tests.git] / src / security-manager-tests / test_cases_public_sharing.cpp
index 8366fcb..b021864 100644 (file)
@@ -55,7 +55,7 @@ void test_success_worker(const std::string &appName, int test_num)
 {
     std::string SM_OWNER_RW_OTHERS_RO_PATH = genOwnerRWOthersROPath(test_num);
 
-    changeSecurityContext(generateAppLabel(appName), APP_UID, APP_GID);
+    changeSecurityContext(generateProcessLabel(appName), APP_UID, APP_GID);
 
     RUNNER_ASSERT_ERRNO_MSG(::access(SM_OWNER_RW_OTHERS_RO_PATH.c_str(), R_OK|X_OK) != -1,
         "access (" << SM_OWNER_RW_OTHERS_RO_PATH << ") from " << appName << " failed " << " to " << SM_OWNER_RW_OTHERS_RO_PATH );
@@ -65,7 +65,7 @@ void test_fail_worker(const std::string &appName, int test_num)
 {
     std::string SM_OWNER_RW_OTHERS_RO_PATH = genOwnerRWOthersROPath(test_num);
 
-    changeSecurityContext(generateAppLabel(appName), APP_UID, APP_GID);
+    changeSecurityContext(generateProcessLabel(appName), APP_UID, APP_GID);
 
     RUNNER_ASSERT_MSG(::access(SM_OWNER_RW_OTHERS_RO_PATH.c_str(), R_OK|X_OK) == -1,
         "access (" << SM_OWNER_RW_OTHERS_RO_PATH << ") from " << appName