/base/startup/hvb/libhvb/src/cmdline/ |
D | hvb_cmdline.c | 28 struct hvb_cmdline_data *cmdline = NULL; in cmdline_append_option() local 30 if (vd == NULL || vd->cmdline.buf == NULL) in cmdline_append_option() 33 cmdline = &vd->cmdline; in cmdline_append_option() 39 if (option_len > cmdline->max_size - cmdline->cur_pos - 1) in cmdline_append_option() 43 cmdline->buf[cmdline->cur_pos] = ' '; in cmdline_append_option() 44 cmdline->cur_pos++; in cmdline_append_option() 46 hvb_memcpy(cmdline->buf + cmdline->cur_pos, key, key_len); in cmdline_append_option() 47 cmdline->cur_pos += key_len; in cmdline_append_option() 49 cmdline->buf[cmdline->cur_pos] = '='; in cmdline_append_option() 50 cmdline->cur_pos++; in cmdline_append_option() [all …]
|
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
D | first_use_dialog_test.cpp | 54 std::string cmdline = "mv " + SEC_COMP_SRV_CFG_FILE + " " + SEC_COMP_SRV_CFG_BACK_FILE; in SetUp() local 55 system(cmdline.c_str()); in SetUp() 64 std::string cmdline = "mv " + SEC_COMP_SRV_CFG_BACK_FILE + " " + SEC_COMP_SRV_CFG_FILE; in TearDown() local 65 system(cmdline.c_str()); in TearDown() 89 std::string cmdline = "dd if=/dev/random of=" + SEC_COMP_SRV_CFG_FILE + " bs=101k count=1"; variable 90 system(cmdline.c_str()); 104 std::string cmdline = "echo {x=\\\' > " + SEC_COMP_SRV_CFG_FILE; variable 105 system(cmdline.c_str()); 119 std::string cmdline = "echo {\\\"x\\\":1} > " + SEC_COMP_SRV_CFG_FILE; variable 120 system(cmdline.c_str()); [all …]
|
/base/time/time_service/utils/native/src/ |
D | time_file_utils.cpp | 68 char cmdline[CMDLINE_LEN] = { 0 }; in GetNameByPid() local 81 cmdline[i] = c; in GetNameByPid() 85 return cmdline; in GetNameByPid()
|
/base/startup/hvb/libhvb/src/auth/ |
D | hvb.c | 55 vd->cmdline.buf = hvb_calloc(CMD_LINE_SIZE); in hvb_init_verified_data() 56 if (!vd->cmdline.buf) { in hvb_init_verified_data() 64 vd->cmdline.cur_pos = 0; in hvb_init_verified_data() 65 vd->cmdline.max_size = CMD_LINE_SIZE; in hvb_init_verified_data() 327 if (vd->cmdline.buf != NULL) { in hvb_chain_verify_data_free() 328 hvb_free(vd->cmdline.buf); in hvb_chain_verify_data_free()
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab.c | 555 char *cmdline = ReadFileData(BOOT_CMD_LINE); in LoadFstabFromCommandLine() local 558 …BEGET_ERROR_CHECK(cmdline != NULL, return NULL, "Read from \'%s\' failed, err = %d", BOOT_CMD_LINE… in LoadFstabFromCommandLine() 559 TrimTail(cmdline, '\n'); in LoadFstabFromCommandLine() 561 BEGET_ERROR_CHECK(fstab != NULL, free(cmdline); return NULL, in LoadFstabFromCommandLine() 563 char *start = cmdline; in LoadFstabFromCommandLine() 564 char *end = start + strlen(cmdline); in LoadFstabFromCommandLine() 605 free(cmdline); in LoadFstabFromCommandLine()
|
/base/startup/init/services/param/manager/ |
D | param_server.c | 54 char *cmdline; member 199 char *data = (char *)ctx->cmdline; in CmdlineIterator() 247 ctx.cmdline = ReadFileData(BOOT_CMD_LINE); in LoadParamFromCmdLine() 248 PARAM_CHECK(ctx.cmdline != NULL, return -1, "Failed to read file %s", BOOT_CMD_LINE); in LoadParamFromCmdLine() 251 IterateNameValuePairs(ctx.cmdline, CmdlineIterator, (void *)(&ctx)); in LoadParamFromCmdLine() 259 free(ctx.cmdline); in LoadParamFromCmdLine()
|
/base/security/selinux_adapter/sepolicy/ohos_policy/drivers/external_device_manager/system/ |
D | foundation.te | 20 # avc: denied { getattr } for pid=616 comm="IPC_9_1109" path="/proc/599/cmdline" dev="proc" ino=… 21 # avc: denied { open } for pid=616 comm="IPC_9_1109" path="/proc/599/cmdline" dev="proc" ino=330…
|
/base/startup/hvb/libhvb/include/ |
D | hvb.h | 73 struct hvb_cmdline_data cmdline; member
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/gwp_asan/ |
D | gwpasan_collector.cpp | 222 char cmdline[BUF_SIZE] = { 0 }; in GetNameByPid() local 235 cmdline[i] = c; in GetNameByPid() 239 return cmdline; in GetNameByPid()
|
/base/startup/init/test/unittest/init/ |
D | service_unittest.cpp | 159 CmdLines *cmdline = (CmdLines *)malloc(sizeof(CmdLines) + sizeof(CmdLine)); variable 160 ASSERT_NE(nullptr, cmdline); 161 cmdline->cmdNum = 1; 162 cmdline->cmds[0].cmdIndex = 0; 163 service->restartArg = cmdline;
|
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/ |
D | dfx_crasher.cpp | 78 char cmdline[CMD_SZ]; member 84 char cmdline[CMD_SZ]; member 455 std::cout << " " << item.cmdline << " : " << item.description << std::endl; in PrintUsage() 684 if (!strcasecmp(out.c_str(), item.cmdline)) { in ParseAndDoCrash() 689 if (!strcasecmp(out.c_str(), item.cmdline)) { in ParseAndDoCrash()
|
/base/security/selinux_adapter/sepolicy/ohos_policy/customization/enterprise_device_management/system/ |
D | foundation.te | 17 # avc: denied { getattr } for pid=854 comm="IPC_14_1986" path="/proc/2168/cmdline" dev="proc" ino=2…
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
D | dfx_dump_catcher.cpp | 179 std::string cmdline; in ReportDumpCatcherStats() local 180 if (OHOS::LoadStringFromFile("/proc/self/cmdline", cmdline)) { in ReportDumpCatcherStats() 181 copyLen = std::min(sizeof(stat->callerProcess) - 1, cmdline.size()); in ReportDumpCatcherStats() 183 cmdline.c_str(), copyLen) != 0) { in ReportDumpCatcherStats()
|
/base/startup/hvb/libhvb/ |
D | BUILD.gn | 35 "src/cmdline/hvb_cmdline.c",
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
D | log_utils.cpp | 428 char cmdline[CMDLINE_LEN] = { 0 }; in GetNameByPid() local 441 cmdline[i] = c; in GetNameByPid() 445 return cmdline; in GetNameByPid()
|
/base/startup/init/services/etc/ |
D | init.cfg | 37 "copy /proc/cmdline /dev/urandom", 186 "chown root radio /proc/cmdline",
|
D | init.without_two_stages.cfg | 25 "copy /proc/cmdline /dev/urandom", 201 "chown root radio /proc/cmdline",
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
D | hitrace_meter.cpp | 161 ifstream cmdline("/proc/self/cmdline"); in IsAppspawnProcess() local 162 if (cmdline.is_open()) { in IsAppspawnProcess() 163 getline(cmdline, procName, '\0'); in IsAppspawnProcess() 164 cmdline.close(); in IsAppspawnProcess()
|
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/power_manager/system/ |
D | power_shell.te | 84 …# avc: denied { read open } for pid=4346 comm="ps" path="/proc/4337/cmdline" dev="proc" ino=4588… 85 …# avc: denied { read } for pid=4346 comm="ps" name="cmdline" dev="proc" ino=45889 scontext=u:r:s…
|
/base/security/selinux_adapter/sepolicy/base/system/ |
D | virtfs_contexts | 29 genfscon proc /cmdline u:object_r:proc_cmdline_file:s0
|