| 1 |
# Chinese translations for PACKAGE package |
| 2 |
# Copyright (C) 2026 Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# Automatically generated, 2026. |
| 5 |
# |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: ceccomp docs\n" |
| 9 |
"POT-Creation-Date: 2026-03-30 00:28+0800\n" |
| 10 |
"PO-Revision-Date: 2026-03-30 00:30+0800\n" |
| 11 |
"Last-Translator: RocketDev <[email protected]>\n" |
| 12 |
"Language-Team: RocketDev\n" |
| 13 |
"Language: zh_CN\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"X-Generator: Poedit 3.8\n" |
| 18 |
|
| 19 |
#. type: Title = |
| 20 |
#: ceccomp.adoc:1 |
| 21 |
#, no-wrap |
| 22 |
msgid "ceccomp(1)" |
| 23 |
msgstr "ceccomp(1)" |
| 24 |
|
| 25 |
#. type: Plain text |
| 26 |
#: ceccomp.adoc:3 |
| 27 |
msgid "dbgbgtf <[email protected]>; RocketDev <[email protected]>" |
| 28 |
msgstr "" |
| 29 |
"dbgbgtf <[email protected]>; RocketDev <[email protected]>" |
| 30 |
|
| 31 |
#. type: Title == |
| 32 |
#: ceccomp.adoc:11 |
| 33 |
#, no-wrap |
| 34 |
msgid "NAME" |
| 35 |
msgstr "名称" |
| 36 |
|
| 37 |
#. type: Plain text |
| 38 |
#: ceccomp.adoc:14 |
| 39 |
msgid "ceccomp - A tool to analyze seccomp filters" |
| 40 |
msgstr "ceccomp - 一个分析安全计算 (seccomp) 过滤器的工具" |
| 41 |
|
| 42 |
#. type: Title == |
| 43 |
#: ceccomp.adoc:15 |
| 44 |
#, no-wrap |
| 45 |
msgid "SYNOPSIS" |
| 46 |
msgstr "大纲" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: ceccomp.adoc:20 |
| 50 |
#, no-wrap |
| 51 |
msgid "" |
| 52 |
" usage: ceccomp <asm|disasm|emu|trace|probe|version|help> [FILE] [-q|--quiet]\n" |
| 53 |
" [-f|--format FMT] [-a|--arch ARCH] [-p|--pid PID] [-s|--seize]\n" |
| 54 |
" [-o|--output FILE] [-c|--color WHEN] ...\n" |
| 55 |
msgstr "" |
| 56 |
" usage: ceccomp <asm|disasm|emu|trace|probe|version|help> [FILE] [-q|--quiet]\n" |
| 57 |
" [-f|--format FMT] [-a|--arch ARCH] [-p|--pid PID] [-s|--seize]\n" |
| 58 |
" [-o|--output FILE] [-c|--color WHEN] ...\n" |
| 59 |
|
| 60 |
#. type: Title == |
| 61 |
#: ceccomp.adoc:21 |
| 62 |
#, no-wrap |
| 63 |
msgid "CONCEPT" |
| 64 |
msgstr "概念" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: ceccomp.adoc:26 |
| 68 |
msgid "" |
| 69 |
"Kernel use BPF filters to limit syscall rules, applied via `seccomp` or " |
| 70 |
"`prctl` syscall. For example, down below is a simple filter to block " |
| 71 |
"`execve` syscall in hex format:" |
| 72 |
msgstr "" |
| 73 |
"内核使用BPF过滤器来限制系统调用规则,并使用 `seccomp` 和 `prctl` 两个系统调用" |
| 74 |
"来安装过滤器。以下是一个以十六进制表示的限制 `execve` 系统调用的简单过滤器:" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: ceccomp.adoc:31 |
| 78 |
#, no-wrap |
| 79 |
msgid "" |
| 80 |
" 1: 20 00 00 00 00 00 00 00 $A = $syscall_nr\n" |
| 81 |
" 2: 15 00 00 01 3b 00 00 00 if ($A != execve) goto 4\n" |
| 82 |
" 3: 06 00 00 00 00 00 00 00 return KILL\n" |
| 83 |
" 4: 06 00 00 00 00 00 ff 7f return ALLOW\n" |
| 84 |
msgstr "" |
| 85 |
" 1: 20 00 00 00 00 00 00 00 $A = $syscall_nr\n" |
| 86 |
" 2: 15 00 00 01 3b 00 00 00 if ($A != execve) goto 4\n" |
| 87 |
" 3: 06 00 00 00 00 00 00 00 return KILL\n" |
| 88 |
" 4: 06 00 00 00 00 00 ff 7f return ALLOW\n" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: ceccomp.adoc:35 |
| 92 |
msgid "" |
| 93 |
"The part presented in hex is what kernel received, and `ceccomp` take it to " |
| 94 |
"disassemble back to human readable text. For instance the *lineno* in the " |
| 95 |
"left and *statement* in the right." |
| 96 |
msgstr "" |
| 97 |
"以上十六进制的部分就是内核收到的过滤器,而 `ceccomp` 负责把它拿来反汇编为人类" |
| 98 |
"可读的文本。\n" |
| 99 |
"例如左侧的 *行号* 和右侧的 *伪代码* 。" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: ceccomp.adoc:38 |
| 103 |
msgid "" |
| 104 |
"Later I'll use _TEXT_ in short for BPF human readable text, and use _RAW_ in " |
| 105 |
"short for BPF raw format, please keep that in mind." |
| 106 |
msgstr "" |
| 107 |
"之后我会使用 _TEXT_ 作为BPF过滤器人类可读文本(伪代码)的缩写,\n" |
| 108 |
"使用 _RAW_ 作为BPF过滤器原始格式的缩写,请记住这个约定。" |
| 109 |
|
| 110 |
#. type: Title == |
| 111 |
#: ceccomp.adoc:39 |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "描述" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: ceccomp.adoc:44 |
| 118 |
msgid "" |
| 119 |
"`ceccomp` have 5 main functions, basically it's a C version of `seccomp-" |
| 120 |
"tools`, however, there are some breaking changes you need to know, which " |
| 121 |
"will be highlighted in each subcommand section." |
| 122 |
msgstr "" |
| 123 |
"`ceccomp` 有5个主要的功能,它基本上是C版本的 `seccomp-tools` ,然而,\n" |
| 124 |
"有一些不同的地方你需要知道,它们会在在每个子命令的章节中被注明。" |
| 125 |
|
| 126 |
#. type: Title === |
| 127 |
#: ceccomp.adoc:45 |
| 128 |
#, no-wrap |
| 129 |
msgid "asm - ASSEMBLE" |
| 130 |
msgstr "asm - 汇编" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: ceccomp.adoc:48 |
| 134 |
#, no-wrap |
| 135 |
msgid " ceccomp asm [-c WHEN] [-a ARCH] [-f FMT] [TEXT]\n" |
| 136 |
msgstr " ceccomp asm [-c WHEN] [-a ARCH] [-f FMT] [TEXT]\n" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: ceccomp.adoc:51 |
| 140 |
msgid "" |
| 141 |
"Assemble _TEXT_ to _RAW_. Use it to embed hand written filter rules into C " |
| 142 |
"code or to see the original code of some _TEXT_." |
| 143 |
msgstr "" |
| 144 |
"将 _TEXT_ 汇编为 _RAW_ 。适用于将手写的过滤器规则嵌入到C代码中,\n" |
| 145 |
"或希望观察一些 _TEXT_ 对应的原始字节码。" |
| 146 |
|
| 147 |
#. type: Labeled list |
| 148 |
#: ceccomp.adoc:52 ceccomp.adoc:101 ceccomp.adoc:144 ceccomp.adoc:194 |
| 149 |
#, no-wrap |
| 150 |
msgid "WHEN" |
| 151 |
msgstr "WHEN" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: ceccomp.adoc:56 |
| 155 |
msgid "" |
| 156 |
"Determines when to display warnings and errors in color. If the value is " |
| 157 |
"_auto_, ceccomp will display color when the output target is a \"tty\". Can " |
| 158 |
"be _auto_, _never_ or _always_. The default value is _auto_." |
| 159 |
msgstr "" |
| 160 |
"决定了 `ceccomp` 何时输出有颜色的文本。当设置为 _auto_ 时, `ceccomp`\n" |
| 161 |
"会在输出目标是一个“tty”时打印颜色。可以是 _auto_ 、 _never_ 或者 " |
| 162 |
"_always_ 。\n" |
| 163 |
"默认值是 _auto_ 。" |
| 164 |
|
| 165 |
#. type: Labeled list |
| 166 |
#: ceccomp.adoc:57 ceccomp.adoc:105 ceccomp.adoc:159 |
| 167 |
#, no-wrap |
| 168 |
msgid "ARCH" |
| 169 |
msgstr "ARCH" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: ceccomp.adoc:62 |
| 173 |
msgid "" |
| 174 |
"Set to any architecture libseccomp supports. Will be used to determine the " |
| 175 |
"actual syscall number behind the name (for example, on x86_64, you could " |
| 176 |
"write `\"execve\"` instead of `59` like the basic example above). Your " |
| 177 |
"system arch will be taken if not set via `uname`. The default value on your " |
| 178 |
"system is {ARCH}." |
| 179 |
msgstr "" |
| 180 |
"可以设置为任何 libseccomp 支持的架构。它将被用于决定系统调用名称对应的系统调" |
| 181 |
"用号。\n" |
| 182 |
"例如,在 x86_64 上,就像上面的基本示例,你可以写 `\"execve\"` 而不是数字 " |
| 183 |
"`59`\n" |
| 184 |
"指代系统调用号。如果不设置这个参数,则通过 `uname` 提取当前系统的架构。\n" |
| 185 |
"你的系统上的默认值是 {ARCH} 。" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: ceccomp.adoc:66 |
| 189 |
msgid "" |
| 190 |
"Since _version 4.0_, endianness is considered. If target endianness *ARCH* " |
| 191 |
"is different from machine endianness, the filters will be reversed (CODE and " |
| 192 |
"K) before outputting." |
| 193 |
msgstr "" |
| 194 |
"从 _4.0 版本_ 开始考虑端序。如果目标架构 *ARCH* 的端序与机器端序不同,则会在" |
| 195 |
"输出前反转过滤器(CODE 和 K)。" |
| 196 |
|
| 197 |
#. type: Labeled list |
| 198 |
#: ceccomp.adoc:67 |
| 199 |
#, no-wrap |
| 200 |
msgid "FMT" |
| 201 |
msgstr "FMT" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: ceccomp.adoc:71 |
| 205 |
msgid "" |
| 206 |
"Determines how `ceccomp` produces binary-format bpf code. Can be _hexfmt_, " |
| 207 |
"_hexline_ or _raw_. You could find sample output in <<EXAMPLES>> section. " |
| 208 |
"The default value is _hexline_." |
| 209 |
msgstr "" |
| 210 |
"决定了 `ceccomp` 如何输出二进制格式的BPF字节码。可以是 _hexfmt_ 、 " |
| 211 |
"_hexline_\n" |
| 212 |
"或者 _raw_ 。你可以在 <<ceccomp 示例>> 节中找到示例输出。默认值是 " |
| 213 |
"_hexline_ 。" |
| 214 |
|
| 215 |
#. type: Labeled list |
| 216 |
#: ceccomp.adoc:72 ceccomp.adoc:162 |
| 217 |
#, no-wrap |
| 218 |
msgid "TEXT" |
| 219 |
msgstr "TEXT" |
| 220 |
|
| 221 |
#. type: Plain text |
| 222 |
#: ceccomp.adoc:75 |
| 223 |
msgid "" |
| 224 |
"Take a optional filename to determine which file containing _TEXT_ will be " |
| 225 |
"assembled. Will read from _stdin_ if not set. `-` is treated as _stdin_." |
| 226 |
msgstr "" |
| 227 |
"一个可选的文件名,其中存放了需要被汇编的 _TEXT_ 。不设置则从 _标准输入_ 中读" |
| 228 |
"取。`-` 被视作 _标准输入_。" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: ceccomp.adoc:78 |
| 232 |
msgid "" |
| 233 |
"The assembly syntax was changed greatly since _version 4.0_, please checkout " |
| 234 |
"grammar reference below!" |
| 235 |
msgstr "_4.0 版本_ 大幅修改了汇编的语法,请查阅下面的语法参考!" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: ceccomp.adoc:81 |
| 239 |
msgid "" |
| 240 |
"Please check out <<TEXT GRAMMAR REFERENCE>> section to see how to write a " |
| 241 |
"rule by hand. Some examples will be displayed in <<EXAMPLES>> section." |
| 242 |
msgstr "" |
| 243 |
"查看 <<TEXT 语法参考>> 一节可以找到如何手写规则。一些示例会在 <<ceccomp 示例" |
| 244 |
">> 一节中展示。" |
| 245 |
|
| 246 |
#. type: Table |
| 247 |
#: ceccomp.adoc:92 |
| 248 |
#, no-wrap |
| 249 |
msgid "" |
| 250 |
"|Command|Difference\n" |
| 251 |
"\n" |
| 252 |
"|`seccomp-tools asm`\n" |
| 253 |
"|Use its own grammar to assemble, a bit script like; can assemble invalid _TEXT_\n" |
| 254 |
"which will be rejected by kernel\n" |
| 255 |
"\n" |
| 256 |
"|`ceccomp asm`\n" |
| 257 |
"|You can just take `disasm` output to `asm`, no new grammar is needed to learn;\n" |
| 258 |
"take `stdin` as input by default\n" |
| 259 |
msgstr "" |
| 260 |
"|命令|差别\n" |
| 261 |
"\n" |
| 262 |
"|`seccomp-tools asm`\n" |
| 263 |
"|使用它自己的语法汇编,有点像脚本;可以汇编会被内核拒绝的错误 _TEXT_\n" |
| 264 |
"\n" |
| 265 |
"|`ceccomp asm`\n" |
| 266 |
"|你可以直接拿着 `disasm` 的输出来汇编,不需要学习新语法;默认使用 _标准输入_ 作为输入\n" |
| 267 |
|
| 268 |
#. type: Title === |
| 269 |
#: ceccomp.adoc:94 |
| 270 |
#, no-wrap |
| 271 |
msgid "disasm - DISASSEMBLE" |
| 272 |
msgstr "disasm - 反汇编" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: ceccomp.adoc:97 |
| 276 |
#, no-wrap |
| 277 |
msgid " ceccomp disasm [-c WHEN] [-a ARCH] [RAW]\n" |
| 278 |
msgstr " ceccomp disasm [-c WHEN] [-a ARCH] [RAW]\n" |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: ceccomp.adoc:100 |
| 282 |
msgid "" |
| 283 |
"Disassemble _RAW_ to _TEXT_. Use it to see what does a filter do if you " |
| 284 |
"could not access filter via `trace` and have to manually extract the filter " |
| 285 |
"out." |
| 286 |
msgstr "" |
| 287 |
"反汇编 _RAW_ 为 _TEXT_ 。适用于当你无法使用 `trace` 看到过滤器时,必须手动提" |
| 288 |
"取过滤器,\n" |
| 289 |
"然后检查其含义。" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: ceccomp.adoc:104 |
| 293 |
msgid "" |
| 294 |
"Argument description can be found in <<asm - ASSEMBLE>> section. `disasm` " |
| 295 |
"may print more text in color including syntax highlighting for _TEXT_." |
| 296 |
msgstr "" |
| 297 |
"参数描述可以在 <<asm - 汇编>> 一节中找到。 `disasm` 可能会打印更多有颜色的文" |
| 298 |
"本,包括针对\n" |
| 299 |
"_TEXT_ 的语法高亮。" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: ceccomp.adoc:110 |
| 303 |
msgid "" |
| 304 |
"Set to any architecture libseccomp supports. Will be used to determine how " |
| 305 |
"filtered syscall number in _RAW_ filter is translated to syscall name (for " |
| 306 |
"example, on x86_64, the number `0x3b` is translated to `execve` if is " |
| 307 |
"comparing syscall_nr, see the basic example above). The default value on " |
| 308 |
"your system is {ARCH}." |
| 309 |
msgstr "" |
| 310 |
"可以设置为任何 libseccomp 支持的架构。它将被用于决定 _RAW_ 中的系统调用号如何" |
| 311 |
"被翻译为系统调用名。\n" |
| 312 |
"例如,在 x86_64 上,在比较系统调用号时,数字 `0x3b` 将被翻译为 `execve` ,可" |
| 313 |
"以看上面的基本示例。\n" |
| 314 |
"你的系统上的默认值是 {ARCH} 。" |
| 315 |
|
| 316 |
#. type: Labeled list |
| 317 |
#: ceccomp.adoc:111 |
| 318 |
#, no-wrap |
| 319 |
msgid "RAW" |
| 320 |
msgstr "RAW" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: ceccomp.adoc:114 |
| 324 |
msgid "" |
| 325 |
"A binary file with raw BPF codes. Takes _stdin_ as input if not set. Treat `-" |
| 326 |
"` as _stdin_. The file is arch-revelent, so it may not be portable on " |
| 327 |
"different archs." |
| 328 |
msgstr "" |
| 329 |
"包含原始 BPF 代码的二进制文件。如果不设置则将 _标准输入_ 作为输入。`-` 被视" |
| 330 |
"作 _标准输入_。这个文件是与架构有关的,所以它在不同架构之间可能不是通用的。" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: ceccomp.adoc:118 |
| 334 |
msgid "" |
| 335 |
"Since _version 4.0_, endianness is considered. If target endianness *ARCH* " |
| 336 |
"is different from machine endianness, the filters will be reversed (CODE and " |
| 337 |
"K) before decoding." |
| 338 |
msgstr "" |
| 339 |
"从 _4.0 版本_ 开始考虑端序。如果目标架构 *ARCH* 的端序与机器端序不同,则会在" |
| 340 |
"解码前反转过滤器(CODE 和 K)。" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: ceccomp.adoc:123 |
| 344 |
msgid "" |
| 345 |
"ceccomp will try to resolve syscall number under an arch ONLY IF that at " |
| 346 |
"that line, arch can be determined. On foreign arch (not equal to the arch " |
| 347 |
"you set), the foreign arch will be prepended to syscall name. You may notice " |
| 348 |
"that in some cases, seccomp-tools is able to resolve the name while ceccomp " |
| 349 |
"is not, that may be intended as the arch is not determined." |
| 350 |
msgstr "" |
| 351 |
"当且仅当在某一行的架构可以被确定时,ceccomp 才会尝试用那个架构解析那个系统调" |
| 352 |
"用号。\n" |
| 353 |
"如果是外部架构(不等于你设置的架构),它会被附加到系统调用名前。你可能会注意" |
| 354 |
"到在一些情况下,\n" |
| 355 |
"seccomp-tools 能解析一些系统调用名,而 ceccomp 不能,这可能是因为此时架构不能" |
| 356 |
"被确定。" |
| 357 |
|
| 358 |
#. type: Table |
| 359 |
#: ceccomp.adoc:133 |
| 360 |
#, no-wrap |
| 361 |
msgid "" |
| 362 |
"|Command|Difference\n" |
| 363 |
"\n" |
| 364 |
"|`seccomp-tools disasm`\n" |
| 365 |
"|Disassembles in its format; never check if the filter is valid\n" |
| 366 |
"\n" |
| 367 |
"|`ceccomp disasm`\n" |
| 368 |
"|Disassembles in ceccomp format, and takes `stdin` as input by default; check arch strictly\n" |
| 369 |
"and always display foreign arch name\n" |
| 370 |
msgstr "" |
| 371 |
"|命令|差别\n" |
| 372 |
"\n" |
| 373 |
"|`seccomp-tools disasm`\n" |
| 374 |
"|用它自己的语法反汇编;永远不会检查 _RAW_ 是否合法\n" |
| 375 |
"\n" |
| 376 |
"|`ceccomp disasm`\n" |
| 377 |
"|用 ceccomp 语法反汇编,并且默认将 _标准输入_ 作为输入;严格检查架构,\n" |
| 378 |
"并且永远打印外部架构名\n" |
| 379 |
|
| 380 |
#. type: Title === |
| 381 |
#: ceccomp.adoc:135 |
| 382 |
#, no-wrap |
| 383 |
msgid "emu - EMULATE" |
| 384 |
msgstr "emu - 模拟" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: ceccomp.adoc:138 |
| 388 |
#, no-wrap |
| 389 |
msgid " ceccomp emu [-c WHEN] [-a ARCH] [-q] TEXT SYSCALL_NAME/SYSCALL_NR [ARGS[0] ARGS[1] ... ARGS[5] PC]\n" |
| 390 |
msgstr " ceccomp emu [-c WHEN] [-a ARCH] [-q] TEXT SYSCALL_NAME/SYSCALL_NR [ARGS[0] ARGS[1] ... ARGS[5] PC]\n" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: ceccomp.adoc:143 |
| 394 |
msgid "" |
| 395 |
"Emulate what will happen if `syscall(SYSCALL_NR, ARGS[0], ARGS[1], ..., " |
| 396 |
"ARGS[5])` from `PC` is called following rules described in _TEXT_. Use it to " |
| 397 |
"see the result without actually running it in program or you don't want to " |
| 398 |
"examine the filter rule manually. This subcommand can be used to " |
| 399 |
"automatically examining a filter." |
| 400 |
msgstr "" |
| 401 |
"按照 _TEXT_ 中描述的规则,模拟从 `PC` 调用 `syscall(SYSCALL_NR, ARGS[0], " |
| 402 |
"ARGS[1], ..., ARGS[5])`\n" |
| 403 |
"的结果。适用于在不实际运行程序或不想手动检查规则时,查看触发系统调用的结" |
| 404 |
"果。\n" |
| 405 |
"这个子命令适合用来自动检测一个过滤器。" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: ceccomp.adoc:147 |
| 409 |
msgid "" |
| 410 |
"Argument description can be found in <<asm - ASSEMBLE>> section. `emu` may " |
| 411 |
"print more text in color including syntax highlighting for _TEXT_ and " |
| 412 |
"skipped statements." |
| 413 |
msgstr "" |
| 414 |
"参数描述可以在 <<asm - 汇编>> 一节中找到。 `emu` 可能会打印更多有颜色的文本," |
| 415 |
"包括针对\n" |
| 416 |
"_TEXT_ 的语法高亮以及跳过的伪代码。" |
| 417 |
|
| 418 |
#. type: Labeled list |
| 419 |
#: ceccomp.adoc:148 |
| 420 |
#, no-wrap |
| 421 |
msgid "SYSCALL_NAME/SYSCALL_NR" |
| 422 |
msgstr "SYSCALL_NAME/SYSCALL_NR" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: ceccomp.adoc:153 |
| 426 |
msgid "" |
| 427 |
"If you set *SYSCALL_NAME* (like `execve`), it will be translated to " |
| 428 |
"*SYSCALL_NR* under *ARCH* first. Or else set *SYSCALL_NR* directly (like " |
| 429 |
"`59`). Then the nr will be tested against the bpf filter to see the result " |
| 430 |
"of that syscall. This argument is NOT optional." |
| 431 |
msgstr "" |
| 432 |
"如果你设置了 *SYSCALL_NAME* (比如 `execve` ),那么它会基于 *ARCH* 先被翻译" |
| 433 |
"为对应的\n" |
| 434 |
"*SYSCALL_NR* 。或者你可以直接设置 *SYSCALL_NR* (例如 `59` )。然后会测试这个" |
| 435 |
"系统调用号经过\n" |
| 436 |
"BPF 过滤器处理后的输出并打印出来。这个参数是必填的。" |
| 437 |
|
| 438 |
#. type: Labeled list |
| 439 |
#: ceccomp.adoc:154 |
| 440 |
#, no-wrap |
| 441 |
msgid "ARGS[0-5] and PC" |
| 442 |
msgstr "ARGS[0-5] 和 PC" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: ceccomp.adoc:158 |
| 446 |
msgid "" |
| 447 |
"Register values when calling syscall. For example, on x86_64, these are " |
| 448 |
"equivalent to `rdi`, `rsi`, `rdx`, `r10`, `r8`, `r9` and `rip`. Their " |
| 449 |
"default value is 0." |
| 450 |
msgstr "" |
| 451 |
"当调用系统调用时对应寄存器的值。例如,在 x86_64 上,它们分别对应了\n" |
| 452 |
"`rdi` 、 `rsi` 、 `rdx` 、 `r10` 、 `r8` 、 `r9` 和 `rip` 。它们的默认值都是" |
| 453 |
"0。" |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: ceccomp.adoc:161 |
| 457 |
msgid "Argument description can be found in <<asm - ASSEMBLE>> section." |
| 458 |
msgstr "参数描述可以在 <<asm - 汇编>> 一节中找到。" |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: ceccomp.adoc:166 |
| 462 |
msgid "" |
| 463 |
"Take a filename to determine which file containing _TEXT_ rule will be " |
| 464 |
"tested. Note that filename CAN NOT be ignored as ceccomp can not determine " |
| 465 |
"if a positional argument is syscall or filename. Use `-` to refer to _stdin_." |
| 466 |
msgstr "" |
| 467 |
"一个文件名,其中存放了需要被测试的 _TEXT_ 规则。注意文件名 不能 被忽略,因为 " |
| 468 |
"ceccomp 无法判断一个位置参数是系统调用号还是文件名。使用 `-` 可以指代 _标准输" |
| 469 |
"入_。" |
| 470 |
|
| 471 |
#. type: Labeled list |
| 472 |
#: ceccomp.adoc:167 ceccomp.adoc:219 |
| 473 |
#, no-wrap |
| 474 |
msgid "-q, --quiet" |
| 475 |
msgstr "-q, --quiet" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: ceccomp.adoc:170 |
| 479 |
msgid "" |
| 480 |
"Only print the eval result of the filter. For example, if last statement " |
| 481 |
"emulated is `return KILL`, then `KILL` is printed." |
| 482 |
msgstr "" |
| 483 |
"只打印过滤器的模拟结果。例如,最后一行模拟的伪代码是 `return KILL`,那么将会" |
| 484 |
"打印 `KILL`。" |
| 485 |
|
| 486 |
#. type: Table |
| 487 |
#: ceccomp.adoc:180 |
| 488 |
#, no-wrap |
| 489 |
msgid "" |
| 490 |
"|Command|Difference\n" |
| 491 |
"\n" |
| 492 |
"|`seccomp-tools emu`\n" |
| 493 |
"|Take a _RAW_ as input\n" |
| 494 |
"\n" |
| 495 |
"|`ceccomp emu`\n" |
| 496 |
"|Take a _TEXT_ as input and take `stdin` as input by default; set *PC* is\n" |
| 497 |
"possible\n" |
| 498 |
msgstr "" |
| 499 |
"|命令|差别\n" |
| 500 |
"\n" |
| 501 |
"|`seccomp-tools emu`\n" |
| 502 |
"|用 _RAW_ 作为输入\n" |
| 503 |
"\n" |
| 504 |
"|`ceccomp emu`\n" |
| 505 |
"|用 _TEXT_ 作为输入,并默认将 _标准输入_ 作为输入;可以设置 *PC*\n" |
| 506 |
|
| 507 |
#. type: Title === |
| 508 |
#: ceccomp.adoc:182 |
| 509 |
#, no-wrap |
| 510 |
msgid "trace - TRACE FILTER IN RUNTIME" |
| 511 |
msgstr "trace - 运行时捕获过滤器" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: ceccomp.adoc:186 |
| 515 |
#, no-wrap |
| 516 |
msgid "" |
| 517 |
" ceccomp trace [-c WHEN] [-q] [-o FILE] PROGRAM [program-args]\n" |
| 518 |
" [-c WHEN] [-q] -p PID [-s]\n" |
| 519 |
msgstr "" |
| 520 |
" ceccomp trace [-c WHEN] [-o FILE] PROGRAM [program-args]\n" |
| 521 |
" [-c WHEN] -p PID [-s]\n" |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: ceccomp.adoc:193 |
| 525 |
msgid "" |
| 526 |
"The first line captures filters *PROGRAM* loads in runtime by tracing it; " |
| 527 |
"the second line extract seccomp filters from *PID*, or trace *PID* to " |
| 528 |
"capture subsequent seccomp filters; once fetched filters, print them in " |
| 529 |
"_TEXT_. You can only choose one of the two formats above. Use this if " |
| 530 |
"running the program is the simplest way to fetch bpf filters or a program " |
| 531 |
"with seccomp filters installed is waiting for input." |
| 532 |
msgstr "" |
| 533 |
"使用第一行的命令可以利用调试在 *PROGRAM* 运行中加载过滤器时动态捕获过滤器;\n" |
| 534 |
"第二行的命令可以从 *PID* 对应的进程中提取出 seccomp 过滤器,或通过调试 *PID* " |
| 535 |
"捕获后续的 seccomp 过滤器;一旦捕获到了过滤器,\n" |
| 536 |
"将会以 _TEXT_ 的格式将它打印出来。你可以从两个格式中选择一个使用。\n" |
| 537 |
"适用于运行一个程序是捕获BPF过滤器最简单的方式或者一个安装了 seccomp\n" |
| 538 |
"过滤器的程序正在等待输入。" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: ceccomp.adoc:197 |
| 542 |
msgid "" |
| 543 |
"Argument description can be found in <<asm - ASSEMBLE>> section. `trace` may " |
| 544 |
"print more text in color including syntax highlighting for _TEXT_." |
| 545 |
msgstr "" |
| 546 |
"参数描述可以在 <<asm - 汇编>> 一节中找到。 `trace` 可能会打印更多有颜色的文" |
| 547 |
"本,包括针对\n" |
| 548 |
"_TEXT_ 的语法高亮。" |
| 549 |
|
| 550 |
#. type: Labeled list |
| 551 |
#: ceccomp.adoc:198 |
| 552 |
#, no-wrap |
| 553 |
msgid "FILE" |
| 554 |
msgstr "FILE" |
| 555 |
|
| 556 |
#. type: Plain text |
| 557 |
#: ceccomp.adoc:203 |
| 558 |
msgid "" |
| 559 |
"May be useful when *PROGRAM* produces quite a lot output in _stderr_. " |
| 560 |
"`ceccomp` allow user to close _stdin_ and _stdout_ to limit *PROGRAM* input " |
| 561 |
"and output, so `ceccomp` use _stderr_ to print messages when running " |
| 562 |
"*PROGRAM*, set *FILE* if you want to see _TEXT_ in some other file. Treat `-" |
| 563 |
"` as _stdout_." |
| 564 |
msgstr "" |
| 565 |
"当 *PROGRAM* 会产生很多输出到 _标准错误_ 时可能很有用。 `ceccomp` 允许用户关" |
| 566 |
"闭\n" |
| 567 |
"_标准输入_ 和 _标准输出_ 来限制 *PROGRAM* 的输入和输出,所以 当运行\n" |
| 568 |
"*PROGRAM* 时 `ceccomp` 使用 _标准错误_ 来打印消息。如果你想在别的文件中看见\n" |
| 569 |
"_TEXT_ 的话请设置 *FILE* 。`-` 被视作 _标准输出_。" |
| 570 |
|
| 571 |
#. type: Labeled list |
| 572 |
#: ceccomp.adoc:204 |
| 573 |
#, no-wrap |
| 574 |
msgid "PROGRAM" |
| 575 |
msgstr "PROGRAM" |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: ceccomp.adoc:207 |
| 579 |
msgid "" |
| 580 |
"Set to the program you want to run, and *program-args* are its arguments " |
| 581 |
"just like running shell command `exec PROGRAM program-args`." |
| 582 |
msgstr "" |
| 583 |
"设置为你想运行的程序,并且 *program-args* 将作为它的参数,\n" |
| 584 |
"就像运行 shell 命令 `exec PROGRAM program-args` 。" |
| 585 |
|
| 586 |
#. type: Labeled list |
| 587 |
#: ceccomp.adoc:208 |
| 588 |
#, no-wrap |
| 589 |
msgid "PID" |
| 590 |
msgstr "PID" |
| 591 |
|
| 592 |
#. type: Plain text |
| 593 |
#: ceccomp.adoc:213 |
| 594 |
msgid "" |
| 595 |
"Set to the pid you want to inspect. *PID* is conflict with *PROGRAM*; you " |
| 596 |
"could either run a program dynamically or examine a pid in one command. " |
| 597 |
"Without `-s` flag, trace pid will try to extract seccomp filter in *PID* via " |
| 598 |
"`ptrace(PTRACE_SECCOMP_GET_FILTER)`, which may not be available in some " |
| 599 |
"systems." |
| 600 |
msgstr "" |
| 601 |
"设置为你想检查的 pid。 *PID* 和 *PROGRAM* 相冲突;你只能在一条命令中动态运行" |
| 602 |
"一个程序,\n" |
| 603 |
"或者检查一个 pid。没有 `-s` 标志,trace pid 会尝试使用 " |
| 604 |
"`ptrace(PTRACE_SECCOMP_GET_FILTER)` 从 *PID* 中提取 seccomp 过滤器,这个操作" |
| 605 |
"在一些系统上可能不可用。" |
| 606 |
|
| 607 |
#. type: Labeled list |
| 608 |
#: ceccomp.adoc:214 |
| 609 |
#, no-wrap |
| 610 |
msgid "-s, --seize" |
| 611 |
msgstr "-s, --seize" |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: ceccomp.adoc:218 |
| 615 |
msgid "" |
| 616 |
"*ONLY AVAILABLE FOR TRACE PID MODE.* Set this flag will override trace pid " |
| 617 |
"behavior to attach to *PID* and keep tracing for seccomp filter loading like " |
| 618 |
"trace prog mode. _This flag was introduced in version 4.0._" |
| 619 |
msgstr "" |
| 620 |
"*只适用于 TRACE PID 模式。* 设置这个标志将会覆盖 trace pid 的行为为像 trace " |
| 621 |
"prog 模式一样把调试器挂到 *PID* 上并持续跟踪 seccomp 过滤器的加载。_这个标志" |
| 622 |
"引入于 4.0 版本。_" |
| 623 |
|
| 624 |
#. type: Plain text |
| 625 |
#: ceccomp.adoc:222 |
| 626 |
msgid "" |
| 627 |
"Set to suppress the extra *[INFO]* prints when detect process forking, " |
| 628 |
"exiting or seccomp filter loading. _This flag was introduced in version 4.0._" |
| 629 |
msgstr "" |
| 630 |
"设置这个标志将会在检测到进程分叉、退出或加载 seccomp 过滤器时抑制多余的 " |
| 631 |
"*[INFO]* 输出。 _这个标志引入于 4.0 版本。_" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: ceccomp.adoc:226 |
| 635 |
msgid "" |
| 636 |
"To extract filters from *PID*, `CAP_SYS_ADMIN` is needed (without `-s` " |
| 637 |
"flag) and `CAP_SYS_PTRACE` may also be needed, the easiest way to acquire " |
| 638 |
"them is calling `ceccomp` with `sudo`." |
| 639 |
msgstr "" |
| 640 |
"要想从 *PID* 中提取过滤器,你需要 `CAP_SYS_ADMIN` (没有 `-s` 标志),同时还" |
| 641 |
"可能需要\n" |
| 642 |
"`CAP_SYS_PTRACE` ,最简单的获取它们的方法是用 `sudo` 运行 `ceccomp` 。" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: ceccomp.adoc:230 |
| 646 |
msgid "" |
| 647 |
"Since _version 3.1_, multiple process tracing is introduced, and when tracee " |
| 648 |
"forking/resolving/exiting, an extra INFO message is printed. You can discard " |
| 649 |
"it by running command like `ceccomp trace -q PROG 2>/dev/null`." |
| 650 |
msgstr "" |
| 651 |
"从 _3.1 版本_ 开始引入了多进程支持,并且当被调试进程 fork/resolve/exit\n" |
| 652 |
"时,将会打印一条额外的 INFO 信息。你可以使用像 `ceccomp trace -q PROG 2>/dev/" |
| 653 |
"null`\n" |
| 654 |
"这样的命令丢弃它。" |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: ceccomp.adoc:233 |
| 658 |
msgid "" |
| 659 |
"Since _version 4.2_, `dump` sub command is added as an alias of `trace`, to " |
| 660 |
"keep compatibility with `seccomp-tools`." |
| 661 |
msgstr "" |
| 662 |
"从 _4.2 版本_ 开始 `dump` 子命令作为 `trace` 的别名被加入,用以保持和 " |
| 663 |
"`seccomp-tools` 的兼容性。" |
| 664 |
|
| 665 |
#. type: Table |
| 666 |
#: ceccomp.adoc:246 |
| 667 |
#, no-wrap |
| 668 |
msgid "" |
| 669 |
"|Command|Difference\n" |
| 670 |
"\n" |
| 671 |
"|`seccomp-tools dump`\n" |
| 672 |
"|Setting output format is possible; each filter can be output to a different\n" |
| 673 |
"file; killing *PROGRAM* once *LIMIT* times of filters loaded; wrapping *PROGRAM*\n" |
| 674 |
"in `sh -c`\n" |
| 675 |
"\n" |
| 676 |
"|`ceccomp trace` or `ceccomp dump`\n" |
| 677 |
"|All filters are output to a single file; never kill *PROGRAM*; *PROGRAM* is\n" |
| 678 |
"launched directly, so `./` is not needed; explicitly print when forking;\n" |
| 679 |
"able to attach to pid for dynamic seccomp filter capturing\n" |
| 680 |
msgstr "" |
| 681 |
"|命令|差别\n" |
| 682 |
"\n" |
| 683 |
"|`seccomp-tools dump`\n" |
| 684 |
"|可以设置输出格式;每一个过滤器可以输出到不同的文件;当 *PROGRAM*\n" |
| 685 |
"加载了 *LIMIT* 个过滤器后就杀死程序;将 *PROGRAM* 包装在 `sh -c` 中运行\n" |
| 686 |
"\n" |
| 687 |
"|`ceccomp trace` 或 `ceccomp dump`\n" |
| 688 |
"|所有过滤器被输出到同一个文件;永远不会杀死 *PROGRAM* ; *PROGRAM* 是直接被执行的,\n" |
| 689 |
"所以不需要 `./` ;当 fork 时,显式打印事件;能够附加调试器到 pid 上动态捕捉 seccomp 过滤器\n" |
| 690 |
|
| 691 |
#. type: Title === |
| 692 |
#: ceccomp.adoc:248 |
| 693 |
#, no-wrap |
| 694 |
msgid "probe - TEST COMMON SYSCALLS INSTANTLY" |
| 695 |
msgstr "probe - 快速测试常见的系统调用" |
| 696 |
|
| 697 |
#. type: Plain text |
| 698 |
#: ceccomp.adoc:251 |
| 699 |
#, no-wrap |
| 700 |
msgid " ceccomp probe [-c WHEN] [-o FILE] [-q] PROGRAM [program-args]\n" |
| 701 |
msgstr " ceccomp probe [-c WHEN] [-o FILE] [-q] PROGRAM [program-args]\n" |
| 702 |
|
| 703 |
#. type: Plain text |
| 704 |
#: ceccomp.adoc:255 |
| 705 |
msgid "" |
| 706 |
"Run *PROGRAM* with *program-args* to captures *FIRST* seccomp filter, and " |
| 707 |
"then kill all children. Use it when a quick check against a program is " |
| 708 |
"needed, and detect potential seccomp rule issues." |
| 709 |
msgstr "" |
| 710 |
"以 *program-args* 为参数运行 *PROGRAM* 来捕获 *第一个* seccomp 过滤器,\n" |
| 711 |
"然后杀死所有子进程。适用于快速测试一个程序的规则并检测潜在的 seccomp\n" |
| 712 |
"规则问题。" |
| 713 |
|
| 714 |
#. type: Plain text |
| 715 |
#: ceccomp.adoc:257 |
| 716 |
msgid "" |
| 717 |
"All argument descriptions can be found in <<trace - TRACE FILTER IN " |
| 718 |
"RUNTIME>> section." |
| 719 |
msgstr "所有参数描述都可以在 <<trace - 运行时捕获过滤器>> 一节中找到。" |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: ceccomp.adoc:261 |
| 723 |
msgid "" |
| 724 |
"The output for this subcommand is the emulating result of common syscalls " |
| 725 |
"like `execve`, `open` and so on. If the filter itself is not capable of " |
| 726 |
"blocking syscalls, you could know that with a glance." |
| 727 |
msgstr "" |
| 728 |
"这个子命令的输出是一系列常见的系统调用的模拟结果,例如 `execve` 、 `open` " |
| 729 |
"等。\n" |
| 730 |
"如果过滤器本身并不能阻拦系统调用,那你一眼就能看出来。" |
| 731 |
|
| 732 |
#. type: Plain text |
| 733 |
#: ceccomp.adoc:264 |
| 734 |
msgid "" |
| 735 |
"Typical output for this subcommand is described below, more detailed example " |
| 736 |
"could be found in <<EXAMPLES>> section." |
| 737 |
msgstr "" |
| 738 |
"这个子命令的典型输出如下所示,更多完整的实例可以在 <<ceccomp 示例>> 一节中找" |
| 739 |
"到。" |
| 740 |
|
| 741 |
#. type: Plain text |
| 742 |
#: ceccomp.adoc:276 |
| 743 |
#, no-wrap |
| 744 |
msgid "" |
| 745 |
" open -> ALLOW\n" |
| 746 |
" read -> ALLOW\n" |
| 747 |
" write -> ALLOW\n" |
| 748 |
" execve -> KILL\n" |
| 749 |
" execveat -> KILL\n" |
| 750 |
" mmap -> ALLOW\n" |
| 751 |
" mprotect -> ALLOW\n" |
| 752 |
" openat -> ALLOW\n" |
| 753 |
" sendfile -> ALLOW\n" |
| 754 |
" ptrace -> ERRNO(1)\n" |
| 755 |
" fork -> ALLOW\n" |
| 756 |
msgstr "" |
| 757 |
" open -> ALLOW\n" |
| 758 |
" read -> ALLOW\n" |
| 759 |
" write -> ALLOW\n" |
| 760 |
" execve -> KILL\n" |
| 761 |
" execveat -> KILL\n" |
| 762 |
" mmap -> ALLOW\n" |
| 763 |
" mprotect -> ALLOW\n" |
| 764 |
" openat -> ALLOW\n" |
| 765 |
" sendfile -> ALLOW\n" |
| 766 |
" ptrace -> ERRNO(1)\n" |
| 767 |
" fork -> ALLOW\n" |
| 768 |
|
| 769 |
#. type: Plain text |
| 770 |
#: ceccomp.adoc:278 |
| 771 |
msgid "`seccomp-tools` don't have this subcommand." |
| 772 |
msgstr "`seccomp-tools` 没有等价的子命令。" |
| 773 |
|
| 774 |
#. type: Title == |
| 775 |
#: ceccomp.adoc:279 |
| 776 |
#, no-wrap |
| 777 |
msgid "TEXT GRAMMAR REFERENCE" |
| 778 |
msgstr "TEXT 语法参考" |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: ceccomp.adoc:286 |
| 782 |
msgid "" |
| 783 |
"The grammar changed greatly since _version 4.0_ as we refactored lexer for " |
| 784 |
"better human readability. The wrapper now prefixed by `#` as it's a comment " |
| 785 |
"now. And _line_ is replaced by _label_, so now lexer depends on label " |
| 786 |
"declaration to decide where to jump, instead of lineno in _TEXT_ file." |
| 787 |
msgstr "" |
| 788 |
"_4.0 版本_ 提高了词法分析器代码的可读性,伴随着大幅修改的语法。前缀为 `#` 的" |
| 789 |
"行现在是注释了。同时 _行号_ 被替换为 _标签_,现在词法分析器根据标签定义来决定" |
| 790 |
"跳转到哪里,而不是根据 _TEXT_ 文件中的行号。" |
| 791 |
|
| 792 |
#. type: Plain text |
| 793 |
#: ceccomp.adoc:291 |
| 794 |
msgid "" |
| 795 |
"A valid _TEXT_ format is described in EBNF-like declaration here: https://" |
| 796 |
"github.com/dbgbgtf1/Ceccomp/issues/17#issuecomment-3610531705. If you have " |
| 797 |
"no interest to know what EBNF is, please keep reading for examples." |
| 798 |
msgstr "" |
| 799 |
"这里有正确的 _TEXT_ 格式,以类 EBNF 语法描述:https://github.com/dbgbgtf1/" |
| 800 |
"Ceccomp/issues/17#issuecomment-3610531705。\n" |
| 801 |
"没兴趣了解 EBNF?请继续阅读以下的例子。" |
| 802 |
|
| 803 |
#. type: Plain text |
| 804 |
#: ceccomp.adoc:293 |
| 805 |
msgid "BPF ops which are not described below are banned by kernel." |
| 806 |
msgstr "其余未描述到的BPF操作都被内核禁止了。" |
| 807 |
|
| 808 |
#. type: Title === |
| 809 |
#: ceccomp.adoc:294 |
| 810 |
#, no-wrap |
| 811 |
msgid "Comment and Label" |
| 812 |
msgstr "注释与标签" |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: ceccomp.adoc:298 |
| 816 |
msgid "" |
| 817 |
"`ceccomp disasm` displays a lot of things, but some of them are optional for " |
| 818 |
"asm." |
| 819 |
msgstr "`ceccomp disasm` 展示了很多东西,但对于 asm 来说有些是可选的。" |
| 820 |
|
| 821 |
#. type: Plain text |
| 822 |
#: ceccomp.adoc:303 |
| 823 |
#, no-wrap |
| 824 |
msgid "" |
| 825 |
" #Label CODE JT JF K\n" |
| 826 |
" #---------------------------------\n" |
| 827 |
" L0001: 0x06 0x00 0x00 0x7fff0000 return ALLOW\n" |
| 828 |
" #---------------------------------\n" |
| 829 |
msgstr "" |
| 830 |
" #Label CODE JT JF K\n" |
| 831 |
" #---------------------------------\n" |
| 832 |
" L0001: 0x06 0x00 0x00 0x7fff0000 return ALLOW\n" |
| 833 |
" #---------------------------------\n" |
| 834 |
"\n" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: ceccomp.adoc:305 |
| 838 |
msgid "Any text after `#` will be discarded by asm like some script languages." |
| 839 |
msgstr "任何在 `#` 之后的文本将被 asm 丢弃,就像一些脚本语言一样。" |
| 840 |
|
| 841 |
#. type: Plain text |
| 842 |
#: ceccomp.adoc:307 |
| 843 |
msgid "Empty lines are accepted." |
| 844 |
msgstr "允许空行。" |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: ceccomp.adoc:315 |
| 848 |
msgid "" |
| 849 |
"Label declaration is an identifier at the beginning of line and suffixed by " |
| 850 |
"`:` like `L0001`. An identifier is a string starts with alpha and contains " |
| 851 |
"with only alphanumeric characters and underscore `_`. Label is only " |
| 852 |
"necessary if it's the destination of `goto`, these redundant labels added by " |
| 853 |
"disasm are for readability. E.g. in `if ($A == 0) goto somewhere`, " |
| 854 |
"`somewhere` is a label and must be declared after the statement. Label " |
| 855 |
"declaration can take a line separately, or be put in front of statement." |
| 856 |
msgstr "" |
| 857 |
"标签声明是一个从行首开始并以 `:` 结尾的标识符,例如 `L0001`。标识符是一个以字" |
| 858 |
"母为首,中间只包含字母、数字和下划线 `_` 的字符串。标签只在它是 `goto` 的目标" |
| 859 |
"时才是必要的,由 disasm 添加的多余的标签知识为了可读性。例如在 `if ($A == 0) " |
| 860 |
"goto somewhere` 中,`somewhere` 是一个标签并且必须在这行伪代码后声明。标签声" |
| 861 |
"明可以单独占据一行,也可以放置在伪代码的前面。" |
| 862 |
|
| 863 |
#. type: Plain text |
| 864 |
#: ceccomp.adoc:318 |
| 865 |
msgid "" |
| 866 |
"The `CODE`, `JT`, `JF` and `K` value generated by disasm will be discarded " |
| 867 |
"by asm, asm only parse the effective statement after `K`." |
| 868 |
msgstr "" |
| 869 |
"由 disasm 生成的 `CODE`、`JT`、`JF` 和 `K` 值会被 asm 丢弃,asm 之解析 `K` 之" |
| 870 |
"后的有效伪代码。" |
| 871 |
|
| 872 |
#. type: Plain text |
| 873 |
#: ceccomp.adoc:323 |
| 874 |
msgid "" |
| 875 |
"There are some slight difference between `ceccomp disasm` and `seccomp-tools " |
| 876 |
"disasm`, down below is a general example. And some statements are different, " |
| 877 |
"so don't pipe seccomp-tools output to ceccomp blindly." |
| 878 |
msgstr "" |
| 879 |
"`ceccomp disasm` 和 `seccomp-tools disasm` 的输出之间有很多细微的差别,\n" |
| 880 |
"以下是一个典型的输出示例。同时有些伪代码是不同的,所以不要盲目将 seccomp-" |
| 881 |
"tools\n" |
| 882 |
"的输出管道给 ceccomp。" |
| 883 |
|
| 884 |
#. type: Plain text |
| 885 |
#: ceccomp.adoc:327 |
| 886 |
#, no-wrap |
| 887 |
msgid "" |
| 888 |
" line CODE JT JF K\n" |
| 889 |
" =================================\n" |
| 890 |
" 0000: 0x06 0x00 0x00 0x7fff0000 return ALLOW\n" |
| 891 |
msgstr "" |
| 892 |
" line CODE JT JF K\n" |
| 893 |
" =================================\n" |
| 894 |
" 0000: 0x06 0x00 0x00 0x7fff0000 return ALLOW\n" |
| 895 |
|
| 896 |
#. type: Title === |
| 897 |
#: ceccomp.adoc:328 |
| 898 |
#, no-wrap |
| 899 |
msgid "Assignment" |
| 900 |
msgstr "赋值" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: ceccomp.adoc:332 |
| 904 |
msgid "" |
| 905 |
"`A` can be set to seccomp attributes directly. But `X` can not be assigned " |
| 906 |
"with seccomp attributes directly due to kernel limit." |
| 907 |
msgstr "" |
| 908 |
"`A` 可以直接赋值为 seccomp 属性。由于内核限制, `X` 不能直接赋值为 seccomp 属" |
| 909 |
"性。" |
| 910 |
|
| 911 |
#. type: Plain text |
| 912 |
#: ceccomp.adoc:335 |
| 913 |
#, no-wrap |
| 914 |
msgid "" |
| 915 |
" $A = $arch\n" |
| 916 |
" $A = $syscall_nr\n" |
| 917 |
msgstr "" |
| 918 |
" $A = $arch\n" |
| 919 |
" $A = $syscall_nr\n" |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: ceccomp.adoc:337 |
| 923 |
msgid "" |
| 924 |
"To assign `A` with those 64-bit long fields, `low_` or `high_` prefix is " |
| 925 |
"needed." |
| 926 |
msgstr "要给 `A` 赋值为这些64位长的字段,必须使用 `low_` 或者 `high_` 的前缀。" |
| 927 |
|
| 928 |
#. type: Plain text |
| 929 |
#: ceccomp.adoc:345 |
| 930 |
#, no-wrap |
| 931 |
msgid "" |
| 932 |
" $A = $low_pc\n" |
| 933 |
" $A = $high_pc\n" |
| 934 |
" $A = $low_args[0]\n" |
| 935 |
" $A = $high_args[0]\n" |
| 936 |
" ...\n" |
| 937 |
" $A = $low_args[5]\n" |
| 938 |
" $A = $high_args[5]\n" |
| 939 |
msgstr "" |
| 940 |
" $A = $low_pc\n" |
| 941 |
" $A = $high_pc\n" |
| 942 |
" $A = $low_args[0]\n" |
| 943 |
" $A = $high_args[0]\n" |
| 944 |
" ...\n" |
| 945 |
" $A = $low_args[5]\n" |
| 946 |
" $A = $high_args[5]\n" |
| 947 |
|
| 948 |
#. type: Plain text |
| 949 |
#: ceccomp.adoc:348 |
| 950 |
msgid "" |
| 951 |
"A special attribute is `sizeof(struct seccomp_data)`, that can be assigned " |
| 952 |
"to `A` or `X` directly." |
| 953 |
msgstr "" |
| 954 |
"一个特殊的属性是 `sizeof(struct seccomp_data)` ,它可以直接赋值给 `A` 或 " |
| 955 |
"`X` 。" |
| 956 |
|
| 957 |
#. type: Plain text |
| 958 |
#: ceccomp.adoc:351 |
| 959 |
#, no-wrap |
| 960 |
msgid "" |
| 961 |
" $A = $scmp_data_len\n" |
| 962 |
" $X = $scmp_data_len\n" |
| 963 |
msgstr "" |
| 964 |
" $A = $scmp_data_len\n" |
| 965 |
" $X = $scmp_data_len\n" |
| 966 |
|
| 967 |
#. type: Plain text |
| 968 |
#: ceccomp.adoc:355 |
| 969 |
msgid "" |
| 970 |
"Temporary memory is 32-bit, to access them, you could use hex or dec as " |
| 971 |
"index. Both `A` and `X` is assignable. Assigning immediate values to `A` or " |
| 972 |
"`X` accepts any format of number if you imply the correct base by \"0x\" or " |
| 973 |
"\"0b\"." |
| 974 |
msgstr "" |
| 975 |
"临时内存是32位的,要想访问它们,你可以使用十六进制或者十进制的索引。\n" |
| 976 |
"`A` 和 `X` 都是可赋值的。给 `A` 或 `X` 赋值为立即数接受任意格式的数字,只要你" |
| 977 |
"使用 \"0x\" 或者 \"0b\" 等前缀正确表达数字是几进制的。" |
| 978 |
|
| 979 |
#. type: Plain text |
| 980 |
#: ceccomp.adoc:363 |
| 981 |
#, no-wrap |
| 982 |
msgid "" |
| 983 |
" $X = $mem[0]\n" |
| 984 |
" $A = $mem[0xf]\n" |
| 985 |
" $A = $mem[15] # both hex and dec index are OK\n" |
| 986 |
" $A = 0\n" |
| 987 |
" $X = 0x3b\n" |
| 988 |
" $A = 0b1111\n" |
| 989 |
" $A = 0333\n" |
| 990 |
msgstr "" |
| 991 |
" $X = $mem[0]\n" |
| 992 |
" $A = $mem[0xf]\n" |
| 993 |
" $A = $mem[15] # both hex and dec index are OK\n" |
| 994 |
" $A = 0\n" |
| 995 |
" $X = 0x3b\n" |
| 996 |
" $A = 0b1111\n" |
| 997 |
" $A = 0333\n" |
| 998 |
|
| 999 |
#. type: Plain text |
| 1000 |
#: ceccomp.adoc:366 |
| 1001 |
msgid "" |
| 1002 |
"You could also assign `X` to `A` or in the reverse order. Assign `X` or `A` " |
| 1003 |
"to temporary memory is definitely okay." |
| 1004 |
msgstr "" |
| 1005 |
"你还可以将 `X` 赋值给 `A` 或者反过来。将 `X` 或 `A` 赋值给临时内存当然可以。" |
| 1006 |
|
| 1007 |
#. type: Plain text |
| 1008 |
#: ceccomp.adoc:371 |
| 1009 |
#, no-wrap |
| 1010 |
msgid "" |
| 1011 |
" $A = $X\n" |
| 1012 |
" $X = $A\n" |
| 1013 |
" $mem[3] = $X\n" |
| 1014 |
" $mem[0x4] = $A\n" |
| 1015 |
msgstr "" |
| 1016 |
" $A = $X\n" |
| 1017 |
" $X = $A\n" |
| 1018 |
" $mem[3] = $X\n" |
| 1019 |
" $mem[0x4] = $A\n" |
| 1020 |
|
| 1021 |
#. type: Title === |
| 1022 |
#: ceccomp.adoc:372 |
| 1023 |
#, no-wrap |
| 1024 |
msgid "Arithmetic Operations" |
| 1025 |
msgstr "数学运算" |
| 1026 |
|
| 1027 |
#. type: Plain text |
| 1028 |
#: ceccomp.adoc:375 |
| 1029 |
msgid "Various operations can be applied to `A`." |
| 1030 |
msgstr "你可以以多种方式操作 `A` 。" |
| 1031 |
|
| 1032 |
#. type: Plain text |
| 1033 |
#: ceccomp.adoc:382 |
| 1034 |
#, no-wrap |
| 1035 |
msgid "" |
| 1036 |
" $A += 30\n" |
| 1037 |
" $A -= 4\n" |
| 1038 |
" $A *= 9\n" |
| 1039 |
" $A /= 1\n" |
| 1040 |
" $A &= 7\n" |
| 1041 |
" $A >>= 6\n" |
| 1042 |
msgstr "" |
| 1043 |
" $A += 30\n" |
| 1044 |
" $A -= 4\n" |
| 1045 |
" $A *= 9\n" |
| 1046 |
" $A /= 1\n" |
| 1047 |
" $A &= 7\n" |
| 1048 |
" $A >>= 6\n" |
| 1049 |
|
| 1050 |
#. type: Plain text |
| 1051 |
#: ceccomp.adoc:384 |
| 1052 |
msgid "The right value can be `X`." |
| 1053 |
msgstr "右值也可以是 `X` 。" |
| 1054 |
|
| 1055 |
#. type: Plain text |
| 1056 |
#: ceccomp.adoc:389 |
| 1057 |
#, no-wrap |
| 1058 |
msgid "" |
| 1059 |
" $A &= $X\n" |
| 1060 |
" $A |= $X\n" |
| 1061 |
" $A ^= $X\n" |
| 1062 |
" $A <<= $X\n" |
| 1063 |
msgstr "" |
| 1064 |
" $A &= $X\n" |
| 1065 |
" $A |= $X\n" |
| 1066 |
" $A ^= $X\n" |
| 1067 |
" $A <<= $X\n" |
| 1068 |
|
| 1069 |
#. type: Plain text |
| 1070 |
#: ceccomp.adoc:391 |
| 1071 |
msgid "And there is a way to negativate `A`." |
| 1072 |
msgstr "想要对 `A` 取反可以这么做。" |
| 1073 |
|
| 1074 |
#. type: Plain text |
| 1075 |
#: ceccomp.adoc:393 |
| 1076 |
#, no-wrap |
| 1077 |
msgid " $A = -$A\n" |
| 1078 |
msgstr " $A = -$A\n" |
| 1079 |
|
| 1080 |
#. type: Title === |
| 1081 |
#: ceccomp.adoc:394 |
| 1082 |
#, no-wrap |
| 1083 |
msgid "Jump Downwards If ..." |
| 1084 |
msgstr "当...时向下跳转" |
| 1085 |
|
| 1086 |
#. type: Plain text |
| 1087 |
#: ceccomp.adoc:397 |
| 1088 |
msgid "Unconditional jump:" |
| 1089 |
msgstr "无条件跳转:" |
| 1090 |
|
| 1091 |
#. type: Plain text |
| 1092 |
#: ceccomp.adoc:399 |
| 1093 |
#, no-wrap |
| 1094 |
msgid " goto L3\n" |
| 1095 |
msgstr " goto L3\n" |
| 1096 |
|
| 1097 |
#. type: Plain text |
| 1098 |
#: ceccomp.adoc:401 |
| 1099 |
msgid "Jump if:" |
| 1100 |
msgstr "当...跳转:" |
| 1101 |
|
| 1102 |
#. type: Plain text |
| 1103 |
#: ceccomp.adoc:407 |
| 1104 |
#, no-wrap |
| 1105 |
msgid "" |
| 1106 |
" if ($A == execve) goto L3\n" |
| 1107 |
" if ($A != 1234) goto L4\n" |
| 1108 |
" if ($A & $X) goto L5\n" |
| 1109 |
" if !($A & 7) goto L6\n" |
| 1110 |
" if ($A <= $X) goto L7\n" |
| 1111 |
msgstr "" |
| 1112 |
" if ($A == execve) goto L3\n" |
| 1113 |
" if ($A != 1234) goto L4\n" |
| 1114 |
" if ($A & $X) goto L5\n" |
| 1115 |
" if !($A & 7) goto L6\n" |
| 1116 |
" if ($A <= $X) goto L7\n" |
| 1117 |
|
| 1118 |
#. type: Plain text |
| 1119 |
#: ceccomp.adoc:409 |
| 1120 |
msgid "If true jump to ... if false jump to...:" |
| 1121 |
msgstr "当条件为真时跳转到...,条件为假时跳转到...:" |
| 1122 |
|
| 1123 |
#. type: Plain text |
| 1124 |
#: ceccomp.adoc:412 |
| 1125 |
#, no-wrap |
| 1126 |
msgid "" |
| 1127 |
" if ($A > $X) goto L3, else goto L4\n" |
| 1128 |
" if ($A >= 4567) goto L5, else goto L6\n" |
| 1129 |
msgstr "" |
| 1130 |
" if ($A > $X) goto L3, else goto L4\n" |
| 1131 |
" if ($A >= 4567) goto L5, else goto L6\n" |
| 1132 |
|
| 1133 |
#. type: Plain text |
| 1134 |
#: ceccomp.adoc:419 |
| 1135 |
msgid "" |
| 1136 |
"ONLY in conditions, you CAN replace number with syscall name or arch name. " |
| 1137 |
"In example above, `0x3b` is replaced by `execve`. All the syscall name will " |
| 1138 |
"be resolved to syscall number under your selected arch. If you want to " |
| 1139 |
"resolve a syscall name in foreign arch (not equal to your selected arch), " |
| 1140 |
"please prepend a arch and dot. For example, your arch is x86_64, and you are " |
| 1141 |
"writing _aarch64_ rules, then please write like:" |
| 1142 |
msgstr "" |
| 1143 |
"*只有* 在做条件判断时,你才能将数字替换为系统调用号或架构名。在以上的例子" |
| 1144 |
"中, `0x3b`\n" |
| 1145 |
"被 `execve` 替换。所有系统调用名将会以你设置的架构解析为系统调用号。\n" |
| 1146 |
"如果你希望解析外部架构(不等于你设置的架构)的系统调用名,\n" |
| 1147 |
"请在前面附加架构名和一个点。例如,你设置的架构是 x86_64,并且你正在写\n" |
| 1148 |
"_aarch64_ 架构的规则,请这样写:" |
| 1149 |
|
| 1150 |
#. type: Plain text |
| 1151 |
#: ceccomp.adoc:421 |
| 1152 |
#, no-wrap |
| 1153 |
msgid " if ($A == aarch64.read) goto 5\n" |
| 1154 |
msgstr " if ($A == aarch64.read) goto 5\n" |
| 1155 |
|
| 1156 |
#. type: Plain text |
| 1157 |
#: ceccomp.adoc:424 |
| 1158 |
msgid "" |
| 1159 |
"Note that if you manually set arch to _aarch64_ with `-a aarch64`, you can " |
| 1160 |
"omit `aarch64.` in statement." |
| 1161 |
msgstr "" |
| 1162 |
"注意当你手动使用 `-a aarch64` 将架构设置为 _aarch64_ 时,\n" |
| 1163 |
"你可以在伪代码中忽略 `aarch64.` 。" |
| 1164 |
|
| 1165 |
#. type: Title === |
| 1166 |
#: ceccomp.adoc:425 |
| 1167 |
#, no-wrap |
| 1168 |
msgid "Return Code" |
| 1169 |
msgstr "返回码" |
| 1170 |
|
| 1171 |
#. type: Plain text |
| 1172 |
#: ceccomp.adoc:428 |
| 1173 |
msgid "Return value of register `A`:" |
| 1174 |
msgstr "返回寄存器 `A` 的值:" |
| 1175 |
|
| 1176 |
#. type: Plain text |
| 1177 |
#: ceccomp.adoc:430 |
| 1178 |
#, no-wrap |
| 1179 |
msgid " return $A\n" |
| 1180 |
msgstr " return $A\n" |
| 1181 |
|
| 1182 |
#. type: Plain text |
| 1183 |
#: ceccomp.adoc:434 |
| 1184 |
msgid "" |
| 1185 |
"Or return a immediate value, with extra field in `()`. Actions including " |
| 1186 |
"`TRACE`, `TRAP` and `ERRNO` accept an extra field, without `()`, they are " |
| 1187 |
"treated as `action(0)`." |
| 1188 |
msgstr "" |
| 1189 |
"或者返回一个立即数,多余的字段放在 `()` 里。 `TRACE` 、 `TRAP` 和 `ERRNO`\n" |
| 1190 |
"接受一个额外的字段,如果没有 `()` ,它们将被视为 `行为(0)` 。" |
| 1191 |
|
| 1192 |
#. type: Plain text |
| 1193 |
#: ceccomp.adoc:444 |
| 1194 |
#, no-wrap |
| 1195 |
msgid "" |
| 1196 |
" return 0x13371337\n" |
| 1197 |
" return KILL\n" |
| 1198 |
" return KILL_PROCESS\n" |
| 1199 |
" return TRAP(123)\n" |
| 1200 |
" return ERRNO(0)\n" |
| 1201 |
" return TRACE\n" |
| 1202 |
" return TRACE(3)\n" |
| 1203 |
" return LOG\n" |
| 1204 |
" return NOTIFY\n" |
| 1205 |
msgstr "" |
| 1206 |
" return 0x13371337\n" |
| 1207 |
" return KILL\n" |
| 1208 |
" return KILL_PROCESS\n" |
| 1209 |
" return TRAP(123)\n" |
| 1210 |
" return ERRNO(0)\n" |
| 1211 |
" return TRACE\n" |
| 1212 |
" return TRACE(3)\n" |
| 1213 |
" return LOG\n" |
| 1214 |
" return NOTIFY\n" |
| 1215 |
|
| 1216 |
#. type: Title === |
| 1217 |
#: ceccomp.adoc:445 |
| 1218 |
#, no-wrap |
| 1219 |
msgid "Short Example" |
| 1220 |
msgstr "简短的例子" |
| 1221 |
|
| 1222 |
#. type: Plain text |
| 1223 |
#: ceccomp.adoc:449 |
| 1224 |
msgid "" |
| 1225 |
"The following _TEXT_ is valid for asm, which blocks `execve` and `execveat` " |
| 1226 |
"for amd64 syscalls:" |
| 1227 |
msgstr "" |
| 1228 |
"下面的 _TEXT_ 对与 asm 来说是正确的,这段 _TEXT_ 阻止了 amd64 的 `execve` 和 " |
| 1229 |
"`execveat` 系统调用:" |
| 1230 |
|
| 1231 |
#. type: Plain text |
| 1232 |
#: ceccomp.adoc:455 |
| 1233 |
#, no-wrap |
| 1234 |
msgid "" |
| 1235 |
" $A = $syscall_nr\n" |
| 1236 |
" if ($A == execve) goto forbid\n" |
| 1237 |
" if ($A == execveat) goto forbid\n" |
| 1238 |
" return ALLOW\n" |
| 1239 |
" forbid: return KILL\n" |
| 1240 |
msgstr "" |
| 1241 |
" $A = $syscall_nr\n" |
| 1242 |
" if ($A == execve) goto forbid\n" |
| 1243 |
" if ($A == execveat) goto forbid\n" |
| 1244 |
" return ALLOW\n" |
| 1245 |
" forbid: return KILL\n" |
| 1246 |
|
| 1247 |
#. type: Title == |
| 1248 |
#: ceccomp.adoc:456 |
| 1249 |
#, no-wrap |
| 1250 |
msgid "RESTRICTIONS" |
| 1251 |
msgstr "限制" |
| 1252 |
|
| 1253 |
#. type: Plain text |
| 1254 |
#: ceccomp.adoc:459 |
| 1255 |
msgid "Ceccomp asm put some restrictions on _TEXT_ for better performance." |
| 1256 |
msgstr "为了更好的性能,Ceccomp asm 对 _TEXT_ 有一些限制。" |
| 1257 |
|
| 1258 |
#. type: Plain text |
| 1259 |
#: ceccomp.adoc:461 |
| 1260 |
msgid "`'\\0'` must not be found in _TEXT_ since it's a text file." |
| 1261 |
msgstr "由于 _TEXT_ 是个文本文件,`'\\0'` 不能出现在 _TEXT_ 中。" |
| 1262 |
|
| 1263 |
#. type: Plain text |
| 1264 |
#: ceccomp.adoc:462 |
| 1265 |
msgid "A line must be shorter than 384 *bytes*." |
| 1266 |
msgstr "一行必须短于 384 *字节*。" |
| 1267 |
|
| 1268 |
#. type: Plain text |
| 1269 |
#: ceccomp.adoc:463 |
| 1270 |
msgid "A _TEXT_ file must have less than 16384 lines." |
| 1271 |
msgstr "一个 _TEXT_ 文件必须短于 16384 行。" |
| 1272 |
|
| 1273 |
#. type: Plain text |
| 1274 |
#: ceccomp.adoc:464 |
| 1275 |
msgid "A _TEXT_ file must be smaller than 4 MiB." |
| 1276 |
msgstr "一个 _TEXT_ 文件必须小于 4 MiB。" |
| 1277 |
|
| 1278 |
#. type: Plain text |
| 1279 |
#: ceccomp.adoc:467 |
| 1280 |
msgid "" |
| 1281 |
"And for both asm and disasm, effective statements (that can be encoded or " |
| 1282 |
"decoded into BPF) must be less or equal than 4096, this is enforced by " |
| 1283 |
"kernel." |
| 1284 |
msgstr "" |
| 1285 |
"并且对于 asm 和 disasm 来说,有效的伪代码(能被编码或解码为 BPF 的)必须少于" |
| 1286 |
"等于 4096 条,这是内核规定的。" |
| 1287 |
|
| 1288 |
#. type: Plain text |
| 1289 |
#: ceccomp.adoc:470 |
| 1290 |
msgid "" |
| 1291 |
"A fun fact about ceccomp asm: any basic ANSI color in _TEXT_ file, e.g., " |
| 1292 |
"`\\x1b[31m`, will be discarded when processing." |
| 1293 |
msgstr "" |
| 1294 |
"一个关于 ceccomp asm 有趣的知识:任何在 _TEXT_ 文件中基本的 ANSI 颜色,例如 " |
| 1295 |
"`\\x1b[31m`,会在处理时被丢弃。" |
| 1296 |
|
| 1297 |
#. type: Title == |
| 1298 |
#: ceccomp.adoc:471 |
| 1299 |
#, no-wrap |
| 1300 |
msgid "EXAMPLES" |
| 1301 |
msgstr "ceccomp 示例" |
| 1302 |
|
| 1303 |
#. type: Plain text |
| 1304 |
#: ceccomp.adoc:476 |
| 1305 |
msgid "" |
| 1306 |
"Manpage can not display images, so please check out html version of this " |
| 1307 |
"page to see examples." |
| 1308 |
msgstr "手册不能显示图片,因此如果想看示例请参阅html版本。" |
| 1309 |
|
| 1310 |
#. type: Title === |
| 1311 |
#: ceccomp.adoc:479 |
| 1312 |
#, no-wrap |
| 1313 |
msgid "asm example" |
| 1314 |
msgstr "asm 示例" |
| 1315 |
|
| 1316 |
#. type: Target for macro image |
| 1317 |
#: ceccomp.adoc:480 |
| 1318 |
#, no-wrap |
| 1319 |
msgid "asm.webp" |
| 1320 |
msgstr "asm.webp" |
| 1321 |
|
| 1322 |
#. type: Title === |
| 1323 |
#: ceccomp.adoc:481 |
| 1324 |
#, no-wrap |
| 1325 |
msgid "disasm example" |
| 1326 |
msgstr "disasm 示例" |
| 1327 |
|
| 1328 |
#. type: Target for macro image |
| 1329 |
#: ceccomp.adoc:482 |
| 1330 |
#, no-wrap |
| 1331 |
msgid "disasm.webp" |
| 1332 |
msgstr "disasm.webp" |
| 1333 |
|
| 1334 |
#. type: Title === |
| 1335 |
#: ceccomp.adoc:483 |
| 1336 |
#, no-wrap |
| 1337 |
msgid "emu example" |
| 1338 |
msgstr "emu 示例" |
| 1339 |
|
| 1340 |
#. type: Target for macro image |
| 1341 |
#: ceccomp.adoc:484 |
| 1342 |
#, no-wrap |
| 1343 |
msgid "emu.webp" |
| 1344 |
msgstr "emu.webp" |
| 1345 |
|
| 1346 |
#. type: Title === |
| 1347 |
#: ceccomp.adoc:485 |
| 1348 |
#, no-wrap |
| 1349 |
msgid "trace example" |
| 1350 |
msgstr "trace 示例" |
| 1351 |
|
| 1352 |
#. type: Plain text |
| 1353 |
#: ceccomp.adoc:487 |
| 1354 |
msgid "Running program:" |
| 1355 |
msgstr "运行程序:" |
| 1356 |
|
| 1357 |
#. type: Target for macro image |
| 1358 |
#: ceccomp.adoc:488 |
| 1359 |
#, no-wrap |
| 1360 |
msgid "trace.webp" |
| 1361 |
msgstr "trace.webp" |
| 1362 |
|
| 1363 |
#. type: Plain text |
| 1364 |
#: ceccomp.adoc:491 |
| 1365 |
msgid "If set `-o FILE`:" |
| 1366 |
msgstr "如果设置了 `-o FILE` :" |
| 1367 |
|
| 1368 |
#. type: Target for macro image |
| 1369 |
#: ceccomp.adoc:492 |
| 1370 |
#, no-wrap |
| 1371 |
msgid "output_trick.webp" |
| 1372 |
msgstr "output_trick.webp" |
| 1373 |
|
| 1374 |
#. type: Plain text |
| 1375 |
#: ceccomp.adoc:495 |
| 1376 |
msgid "Trace pid mode:" |
| 1377 |
msgstr "PID 模式:" |
| 1378 |
|
| 1379 |
#. type: Target for macro image |
| 1380 |
#: ceccomp.adoc:496 |
| 1381 |
#, no-wrap |
| 1382 |
msgid "trace_pid.webp" |
| 1383 |
msgstr "trace_pid.webp" |
| 1384 |
|
| 1385 |
#. type: Plain text |
| 1386 |
#: ceccomp.adoc:499 |
| 1387 |
msgid "Seize pid mode:" |
| 1388 |
msgstr "跟踪 PID 模式:" |
| 1389 |
|
| 1390 |
#. type: Target for macro image |
| 1391 |
#: ceccomp.adoc:500 |
| 1392 |
#, no-wrap |
| 1393 |
msgid "trace_seize.webp" |
| 1394 |
msgstr "trace_seize.webp" |
| 1395 |
|
| 1396 |
#. type: Plain text |
| 1397 |
#: ceccomp.adoc:503 |
| 1398 |
msgid "Completion for pid mode is available under zsh:" |
| 1399 |
msgstr "zsh下PID模式可以使用补全:" |
| 1400 |
|
| 1401 |
#. type: Target for macro image |
| 1402 |
#: ceccomp.adoc:504 |
| 1403 |
#, no-wrap |
| 1404 |
msgid "trace_completion.webp" |
| 1405 |
msgstr "trace_completion.webp" |
| 1406 |
|
| 1407 |
#. type: Title === |
| 1408 |
#: ceccomp.adoc:506 |
| 1409 |
#, no-wrap |
| 1410 |
msgid "probe example" |
| 1411 |
msgstr "probe 示例" |
| 1412 |
|
| 1413 |
#. type: Target for macro image |
| 1414 |
#: ceccomp.adoc:507 |
| 1415 |
#, no-wrap |
| 1416 |
msgid "probe.webp" |
| 1417 |
msgstr "probe.webp" |
| 1418 |
|
| 1419 |
#. type: Title == |
| 1420 |
#: ceccomp.adoc:510 |
| 1421 |
#, no-wrap |
| 1422 |
msgid "REPO" |
| 1423 |
msgstr "仓库" |
| 1424 |
|
| 1425 |
#. type: Plain text |
| 1426 |
#: ceccomp.adoc:514 |
| 1427 |
msgid "" |
| 1428 |
"Visit https://github.com/dbgbgtf1/Ceccomp to find the code. Pull Requests " |
| 1429 |
"and Issues are welcome!" |
| 1430 |
msgstr "" |
| 1431 |
"在 https://github.com/dbgbgtf1/Ceccomp 可以找到源代码。\n" |
| 1432 |
"欢迎提交 Pull Requests 和 Issues !" |
| 1433 |
|
| 1434 |
#. type: Plain text |
| 1435 |
#: ceccomp.adoc:515 |
| 1436 |
msgid "Copyright (C) 2025-present, distributed under GPLv3 or later." |
| 1437 |
msgstr "Copyright (C) 2025-现在,基于 GPLv3 或更新版本分发。" |