Searched refs:GetParamSecurityLabel (Results 1 – 12 of 12) sorted by relevance
/ohos5.0/base/startup/init/test/unittest/param/ |
H A D | client_unittest.cpp | 117 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 D | paramservice_unittest.cpp | 56 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 D | watcher_agent_unittest.cpp | 57 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 D | watcher_proxy_unittest.cpp | 59 if (GetParamSecurityLabel() != nullptr) { in SetUp() 60 GetParamSecurityLabel()->cred.uid = 0; in SetUp() 61 GetParamSecurityLabel()->cred.gid = 0; in SetUp()
|
H A D | param_unittest.cpp | 81 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 D | param_client.c | 52 int ret = CheckParameterSet(name, value, GetParamSecurityLabel(), &ctrlService); in SystemSetParameter() 73 int ret = CheckParamPermission(GetParamSecurityLabel(), name, DAC_READ); in SystemWaitParameter()
|
H A D | param_service.c | 107 int ret = CheckParameterSet(name, value, GetParamSecurityLabel(), &ctrlService); in SystemWriteParam()
|
/ohos5.0/base/startup/init/services/param/linux/ |
H A D | param_request.c | 255 ret = CheckParamPermission(GetParamSecurityLabel(), name, DAC_READ); in SystemWaitParameter() 309 ret = CheckParamPermission(GetParamSecurityLabel(), keyprefix, DAC_WATCH); in WatchParamCheck()
|
H A D | param_service.c | 469 return SystemSetParam(name, value, GetParamSecurityLabel()); in SystemWriteParam()
|
/ohos5.0/base/startup/init/services/param/base/ |
H A D | param_comm.c | 78 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel() in GetParamSecurityLabel() function
|
/ohos5.0/base/startup/init/services/param/include/ |
H A D | param_manager.h | 138 INIT_LOCAL_API ParamSecurityLabel *GetParamSecurityLabel(void);
|
/ohos5.0/base/startup/init/services/param/manager/ |
H A D | param_manager.c | 101 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()
|