未验证 提交 d23a2679 编写于 作者: O openharmony_ci 提交者: Gitee

!566 修改GetParamLabel接口

Merge pull request !566 from steven_Q/master
......@@ -169,18 +169,15 @@ static void ShowParam(BShellHandle shell, const char *name, const char *value)
}
BShellEnvOutput(shell, "Parameter infomation:\r\n");
#ifdef WITH_SELINUX
char *context = NULL;
const char *context = NULL;
if (strcmp(name, "#") != 0) {
GetParamLabel(name, &context);
context = GetParamLabel(name);
}
if (context != NULL) {
BShellEnvOutput(shell, "selinux : %s \r\n", context);
} else {
BShellEnvOutput(shell, "selinux : null \r\n");
}
if (context != NULL) {
free(context);
}
#endif
BShellEnvOutput(shell, " dac : %s(%s) %s(%s) (%s) \r\n",
user->pw_name, GetPermissionString(auditData.dacData.mode, 0, permissionStr[0], MASK_LENGTH_MAX),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册