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

!276 解决CheckUserInGroup函数unused的问题

Merge pull request !276 from 熊磊/init127_2
......@@ -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.
先完成此消息的编辑!
想要评论请 注册