From 4193543e28c38efab9887ef6cfe146b3d58b81e5 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Thu, 27 Jan 2022 15:18:20 +0800 Subject: [PATCH] init: fix bugs Signed-off-by: xionglei6 --- services/param/adapter/param_dac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/param/adapter/param_dac.c b/services/param/adapter/param_dac.c index c6164a4e..a9aad0bb 100755 --- a/services/param/adapter/param_dac.c +++ b/services/param/adapter/param_dac.c @@ -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) { -- GitLab