From f4b453f14c3fcad453e454ec8f89085cbc80523e Mon Sep 17 00:00:00 2001 From: yichengzhao Date: Mon, 20 Jun 2022 10:04:04 +0800 Subject: [PATCH] Signed-off-by: yichengzhao Change-Id: Ifbfe65bf1fe2b3e2946b38fe6e5a8dfe61ff7b89 --- services/param/adapter/param_selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/param/adapter/param_selinux.c b/services/param/adapter/param_selinux.c index 3af44dc7..3175ffa6 100644 --- a/services/param/adapter/param_selinux.c +++ b/services/param/adapter/param_selinux.c @@ -180,7 +180,7 @@ INIT_LOCAL_API int RegisterSecuritySelinuxOps(ParamSecurityOps *ops, int isInit) ops->securityCheckParamPermission = SelinuxCheckParamPermission; } ops->securityFreeLabel = FreeLocalSecurityLabel; - if (isInit) { + if (isInit != 0) { ops->securityGetLabel = SelinuxGetParamSecurityLabel; } return ret; -- GitLab