init: fix bugs

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6 2022-01-27 15:18:20 +08:00
parent d250596394
commit 4193543e28

View File

@ -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)
{