提交 e8bddd9b 编写于 作者: C chengjinsong2

ResetParamSecurityLabel小型系统编译失败的问题

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 1738df51
......@@ -653,8 +653,10 @@ void ResetParamSecurityLabel(void)
{
ParamWorkSpace *paramSpace = GetParamWorkSpace();
PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace");
#if !(defined __LITEOS_A__ || defined __LITEOS_M__)
paramSpace->securityLabel.cred.pid = getpid();
paramSpace->securityLabel.cred.uid = geteuid();
paramSpace->securityLabel.cred.gid = getegid();
paramSpace->flags |= WORKSPACE_FLAGS_NEED_ACCESS;
#endif
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册