diff --git a/services/etc/group b/services/etc/group index ad537463a90c3dfd6fa86a515d4ca5be2036acae..15b00d930d3f5178b9e7de8ddaddf3dd9c77bafb 100644 --- a/services/etc/group +++ b/services/etc/group @@ -29,7 +29,7 @@ shared_relro:x:1037: audio:x:1041: cameraserver:x:1047: uiserver:x:1048: -servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr +servicectrl:x:1050:root,shell,system,samgr,hdf_devmgr,foundation powerctrl:x:1051:root,shell,system,update,power_host bootctrl:x:1052:root,shell,system deviceprivate:x:1053:root,shell,system,samgr,hdf_devmgr,deviceinfo,dsoftbus,dms,account,useriam,access_token,device_manager,foundation,dbms,deviceauth,huks_server,dlp_credential diff --git a/services/etc/param/ohos.para.size b/services/etc/param/ohos.para.size index 0f7674475452cce3e632188142a07e7ef88eed3e..bf68781d3188ef98d49100f4f925b6ac5573cc0e 100755 --- a/services/etc/param/ohos.para.size +++ b/services/etc/param/ohos.para.size @@ -18,16 +18,16 @@ startup_param=40960 persist_param=40960 const_param=40960 persist_sys_param=4096 -hw_sc_param=4096 -hw_sc_build_os_param=4096 -init_param=4096 -init_svc_param=4096 -const_postinstall_param=4096 -const_postinstall_fstab_param=4096 -const_allow_param=4096 -const_allow_mock_param=4096 +hw_sc_param=512 +hw_sc_build_os_param=512 +init_param=512 +init_svc_param=512 +const_postinstall_param=512 +const_postinstall_fstab_param=512 +const_allow_param=512 +const_allow_mock_param=512 devinfo_public_param=30720 -security_param=4096 +security_param=512 sys_param=4096 bootevent_param=4096 startup_init_param=40960 diff --git a/services/param/adapter/param_dac.c b/services/param/adapter/param_dac.c index 9f5151b25a588f182107c1f3ecdbfd6983640650..370bbf1da62b30cda6ec821dafc48131c8aecc2d 100644 --- a/services/param/adapter/param_dac.c +++ b/services/param/adapter/param_dac.c @@ -266,9 +266,6 @@ static int DacCheckParamPermission(const ParamSecurityLabel *srcLabel, const cha if (ret != DAC_RESULT_PERMISSION) { PARAM_LOGW("Param '%s' label gid:%d uid:%d mode 0%o", name, srcLabel->cred.gid, srcLabel->cred.uid, localMode); PARAM_LOGW("Cfg label %d gid:%d uid:%d mode 0%o ", labelIndex, node->gid, node->uid, node->mode); -#ifndef STARTUP_INIT_TEST - ret = DAC_RESULT_PERMISSION; -#endif } return ret; } diff --git a/services/param/include/param_osadp.h b/services/param/include/param_osadp.h index 076b86157a7aa54c1be7689e0f4b6f9ee2e29dfa..8a1260643ef9a61dc6c7381aad215c72e80f6e90 100755 --- a/services/param/include/param_osadp.h +++ b/services/param/include/param_osadp.h @@ -45,7 +45,7 @@ extern "C" { #endif #define PARAM_WORKSPACE_INVALID ((uint32_t)-1) -#define PARAM_WORKSPACE_MIN (4096) +#define PARAM_WORKSPACE_MIN (512) #if (defined __LITEOS_A__ || defined __LITEOS_M__) #define DAC_DEFAULT_MODE 0777 #ifdef STARTUP_INIT_TEST diff --git a/services/param/linux/param_request.c b/services/param/linux/param_request.c index 55e7a3aeecd8e0eb45a81e689241b4dc934e7a6d..4bc08b286ba9a7b4d01bdaa7f747d172ea71fb6e 100644 --- a/services/param/linux/param_request.c +++ b/services/param/linux/param_request.c @@ -39,7 +39,7 @@ __attribute__((constructor)) static void ParameterInit(void) if (getpid() == 1) { return; } - EnableInitLog(INIT_ERROR); + EnableInitLog(INIT_INFO); PARAM_WORKSPACE_OPS ops = {0}; ops.updaterMode = 0; #ifdef PARAM_BASE_LOG