提交 d7f420d8 编写于 作者: X xionglei6

init: fix bugs

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 5c18b159
...@@ -125,7 +125,7 @@ static void TestPermission() ...@@ -125,7 +125,7 @@ static void TestPermission()
g_testPermissionResult = DAC_RESULT_FORBIDED; g_testPermissionResult = DAC_RESULT_FORBIDED;
if ((GetClientParamWorkSpace() != nullptr) && (GetClientParamWorkSpace()->securityLabel != nullptr)) { if ((GetClientParamWorkSpace() != nullptr) && (GetClientParamWorkSpace()->securityLabel != nullptr)) {
GetClientParamWorkSpace()->securityLabel->flags = LABEL_CHECK_FOR_ALL_PROCESS; GetClientParamWorkSpace()->securityLabel->flags = LABEL_CHECK_FOR_ALL_PROCESS;
int ret = SystemSetParameter(testName, "22202"); ret = SystemSetParameter(testName, "22202");
EXPECT_EQ(ret, DAC_RESULT_FORBIDED); EXPECT_EQ(ret, DAC_RESULT_FORBIDED);
} }
paramSecurityOps->securityEncodeLabel = TestEncodeSecurityLabel; paramSecurityOps->securityEncodeLabel = TestEncodeSecurityLabel;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册