提交 b675c17f 编写于 作者: M Mupceet

fix: def mode

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 901591e9
......@@ -114,6 +114,7 @@ int SetParamShellPrompt(BShellHandle shell, const char *param)
BShellEnvOutput(shell, "Error: parameter \'%s\' not found\r\n", realParameter);
return -1;
} else if (ret != 0 && ret != PARAM_CODE_NODE_EXIST) {
BShellEnvOutput(shell, "Error: Forbid to enter parameters \'%s\'\r\n", realParameter);
return -1;
}
if (strcmp(realParameter, "#") == 0) {
......
......@@ -155,7 +155,7 @@ int InitParamWorkSpace(int onlyRead)
// add default dac policy
ParamAuditData auditData = {};
auditData.name = "#";
auditData.dacData.gid = 0; // for root
auditData.dacData.gid = 2000; // 2000 for shell
auditData.dacData.uid = 0; // for root
auditData.dacData.mode = DAC_DEFAULT_MODE; // 0774 default mode
ret = AddSecurityLabel(&auditData);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册