提交 4193543e 编写于 作者: X xionglei6

init: fix bugs

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 d2505963
......@@ -183,6 +183,7 @@ static int CheckFilePermission(const ParamSecurityLabel *localLabel, const char
return 0;
}
#ifdef PARAM_SUPPORT_DAC_CHECK
static int CheckUserInGroup(gid_t groupId, uid_t uid)
{
static char buffer[255] = {0}; // 255 max size
......@@ -214,6 +215,7 @@ static int CheckUserInGroup(gid_t groupId, uid_t uid)
}
return -1;
}
#endif
static int CheckParamPermission(const ParamSecurityLabel *srcLabel, const ParamAuditData *auditData, uint32_t mode)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册