From 584d6aa064cb7d152f53a3e72098f7561dbe773e Mon Sep 17 00:00:00 2001 From: chengjinsong2 Date: Thu, 4 May 2023 15:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8C=E6=AD=A5=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chengjinsong2 --- services/param/base/param_base.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/param/base/param_base.c b/services/param/base/param_base.c index c593b7a6..3f244632 100644 --- a/services/param/base/param_base.c +++ b/services/param/base/param_base.c @@ -571,12 +571,14 @@ STATIC_INLINE int DacCheckParamPermission(const ParamLabelIndex *labelIndex, // forbid PARAM_LOGW("Param '%s' label gid:%d uid:%d mode 0%x", name, srcLabel->cred.gid, srcLabel->cred.uid, mode); PARAM_LOGW("Cfg label %u gid:%d uid:%d mode 0%x ", labelIndex->dacLabelIndex, node->gid, node->uid, node->mode); + + int ret = DAC_RESULT_FORBIDED; #ifndef __MUSL__ #ifndef STARTUP_INIT_TEST - return DAC_RESULT_PERMISSION; + ret = DAC_RESULT_PERMISSION; #endif #endif - return DAC_RESULT_FORBIDED; + return ret; } #ifdef PARAM_SUPPORT_SELINUX -- GitLab