From 1e532210f5a23bd3925d16cea472865874fdf788 Mon Sep 17 00:00:00 2001 From: x00405909 Date: Wed, 26 Jan 2022 20:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dmusl=E5=BA=93=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0dac=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: x00405909 Change-Id: Ic9f3185be28cd7342e927aaf4110cecec71fb49b --- services/param/adapter/param_dac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/param/adapter/param_dac.c b/services/param/adapter/param_dac.c index f85eb291..c6164a4e 100755 --- a/services/param/adapter/param_dac.c +++ b/services/param/adapter/param_dac.c @@ -219,7 +219,7 @@ static int CheckParamPermission(const ParamSecurityLabel *srcLabel, const ParamA { #ifndef PARAM_SUPPORT_DAC_CHECK return DAC_RESULT_PERMISSION; -#endif +#else int ret = DAC_RESULT_FORBIDED; PARAM_CHECK(srcLabel != NULL && auditData != NULL && auditData->name != NULL, return ret, "Invalid param"); PARAM_CHECK((mode & (DAC_READ | DAC_WRITE | DAC_WATCH)) != 0, return ret, "Invalid mode %x", mode); @@ -246,6 +246,7 @@ static int CheckParamPermission(const ParamSecurityLabel *srcLabel, const ParamA auditData->dacData.gid, auditData->dacData.uid, auditData->dacData.mode); PARAM_LOGV("%s check %o localMode %o ret %d", auditData->name, mode, localMode, ret); return ret; +#endif } PARAM_STATIC int RegisterSecurityDacOps(ParamSecurityOps *ops, int isInit) -- GitLab