# localization for ceccomp in Chinese simplified. # Copyright (C) 2025-present ceccomp contributors # This file is distributed under the same license as the ceccomp package. # SPDX-FileCopyrightText: 2025 dbgbgtf 1 # # SPDX-FileCopyrightText: 2025-2026 RocketDev msgid "" msgstr "" "Project-Id-Version: ceccomp 4.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-05-19 23:55+0800\n" "PO-Revision-Date: 2026-05-19 23:55+0800\n" "Last-Translator: RocketDev \n" "Language-Team: Chinese \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Poedit 3.8\n" #: ../include/config.h:11 #, c-format msgid "" "ceccomp %s\n" "Tagged on %s\n" "Built by %s\n" msgstr "" "ceccomp %s\n" "在 %s 发布\n" "由 %s 构建\n" #: ../include/help.h:5 msgid "Usage: ceccomp \n" msgstr "用法: ceccomp <子命令> <参数> <选项>\n" #: ../include/help.h:25 msgid "" "asm -- Assemble bpf text to raw bytes\n" "disasm -- Disassemble raw bytes to bpf text\n" "emu -- Emulate bpf program with given syscall and bpf text\n" "help -- Display ceccomp help information\n" "probe -- Trace the program for the first filter and emulate common " "syscalls\n" "trace (dump) -- Run program or trace pid, extract bpf filter and then print " "to text\n" "version -- Display ceccomp version\n" msgstr "" "asm -- 把 bpf text 编译为 raw bytes\n" "disasm -- 把 raw bytes 编译为 bpf text\n" "emu -- 在给定的 syscall 和 bpf text 下模拟 bpf 程序的结果\n" "help -- 显示帮助信息\n" "probe -- trace 程序,对程序中出现的第一个 filter 模拟常见的 syscall\n" "trace (dump) -- 运行程序或追踪指定 pid,提取 bpf 过滤器,并打印 text 结果\n" "version -- 显示 ceccomp 版本\n" "\n" #: ../include/help.h:36 msgid "" "Options:\n" "-a, --arch (x86_64|aarch64|...) Which architecture to resolve syscall_nr, " "read or write bytestream by the byteorder of arch, default as your arch\n" "-f, --fmt (hexline|hexfmt|raw) Output format, default as hexline\n" "-p, --pid system_process_id Extract bpf filters from process and print " "with bpf text form; CAP_SYS_ADMIN is needed to work\n" "-o, --output file Print to file to avoid mixing ceccomp " "output and tracee program output, default as stderr\n" "-q, --quiet Print emulate result only or suppress the " "process info message in trace and probe\n" "-s, --seize Follow process to trace load-filter " "operation\n" "-c, --color (auto|always|never) When to print in color, default as auto\n" "syscall_nr System call number or name (e.g. 0|read)\n" "args[0-5], ip args and ip (instruction pointer) used for " "emulation, default as 0\n" "raw, text File with BPF RAW or BPF TEXT, see docs for " "detail, default as stdin\n" msgstr "" "选项:\n" "-a, --arch (x86_64|aarch64|...) 选择哪一个架构来解析 syscall_nr,默认为你的" "架构\n" "-f, --fmt (hexline|hexfmt|raw) 输出格式, 默认为 hexline\n" "-p, --pid system_process_id 从进程中提取 bpf 过滤器,并打印为 text 格" "式; 需要 CAP_SYS_ADMIN 来运作\n" "-o, --output file 将结果打印到文件来避免混淆 ceccomp 输出和 " "tracee 程序输出,默认打印至 stderr\n" "-q, --quiet 只打印 emulate 结果或在 trace 和 probe 时抑" "制进程的 INFO 消息\n" "-s, --seize 追踪进程以分析加载过滤器的操作\n" "-c, --color (auto|always|never) 指定何时使用彩色输出, 默认为 auto\n" "syscall_nr 系统调用号或系统调用名 (示例 0|read)\n" "args[0-5], ip 用来模拟的系统调用的参数和 ip (instruction " "pointer),默认为 0\n" "raw, text raw 或 text 文件,默认为 stdin。更多细节请查" "阅文档\n" #: ../include/utils/error.h:6 #, c-format msgid "Architecture name %s is not supported" msgstr "不支持名为 %s 的架构" #: ../include/utils/error.h:8 msgid "Found errors when assembling BPF from trace" msgstr "当汇编从 trace 取得的 BPF 时发现错误" #: ../include/utils/error.h:9 #, c-format msgid "Failed to request a temporary file: %s" msgstr "无法申请临时文件:%s" #: ../include/utils/error.h:13 msgid "Found errors when assembling text before emulating" msgstr "在模拟前汇编 text 时发现错误" #: ../include/utils/error.h:14 msgid "Please input syscall_nr (syscall name or number)" msgstr "请输入 syscall_nr(syscall 名字或数字)" #: ../include/utils/error.h:15 msgid "Invalid syscall_nr" msgstr "无效的系统调用号" #: ../include/utils/error.h:18 msgid "Found errors when assembling" msgstr "汇编时发现错误" #: ../include/utils/error.h:19 msgid "Input file has more than 4096 statements!" msgstr "输入包含超过 4096 行伪代码!" #: ../include/utils/error.h:22 msgid "Found fatal errors when disassembling" msgstr "反汇编时发现致命错误" #: ../include/utils/error.h:23 msgid "The input is empty" msgstr "输入为空" #: ../include/utils/error.h:25 msgid "The input is larger than 4096 filters! Perhaps inputting a wrong file?" msgstr "输入大小超过了 4096 个过滤器的大小!可能输入了错误的文件?" #: ../include/utils/error.h:28 #, c-format msgid "%u byte(s) at the end of input could not fit into a filter" msgstr "输入末尾的 %u 个字节无法放入一个过滤器中" #: ../include/utils/error.h:31 #, c-format msgid "Start tracing process %d" msgstr "开始追踪进程 %d" #: ../include/utils/error.h:32 #, c-format msgid "Peekdata failed at %p" msgstr "无法在 %p peekdata" #: ../include/utils/error.h:33 msgid "Failed to execute new program" msgstr "无法执行新程序" #: ../include/utils/error.h:34 #, c-format msgid "Process %d spawned a new pid %d" msgstr "进程 %d 派生了新进程 %d" #: ../include/utils/error.h:35 #, c-format msgid "Process %d exited" msgstr "进程 %d 退出" #: ../include/utils/error.h:36 #, c-format msgid "Parsing seccomp filter loaded in process %d" msgstr "正在解析进程 %d 加载的 seccomp 过滤器" #: ../include/utils/error.h:37 #, c-format msgid "Process %d failed to load seccomp filter: %s" msgstr "进程 %d 加载 seccomp 过滤器失败:%s" #: ../include/utils/error.h:38 msgid "Unknown reason" msgstr "未知的原因" #: ../include/utils/error.h:39 msgid "Procfs not accessible, unable to perform" msgstr "Procfs 无法访问,无法执行" #: ../include/utils/error.h:40 msgid "Found unresolvable non-classic BPF, skipping" msgstr "发现无法解析的非经典 BPF,跳过" #: ../include/utils/error.h:41 msgid "Kernel thread can not be seized" msgstr "内核线程不能被附加" #: ../include/utils/error.h:42 #, c-format msgid "No seccomp filters found in process %d" msgstr "在进程 %d 中没有找到 seccomp 过滤器" #: ../include/utils/error.h:44 #, c-format msgid "Target process is already being traced by process %d" msgstr "目标进程已经被进程 %d 追踪" #: ../include/utils/error.h:46 #, c-format msgid "" "Process %d loaded strict seccomp mode, which only allows read, write, " "exit_group and sigreturn!" msgstr "" "进程 %d 加载了严格 seccomp 模式,只有 read, write, exit_group 和 sigreturn 被" "允许!" #: ../include/utils/error.h:48 #, c-format msgid "Unknown error when get filter: %s" msgstr "在 get filter 时发生未知错误:%s" #: ../include/utils/error.h:49 #, c-format msgid "Unknown error when seizing process: %s" msgstr "在附加到进程时发生未知错误:%s" #: ../include/utils/error.h:50 msgid "The process to seize does not exist" msgstr "要附加的进程不存在" #: ../include/utils/error.h:55 msgid "" "Unexpected race condition detected when reading seccomp filters, please " "consider use eBPF-based trace in next version" msgstr "" "在读取 seccomp 过滤器时检测到意料之外的条件竞争,请考虑使用下版本中将推出的基" "于 eBPF 的追踪功能" #: ../include/utils/error.h:59 msgid "perhaps seizing kthread or lacking CAP_SYS_PTRACE" msgstr "可能正在附加到内核线程或缺少 CAP_SYS_PTRACE 权能" #: ../include/utils/error.h:61 msgid "Run with CAP_SYS_ADMIN capability to fetch seccomp filters" msgstr "以 CAP_SYS_ADMIN 权能运行来获取 seccomp 过滤器" #: ../include/utils/error.h:63 msgid "Run with CAP_SYS_PTRACE capability to seize a foreign process" msgstr "以 CAP_SYS_PTRACE 权能运行来附加到一个外部进程" #: ../include/utils/error.h:65 msgid "32-bit tracer can not ptrace 64-bit tracee" msgstr "32 位 tracer 无法 ptrace 64 位 tracee" #: ../include/utils/error.h:67 #, c-format msgid "libseccomp does not support the tracee's arch (%#x)" msgstr "libseccomp 不支持 tracee 的架构 (%#x)" #: ../include/utils/error.h:69 msgid "perhaps lacking CAP_SYS_ADMIN or ceccomp is in seccomp mode" msgstr "可能缺少 CAP_SYS_ADMIN 权能或 ceccomp 处于 seccomp 模式" #: ../include/utils/error.h:71 msgid "PTRACE_GET_SECCOMP_FILTER is not supported on your system" msgstr "PTRACE_SECCOMP_GET_FILTER 在您的系统上不支持" #: ../include/utils/error.h:73 msgid "" "Ceccomp is in seccomp mode, fetching seccomp filters of other process is not " "permitted" msgstr "Ceccomp 处在 seccomp 模式,不允许获取其他进程的 seccomp 过滤器" #: ../include/utils/error.h:76 msgid "" "perhaps PTRACE_GET_SECCOMP_FILTER is not supported or no seccomp filter in " "target process" msgstr "" "可能 PTRACE_SECCOMP_GET_FILTER 在您的系统上不支持或目标进程没有 seccomp 过滤" "器" #: ../include/utils/error.h:80 msgid "Invalid color mode" msgstr "无效的颜色模式" #: ../include/utils/error.h:81 msgid "Invalid format mode" msgstr "无效的 asm 格式参数" #: ../include/utils/error.h:82 msgid "Invalid number" msgstr "无效的数字" #: ../include/utils/error.h:83 #, c-format msgid "Unable to open file %s: %s" msgstr "无法打开文件 %s: %s" #: ../include/utils/error.h:86 #, c-format msgid "Reading input failed: %s" msgstr "读取输入失败:%s" #: ../include/utils/error.h:88 #, c-format msgid "Found '\\0' at file offset %lu, perhaps it's not a text file?" msgstr "在文件偏移 %lu 处发现 '\\0',可能不是一个文本文件?" #: ../include/utils/error.h:90 msgid "No line break in source file, perhaps it's not a text file?" msgstr "没有在源文件中找到换行符,可能不是一个文本文件?" #: ../include/utils/error.h:92 #, c-format msgid "Line %u has more than %u bytes, perhaps the input is not a text file?" msgstr "第 %u 行上有超过 %u 个字节,可能输入不是一个文本文件?" #: ../include/utils/error.h:93 msgid "The input file is greater than 4 MiB!" msgstr "输入的文件超过了 4 MiB!" #: ../include/utils/error.h:95 msgid "Found more than 16384 lines of text, perhaps it's not for ceccomp?" msgstr "文件中包含超过 16384 行,可能它不是给 ceccomp 用的?" #: ../include/utils/error.h:98 msgid "Can not find label declaration" msgstr "无法找到标签声明" #: ../include/utils/error.h:101 msgid "Unexpected token" msgstr "意料之外的 token" #: ../include/utils/error.h:102 msgid "Found duplicated label declaration" msgstr "发现重复的标签声明" #: ../include/utils/error.h:103 msgid "Input number exceeds 32-bit range" msgstr "输入的数字超过了 32 位的范围" #: ../include/utils/error.h:105 msgid "Expect operator" msgstr "期待一个操作符" #: ../include/utils/error.h:106 msgid "Expect rvalue" msgstr "期待一个右值" #: ../include/utils/error.h:107 msgid "Expect return value" msgstr "期待一个 return 值" #: ../include/utils/error.h:109 msgid "Expect number" msgstr "期待一个数字" #: ../include/utils/error.h:110 msgid "Expect parenthesis" msgstr "期待一个小括号" #: ../include/utils/error.h:111 msgid "Expect bracket" msgstr "期待一个中括号" #: ../include/utils/error.h:112 msgid "Expect comparator" msgstr "期待一个比较符" #: ../include/utils/error.h:113 msgid "Expect label" msgstr "期待一个标签" #: ../include/utils/error.h:114 msgid "Expect valid syscall name" msgstr "期待一个系统调用名称" #: ../include/utils/error.h:116 msgid "" "Architecture token does not match any libseccomp arch, perhaps system " "libseccomp is too old" msgstr "" "架构 token 没有匹配到任何 libseccomp 支持的架构,可能是因为系统 libseccomp 太" "老了" #: ../include/utils/error.h:120 msgid "Expect 'goto'" msgstr "期待一个 'goto'" #: ../include/utils/error.h:121 msgid "Expect '$A'" msgstr "期待一个 '$A'" #: ../include/utils/error.h:122 msgid "Expect 'else'" msgstr "期待一个 'else'" #: ../include/utils/error.h:125 msgid "Rvalue should be '$A'" msgstr "右值应该为 '$A'" #: ../include/utils/error.h:126 msgid "Rvalue can not be '$A'" msgstr "右值不能为 '$A'" #: ../include/utils/error.h:127 msgid "Rvalue can not be '$X'" msgstr "右值不能为 '$X'" #: ../include/utils/error.h:129 msgid "Rvalue should be '$A' or '$X'" msgstr "右值应该为 '$A' 或 '$X'" #: ../include/utils/error.h:130 msgid "Rvalue should be '$X' or number" msgstr "右值应该为 '$X' 或数字" #: ../include/utils/error.h:131 msgid "Operator should be '='" msgstr "操作符应该为 '='" #: ../include/utils/error.h:132 msgid "Lvalue should be '$A'" msgstr "左值应该为 '$A'" #: ../include/utils/error.h:134 msgid "seccomp_data load offset must be 4-byte aligned" msgstr "seccomp_data 加载偏移必须对齐到 4 字节" #: ../include/utils/error.h:136 msgid "seccomp_data load offset greater than the struct" msgstr "seccomp_data 加载偏移超过了结构体本身的大小" #: ../include/utils/error.h:138 msgid "Args index out of range (0-5)" msgstr "访问 args 索引超出范围 (0-5)" #: ../include/utils/error.h:139 msgid "Mem index out of range (0-15)" msgstr "访问 mem 索引超出范围 (0-5)" #: ../include/utils/error.h:140 msgid "Accessing uninitialized mem" msgstr "尝试访问未初始化的 mem" #: ../include/utils/error.h:141 msgid "Dividing by zero" msgstr "除以零" #: ../include/utils/error.h:142 msgid "Left or right shifting more than 32 bits" msgstr "左移或右移超过 32 位" #: ../include/utils/error.h:144 msgid "Data carried by return motion exceeds 0xffff" msgstr "return 动作携带的 data 超过了 0xffff" #: ../include/utils/error.h:145 msgid "JT is larger than 0xff" msgstr "JT 大于了 0xff" #: ../include/utils/error.h:146 msgid "JT must be positive" msgstr "JT 必须是正数" #: ../include/utils/error.h:147 msgid "JF is larger than 0xff" msgstr "JF 大于了 0xff" #: ../include/utils/error.h:148 msgid "JF must be positive" msgstr "JF 必须是正数" #: ../include/utils/error.h:149 msgid "JT out of filters" msgstr "JT 超出 BPF 长度" #: ../include/utils/error.h:150 msgid "JF out of filters" msgstr "JF 超出 BPF 长度" #: ../include/utils/error.h:151 msgid "JA out of filters" msgstr "跳转结果超出 BPF 长度" #: ../include/utils/error.h:152 msgid "JA must be positive" msgstr "JA 必须是正数" #: ../include/utils/error.h:154 msgid "BPF filters must end with return" msgstr "BPF 过滤器必须以 return 结尾" #: ../include/utils/error.h:155 msgid "The input does not contain any valid statement" msgstr "输入不包含任何有效的伪代码" #: ../include/utils/error.h:157 msgid "Invalid or unknown operation" msgstr "无效或未知的操作符"