mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-03 16:34:03 +00:00
init: fix bugs
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
d250596394
commit
4193543e28
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user