From e8bddd9b57531729875bf321b0ec23cce35d28bf Mon Sep 17 00:00:00 2001 From: chengjinsong2 <chengjinsong2@huawei.com> Date: Tue, 27 Dec 2022 11:24:19 +0800 Subject: [PATCH] =?UTF-8?q?ResetParamSecurityLabel=E5=B0=8F=E5=9E=8B?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=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 <chengjinsong2@huawei.com> --- services/param/manager/param_manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/param/manager/param_manager.c b/services/param/manager/param_manager.c index a9dcf996..dd7608f8 100644 --- a/services/param/manager/param_manager.c +++ b/services/param/manager/param_manager.c @@ -653,8 +653,10 @@ void ResetParamSecurityLabel(void) { ParamWorkSpace *paramSpace = GetParamWorkSpace(); PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); +#if !(defined __LITEOS_A__ || defined __LITEOS_M__) paramSpace->securityLabel.cred.pid = getpid(); paramSpace->securityLabel.cred.uid = geteuid(); paramSpace->securityLabel.cred.gid = getegid(); paramSpace->flags |= WORKSPACE_FLAGS_NEED_ACCESS; +#endif } \ No newline at end of file -- GitLab