diff --git a/services/param/adapter/param_dac.c b/services/param/adapter/param_dac.c index c6164a4e2a737fb9e8ee43a85261b6b0e2e4e25a..a9aad0bb2b25e5f7e8f5028778f824a00576b5e6 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) {