Home
last modified time | relevance | path

Searched full:pid (Results 1 – 25 of 1354) sorted by relevance

12345678910>>...55

/base/hiviewdfx/hitrace/frameworks/native/c_wrapper/source/
Dhitracechain_c_wrapper.c20 void HiTraceChainTracepointExWrapper(int mode, int type, const HiTraceIdStruct* pId, const char* fm… in HiTraceChainTracepointExWrapper() argument
24 HiTraceChainTracepointInner(mode, type, pId, fmt, args); in HiTraceChainTracepointExWrapper()
29 int HiTraceChainIsFlagEnabledWrapper(const HiTraceIdStruct* pId, int flag) in HiTraceChainIsFlagEnabledWrapper() argument
31 return HiTraceChainIsFlagEnabled(pId, flag); in HiTraceChainIsFlagEnabledWrapper()
34 void HiTraceChainEnableFlagWrapper(HiTraceIdStruct* pId, int flag) in HiTraceChainEnableFlagWrapper() argument
36 HiTraceChainEnableFlag(pId, flag); in HiTraceChainEnableFlagWrapper()
39 int HiTraceChainIsValidWrapper(const HiTraceIdStruct* pId) in HiTraceChainIsValidWrapper() argument
41 return HiTraceChainIsValid(pId); in HiTraceChainIsValidWrapper()
44 void HiTraceChainSetFlagsWrapper(HiTraceIdStruct* pId, int flags) in HiTraceChainSetFlagsWrapper() argument
46 HiTraceChainSetFlags(pId, flags); in HiTraceChainSetFlagsWrapper()
[all …]
/base/hiviewdfx/hiview/framework/native/unified_collection/process/
Dprocess_status.cpp33 std::string ProcessStatus::GetProcessName(int32_t pid) in GetProcessName() argument
41 if (processInfos_.find(pid) != processInfos_.end() && !processInfos_[pid].name.empty()) { in GetProcessName()
42 return processInfos_[pid].name; in GetProcessName()
44 std::string procName = CommonUtils::GetProcFullNameByPid(pid); in GetProcessName()
45 if (UpdateProcessName(pid, procName)) { in GetProcessName()
48 HIVIEW_LOGD("failed to get proc name from pid=%{public}d", pid); in GetProcessName()
83 bool ProcessStatus::UpdateProcessName(int32_t pid, const std::string& procName) in UpdateProcessName() argument
89 if (processInfos_.find(pid) != processInfos_.end()) { in UpdateProcessName()
90 processInfos_[pid].name = procName; in UpdateProcessName()
93 processInfos_[pid] = { in UpdateProcessName()
[all …]
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/
Dhitracechainc.h107 void HiTraceChainEnd(const HiTraceIdStruct* pId);
109 void HiTraceChainSetId(const HiTraceIdStruct* pId);
112 HiTraceIdStruct HiTraceChainSaveAndSetId(const HiTraceIdStruct* pId);
114 void HiTraceChainTracepoint(HiTraceTracepointType type, const HiTraceIdStruct* pId, const char* fmt…
116 void HiTraceChainTracepointWithArgs(HiTraceTracepointType type, const HiTraceIdStruct* pId, const c…
118 …TracepointEx(HiTraceCommunicationMode mode, HiTraceTracepointType type, const HiTraceIdStruct* pId,
121 const HiTraceIdStruct* pId, const char* fmt, va_list args);
123 static inline void HiTraceChainInitId(HiTraceIdStruct* pId) in HiTraceChainInitId() argument
125 pId->valid = HITRACE_ID_INVALID; in HiTraceChainInitId()
126 pId->ver = 0; in HiTraceChainInitId()
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest018/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/hiviewdfx/faultloggerd/test/systemtest/
Dfaultloggerd_system_test.cpp73 pid_t pid = fork(); in ForkAndExecuteCrasher() local
74 if (pid < 0) { in ForkAndExecuteCrasher()
76 return pid; in ForkAndExecuteCrasher()
77 } else if (pid == 0) { in ForkAndExecuteCrasher()
85 GTEST_LOG_(INFO) << "forked pid:" << pid; in ForkAndExecuteCrasher()
91 waitpid(pid, &status, WNOHANG); in ForkAndExecuteCrasher()
99 return pid; in ForkAndExecuteCrasher()
105 auto pid = ForkAndExecuteCrasher(option, type); in TriggerCrasherAndGetFileName() local
111 crashFileName = GetCppCrashFileName(pid, tempPath); in TriggerCrasherAndGetFileName()
116 GTEST_LOG_(INFO) << "recheck crash file, pid" << pid; in TriggerCrasherAndGetFileName()
[all …]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwind/
Dunwind_remote_benchmark.cpp64 static size_t UnwindRemote(pid_t pid, unw_addr_space_t as) in UnwindRemote() argument
71 void *context = _UPT_create(pid); in UnwindRemote()
104 pid_t pid = fork(); in Run() local
105 if (pid == 0) { in Run()
108 } else if (pid < 0) { in Run()
111 if (!DfxPtrace::Attach(pid)) { in Run()
112 LOGE("Failed to attach pid: %d", pid); in Run()
113 TestScopedPidReaper::Kill(pid); in Run()
117 LOGU("pid: %d", pid); in Run()
118 TestScopedPidReaper reap(pid); in Run()
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest014/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest015/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg15 <11>[ 3.762358] [pid=1][BEGET][ERROR][fstab_mount.c:384]Unsupported file system " none "
16 <14>[ 3.762478] [pid=1][Init][INFO][init.c:211]Start init second stage.
17 <14>[ 3.770177] [pid=1][Init][INFO][switch_root.c:186]SwitchRoot to /usr finish
19 <14>[ 3.819124] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 17 0
20 <14>[ 3.819317] [pid=1][LoopEvent][INFO][le_signal.c:75]LE_AddSignal 15 1
21 <14>[ 3.819747] [pid=1][Init][INFO][init.c:90]Init fd holder socket done
22 <11>[ 3.820134] [pid=1][BEGET][ERROR][fstab.c:330]Failed to get fstab item from mount point " /m…
23 <14>[ 3.820153] [pid=1][BEGET][INFO][fstab.c:511]Mount point not found, try to get path by devic…
24 <14>[ 3.820954] [pid=1][Init][INFO][init_group_manager.c:201]boot start device.boot.group
25 <11>[ 3.821055] [pid=1][PARAM][ERROR][param_include.h:75]Invalid current param const.cust.config…
[all …]
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dapp_state_observer.cpp35 bool AppStateObserver::IsProcessForeground(int32_t pid, int32_t uid) in IsProcessForeground() argument
39 if (pid == iter->pid) { in IsProcessForeground()
43 if ((iter->pid == -1) && (uid == iter->uid)) { in IsProcessForeground()
44 iter->pid = pid; in IsProcessForeground()
51 void AppStateObserver::AddProcessToForegroundSet(int32_t pid, const SecCompProcessData& data) in AddProcessToForegroundSet() argument
55 if (pid == -1) { in AddProcessToForegroundSet()
60 } else if (pid == iter->pid) { in AddProcessToForegroundSet()
61 SC_LOG_INFO(LABEL, "pid %{public}d is already in foreground", pid); in AddProcessToForegroundSet()
72 .pid = stateData.pid, in AddProcessToForegroundSet()
75 AddProcessToForegroundSet(stateData.pid, proc); in AddProcessToForegroundSet()
[all …]
/base/sensors/sensor/services/src/
Dsensor_power_policy.cpp45 ErrCode SensorPowerPolicy::SuspendSensors(int32_t pid) in SuspendSensors() argument
48 std::vector<int32_t> sensorIdList = clientInfo_.GetSensorIdByPid(pid); in SuspendSensors()
50 SEN_HILOGD("Suspend sensors failed, sensorIdList is empty, pid:%{public}d", pid); in SuspendSensors()
54 auto pidSensorInfoIt = pidSensorInfoMap_.find(pid); in SuspendSensors()
57 if (!Suspend(pid, sensorIdList, sensorInfoMap)) { in SuspendSensors()
58 SEN_HILOGE("Suspend part sensors, but some failed, pid:%{public}d", pid); in SuspendSensors()
61 SEN_HILOGI("Suspend sensors success, pid:%{public}d", pid); in SuspendSensors()
65 auto isAllSuspend = Suspend(pid, sensorIdList, sensorInfoMap); in SuspendSensors()
66 pidSensorInfoMap_.insert(std::make_pair(pid, sensorInfoMap)); in SuspendSensors()
68 SEN_HILOGE("Suspend all sensors, but some failed, pid:%{public}d", pid); in SuspendSensors()
[all …]
Dclient_info.cpp101 bool ClientInfo::OnlyCurPidSensorEnabled(int32_t sensorId, int32_t pid) in OnlyCurPidSensorEnabled() argument
104 if ((sensorId == INVALID_SENSOR_ID) || (pid <= INVALID_PID)) { in OnlyCurPidSensorEnabled()
105 SEN_HILOGE("sensorId or pid is invalid"); in OnlyCurPidSensorEnabled()
119 if (pidIt.first != pid) { in OnlyCurPidSensorEnabled()
120 SEN_HILOGE("Current sensor is also used by other pid"); in OnlyCurPidSensorEnabled()
128 bool ClientInfo::UpdateAppThreadInfo(int32_t pid, int32_t uid, AccessTokenID callerToken) in UpdateAppThreadInfo() argument
131 if ((uid == INVALID_UID) || (pid <= INVALID_PID)) { in UpdateAppThreadInfo()
132 SEN_HILOGE("uid or pid is invalid"); in UpdateAppThreadInfo()
136 AppThreadInfo appThreadInfo(pid, uid, callerToken); in UpdateAppThreadInfo()
137 auto appThreadInfoItr = appThreadInfoMap_.find(pid); in UpdateAppThreadInfo()
[all …]
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/power_manager/public/
Dpowermgr.te14 # avc: denied { map } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:arkcompiler_param…
15 # avc: denied { open } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:arkcompiler_para…
16 # avc: denied { read } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:arkcompiler_para…
19 # avc: denied { map } pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_param:s0 tc…
20 # avc: denied { open } pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_param:s0 t…
21 # avc: denied { read } pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_param:s0 t…
27 # avc: denied { read } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_samgr…
28 # avc: denied { open } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_samgr…
29 # avc: denied { map } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_samgr_…
32 # avc: denied { set } for pid=1216 scontext=u:r:powermgr:s0 tcontext=u:object_r:bootevent_wms_pa…
[all …]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/
Dpid_utils.cpp39 static bool Exited(pid_t pid) in Exited() argument
42 pid_t waitPid = waitpid(pid, &status, WNOHANG); in Exited()
43 if (waitPid != pid) { in Exited()
48 LOGE("%d died: Process exited with code %d", pid, WEXITSTATUS(status)); in Exited()
50 LOGE("%d died: Process exited due to signal %d", pid, WTERMSIG(status)); in Exited()
52 LOGE("%d died: Process finished for unknown reason", pid); in Exited()
57 bool PidUtils::Quiesce(pid_t pid) in Quiesce() argument
62 if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) { in Quiesce()
71 if (ptrace(PTRACE_LISTEN, pid, 0, 0) == -1) { in Quiesce()
78 LOGE("%d: Did not quiesce in 10 seconds", pid); in Quiesce()
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/
Ddfx_dump_catcher.h37 * @brief Dump native stack by specify pid and tid
39 * @param pid process id
42 …* @param maxFrameNums the maximum number of frames to dump, if pid is not equal to caller pid then…
46 bool DumpCatch(int pid, int tid, std::string& msg, size_t maxFrameNums = DEFAULT_MAX_FRAME_NUM,
50 * @brief Dump native and js mixed-stack by specify pid and tid
52 * @param pid process id
57 bool DumpCatchMix(int pid, int tid, std::string& msg);
60 * @brief Dump native stack by specify pid and tid to file
62 * @param pid process id
66 * if pid is not equal to caller pid then it does not support setting
[all …]
/base/hiviewdfx/hidumper/test/innerkits_test/
Dmain.cpp22 static uint64_t GetPss(const int &pid) in GetPss() argument
25 return dumpUsage->GetPss(pid); in GetPss()
28 static uint64_t GetPrivateDirty(const int &pid) in GetPrivateDirty() argument
31 return dumpUsage->GetPrivateDirty(pid); in GetPrivateDirty()
34 static uint64_t GetSharedDirty(const int &pid) in GetSharedDirty() argument
37 return dumpUsage->GetSharedDirty(pid); in GetSharedDirty()
40 static bool GetMemInfo(const int &pid, OHOS::HiviewDFX::MemInfoData::MemInfo &data) in GetMemInfo() argument
43 return dumpUsage->GetMemInfo(pid, data); in GetMemInfo()
46 static float GetCpuUsage(const int &pid) in GetCpuUsage() argument
49 return dumpUsage->GetCpuUsage(pid); in GetCpuUsage()
[all …]
/base/security/access_token/services/privacymanager/src/seccomp/
Dprivacy_sec_comp_enhance_agent.cpp36 ACCESSTOKEN_LOG_INFO(LABEL, "OnProcessDied pid %{public}d", processData.pid); in OnProcessDied()
37 PrivacySecCompEnhanceAgent::GetInstance().RemoveSecCompEnhance(processData.pid); in OnProcessDied()
101 void PrivacySecCompEnhanceAgent::RemoveSecCompEnhance(int pid) in RemoveSecCompEnhance() argument
105 if (iter->pid == pid) { in RemoveSecCompEnhance()
107 ACCESSTOKEN_LOG_INFO(LABEL, "Remove pid %{public}d data.", pid); in RemoveSecCompEnhance()
111 ACCESSTOKEN_LOG_ERROR(LABEL, "Not found pid %{public}d data.", pid); in RemoveSecCompEnhance()
119 int pid = IPCSkeleton::GetCallingPid(); in RegisterSecCompEnhance() local
121 [pid](const auto& e) { return e.pid == pid; })) { in RegisterSecCompEnhance()
122 ACCESSTOKEN_LOG_ERROR(LABEL, "Register sec comp enhance exist, pid %{public}d.", pid); in RegisterSecCompEnhance()
127 enhance.pid = pid; in RegisterSecCompEnhance()
[all …]
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_bluetooth_test.cpp30 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() argument
38 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
41 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
44 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid); in WriteBluetoothEvent()
47 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid); in WriteBluetoothEvent()
50 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
53 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
56 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateScanOn); in WriteBluetoothEvent()
59 HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, "STATE", stateScanOff); in WriteBluetoothEvent()
98 int32_t pid = 3458; variable
[all …]
Dstats_audio_test.cpp63 int32_t pid = 3458; variable
68 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateRunning);
71 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateStopped);
93 int32_t pid = 3458; variable
98 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateRunning);
101 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateStopped);
122 int32_t pid = 3458; variable
129 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateRunning);
132 HiSysEvent::EventType::BEHAVIOR, "PID", pid, "UID", uid, "STATE", stateStopped);
151 int32_t pid = 3458; variable
[all …]
/base/startup/appspawn/test/moduletest/
Dappspawn_module_test.cpp77 bool ReadFileInfo(char *buffer, const int32_t &pid, const char *fileName) in ReadFileInfo() argument
81 if (sprintf_s(filePath, sizeof(filePath), "/proc/%d/%s", pid, fileName) <= 0) { in ReadFileInfo()
110 bool CheckUid(const int32_t &pid, const int newUid) in CheckUid() argument
112 if (ReadFileInfo(g_buffer, pid, "status")) { in CheckUid()
113 GTEST_LOG_(INFO) << "CheckUid pid " << pid << " buffer :" << g_buffer; in CheckUid()
125 …HILOG_INFO(LOG_CORE, "new proc(%{public}d) uid = %{public}d, setUid=%{public}d.", pid, uid, newUid… in CheckUid()
133 bool CheckGid(const int32_t &pid, const int newGid) in CheckGid() argument
135 if (ReadFileInfo(g_buffer, pid, "status")) { in CheckGid()
136 GTEST_LOG_(INFO) << "CheckGid pid " << pid << " buffer :" << g_buffer; in CheckGid()
152 …HILOG_INFO(LOG_CORE, "new proc(%{public}d) gid = %{public}d, setGid=%{public}d.", pid, gid, newGid… in CheckGid()
[all …]
/base/security/selinux_adapter/sepolicy/ohos_policy/distributedhardware/distributed_hardware_fwk/system/
Ddhardware.te14 #avc: denied { get_remote } for service=4801 pid=1966 scontext=u:r:dhardware:s0 tcontext=u:object…
17 #avc: denied { get } for service=4607 pid=1966 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_f…
20 #avc: denied { get } for service=4803 pid=1966 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_d…
23 #avc: denied { get } for service=4804 pid=1966 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_d…
26 #avc: denied { get } for service=3901 pid=1881 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_p…
29 #avc: denied { get } for service=1301 pid=1881 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_d…
32 #avc: denied { get } for service=4802 pid=1915 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_f…
35 #avc: denied { get } for service=4700 pid=1915 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_s…
38 #avc: denied { search } for pid=1966 comm="dhardware" name="socket" dev="tmpfs" ino=40 scontext=…
41 #avc: denied { add } for service=4801 pid=2409 scontext=u:r:dhardware:s0 tcontext=u:object_r:sa_d…
[all …]
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_bluetooth_test.cpp39 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() argument
49 "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
53 "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
57 "PID", pid, "UID", uid); in WriteBluetoothEvent()
61 "PID", pid, "UID", uid); in WriteBluetoothEvent()
65 "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent()
69 "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent()
73 "PID", pid, "UID", uid, "STATE", stateScanOn); in WriteBluetoothEvent()
77 "PID", pid, "UID", uid, "STATE", stateScanOff); in WriteBluetoothEvent()
127 int32_t pid = 3458; variable
[all …]
/base/security/selinux_adapter/sepolicy/ohos_policy/update/updater/system/
Dinit.te15 # avc_audit_slow:267] avc: denied { relabelto } for pid=1, comm="/init" name="/bin/faultloggerd" d…
17 # avc_audit_slow:267] avc: denied { relabelto } for pid=1, comm="/init" name="/bin/processdump" de…
19 # avc_audit_slow:267] avc: denied { relabelto } for pid=1, comm="/init" name="/bin/updater_binary"…
22 #avc: denied { read } for pid=1 comm="init" name="ohos.para.size" dev="rootfs" ino=17448 scontext=u…
23 #avc: denied { getattr } for pid=1 comm="init" path="/etc/selinux/targeted/contexts/file_contexts" …
24 #avc: denied { open } for pid=1 comm="init" path="/etc/selinux/targeted/contexts/file_contexts" dev…
25 #avc: denied { open } for pid=1 comm="init" path="/etc/param/ohos.para.size" dev="rootfs" ino=17448…
26 #avc: denied { execute } for pid=231 comm="init" name="ueventd" dev="rootfs" ino=17717 scontext=u:r…
27 #avc: denied { execute_no_trans } for pid=233 comm="init" path="/bin/hilog" dev="rootfs" ino=797 sc…
28 #avc: denied { map } for pid=1 comm="init" path="/lib/init/librebootmodule.z.so" dev="rootfs" ino=1…
[all …]

12345678910>>...55