Searched refs:HapFileRestorecon (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/base/security/selinux_adapter/test/unittest/hap_restorecon/ |
H A D | unit_test.cpp | 226 EXPECT_EQ(-SELINUX_ARG_INVALID, test.HapFileRestorecon(g_hapFileInfoWithAplEmpty)); 228 EXPECT_EQ(-SELINUX_ARG_INVALID, test.HapFileRestorecon(g_hapFileInfoWithPathEmpty)); 230 EXPECT_EQ(-SELINUX_ARG_INVALID, test.HapFileRestorecon(g_hapFileInfoWithAplInvalid)); 248 int ret = test.HapFileRestorecon(g_hapFileInfoWithoutFlags); 278 int ret = test.HapFileRestorecon(g_hapFileInfoWithFlags); 346 EXPECT_EQ(SELINUX_SUCC, test.HapFileRestorecon(TEST_HAP_PATH, g_hapFileInfoWithoutFlags)); 432 ASSERT_EQ(SELINUX_SUCC, test.HapFileRestorecon(hapFileInfo)); 478 ASSERT_EQ(SELINUX_SUCC, test.HapFileRestorecon(hapFileInfo)); 510 int ret = test.HapFileRestorecon(g_hapFileInfoForRepeatLabel); 522 ret = test.HapFileRestorecon(g_hapFileInfoForRepeatLabel); // double restorcon [all …]
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
H A D | hap_restorecon.h | 60 int HapFileRestorecon(HapFileInfo& hapFileInfo); 65 int HapFileRestorecon(const std::string &pathNameOrig, HapFileInfo& hapFileInfo);
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | hap_restorecon.cpp | 267 int HapContext::HapFileRestorecon(HapFileInfo& hapFileInfo) in HapFileRestorecon() function in HapContext 274 int res = HapFileRestorecon(pathname.c_str(), hapFileInfo); in HapFileRestorecon() 283 int HapContext::HapFileRestorecon(const std::string &pathNameOrig, HapFileInfo& hapFileInfo) in HapFileRestorecon() function in HapContext
|
/ohos5.0/base/security/selinux_adapter/interfaces/tools/hap_restorecon/ |
H A D | test.cpp | 142 res = test.HapFileRestorecon(hapFileInfo); in main()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_host_impl.cpp | 1059 int ret = hapContext.HapFileRestorecon(hapFileInfo); in SetDirApl()
|
/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_utils.cpp | 417 ret = hapContext.HapFileRestorecon(hapFileInfo); in MakeAtomicServiceDir()
|