Home
last modified time | relevance | path

Searched refs:GetParamSecurityLabel (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/base/startup/init/test/unittest/param/
H A Dclient_unittest.cpp117 if ((GetParamSecurityLabel() != nullptr)) { in TestPermission()
118 GetParamSecurityLabel()->flags[0] = LABEL_CHECK_IN_ALL_PROCESS; in TestPermission()
177 if (GetParamSecurityLabel() != nullptr) { in SetUp()
178 GetParamSecurityLabel()->cred.uid = 1000; // 1000 test uid in SetUp()
179 GetParamSecurityLabel()->cred.gid = 1000; // 1000 test gid in SetUp()
H A Dparamservice_unittest.cpp56 if (GetParamSecurityLabel() != nullptr) { in SetUp()
57 GetParamSecurityLabel()->cred.uid = 1000; // 1000 test uid in SetUp()
58 GetParamSecurityLabel()->cred.gid = 1000; // 1000 test gid in SetUp()
83 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1()
103 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2()
128 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3()
161 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel4()
H A Dwatcher_agent_unittest.cpp57 if (GetParamSecurityLabel() != nullptr) { in SetUp()
58 GetParamSecurityLabel()->cred.uid = 1000; // 1000 test uid in SetUp()
59 GetParamSecurityLabel()->cred.gid = 1000; // 1000 test gid in SetUp()
H A Dwatcher_proxy_unittest.cpp59 if (GetParamSecurityLabel() != nullptr) { in SetUp()
60 GetParamSecurityLabel()->cred.uid = 0; in SetUp()
61 GetParamSecurityLabel()->cred.gid = 0; in SetUp()
H A Dparam_unittest.cpp81 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel1()
101 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel2()
126 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel3()
162 GetParamSecurityLabel()->cred.gid = 9999; // 9999 test gid in TestAddSecurityLabel4()
/ohos5.0/base/startup/init/services/param/liteos/
H A Dparam_client.c52 int ret = CheckParameterSet(name, value, GetParamSecurityLabel(), &ctrlService); in SystemSetParameter()
73 int ret = CheckParamPermission(GetParamSecurityLabel(), name, DAC_READ); in SystemWaitParameter()
H A Dparam_service.c107 int ret = CheckParameterSet(name, value, GetParamSecurityLabel(), &ctrlService); in SystemWriteParam()
/ohos5.0/base/startup/init/services/param/linux/
H A Dparam_request.c255 ret = CheckParamPermission(GetParamSecurityLabel(), name, DAC_READ); in SystemWaitParameter()
309 ret = CheckParamPermission(GetParamSecurityLabel(), keyprefix, DAC_WATCH); in WatchParamCheck()
H A Dparam_service.c469 return SystemSetParam(name, value, GetParamSecurityLabel()); in SystemWriteParam()
/ohos5.0/base/startup/init/services/param/base/
H A Dparam_comm.c78 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel() in GetParamSecurityLabel() function
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_manager.h138 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel(void);
/ohos5.0/base/startup/init/services/param/manager/
H A Dparam_manager.c101 int ret = CheckParamPermission(GetParamSecurityLabel(), prefix, DAC_READ); in SystemTraversalParameter()
195 int ret = CheckParamPermission(GetParamSecurityLabel(), "#", DAC_READ); in SystemDumpParameters()
735 int ret = CheckParamPermission_(&workspace, &node, GetParamSecurityLabel(), name, DAC_READ); in SystemReadParam()
761 int ret = CheckParamPermission_(&workspace, &entry, GetParamSecurityLabel(), name, DAC_READ); in SystemFindParameter()