Searched refs:pathNameOrig (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
H A D | hap_restorecon.h | 43 std::vector<std::string> pathNameOrig; member 65 int HapFileRestorecon(const std::string &pathNameOrig, HapFileInfo& hapFileInfo); 67 int RestoreconSb(const std::string &pathNameOrig, HapFileInfo& hapFileInfo); 68 int GetSecontext(HapFileInfo& hapFileInfo, const std::string &pathNameOrig,
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | hap_restorecon.cpp | 269 if (hapFileInfo.apl.empty() || hapFileInfo.pathNameOrig.empty() || !CheckApl(hapFileInfo.apl)) { in HapFileRestorecon() 273 for (auto pathname : hapFileInfo.pathNameOrig) { in HapFileRestorecon() 283 int HapContext::HapFileRestorecon(const std::string &pathNameOrig, HapFileInfo& hapFileInfo) in HapFileRestorecon() argument 285 if (hapFileInfo.apl.empty() || pathNameOrig.empty() || !CheckApl(hapFileInfo.apl)) { in HapFileRestorecon() 294 if (realpath(pathNameOrig.c_str(), realPath) == nullptr) { in HapFileRestorecon() 304 int res = GetSecontext(hapFileInfo, pathNameOrig, &newSecontext, &oldSecontext); in HapFileRestorecon() 379 int HapContext::RestoreconSb(const std::string &pathNameOrig, HapFileInfo& hapFileInfo) in RestoreconSb() argument 383 int res = GetSecontext(hapFileInfo, pathNameOrig, &newSecontext, &oldSecontext); in RestoreconSb() 394 if (lsetfilecon(pathNameOrig.c_str(), newSecontext) < 0) { in RestoreconSb() 405 int HapContext::GetSecontext(HapFileInfo& hapFileInfo, const std::string &pathNameOrig, in GetSecontext() argument [all …]
|
/ohos5.0/base/security/selinux_adapter/test/unittest/hap_restorecon/ |
H A D | unit_test.cpp | 74 .pathNameOrig = {TEST_SUB_PATH_1}, 82 .pathNameOrig = {TEST_HAP_PATH}, 90 .pathNameOrig = {TEST_HAP_PATH}, 98 .pathNameOrig = {}, 106 .pathNameOrig = {TEST_HAP_PATH}, 114 .pathNameOrig = {TEST_HAP_PATH}, 122 .pathNameOrig = {TEST_SUB_PATH_1}, 130 .pathNameOrig = {TEST_SUB_PATH_1}, 138 .pathNameOrig = {TEST_SUB_PATH_1, INVALID_PATH}, 146 .pathNameOrig = {TEST_HAP_PATH}, [all …]
|
/ohos5.0/base/security/selinux_adapter/interfaces/tools/hap_restorecon/ |
H A D | test.cpp | 136 .pathNameOrig = testCmd.multiPath, in main()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_host_impl.cpp | 1053 hapFileInfo.pathNameOrig.push_back(dir); in SetDirApl()
|
/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_utils.cpp | 409 hapFileInfo.pathNameOrig.push_back(path); in MakeAtomicServiceDir()
|