Home
last modified time | relevance | path

Searched refs:HapFileRestorecon (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/selinux_adapter/test/unittest/hap_restorecon/
H A Dunit_test.cpp226 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 Dhap_restorecon.h60 int HapFileRestorecon(HapFileInfo& hapFileInfo);
65 int HapFileRestorecon(const std::string &pathNameOrig, HapFileInfo& hapFileInfo);
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dhap_restorecon.cpp267 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 Dtest.cpp142 res = test.HapFileRestorecon(hapFileInfo); in main()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/
H A Dinstalld_host_impl.cpp1059 int ret = hapContext.HapFileRestorecon(hapFileInfo); in SetDirApl()
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_utils.cpp417 ret = hapContext.HapFileRestorecon(hapFileInfo); in MakeAtomicServiceDir()