Debian Codegraph @

po/ru/man2/ptrace.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "ptrace"
32 msgstr "ptrace"
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-10"
39 msgstr "10 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "ptrace - process trace"
59 msgstr "ptrace - трассировка процесса"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "LIBRARY"
66 msgstr "БИБЛИОТЕКА"
67
68 #. type: Plain text
69 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
70 #: opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "Standard C library (I<libc>,\\ I<-lc>)"
72 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
73
74 #. type: SH
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "SYNOPSIS"
79 msgstr "СИНТАКСИС"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<#include E<lt>sys/ptrace.hE<gt>>\n"
86 msgstr "B<#include E<lt>sys/ptrace.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, fuzzy, no-wrap
92 #| msgid ""
93 #| "B<long ptrace(enum __ptrace_request >I<request>B<, pid_t >I<pid>B<,>\n"
94 #| "B< void *>I<addr>B<, void *>I<data>B<);>\n"
95 msgid ""
96 "B<long ptrace(enum __ptrace_request >I<op>B<, pid_t >I<pid>B<,>\n"
97 "B< void *>I<addr>B<, void *>I<data>B<);>\n"
98 msgstr ""
99 "B<long ptrace(enum __ptrace_request >I<request>B<, pid_t >I<pid>B<,>\n"
100 "B< void *>I<addr>B<, void *>I<data>B<);>\n"
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr "ОПИСАНИЕ"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "The B<ptrace>() system call provides a means by which one process (the "
114 "\"tracer\") may observe and control the execution of another process (the "
115 "\"tracee\"), and examine and change the tracee's memory and registers. It "
116 "is primarily used to implement breakpoint debugging and system call tracing."
117 msgstr ""
118 "Системный вызов B<ptrace>() позволяет указать какому процессу "
119 "(«трассировщику») можно наблюдать и контролировать выполнение другого "
120 "процесса («трассироемого»), просматривать и изменять его память и регистры. "
121 "Обычно, он используется для реализации отладочных точек прерывания и для "
122 "отслеживания системных вызовов."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "A tracee first needs to be attached to the tracer. Attachment and "
129 "subsequent commands are per thread: in a multithreaded process, every thread "
130 "can be individually attached to a (potentially different) tracer, or left "
131 "not attached and thus not debugged. Therefore, \"tracee\" always means "
132 "\"(one) thread\", never \"a (possibly multithreaded) process\". Ptrace "
133 "commands are always sent to a specific tracee using a call of the form"
134 msgstr ""
135 "Сначала, трассировщик должен присоединиться к трассируемой нити. "
136 "Присоединение и последующие команды выполняются для нитей: в многонитевом "
137 "процессе трассировщик может подключаться как к каждой нити (трассировщики "
138 "могут быть у разных нитей разными), так и не подключаться к некоторым нитям "
139 "вовсе. Поэтому на самом деле «трассируемая нить» всегда означает «(одну) "
140 "нить», а не «процесс в целом (возможно многонитевой)». Команды ptrace всегда "
141 "посылаются определённой трассируемой нити с помощью вызова"
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "ptrace(PTRACE_foo, pid, ...)\n"
148 msgstr "ptrace(PTRACE_foo, pid, …)\n"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid "where I<pid> is the thread ID of the corresponding Linux thread."
154 msgstr "где I<pid> — идентификатор соответствующей нити Linux."
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "(Note that in this page, a \"multithreaded process\" means a thread group "
161 "consisting of threads created using the B<clone>(2) B<CLONE_THREAD> flag.)"
162 msgstr ""
163 "Заметим, что в этой странице «многонитевой процесс» означает группу нитей, "
164 "состоящую из нитей, созданных с помощью B<clone>(2) с флагом B<CLONE_THREAD>."
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "A process can initiate a trace by calling B<fork>(2) and having the "
171 "resulting child do a B<PTRACE_TRACEME>, followed (typically) by an "
172 "B<execve>(2). Alternatively, one process may commence tracing another "
173 "process using B<PTRACE_ATTACH> or B<PTRACE_SEIZE>."
174 msgstr ""
175 "Процесс может начать трассировку с вызова B<fork>(2), в получившемся "
176 "дочернем процессе выполнить действие B<PTRACE_TRACEME>, после чего (обычно) "
177 "выполнить B<execve>(2). Или же один процесс может начать отладку другого "
178 "процесса при помощи B<PTRACE_ATTACH> или B<PTRACE_SEIZE>."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, fuzzy
184 #| msgid ""
185 #| "While being traced, the tracee will stop each time a signal is delivered, "
186 #| "even if the signal is being ignored. (An exception is B<SIGKILL>, which "
187 #| "has its usual effect.) The tracer will be notified at its next call to "
188 #| "B<waitpid>(2) (or one of the related \"wait\" system calls); that call "
189 #| "will return a I<status> value containing information that indicates the "
190 #| "cause of the stop in the tracee. While the tracee is stopped, the tracer "
191 #| "can use various ptrace requests to inspect and modify the tracee. The "
192 #| "tracer then causes the tracee to continue, optionally ignoring the "
193 #| "delivered signal (or even delivering a different signal instead)."
194 msgid ""
195 "While being traced, the tracee will stop each time a signal is delivered, "
196 "even if the signal is being ignored. (An exception is B<SIGKILL>, which has "
197 "its usual effect.) The tracer will be notified at its next call to "
198 "B<waitpid>(2) (or one of the related \"wait\" system calls); that call will "
199 "return a I<status> value containing information that indicates the cause of "
200 "the stop in the tracee. While the tracee is stopped, the tracer can use "
201 "various ptrace operations to inspect and modify the tracee. The tracer then "
202 "causes the tracee to continue, optionally ignoring the delivered signal (or "
203 "even delivering a different signal instead)."
204 msgstr ""
205 "При трассировке трассируемая нить останавливается каждый раз при получении "
206 "сигнала, даже если этот сигнал игнорируется (исключением является "
207 "B<SIGKILL>, работающий обычным образом). Трассировщик будет уведомлён об "
208 "этом при следующем вызове B<waitpid>(2) (или подобном «ожидающем» системном "
209 "вызове); этот вызов вернёт значение I<status>, в котором содержится "
210 "информация, указывающая на причину остановки трассируемой нити. Так как "
211 "трассируемая нить остановлена, трассировщик может использовать различные "
212 "запросы ptrace для обследования и изменения трассируемой нити. По окончании "
213 "трассировщик разрешает трассируемой нити продолжить работу, возможно "
214 "подавляя посылаемый ему сигнал (или даже отправляя вместо него другой "
215 "сигнал)."
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "If the B<PTRACE_O_TRACEEXEC> option is not in effect, all successful calls "
222 "to B<execve>(2) by the traced process will cause it to be sent a B<SIGTRAP> "
223 "signal, giving the parent a chance to gain control before the new program "
224 "begins execution."
225 msgstr ""
226 "Если флаг B<PTRACE_O_TRACEEXEC> не действует, то все успешные вызовы "
227 "B<execve>(2) трассируемой нитью будут приводить к отправки сигнала "
228 "B<SIGTRAP>, давая таким образом родителю шанс перехватить управление до "
229 "того, как начнёт выполняться новая программа."
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "When the tracer is finished tracing, it can cause the tracee to continue "
236 "executing in a normal, untraced mode via B<PTRACE_DETACH>."
237 msgstr ""
238 "По окончании трассировки трассировщик может заставить трассируемую нить "
239 "продолжить свою работу в обычном не трассируемом режиме с помощью "
240 "B<PTRACE_DETACH>."
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, fuzzy
246 #| msgid "The value of I<request> determines the action to be performed:"
247 msgid "The value of I<op> determines the operation to be performed:"
248 msgstr "Значение аргумента I<request> определяет выполняемое действие:"
249
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<PTRACE_TRACEME>"
255 msgstr "B<PTRACE_TRACEME>"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, fuzzy
261 #| msgid ""
262 #| "Indicate that this process is to be traced by its parent. A process "
263 #| "probably shouldn't make this request if its parent isn't expecting to "
264 #| "trace it. (I<pid>, I<addr>, and I<data> are ignored.)"
265 msgid ""
266 "Indicate that this process is to be traced by its parent. A process "
267 "probably shouldn't make this operation if its parent isn't expecting to "
268 "trace it. (I<pid>, I<addr>, and I<data> are ignored.)"
269 msgstr ""
270 "Указывает, что этот процесс будет трассирован своим родительским процессом. "
271 "Вероятно, процессу не следует посылать этот запрос, если родительский "
272 "процесс не готов к трассировке (аргументы I<pid>, I<addr> и I<data> "
273 "игнорируются)."
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, fuzzy
279 #| msgid ""
280 #| "The B<PTRACE_TRACEME> request is used only by the tracee; the remaining "
281 #| "requests are used only by the tracer. In the following requests, I<pid> "
282 #| "specifies the thread ID of the tracee to be acted on. For requests other "
283 #| "than B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, B<PTRACE_INTERRUPT>, and "
284 #| "B<PTRACE_KILL>, the tracee must be stopped."
285 msgid ""
286 "The B<PTRACE_TRACEME> operation is used only by the tracee; the remaining "
287 "operations are used only by the tracer. In the following operations, I<pid> "
288 "specifies the thread ID of the tracee to be acted on. For operations other "
289 "than B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, B<PTRACE_INTERRUPT>, and "
290 "B<PTRACE_KILL>, the tracee must be stopped."
291 msgstr ""
292 "Действие B<PTRACE_TRACEME> используется только в трассируемой нити; "
293 "остальные действия предназначены только для трассировщика. Для значений, "
294 "описанных ниже, в параметре I<pid> задаётся идентификатор трассируемой нити, "
295 "над которой будет производиться действие. Перед выполнением действий (кроме "
296 "B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, B<PTRACE_INTERRUPT> и B<PTRACE_KILL>) "
297 "трассируемая нить должна быть остановлена."
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, fuzzy, no-wrap
303 #| msgid "B<PTRACE_EVENT_EXIT>"
304 msgid "B<PTRACE_PEEKTEXT>"
305 msgstr "B<PTRACE_EVENT_EXIT>"
306
307 #. type: TQ
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, fuzzy, no-wrap
311 #| msgid "B<PTRACE_PEEKUSER>"
312 msgid "B<PTRACE_PEEKDATA>"
313 msgstr "B<PTRACE_PEEKUSER>"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, fuzzy
319 #| msgid ""
320 #| "Read a word at the address I<addr> in the tracee's memory, returning the "
321 #| "word as the result of the B<ptrace>() call. Linux does not have "
322 #| "separate text and data address spaces, so these two requests are "
323 #| "currently equivalent. (I<data> is ignored; but see NOTES.)"
324 msgid ""
325 "Read a word at the address I<addr> in the tracee's memory, returning the "
326 "word as the result of the B<ptrace>() call. Linux does not have separate "
327 "text and data address spaces, so these two operations are currently "
328 "equivalent. (I<data> is ignored; but see NOTES.)"
329 msgstr ""
330 "Читает слово по адресу I<addr>, находящееся в памяти трассируемой нити, "
331 "возвращая это слово как результат вызова B<ptrace>() Linux не разделяет "
332 "адресные пространства текста и данных, поэтому оба вызова абсолютно "
333 "идентичны (значение I<data> игнорируется; но смотрите ЗАМЕЧАНИЯ)."
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "B<PTRACE_PEEKUSER>"
340 msgstr "B<PTRACE_PEEKUSER>"
341
342 #. PTRACE_PEEKUSR in kernel source, but glibc uses PTRACE_PEEKUSER,
343 #. and that is the name that seems common on other systems.
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "Read a word at offset I<addr> in the tracee's USER area, which holds the "
349 "registers and other information about the process (see I<E<lt>sys/"
350 "user.hE<gt>>). The word is returned as the result of the B<ptrace>() "
351 "call. Typically, the offset must be word-aligned, though this might vary by "
352 "architecture. See NOTES. (I<data> is ignored; but see NOTES.)"
353 msgstr ""
354 "Читает слово по смещению I<addr> из области USER трассируемой нити, которая "
355 "содержит информацию о регистрах и процессе (смотрите I<E<lt>sys/"
356 "userhE<gt>>). Слово возвращается в качестве результата вызова B<ptrace>(). "
357 "Обычно, смещение должно быть выровнено по границе слова, хотя это может "
358 "зависеть от архитектуры системы. Смотрите ЗАМЕЧАНИЯ (значение I<data> "
359 "игнорируется; но смотрите ЗАМЕЧАНИЯ)."
360
361 #. type: TP
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, fuzzy, no-wrap
365 #| msgid "B<PTRACE_POKEUSER>"
366 msgid "B<PTRACE_POKETEXT>"
367 msgstr "B<PTRACE_POKEUSER>"
368
369 #. type: TQ
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, fuzzy, no-wrap
373 #| msgid "B<PTRACE_POKEUSER>"
374 msgid "B<PTRACE_POKEDATA>"
375 msgstr "B<PTRACE_POKEUSER>"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, fuzzy
381 #| msgid ""
382 #| "Copy the word I<data> to the address I<addr> in the tracee's memory. As "
383 #| "for B<PTRACE_PEEKTEXT> and B<PTRACE_PEEKDATA>, these two requests are "
384 #| "currently equivalent."
385 msgid ""
386 "Copy the word I<data> to the address I<addr> in the tracee's memory. As for "
387 "B<PTRACE_PEEKTEXT> and B<PTRACE_PEEKDATA>, these two operations are "
388 "currently equivalent."
389 msgstr ""
390 "Копирует слово I<data> в память трассируемой нити по адресу I<addr>. В "
391 "настоящее время, как и для B<PTRACE_PEEKTEXT> и B<PTRACE_PEEKDATA>, эти два "
392 "действия одинаковы."
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<PTRACE_POKEUSER>"
399 msgstr "B<PTRACE_POKEUSER>"
400
401 #. PTRACE_POKEUSR in kernel source, but glibc uses PTRACE_POKEUSER,
402 #. and that is the name that seems common on other systems.
403 #. FIXME In the preceding sentence, which modifications are disallowed,
404 #. and when they are disallowed, how does user space discover that fact?
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid ""
409 "Copy the word I<data> to offset I<addr> in the tracee's USER area. As for "
410 "B<PTRACE_PEEKUSER>, the offset must typically be word-aligned. In order to "
411 "maintain the integrity of the kernel, some modifications to the USER area "
412 "are disallowed."
413 msgstr ""
414 "Копирует слово I<data> по смещению I<addr> в область USER трассирумой нити. "
415 "Как и для B<PTRACE_PEEKUSER>, смещение должно быть выровнено по границе "
416 "слова. Для того, чтобы сохранить целостность ядра, некоторые изменения в "
417 "область USER вносить запрещено."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, fuzzy, no-wrap
423 #| msgid "B<PTRACE_TRACEME>"
424 msgid "B<PTRACE_GETREGS>"
425 msgstr "B<PTRACE_TRACEME>"
426
427 #. type: TQ
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, fuzzy, no-wrap
431 #| msgid "B<PTRACE_MODE_FSCREDS>"
432 msgid "B<PTRACE_GETFPREGS>"
433 msgstr "B<PTRACE_MODE_FSCREDS>"
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid ""
439 "Copy the tracee's general-purpose or floating-point registers, respectively, "
440 "to the address I<data> in the tracer. See I<E<lt>sys/user.hE<gt>> for "
441 "information on the format of this data. (I<addr> is ignored.) Note that "
442 "SPARC systems have the meaning of I<data> and I<addr> reversed; that is, "
443 "I<data> is ignored and the registers are copied to the address I<addr>. "
444 "B<PTRACE_GETREGS> and B<PTRACE_GETFPREGS> are not present on all "
445 "architectures."
446 msgstr ""
447 "Копирует, соответственно, регистры общего назначения или регистры "
448 "сопроцессора трассируемой нити в память трассировщика по адресу I<data>. "
449 "Формат передаваемой структуры описан в файле I<E<lt>sys/user.hE<gt>> "
450 "(значение I<addr> игнорируется). Заметим, что в системах SPARC "
451 "предназначение I<data> и I<addr> поменяны местами; то есть I<data> "
452 "игнорируется, а регистры копируются по адресу I<addr>. B<PTRACE_GETREGS> и "
453 "B<PTRACE_GETFPREGS> есть не на всех архитектурах."
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<PTRACE_GETREGSET> (since Linux 2.6.34)"
460 msgstr "B<PTRACE_GETREGSET> (начиная с Linux 2.6.34)"
461
462 #. type: Plain text
463 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
464 #: opensuse-leap-16-1 opensuse-tumbleweed
465 #, fuzzy
466 #| msgid ""
467 #| "Read the tracee's registers. I<addr> specifies, in an architecture-"
468 #| "dependent way, the type of registers to be read. B<NT_PRSTATUS> (with "
469 #| "numerical value 1) usually results in reading of general-purpose "
470 #| "registers. If the CPU has, for example, floating-point and/or vector "
471 #| "registers, they can be retrieved by setting I<addr> to the corresponding "
472 #| "B<NT_foo> constant. I<data> points to a B<struct iovec>, which describes "
473 #| "the destination buffer's location and length. On return, the kernel "
474 #| "modifies B<iov.len> to indicate the actual number of bytes returned."
475 msgid ""
476 "Read the tracee's registers. I<addr> specifies, in an architecture-"
477 "dependent way, the type of registers to be read. B<NT_PRSTATUS> (with "
478 "numerical value 1) usually results in reading of general-purpose "
479 "registers. If the CPU has, for example, floating-point and/or vector "
480 "registers, they can be retrieved by setting I<addr> to the corresponding "
481 "B<NT_foo> constant. I<data> points to a B<struct iovec>, which describes "
482 "the destination buffer's location and size. On return, the kernel modifies "
483 "B<iov.len> to indicate the actual number of bytes returned."
484 msgstr ""
485 "Читает регистры трассируемой нити. В I<addr> указывается, в зависящей от "
486 "архитектуры форме, тип читаемых регистров. Значение B<NT_PRSTATUS> (равно 1) "
487 "обычно служит для чтения регистров общего назначения. Если в ЦП есть, "
488 "например, векторные регистры и для плавающей запятой, то их можно получить "
489 "назначив I<addr> соответствующую константу B<NT_foo>. Значение I<data> "
490 "указывает на B<struct iovec>, которая описывает расположение буфера "
491 "назначения и длину. При возврате ядро изменяет B<iov.len>, возвращая "
492 "реальное количество возвращаемых байт."
493
494 #. type: TP
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, fuzzy, no-wrap
498 #| msgid "B<PTRACE_TRACEME>"
499 msgid "B<PTRACE_SETREGS>"
500 msgstr "B<PTRACE_TRACEME>"
501
502 #. type: TQ
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 #, fuzzy, no-wrap
506 #| msgid "B<PTRACE_MODE_FSCREDS>"
507 msgid "B<PTRACE_SETFPREGS>"
508 msgstr "B<PTRACE_MODE_FSCREDS>"
509
510 #. FIXME . In the preceding sentence, which modifications are disallowed,
511 #. and when they are disallowed, how does user space discover that fact?
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid ""
516 "Modify the tracee's general-purpose or floating-point registers, "
517 "respectively, from the address I<data> in the tracer. As for "
518 "B<PTRACE_POKEUSER>, some general-purpose register modifications may be "
519 "disallowed. (I<addr> is ignored.) Note that SPARC systems have the meaning "
520 "of I<data> and I<addr> reversed; that is, I<data> is ignored and the "
521 "registers are copied from the address I<addr>. B<PTRACE_SETREGS> and "
522 "B<PTRACE_SETFPREGS> are not present on all architectures."
523 msgstr ""
524 "Копирует, соответственно, регистры общего назначения или регистры для "
525 "плавающей запятой трассируемой нити из памяти трассировщика по адресу "
526 "I<data>. Как и в случае c B<PTRACE_POKEUSER>, изменения некоторых регистров "
527 "общего назначения запрещены (значение I<addr> игнорируется). Заметим, что в "
528 "системах SPARC предназначение I<data> и I<addr> переставлены местами; то "
529 "есть I<data> игнорируется, а регистры копируются из памяти, на которую "
530 "указывает адрес I<addr>. B<PTRACE_SETREGS> и B<PTRACE_SETFPREGS> есть не для "
531 "всех архитектур."
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "B<PTRACE_SETREGSET> (since Linux 2.6.34)"
538 msgstr "B<PTRACE_SETREGSET> (начиная с Linux 2.6.34)"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "Modify the tracee's registers. The meaning of I<addr> and I<data> is "
545 "analogous to B<PTRACE_GETREGSET>."
546 msgstr ""
547 "Изменяет регистры трассируемой нити. Значение I<addr> и I<data> аналогичны "
548 "B<PTRACE_GETREGSET>."
549
550 #. type: TP
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "B<PTRACE_GETSIGINFO> (since Linux 2.3.99-pre6)"
555 msgstr "B<PTRACE_GETSIGINFO> (начиная с Linux 2.3.99-pre6)"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "Retrieve information about the signal that caused the stop. Copy a "
562 "I<siginfo_t> structure (see B<sigaction>(2)) from the tracee to the address "
563 "I<data> in the tracer. (I<addr> is ignored.)"
564 msgstr ""
565 "Получает информацию о сигнале, который вызвал остановку. Копирует структуру "
566 "I<siginfo_t> (смотрите B<sigaction>(2)) из трассируемой нити в память "
567 "трассировщика по адресу I<data> (значение I<addr> игнорируется)."
568
569 #. type: TP
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "B<PTRACE_SETSIGINFO> (since Linux 2.3.99-pre6)"
574 msgstr "B<PTRACE_SETSIGINFO> (начиная с Linux 2.3.99-pre6)"
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid ""
580 "Set signal information: copy a I<siginfo_t> structure from the address "
581 "I<data> in the tracer to the tracee. This will affect only signals that "
582 "would normally be delivered to the tracee and were caught by the tracer. It "
583 "may be difficult to tell these normal signals from synthetic signals "
584 "generated by B<ptrace>() itself. (I<addr> is ignored.)"
585 msgstr ""
586 "Устанавливает информацию о сигнале. Копирует структуру I<siginfo_t>, "
587 "расположенную по адресу I<data> трассировщика, в память трассируемой нити. "
588 "Влияет только на сигналы, которые обычно были бы доставлены трассируемой "
589 "нити и были пойманы трассировщиком. Затруднительно отличить обычные сигналы "
590 "от созданных самим B<ptrace>() (значение I<addr> игнорируется)."
591
592 #. type: TP
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "B<PTRACE_PEEKSIGINFO> (since Linux 3.10)"
597 msgstr "B<PTRACE_PEEKSIGINFO> (начиная с Linux 3.10)"
598
599 #. commit 84c751bd4aebbaae995fe32279d3dba48327bad4
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "Retrieve I<siginfo_t> structures without removing signals from a queue. "
605 "I<addr> points to a I<ptrace_peeksiginfo_args> structure that specifies the "
606 "ordinal position from which copying of signals should start, and the number "
607 "of signals to copy. I<siginfo_t> structures are copied into the buffer "
608 "pointed to by I<data>. The return value contains the number of copied "
609 "signals (zero indicates that there is no signal corresponding to the "
610 "specified ordinal position). Within the returned I<siginfo> structures, the "
611 "I<si_code> field includes information (B<__SI_CHLD>, B<__SI_FAULT>, etc.) "
612 "that are not otherwise exposed to user space."
613 msgstr ""
614 "Получает структуры I<siginfo_t> не удаляя сигналы из очереди. Значение "
615 "I<addr> указывает на структуру I<ptrace_peeksiginfo_args>, которая задаёт "
616 "начальную позицию, из которой нужно начать копирование сигналов, а также их "
617 "количество. Структуры I<siginfo_t> копируются в буфер, указываемый в "
618 "I<data>. Возвращаемое значение содержит количество скопированных сигналов "
619 "(ноль означает, что сигналов в указанной позиции нет). Внутри возвращаемых "
620 "структур I<siginfo> в поле I<si_code> включается информация (B<__SI_CHLD>, "
621 "B<__SI_FAULT> и т. д.), которая по-другому никак не выдаётся в "
622 "пользовательское пространство."
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 #, no-wrap
628 msgid ""
629 "struct ptrace_peeksiginfo_args {\n"
630 " u64 off; /* Ordinal position in queue at which\n"
631 " to start copying signals */\n"
632 " u32 flags; /* PTRACE_PEEKSIGINFO_SHARED or 0 */\n"
633 " s32 nr; /* Number of signals to copy */\n"
634 "};\n"
635 msgstr ""
636 "struct ptrace_peeksiginfo_args {\n"
637 " u64 off; /* начальная позиция в очереди, с которой\n"
638 " начинается копирование сигналов */\n"
639 " u32 flags; /* PTRACE_PEEKSIGINFO_SHARED или 0 */\n"
640 " s32 nr; /* количество копируемых сигналов */\n"
641 "};\n"
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid ""
647 "Currently, there is only one flag, B<PTRACE_PEEKSIGINFO_SHARED>, for dumping "
648 "signals from the process-wide signal queue. If this flag is not set, "
649 "signals are read from the per-thread queue of the specified thread."
650 msgstr ""
651 "В настоящее время определён только один флаг, B<PTRACE_PEEKSIGINFO_SHARED>, "
652 "служащий для выборки сигналов из общей очереди сигналов процессов. Если этот "
653 "флаг не указан, то сигналы читаются из очереди указанной нити."
654
655 #. type: TP
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 #, no-wrap
659 msgid "B<PTRACE_GETSIGMASK> (since Linux 3.11)"
660 msgstr "B<PTRACE_GETSIGMASK> (начиная с Linux 3.11)"
661
662 #. commit 29000caecbe87b6b66f144f72111f0d02fbbf0c1
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "Place a copy of the mask of blocked signals (see B<sigprocmask>(2)) in the "
668 "buffer pointed to by I<data>, which should be a pointer to a buffer of type "
669 "I<sigset_t>. The I<addr> argument contains the size of the buffer pointed "
670 "to by I<data> (i.e., I<sizeof(sigset_t)>)."
671 msgstr ""
672 "Помещает копию маски блокированных сигналов (смотрите B<sigprocmask>(2)) в "
673 "буфер, указанный в I<data> (должен быть указателем на буфер с типом "
674 "I<sigset_t>). Аргумент I<addr> содержит размер буфера, указанного в I<data> "
675 "(т. е. I<sizeof(sigset_t)>)."
676
677 #. type: TP
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "B<PTRACE_SETSIGMASK> (since Linux 3.11)"
682 msgstr "B<PTRACE_SETSIGMASK> (начиная с Linux 3.11)"
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid ""
688 "Change the mask of blocked signals (see B<sigprocmask>(2)) to the value "
689 "specified in the buffer pointed to by I<data>, which should be a pointer to "
690 "a buffer of type I<sigset_t>. The I<addr> argument contains the size of the "
691 "buffer pointed to by I<data> (i.e., I<sizeof(sigset_t)>)."
692 msgstr ""
693 "Изменяет маску блокированных сигналов (смотрите B<sigprocmask>(2)) на "
694 "значение из буфера, указанного в I<data> (должен быть указателем на буфер с "
695 "типом I<sigset_t>). Аргумент I<addr> содержит размер буфера, указанного в "
696 "I<data> (т. е. I<sizeof(sigset_t)>)."
697
698 #. type: TP
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "B<PTRACE_SETOPTIONS> (since Linux 2.4.6; see BUGS for caveats)"
703 msgstr "B<PTRACE_SETOPTIONS> (начиная с Linux 2.4.6; см. предостережения в разделе ДЕФЕКТЫ)"
704
705 #. type: Plain text
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 msgid ""
709 "Set ptrace options from I<data>. (I<addr> is ignored.) I<data> is "
710 "interpreted as a bit mask of options, which are specified by the following "
711 "flags:"
712 msgstr ""
713 "Устанавливает флаги ptrace из I<data> (значение I<addr> игнорируется). "
714 "Значение I<data> воспринимается как битовая маска, в которой задаются "
715 "следующие флаги:"
716
717 #. type: TP
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 #, no-wrap
721 msgid "B<PTRACE_O_EXITKILL> (since Linux 3.8)"
722 msgstr "B<PTRACE_O_EXITKILL> (начиная с Linux 3.8)"
723
724 #. commit 992fb6e170639b0849bace8e49bf31bd37c4123
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid ""
729 "Send a B<SIGKILL> signal to the tracee if the tracer exits. This option is "
730 "useful for ptrace jailers that want to ensure that tracees can never escape "
731 "the tracer's control."
732 msgstr ""
733 "Посылать сигнал B<SIGKILL> трассируемому, если трассировщик существует. Этот "
734 "параметр полезен для надзирателей ptrace, которые хотят убедиться, что "
735 "трассируемые никогда не выйдут из-под контроля трассировщика."
736
737 #. type: TP
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 #, no-wrap
741 msgid "B<PTRACE_O_TRACECLONE> (since Linux 2.5.46)"
742 msgstr "B<PTRACE_O_TRACECLONE> (начиная с Linux 2.5.46)"
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "Stop the tracee at the next B<clone>(2) and automatically start tracing the "
749 "newly cloned process, which will start with a B<SIGSTOP>, or "
750 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
751 "tracer will return a I<status> value such that"
752 msgstr ""
753 "Останавливать трассируемую нить при следующем вызове B<clone>(2) и "
754 "автоматически запускать трассировку только что склонированного процесса, "
755 "который начнёт выполнение с обработки сигнала B<SIGSTOP> или "
756 "B<PTRACE_EVENT_STOP>, если используется B<PTRACE_SEIZE>. Вызов B<waitpid>(2) "
757 "вернёт трассировщику значение I<status>, которое равно"
758
759 #. type: Plain text
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_CLONEE<lt>E<lt>8))\n"
764 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_CLONEE<lt>E<lt>8))\n"
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid "The PID of the new process can be retrieved with B<PTRACE_GETEVENTMSG>."
770 msgstr ""
771 "Значение PID нового процесса можно получить с помощью B<PTRACE_GETEVENTMSG>."
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid ""
777 "This option may not catch B<clone>(2) calls in all cases. If the tracee "
778 "calls B<clone>(2) with the B<CLONE_VFORK> flag, B<PTRACE_EVENT_VFORK> will "
779 "be delivered instead if B<PTRACE_O_TRACEVFORK> is set; otherwise if the "
780 "tracee calls B<clone>(2) with the exit signal set to B<SIGCHLD>, "
781 "B<PTRACE_EVENT_FORK> will be delivered if B<PTRACE_O_TRACEFORK> is set."
782 msgstr ""
783 "В некоторых случаях вызовы B<clone>(2) могут быть не пойманы. Если "
784 "трассируемая нить вызывает B<clone>(2) с флагом B<CLONE_VFORK>, то будет "
785 "доставлен B<PTRACE_EVENT_VFORK>, если установлен B<PTRACE_O_TRACEVFORK>; в "
786 "противном случае, если трассируемая нить вызывает B<clone>(2) с "
787 "установленным сигналом выхода равным B<SIGCHLD>, то будет доставлен "
788 "B<PTRACE_EVENT_FORK>, если установлен B<PTRACE_O_TRACEFORK>."
789
790 #. type: TP
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid "B<PTRACE_O_TRACEEXEC> (since Linux 2.5.46)"
795 msgstr "B<PTRACE_O_TRACEEXEC> (начиная с Linux 2.5.46)"
796
797 #. type: Plain text
798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
800 msgid ""
801 "Stop the tracee at the next B<execve>(2). A B<waitpid>(2) by the tracer "
802 "will return a I<status> value such that"
803 msgstr ""
804 "Останавливать трассируемую нить при следующем вызове B<execve>(). Вызов "
805 "B<waitpid>(2) вернёт трассировщику значение I<status>, которое равно"
806
807 #. type: Plain text
808 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
809 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
810 #, no-wrap
811 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXECE<lt>E<lt>8))\n"
812 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXECE<lt>E<lt>8))\n"
813
814 #. type: Plain text
815 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
816 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
817 msgid ""
818 "If the execing thread is not a thread group leader, the thread ID is reset "
819 "to thread group leader's ID before this stop. Since Linux 3.0, the former "
820 "thread ID can be retrieved with B<PTRACE_GETEVENTMSG>."
821 msgstr ""
822 "Если исполняемая нить не является лидером группы нитей, то идентификатор "
823 "нити сбрасывается в значение идентификатора лидера группы нитей перед его "
824 "остановкой. Начиная с Linux 3.0, предыдущий идентификатор нити может быть "
825 "получен с помощью B<PTRACE_GETEVENTMSG>."
826
827 #. type: TP
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 #, no-wrap
831 msgid "B<PTRACE_O_TRACEEXIT> (since Linux 2.5.60)"
832 msgstr "B<PTRACE_O_TRACEEXIT> (начиная с Linux 2.5.60)"
833
834 #. type: Plain text
835 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
836 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
837 msgid ""
838 "Stop the tracee at exit. A B<waitpid>(2) by the tracer will return a "
839 "I<status> value such that"
840 msgstr ""
841 "Останавливать трассируемую нить при его завершении (exit). Вызов "
842 "B<waitpid>() вернёт трассировщику значение I<status>, которое равно"
843
844 #. type: Plain text
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 #, no-wrap
848 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXITE<lt>E<lt>8))\n"
849 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXITE<lt>E<lt>8))\n"
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid "The tracee's exit status can be retrieved with B<PTRACE_GETEVENTMSG>."
855 msgstr ""
856 "Значение кода завершения трассируемой нити можно получить с помощью "
857 "B<PTRACE_GETEVENTMSG>."
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid ""
863 "The tracee is stopped early during process exit, when registers are still "
864 "available, allowing the tracer to see where the exit occurred, whereas the "
865 "normal exit notification is done after the process is finished exiting. "
866 "Even though context is available, the tracer cannot prevent the exit from "
867 "happening at this point."
868 msgstr ""
869 "Остановка трассируемой нити будет выполнена в начальный момент завершения, "
870 "когда ещё доступны регистры, что позволяет трассировщику увидеть откуда "
871 "выполнялось завершение (обычное уведомление о завершении выполняется после "
872 "того как процесс уже завершил работу). Хотя в этот момент ещё доступен "
873 "контекст, трассировщик уже не может предотвратить завершение."
874
875 #. type: TP
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "B<PTRACE_O_TRACEFORK> (since Linux 2.5.46)"
880 msgstr "B<PTRACE_O_TRACEFORK> (начиная с Linux 2.5.46)"
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "Stop the tracee at the next B<fork>(2) and automatically start tracing the "
887 "newly forked process, which will start with a B<SIGSTOP>, or "
888 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
889 "tracer will return a I<status> value such that"
890 msgstr ""
891 "Останавливать трассируемую нить при следующем вызове B<fork>(2) и "
892 "автоматически запускать трассировку только что созданного с помощью fork "
893 "процесса, который начнёт выполнение с обработки сигнала B<SIGSTOP> или "
894 "B<PTRACE_EVENT_STOP>, если используется B<PTRACE_SEIZE>. Вызов B<waitpid>(2) "
895 "вернёт трассировщику значение I<status>, которое равно"
896
897 #. type: Plain text
898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
900 #, no-wrap
901 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_FORKE<lt>E<lt>8))\n"
902 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_FORKE<lt>E<lt>8))\n"
903
904 #. type: TP
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 #, no-wrap
908 msgid "B<PTRACE_O_TRACESYSGOOD> (since Linux 2.4.6)"
909 msgstr "B<PTRACE_O_TRACESYSGOOD> (начиная с Linux 2.4.6)"
910
911 #. type: Plain text
912 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
913 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
914 msgid ""
915 "When delivering system call traps, set bit 7 in the signal number (i.e., "
916 "deliver I<SIGTRAP|0x80>). This makes it easy for the tracer to distinguish "
917 "normal traps from those caused by a system call."
918 msgstr ""
919 "При доставке сигналов ловушек системных вызовов, устанавливать бит 7 в "
920 "номере сигнала (т. е., доставляется I<SIGTRAP|0x80>). Это позволяет "
921 "трассировщику легко отличить обычные ловушки от тех, которые были вызваны "
922 "системным вызовом."
923
924 #. type: TP
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 #, no-wrap
928 msgid "B<PTRACE_O_TRACEVFORK> (since Linux 2.5.46)"
929 msgstr "B<PTRACE_O_TRACEVFORK> (начиная с Linux 2.5.46)"
930
931 #. type: Plain text
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 msgid ""
935 "Stop the tracee at the next B<vfork>(2) and automatically start tracing the "
936 "newly vforked process, which will start with a B<SIGSTOP>, or "
937 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
938 "tracer will return a I<status> value such that"
939 msgstr ""
940 "Останавливать трассируемую нить при следующем вызове B<vfork>(2) и "
941 "автоматически запускать трассировку только что созданного с помощью vfork "
942 "процесса, который начнёт выполнение с обработки сигнала B<SIGSTOP> или "
943 "B<PTRACE_EVENT_STOP>, если используется B<PTRACE_SEIZE>. Вызов B<waitpid>(2) "
944 "вернёт трассировщику значение I<status>, которое равно"
945
946 #. type: Plain text
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 #, no-wrap
950 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORKE<lt>E<lt>8))\n"
951 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORKE<lt>E<lt>8))\n"
952
953 #. type: TP
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 #, no-wrap
957 msgid "B<PTRACE_O_TRACEVFORKDONE> (since Linux 2.5.60)"
958 msgstr "B<PTRACE_O_TRACEVFORKDONE> (начиная с Linux 2.5.60)"
959
960 #. type: Plain text
961 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
962 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
963 msgid ""
964 "Stop the tracee at the completion of the next B<vfork>(2). A B<waitpid>(2) "
965 "by the tracer will return a I<status> value such that"
966 msgstr ""
967 "Останавливать трассируемую нить при следующем вызове B<vfork>(2). Вызов "
968 "B<waitpid>(2) вернёт трассировщику значение I<status>, которое равно"
969
970 #. type: Plain text
971 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
972 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
973 #, no-wrap
974 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORK_DONEE<lt>E<lt>8))\n"
975 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORK_DONEE<lt>E<lt>8))\n"
976
977 #. type: Plain text
978 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
979 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
980 msgid ""
981 "The PID of the new process can (since Linux 2.6.18) be retrieved with "
982 "B<PTRACE_GETEVENTMSG>."
983 msgstr ""
984 "Значение PID нового процесса можно получить (начиная с Linux 2.6.18) с "
985 "помощью B<PTRACE_GETEVENTMSG>."
986
987 #. type: TP
988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
990 #, no-wrap
991 msgid "B<PTRACE_O_TRACESECCOMP> (since Linux 3.5)"
992 msgstr "B<PTRACE_O_TRACESECCOMP> (начиная с Linux 3.5)"
993
994 #. type: Plain text
995 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
996 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
997 msgid ""
998 "Stop the tracee when a B<seccomp>(2) B<SECCOMP_RET_TRACE> rule is "
999 "triggered. A B<waitpid>(2) by the tracer will return a I<status> value "
1000 "such that"
1001 msgstr ""
1002 "Останавливать трассируемую нить при возникновении правила B<seccomp>(2) "
1003 "B<SECCOMP_RET_TRACE>. Вызов B<waitpid>(2) вернёт трассировщику значение "
1004 "I<status>, которое равно"
1005
1006 #. type: Plain text
1007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1009 #, no-wrap
1010 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_SECCOMPE<lt>E<lt>8))\n"
1011 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_SECCOMPE<lt>E<lt>8))\n"
1012
1013 #. type: Plain text
1014 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1015 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1016 msgid ""
1017 "While this triggers a B<PTRACE_EVENT> stop, it is similar to a syscall-enter-"
1018 "stop. For details, see the note on B<PTRACE_EVENT_SECCOMP> below. The "
1019 "seccomp event message data (from the B<SECCOMP_RET_DATA> portion of the "
1020 "seccomp filter rule) can be retrieved with B<PTRACE_GETEVENTMSG>."
1021 msgstr ""
1022 "Так как это останавливает B<PTRACE_EVENT>, это похоже на syscall-enter-stop. "
1023 "Дополнительную информацию смотрите в замечании к B<PTRACE_EVENT_SECCOMP> "
1024 "ниже. Данные сообщения события seccomp (из части B<SECCOMP_RET_DATA> правила "
1025 "фильтрации seccomp) можно получить с помощью B<PTRACE_GETEVENTMSG>."
1026
1027 #. type: TP
1028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1030 #, no-wrap
1031 msgid "B<PTRACE_O_SUSPEND_SECCOMP> (since Linux 4.3)"
1032 msgstr "B<PTRACE_O_SUSPEND_SECCOMP> (начиная с Linux 4.3)"
1033
1034 #. commit 13c4a90119d28cfcb6b5bdd820c233b86c2b0237
1035 #. type: Plain text
1036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1038 msgid ""
1039 "Suspend the tracee's seccomp protections. This applies regardless of mode, "
1040 "and can be used when the tracee has not yet installed seccomp filters. That "
1041 "is, a valid use case is to suspend a tracee's seccomp protections before "
1042 "they are installed by the tracee, let the tracee install the filters, and "
1043 "then clear this flag when the filters should be resumed. Setting this "
1044 "option requires that the tracer have the B<CAP_SYS_ADMIN> capability, not "
1045 "have any seccomp protections installed, and not have "
1046 "B<PTRACE_O_SUSPEND_SECCOMP> set on itself."
1047 msgstr ""
1048 "Приостановить защиты seccomp трассируемого. Это применяется независимо от "
1049 "режима и может быть использовано когда трассируемый ещё не установил фильтры "
1050 "seccomp. То есть, корректным действием будет приостановка защит seccomp "
1051 "трассируемого, до того как их установит трассируемый, позволить "
1052 "трассируемому установить фильтры, и затем очистить этот флаг, когда нужно "
1053 "возобновить работу фильтров. Установка этого параметра требует, чтобы "
1054 "трассировщик имел мандат B<CAP_SYS_ADMIN>, не было установлено никаких защит "
1055 "seccomp и не установлен сам B<PTRACE_O_SUSPEND_SECCOMP>."
1056
1057 #. type: TP
1058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1060 #, no-wrap
1061 msgid "B<PTRACE_GETEVENTMSG> (since Linux 2.5.46)"
1062 msgstr "B<PTRACE_GETEVENTMSG> (начиная с Linux 2.5.46)"
1063
1064 #. type: Plain text
1065 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1066 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1067 msgid ""
1068 "Retrieve a message (as an I<unsigned long>) about the ptrace event that "
1069 "just happened, placing it at the address I<data> in the tracer. For "
1070 "B<PTRACE_EVENT_EXIT>, this is the tracee's exit status. For "
1071 "B<PTRACE_EVENT_FORK>, B<PTRACE_EVENT_VFORK>, B<PTRACE_EVENT_VFORK_DONE>, and "
1072 "B<PTRACE_EVENT_CLONE>, this is the PID of the new process. For "
1073 "B<PTRACE_EVENT_SECCOMP>, this is the B<seccomp>(2) filter's "
1074 "B<SECCOMP_RET_DATA> associated with the triggered rule. (I<addr> is "
1075 "ignored.)"
1076 msgstr ""
1077 "Возвращает сообщения (с типом I<unsigned long>) о событии ptrace, которое "
1078 "только что произошло, помещая его по адресу I<data> в памяти трассировщика. "
1079 "Для B<PTRACE_EVENT_EXIT> это код завершения трассируемой нити. Для "
1080 "B<PTRACE_EVENT_FORK>, B<PTRACE_EVENT_VFORK>, B<PTRACE_EVENT_VFORK_DONE> и "
1081 "B<PTRACE_EVENT_CLONE> это PID нового процесса. Для B<PTRACE_EVENT_SECCOMP> "
1082 "это B<SECCOMP_RET_DATA> из фильтра B<seccomp>(2), связанного со сработавшим "
1083 "правилом (значение I<addr> игнорируется)."
1084
1085 #. type: TP
1086 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1087 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1088 #, no-wrap
1089 msgid "B<PTRACE_CONT>"
1090 msgstr "B<PTRACE_CONT>"
1091
1092 #. type: Plain text
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 msgid ""
1096 "Restart the stopped tracee process. If I<data> is nonzero, it is "
1097 "interpreted as the number of a signal to be delivered to the tracee; "
1098 "otherwise, no signal is delivered. Thus, for example, the tracer can "
1099 "control whether a signal sent to the tracee is delivered or not. (I<addr> "
1100 "is ignored.)"
1101 msgstr ""
1102 "Возобновляет работу остановленной трассируемой нити. Если значение I<data> "
1103 "не равно нулю, то оно считается номером сигнала, который надо доставить "
1104 "трассируемой нити; в противном случае сигнал не передаётся. Таким образом, "
1105 "например, трассировщик может контролировать передачу сигнала трассируемой "
1106 "нити (значение I<addr> игнорируется)."
1107
1108 #. type: TP
1109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1111 #, fuzzy, no-wrap
1112 #| msgid "B<PTRACE_KILL>"
1113 msgid "B<PTRACE_SYSCALL>"
1114 msgstr "B<PTRACE_KILL>"
1115
1116 #. type: TQ
1117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1119 #, fuzzy, no-wrap
1120 #| msgid "PTRACE_SINGLESTEP stops"
1121 msgid "B<PTRACE_SINGLESTEP>"
1122 msgstr "Остановки PTRACE_SINGLESTEP"
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid ""
1128 "Restart the stopped tracee as for B<PTRACE_CONT>, but arrange for the tracee "
1129 "to be stopped at the next entry to or exit from a system call, or after "
1130 "execution of a single instruction, respectively. (The tracee will also, as "
1131 "usual, be stopped upon receipt of a signal.) From the tracer's perspective, "
1132 "the tracee will appear to have been stopped by receipt of a B<SIGTRAP>. So, "
1133 "for B<PTRACE_SYSCALL>, for example, the idea is to inspect the arguments to "
1134 "the system call at the first stop, then do another B<PTRACE_SYSCALL> and "
1135 "inspect the return value of the system call at the second stop. The I<data> "
1136 "argument is treated as for B<PTRACE_CONT>. (I<addr> is ignored.)"
1137 msgstr ""
1138 "Аналогично B<PTRACE_CONT> они перезапускают остановленную трассируемую нить, "
1139 "но указывают, что процесс должен быть остановлен перед входом/выходом из "
1140 "системного вызова, или после исполнения одной инструкции, соответственно "
1141 "(трассируемая нить также, как обычно, будет остановлена при получении "
1142 "сигнала). С точки зрения трассировщика кажется, что трассируемая нить "
1143 "остановлена из-за получения сигнала B<SIGTRAP>. Так, B<PTRACE_SYSCALL> "
1144 "например, позволяет изучить содержимое аргументов перед системным вызовом, а "
1145 "при следующем B<PTRACE_SYSCALL> можно просмотреть результат исполнения "
1146 "системного вызова. Аргумент I<data> используется как в B<PTRACE_CONT> "
1147 "(значение I<addr> игнорируется)."
1148
1149 #. type: TP
1150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1152 #, no-wrap
1153 msgid "B<PTRACE_SET_SYSCALL> (since Linux 2.6.16)"
1154 msgstr "B<PTRACE_SET_SYSCALL> (начиная с Linux 2.6.16)"
1155
1156 #. commit 3f471126ee53feb5e9b210ea2f525ed3bb9b7a7f
1157 #. As of 4.19-rc2
1158 #. commit 27aa55c5e5123fa8b8ad0156559d34d7edff58ca
1159 #. see change_syscall in tools/testing/selftests/seccomp/seccomp_bpf.c
1160 #. and also strace's linux/*/set_scno.c files.
1161 #. type: Plain text
1162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1164 msgid ""
1165 "When in syscall-enter-stop, change the number of the system call that is "
1166 "about to be executed to the number specified in the I<data> argument. The "
1167 "I<addr> argument is ignored. This operation is currently supported only on "
1168 "arm (and arm64, though only for backwards compatibility), but most other "
1169 "architectures have other means of accomplishing this (usually by changing "
1170 "the register that the userland code passed the system call number in)."
1171 msgstr ""
1172
1173 #. type: TP
1174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1176 #, fuzzy, no-wrap
1177 #| msgid "B<PTRACE_TRACEME>"
1178 msgid "B<PTRACE_SYSEMU>"
1179 msgstr "B<PTRACE_TRACEME>"
1180
1181 #. type: TQ
1182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1184 #, fuzzy, no-wrap
1185 #| msgid "B<PTRACE_SYSEMU>, B<PTRACE_SYSEMU_SINGLESTEP> (since Linux 2.6.14)"
1186 msgid "B<PTRACE_SYSEMU_SINGLESTEP> (since Linux 2.6.14)"
1187 msgstr "B<PTRACE_SYSEMU>, B<PTRACE_SYSEMU_SINGLESTEP> (начиная с Linux 2.6.14)"
1188
1189 #. As at 3.7
1190 #. type: Plain text
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 #, fuzzy
1194 #| msgid ""
1195 #| "For B<PTRACE_SYSEMU>, continue and stop on entry to the next system call, "
1196 #| "which will not be executed. See the documentation on syscall-stops "
1197 #| "below. For B<PTRACE_SYSEMU_SINGLESTEP>, do the same but also singlestep "
1198 #| "if not a system call. This call is used by programs like User Mode Linux "
1199 #| "that want to emulate all the tracee's system calls. The I<data> argument "
1200 #| "is treated as for B<PTRACE_CONT>. The I<addr> argument is ignored. "
1201 #| "These requests are currently supported only on x86."
1202 msgid ""
1203 "For B<PTRACE_SYSEMU>, continue and stop on entry to the next system call, "
1204 "which will not be executed. See the documentation on syscall-stops below. "
1205 "For B<PTRACE_SYSEMU_SINGLESTEP>, do the same but also singlestep if not a "
1206 "system call. This call is used by programs like User Mode Linux that want "
1207 "to emulate all the tracee's system calls. The I<data> argument is treated "
1208 "as for B<PTRACE_CONT>. The I<addr> argument is ignored. These operations "
1209 "are currently supported only on x86."
1210 msgstr ""
1211 "Действие B<PTRACE_SYSEMU> приводит к продолжению и остановке на входе в "
1212 "следующий системный вызов, который не будет выполнен . Смотрите описание по "
1213 "syscall-stop ниже. Действие B<PTRACE_SYSEMU_SINGLESTEP> выполняет тоже "
1214 "самое, но для одиночной инструкции, если это не системный вызов. Это "
1215 "действие используется программами, подобными User Mode Linux, которым нужно "
1216 "эмулировать все системные вызовы трассируемых нитей. Аргумент I<data> "
1217 "используется также как у B<PTRACE_CONT>. Аргумент I<addr> игнорируется. Эти "
1218 "запросы поддерживаются только на x86."
1219
1220 #. type: TP
1221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1223 #, no-wrap
1224 msgid "B<PTRACE_LISTEN> (since Linux 3.4)"
1225 msgstr "B<PTRACE_LISTEN> (начиная с Linux 3.4)"
1226
1227 #. type: Plain text
1228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1230 msgid ""
1231 "Restart the stopped tracee, but prevent it from executing. The resulting "
1232 "state of the tracee is similar to a process which has been stopped by a "
1233 "B<SIGSTOP> (or other stopping signal). See the \"group-stop\" subsection "
1234 "for additional information. B<PTRACE_LISTEN> works only on tracees attached "
1235 "by B<PTRACE_SEIZE>."
1236 msgstr ""
1237 "Перезапускает остановленную трассируемую нить, но её выполнение не "
1238 "начинается. Полученное состояние трассируемой нити подобно процессу, который "
1239 "был остановлен по B<SIGSTOP> (или другим останавливающим сигналом). "
1240 "Дополнительную информацию смотрите в подразделе «group-stop». "
1241 "B<PTRACE_LISTEN> работает только для трассируемых нитей, присоединённых с "
1242 "помощью B<PTRACE_SEIZE>."
1243
1244 #. type: TP
1245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1247 #, no-wrap
1248 msgid "B<PTRACE_KILL>"
1249 msgstr "B<PTRACE_KILL>"
1250
1251 #. type: Plain text
1252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1254 msgid ""
1255 "Send the tracee a B<SIGKILL> to terminate it. (I<addr> and I<data> are "
1256 "ignored.)"
1257 msgstr ""
1258 "Посылает трассируемой нити сигнал B<SIGKILL> для его уничтожения (значения "
1259 "I<addr> и I<data> игнорируются)."
1260
1261 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1262 #. [Note from Denys Vlasenko:
1263 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1264 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1265 #. type: Plain text
1266 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1267 #. [Note from Denys Vlasenko:
1268 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1269 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1270 #. type: Plain text
1271 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1272 #. [Note from Denys Vlasenko:
1273 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1274 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1275 #. type: Plain text
1276 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1277 #. [Note from Denys Vlasenko:
1278 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1279 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1280 #. type: Plain text
1281 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1282 #. [Note from Denys Vlasenko:
1283 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1284 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1285 #. type: Plain text
1286 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1287 #. [Note from Denys Vlasenko:
1288 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1289 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1290 #. type: Plain text
1291 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1292 #. [Note from Denys Vlasenko:
1293 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1294 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1295 #. type: Plain text
1296 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1297 #. [Note from Denys Vlasenko:
1298 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1299 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1300 #. type: Plain text
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 msgid ""
1304 "I<This operation is deprecated; do not use it!> Instead, send a B<SIGKILL> "
1305 "directly using B<kill>(2) or B<tgkill>(2). The problem with B<PTRACE_KILL> "
1306 "is that it requires the tracee to be in signal-delivery-stop, otherwise it "
1307 "may not work (i.e., may complete successfully but won't kill the tracee). "
1308 "By contrast, sending a B<SIGKILL> directly has no such limitation."
1309 msgstr ""
1310 "I<Это действие устарело; не используйте его!> Вместо него отправляйте "
1311 "B<SIGKILL> напрямую с помощью B<kill>(2) или B<tgkill>(2). Проблема с "
1312 "действием B<PTRACE_KILL> в том, что оно требует, чтобы трассируемая нить "
1313 "была режиме signal-delivery-stop, в противном случае оно может не сработать "
1314 "(т. е., может завершиться без ошибок, но трассируемая нить не будет "
1315 "уничтожена). В отличие от него, отправка B<SIGKILL> напрямую не имеет "
1316 "данного ограничения."
1317
1318 #. type: TP
1319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1321 #, no-wrap
1322 msgid "B<PTRACE_INTERRUPT> (since Linux 3.4)"
1323 msgstr "B<PTRACE_INTERRUPT> (начиная с Linux 3.4)"
1324
1325 #. type: Plain text
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 msgid ""
1329 "Stop a tracee. If the tracee is running or sleeping in kernel space and "
1330 "B<PTRACE_SYSCALL> is in effect, the system call is interrupted and syscall-"
1331 "exit-stop is reported. (The interrupted system call is restarted when the "
1332 "tracee is restarted.) If the tracee was already stopped by a signal and "
1333 "B<PTRACE_LISTEN> was sent to it, the tracee stops with B<PTRACE_EVENT_STOP> "
1334 "and I<WSTOPSIG(status)> returns the stop signal. If any other ptrace-stop "
1335 "is generated at the same time (for example, if a signal is sent to the "
1336 "tracee), this ptrace-stop happens. If none of the above applies (for "
1337 "example, if the tracee is running in user space), it stops with "
1338 "B<PTRACE_EVENT_STOP> with I<WSTOPSIG(status)> == B<SIGTRAP>. "
1339 "B<PTRACE_INTERRUPT> only works on tracees attached by B<PTRACE_SEIZE>."
1340 msgstr ""
1341 "Остановить трассируемый объект. Если трассируемый объект выполняется или "
1342 "спит в пространстве ядра и действует B<PTRACE_SYSCALL>, то системный вызов "
1343 "прерывается и сообщается о syscall-exit-stop (прерванный системный вызов "
1344 "перезапускается при перезапуске трассируемого объекта). Если трассируемый "
1345 "объект был уже остановлен по сигналу и ему был послан B<PTRACE_LISTEN>, то "
1346 "трассируемый объект останавливается с B<PTRACE_EVENT_STOP> и "
1347 "I<WSTOPSIG(status)> возвращает сигнал остановки. Если в этот же момент "
1348 "генерируется любое другое событие ptrace-stop (например, если трассируемому "
1349 "посылается сигнал), то возникает ptrace-stop. Если ничего из "
1350 "вышеперечисленного не происходит (например, если трассируемый выполняется в "
1351 "пространстве пользователя), то он останавливается с B<PTRACE_EVENT_STOP> и "
1352 "I<WSTOPSIG(status)> == B<SIGTRAP>. B<PTRACE_INTERRUPT> работает только для "
1353 "трассируемых объектов, к которым подключились с помощью B<PTRACE_SEIZE>."
1354
1355 #. type: TP
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1358 #, no-wrap
1359 msgid "B<PTRACE_ATTACH>"
1360 msgstr "B<PTRACE_ATTACH>"
1361
1362 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1363 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1364 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1365 #. Basically, it's not true for any Linux in practical use.
1366 #. the behavior of the tracee is as if it had done a
1367 #. .BR PTRACE_TRACEME .
1368 #. The calling process actually becomes the parent of the tracee
1369 #. process for most purposes (e.g., it will receive
1370 #. notification of tracee events and appears in
1371 #. .BR ps (1)
1372 #. output as the tracee's parent), but a
1373 #. .BR getppid (2)
1374 #. by the tracee will still return the PID of the original parent.
1375 #. type: Plain text
1376 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1377 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1378 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1379 #. Basically, it's not true for any Linux in practical use.
1380 #. ; the behavior of the tracee is as if it had done a
1381 #. .BR PTRACE_TRACEME .
1382 #. The calling process actually becomes the parent of the tracee
1383 #. process for most purposes (e.g., it will receive
1384 #. notification of tracee events and appears in
1385 #. .BR ps (1)
1386 #. output as the tracee's parent), but a
1387 #. .BR getppid (2)
1388 #. by the tracee will still return the PID of the original parent.
1389 #. type: Plain text
1390 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1391 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1392 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1393 #. Basically, it's not true for any Linux in practical use.
1394 #. the behavior of the tracee is as if it had done a
1395 #. .BR PTRACE_TRACEME .
1396 #. The calling process actually becomes the parent of the tracee
1397 #. process for most purposes (e.g., it will receive
1398 #. notification of tracee events and appears in
1399 #. .BR ps (1)
1400 #. output as the tracee's parent), but a
1401 #. .BR getppid (2)
1402 #. by the tracee will still return the PID of the original parent.
1403 #. type: Plain text
1404 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1405 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1406 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1407 #. Basically, it's not true for any Linux in practical use.
1408 #. ; the behavior of the tracee is as if it had done a
1409 #. .BR PTRACE_TRACEME .
1410 #. The calling process actually becomes the parent of the tracee
1411 #. process for most purposes (e.g., it will receive
1412 #. notification of tracee events and appears in
1413 #. .BR ps (1)
1414 #. output as the tracee's parent), but a
1415 #. .BR getppid (2)
1416 #. by the tracee will still return the PID of the original parent.
1417 #. type: Plain text
1418 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1419 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1420 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1421 #. Basically, it's not true for any Linux in practical use.
1422 #. ; the behavior of the tracee is as if it had done a
1423 #. .BR PTRACE_TRACEME .
1424 #. The calling process actually becomes the parent of the tracee
1425 #. process for most purposes (e.g., it will receive
1426 #. notification of tracee events and appears in
1427 #. .BR ps (1)
1428 #. output as the tracee's parent), but a
1429 #. .BR getppid (2)
1430 #. by the tracee will still return the PID of the original parent.
1431 #. type: Plain text
1432 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1433 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1434 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1435 #. Basically, it's not true for any Linux in practical use.
1436 #. the behavior of the tracee is as if it had done a
1437 #. .BR PTRACE_TRACEME .
1438 #. The calling process actually becomes the parent of the tracee
1439 #. process for most purposes (e.g., it will receive
1440 #. notification of tracee events and appears in
1441 #. .BR ps (1)
1442 #. output as the tracee's parent), but a
1443 #. .BR getppid (2)
1444 #. by the tracee will still return the PID of the original parent.
1445 #. type: Plain text
1446 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1447 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1448 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1449 #. Basically, it's not true for any Linux in practical use.
1450 #. the behavior of the tracee is as if it had done a
1451 #. .BR PTRACE_TRACEME .
1452 #. The calling process actually becomes the parent of the tracee
1453 #. process for most purposes (e.g., it will receive
1454 #. notification of tracee events and appears in
1455 #. .BR ps (1)
1456 #. output as the tracee's parent), but a
1457 #. .BR getppid (2)
1458 #. by the tracee will still return the PID of the original parent.
1459 #. type: Plain text
1460 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1461 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1462 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1463 #. Basically, it's not true for any Linux in practical use.
1464 #. the behavior of the tracee is as if it had done a
1465 #. .BR PTRACE_TRACEME .
1466 #. The calling process actually becomes the parent of the tracee
1467 #. process for most purposes (e.g., it will receive
1468 #. notification of tracee events and appears in
1469 #. .BR ps (1)
1470 #. output as the tracee's parent), but a
1471 #. .BR getppid (2)
1472 #. by the tracee will still return the PID of the original parent.
1473 #. type: Plain text
1474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1476 msgid ""
1477 "Attach to the process specified in I<pid>, making it a tracee of the calling "
1478 "process. The tracee is sent a B<SIGSTOP>, but will not necessarily have "
1479 "stopped by the completion of this call; use B<waitpid>(2) to wait for the "
1480 "tracee to stop. See the \"Attaching and detaching\" subsection for "
1481 "additional information. (I<addr> and I<data> are ignored.)"
1482 msgstr ""
1483 "Выполняет присоединение к процессу с указанным I<pid>, делая его "
1484 "трассируемым для вызывающего процесса. Трассируемой нити посылается "
1485 "B<SIGSTOP>, но нет жёсткого правила, что она будет остановлен по завершению "
1486 "этого вызова; используйте B<waitpid>(2) для ожидания остановки трассируемой "
1487 "нити. Дополнительную информацию смотрите в подразделе «Присоединение и "
1488 "отсоединение» (значения I<addr> и I<data> игнорируются)."
1489
1490 #. type: Plain text
1491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1493 msgid ""
1494 "Permission to perform a B<PTRACE_ATTACH> is governed by a ptrace access mode "
1495 "B<PTRACE_MODE_ATTACH_REALCREDS> check; see below."
1496 msgstr ""
1497 "Право выполнять B<PTRACE_ATTACH> определяется проверкой режима доступа "
1498 "ptrace B<PTRACE_MODE_READ_REALCREDS>; смотрите ниже."
1499
1500 #. type: TP
1501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1503 #, no-wrap
1504 msgid "B<PTRACE_SEIZE> (since Linux 3.4)"
1505 msgstr "B<PTRACE_SEIZE> (начиная с Linux 3.4)"
1506
1507 #. Noted by Dmitry Levin:
1508 #. PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
1509 #. it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
1510 #. which was removed later by commit v3.4-rc1~109^2~20.
1511 #. That is, [before] v3.4 we had a test mode of PTRACE_SEIZE API,
1512 #. which was not compatible with the current PTRACE_SEIZE API introduced
1513 #. in Linux 3.4.
1514 #. type: Plain text
1515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1517 msgid ""
1518 "Attach to the process specified in I<pid>, making it a tracee of the calling "
1519 "process. Unlike B<PTRACE_ATTACH>, B<PTRACE_SEIZE> does not stop the "
1520 "process. Group-stops are reported as B<PTRACE_EVENT_STOP> and "
1521 "I<WSTOPSIG(status)> returns the stop signal. Automatically attached "
1522 "children stop with B<PTRACE_EVENT_STOP> and I<WSTOPSIG(status)> returns "
1523 "B<SIGTRAP> instead of having B<SIGSTOP> signal delivered to them. "
1524 "B<execve>(2) does not deliver an extra B<SIGTRAP>. Only a B<PTRACE_SEIZE>d "
1525 "process can accept B<PTRACE_INTERRUPT> and B<PTRACE_LISTEN> commands. The "
1526 "\"seized\" behavior just described is inherited by children that are "
1527 "automatically attached using B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, "
1528 "and B<PTRACE_O_TRACECLONE>. I<addr> must be zero. I<data> contains a bit "
1529 "mask of ptrace options to activate immediately."
1530 msgstr ""
1531 "Выполняет присоединение к процессу, указанному в I<pid>, делает его "
1532 "трассируемым для вызывающего процесса. В отличие от B<PTRACE_ATTACH>, "
1533 "B<PTRACE_SEIZE> не останавливает процесс. О group-stops сообщается как "
1534 "B<PTRACE_EVENT_STOP> и I<WSTOPSIG(status)> возвращает сигнал остановки. "
1535 "Автоматически присоединённые потомки останавливаются с B<PTRACE_EVENT_STOP> "
1536 "и I<WSTOPSIG(status)> возвращает B<SIGTRAP> вместо доставки им сигнала "
1537 "B<SIGSTOP>. При вызове B<execve>(2) дополнительный B<SIGTRAP> не посылается. "
1538 "Только подключённые с помощью B<PTRACE_SEIZE> процессы могут принимать "
1539 "команды B<PTRACE_INTERRUPT> и B<PTRACE_LISTEN>. Только что описанное "
1540 "поведение «захвата» (seized) наследуется потомками, которые автоматически "
1541 "присоединяются с помощью B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK> и "
1542 "B<PTRACE_O_TRACECLONE>. Значение I<addr> должно быть равно нулю. В I<data> "
1543 "содержится битовая маска параметров ptrace, которая применяется сразу же."
1544
1545 #. type: Plain text
1546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1548 msgid ""
1549 "Permission to perform a B<PTRACE_SEIZE> is governed by a ptrace access mode "
1550 "B<PTRACE_MODE_ATTACH_REALCREDS> check; see below."
1551 msgstr ""
1552 "Право выполнять B<PTRACE_SEIZE> определяется проверкой режима доступа ptrace "
1553 "B<PTRACE_MODE_READ_REALCREDS>; смотрите ниже."
1554
1555 #. type: TP
1556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1558 #, no-wrap
1559 msgid "B<PTRACE_SECCOMP_GET_FILTER> (since Linux 4.4)"
1560 msgstr "B<PTRACE_SECCOMP_GET_FILTER> (начиная с Linux 4.4)"
1561
1562 #. commit f8e529ed941ba2bbcbf310b575d968159ce7e895
1563 #. type: Plain text
1564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1566 msgid ""
1567 "This operation allows the tracer to dump the tracee's classic BPF filters."
1568 msgstr ""
1569 "Эта операция позволяет трассировщику получить дамп классических фильтров BPF "
1570 "трассируемого."
1571
1572 #. type: Plain text
1573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1575 msgid ""
1576 "I<addr> is an integer specifying the index of the filter to be dumped. The "
1577 "most recently installed filter has the index 0. If I<addr> is greater than "
1578 "the number of installed filters, the operation fails with the error "
1579 "B<ENOENT>."
1580 msgstr ""
1581 "Значение I<addr> имеет тип integer и задаёт индекс фильтра для дампа. Индекс "
1582 "последнего установленного фильтра равен 0. Если I<addr> больше количества "
1583 "установленных фильтров, то операция завершается ошибкой B<ENOENT>."
1584
1585 #. type: Plain text
1586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1588 msgid ""
1589 "I<data> is either a pointer to a I<struct sock_filter> array that is large "
1590 "enough to store the BPF program, or NULL if the program is not to be stored."
1591 msgstr ""
1592 "Значение I<data> является указателем на массив I<struct sock_filter> "
1593 "достаточного размера для сохранения программы BPF, или NULL, если программа "
1594 "не будет сохраняться."
1595
1596 #. type: Plain text
1597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1599 msgid ""
1600 "Upon success, the return value is the number of instructions in the BPF "
1601 "program. If I<data> was NULL, then this return value can be used to "
1602 "correctly size the I<struct sock_filter> array passed in a subsequent call."
1603 msgstr ""
1604 "При успешном выполнении возвращаемое значение — количество инструкций в "
1605 "программе BPF. Если I<data> равнялось NULL, то возвращается значение, "
1606 "которое можно использовать для создания массива I<struct sock_filter> "
1607 "корректного размера, который будет передан в последующем вызове."
1608
1609 #. type: Plain text
1610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1612 msgid ""
1613 "This operation fails with the error B<EACCES> if the caller does not have "
1614 "the B<CAP_SYS_ADMIN> capability or if the caller is in strict or filter "
1615 "seccomp mode. If the filter referred to by I<addr> is not a classic BPF "
1616 "filter, the operation fails with the error B<EMEDIUMTYPE>."
1617 msgstr ""
1618 "Данная операция завершается ошибкой B<EACCES>, если вызывающий не имеет "
1619 "мандата B<CAP_SYS_ADMIN>, или если вызывающий находится в ограничительном "
1620 "или фильтрующем режиме. Если фильтр, на который ссылается адрес I<addr>, не "
1621 "является классическим фильтром BPF, то операция завершается ошибкой "
1622 "B<EMEDIUMTYPE>."
1623
1624 #. type: Plain text
1625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1627 msgid ""
1628 "This operation is available if the kernel was configured with both the "
1629 "B<CONFIG_SECCOMP_FILTER> and the B<CONFIG_CHECKPOINT_RESTORE> options."
1630 msgstr ""
1631 "Эта операция доступна только, если ядро собрано с параметрами "
1632 "B<CONFIG_SECCOMP_FILTER> и B<CONFIG_CHECKPOINT_RESTORE>."
1633
1634 #. type: TP
1635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1637 #, no-wrap
1638 msgid "B<PTRACE_DETACH>"
1639 msgstr "B<PTRACE_DETACH>"
1640
1641 #. type: Plain text
1642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1644 msgid ""
1645 "Restart the stopped tracee as for B<PTRACE_CONT>, but first detach from it. "
1646 "Under Linux, a tracee can be detached in this way regardless of which method "
1647 "was used to initiate tracing. (I<addr> is ignored.)"
1648 msgstr ""
1649 "Возобновляет работу остановленной трассируемой нити, аналогично "
1650 "B<PTRACE_CONT>, но сначала отсоединяется от него. В Linux при помощи этого "
1651 "вызова трассируемая нить может быть отсоединёна независимо от того, каким "
1652 "методом была запущена трассировка (значение I<addr> игнорируется)."
1653
1654 #. type: TP
1655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1657 #, no-wrap
1658 msgid "B<PTRACE_GET_THREAD_AREA> (since Linux 2.6.0)"
1659 msgstr "B<PTRACE_GET_THREAD_AREA> (начиная с Linux 2.6.0)"
1660
1661 #. type: Plain text
1662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1664 msgid ""
1665 "This operation performs a similar task to B<get_thread_area>(2). It reads "
1666 "the TLS entry in the GDT whose index is given in I<addr>, placing a copy of "
1667 "the entry into the I<struct user_desc> pointed to by I<data>. (By contrast "
1668 "with B<get_thread_area>(2), the I<entry_number> of the I<struct user_desc> "
1669 "is ignored.)"
1670 msgstr ""
1671 "Данная операция выполняет задачу, подобную B<get_thread_area>(2). Она читает "
1672 "элемент TLS из GDT, чей индекс передан в I<addr>, помещает копию элемента в "
1673 "I<struct user_desc>, указанную в I<data> (в отличие от "
1674 "B<get_thread_area>(2), значение I<entry_number> структуры I<struct "
1675 "user_desc> игнорируется)."
1676
1677 #. type: TP
1678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1680 #, no-wrap
1681 msgid "B<PTRACE_SET_THREAD_AREA> (since Linux 2.6.0)"
1682 msgstr "B<PTRACE_SET_THREAD_AREA> (начиная с Linux 2.6.0)"
1683
1684 #. type: Plain text
1685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1687 msgid ""
1688 "This operation performs a similar task to B<set_thread_area>(2). It sets "
1689 "the TLS entry in the GDT whose index is given in I<addr>, assigning it the "
1690 "data supplied in the I<struct user_desc> pointed to by I<data>. (By "
1691 "contrast with B<set_thread_area>(2), the I<entry_number> of the I<struct "
1692 "user_desc> is ignored; in other words, this ptrace operation can't be used "
1693 "to allocate a free TLS entry.)"
1694 msgstr ""
1695 "Данная операция выполняет задачу, подобную B<set_thread_area>(2). Она "
1696 "изменяет элемент TLS в GDT, чей индекс указан в I<addr>, данными, "
1697 "переданными в структуре I<struct user_desc>, на которую указывает I<data> (в "
1698 "отличие от B<set_thread_area>(2), значение I<entry_number> структуры "
1699 "I<struct user_desc> игнорируется; иначе говоря, данная операция ptrace не "
1700 "может использоваться для выделения свободного элемента TLS)."
1701
1702 #. type: TP
1703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1705 #, no-wrap
1706 msgid "B<PTRACE_GET_SYSCALL_INFO> (since Linux 5.3)"
1707 msgstr "B<PTRACE_GET_SYSCALL_INFO> (начиная с Linux 5.3)"
1708
1709 #. commit 201766a20e30f982ccfe36bebfad9602c3ff574a
1710 #. type: Plain text
1711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1713 msgid ""
1714 "Retrieve information about the system call that caused the stop. The "
1715 "information is placed into the buffer pointed by the I<data> argument, which "
1716 "should be a pointer to a buffer of type I<struct ptrace_syscall_info>. The "
1717 "I<addr> argument contains the size of the buffer pointed to by the I<data> "
1718 "argument (i.e., I<sizeof(struct ptrace_syscall_info)>). The return value "
1719 "contains the number of bytes available to be written by the kernel. If the "
1720 "size of the data to be written by the kernel exceeds the size specified by "
1721 "the I<addr> argument, the output data is truncated."
1722 msgstr ""
1723 "Возвращает информацию о системном вызове, который привёл к останову. "
1724 "Информация помещается в буфер, указанный в аргументе I<data>, который должен "
1725 "быть указателем на буфер с типом I<struct ptrace_syscall_info>. Аргумент "
1726 "I<addr> содержит размер буфера, на который указывает аргумент I<data> (т. "
1727 "е., I<sizeof(struct ptrace_syscall_info)>). Возвращаемое значение равно "
1728 "количеству байт, записанных ядром. Если размер записываемых ядром данных "
1729 "больше значения из аргумента I<addr>, то данные результата обрезаются."
1730
1731 #. type: Plain text
1732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1734 msgid "The I<ptrace_syscall_info> structure contains the following fields:"
1735 msgstr "Структура I<ptrace_syscall_info> содержит следующие поля:"
1736
1737 #. type: Plain text
1738 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1739 #: opensuse-tumbleweed
1740 #, fuzzy, no-wrap
1741 #| msgid ""
1742 #| "struct ptrace_syscall_info {\n"
1743 #| " __u8 op; /* Type of system call stop */\n"
1744 #| " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
1745 #| " __u64 instruction_pointer; /* CPU instruction pointer */\n"
1746 #| " __u64 stack_pointer; /* CPU stack pointer */\n"
1747 #| " union {\n"
1748 #| " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
1749 #| " __u64 nr; /* System call number */\n"
1750 #| " __u64 args[6]; /* System call arguments */\n"
1751 #| " } entry;\n"
1752 #| " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
1753 #| " __s64 rval; /* System call return value */\n"
1754 #| " __u8 is_error; /* System call error flag;\n"
1755 #| " Boolean: does rval contain\n"
1756 #| " an error value (-ERRCODE) or\n"
1757 #| " a nonerror return value? */\n"
1758 #| " } exit;\n"
1759 #| " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
1760 #| " __u64 nr; /* System call number */\n"
1761 #| " __u64 args[6]; /* System call arguments */\n"
1762 #| " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
1763 #| " of SECCOMP_RET_TRACE\n"
1764 #| " return value */\n"
1765 #| " } seccomp;\n"
1766 #| " };\n"
1767 #| "};\n"
1768 msgid ""
1769 "struct ptrace_syscall_info {\n"
1770 " __u8 op; /* Type of system call stop */\n"
1771 " __u8 reserved; /* Reserved for future use, must be zero */\n"
1772 " __u16 flags; /* Reserved for future use, must be zero */\n"
1773 " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
1774 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
1775 " __u64 stack_pointer; /* CPU stack pointer */\n"
1776 " union {\n"
1777 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
1778 " __u64 nr; /* System call number */\n"
1779 " __u64 args[6]; /* System call arguments */\n"
1780 " } entry;\n"
1781 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
1782 " __s64 rval; /* System call return value */\n"
1783 " __u8 is_error; /* System call error flag;\n"
1784 " Boolean: does rval contain\n"
1785 " an error value (-ERRCODE) or\n"
1786 " a nonerror return value? */\n"
1787 " } exit;\n"
1788 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
1789 " __u64 nr; /* System call number */\n"
1790 " __u64 args[6]; /* System call arguments */\n"
1791 " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
1792 " of SECCOMP_RET_TRACE\n"
1793 " return value */\n"
1794 " } seccomp;\n"
1795 " };\n"
1796 "};\n"
1797 msgstr ""
1798 "struct ptrace_syscall_info {\n"
1799 " __u8 op; /* тип останова системного вызова */\n"
1800 " __u32 arch; /* значение AUDIT_ARCH_*; смотрите seccomp(2) */\n"
1801 " __u64 instruction_pointer; /* указатель инструкции ЦП */\n"
1802 " __u64 stack_pointer; /* указатель стека ЦП */\n"
1803 " union {\n"
1804 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
1805 " __u64 nr; /* номер системного вызова */\n"
1806 " __u64 args[6]; /* аргументы системного вызова */\n"
1807 " } entry;\n"
1808 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
1809 " __s64 rval; /* возвращаемое значение системного вызова */\n"
1810 " __u8 is_error; /* флаг ошибки системного вызова;\n"
1811 " логический: в rval содержится\n"
1812 " значение ошибки (-ERRCODE) или\n"
1813 " или не ошибки? */\n"
1814 " } exit;\n"
1815 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
1816 " __u64 nr; /* номер системного вызова */\n"
1817 " __u64 args[6]; /* аргументы системного вызова */\n"
1818 " __u32 ret_data; /* часть SECCOMP_RET_DATA\n"
1819 " возвращаемого значения\n"
1820 " SECCOMP_RET_TRACE */\n"
1821 " } seccomp;\n"
1822 " };\n"
1823 "};\n"
1824
1825 #. type: Plain text
1826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1828 msgid ""
1829 "The I<op>, I<arch>, I<instruction_pointer>, and I<stack_pointer> fields are "
1830 "defined for all kinds of ptrace system call stops. The rest of the "
1831 "structure is a union; one should read only those fields that are meaningful "
1832 "for the kind of system call stop specified by the I<op> field."
1833 msgstr ""
1834 "Поля I<op>, I<arch>, I<instruction_pointer> и I<stack_pointer> определены "
1835 "для всех видов остановов системных вызовов ptrace. Оставшаяся структура "
1836 "является объединением; из неё нужно читать только те поля, которые имеют "
1837 "смысл для конкретного вызова останова системного вызова, указанного в поле "
1838 "I<op>."
1839
1840 #. type: Plain text
1841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1843 msgid ""
1844 "The I<op> field has one of the following values (defined in I<E<lt>linux/"
1845 "ptrace.hE<gt>>) indicating what type of stop occurred and which part of the "
1846 "union is filled:"
1847 msgstr ""
1848 "В поле I<op> указывается одно из следующих значений (определены в "
1849 "I<E<lt>linux/ptrace.hE<gt>>), определяющих тип возникшего останова и какая "
1850 "часть объединения заполнена:"
1851
1852 #. type: TP
1853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1855 #, no-wrap
1856 msgid "B<PTRACE_SYSCALL_INFO_ENTRY>"
1857 msgstr "B<PTRACE_SYSCALL_INFO_ENTRY>"
1858
1859 #. type: Plain text
1860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1862 msgid ""
1863 "The I<entry> component of the union contains information relating to a "
1864 "system call entry stop."
1865 msgstr ""
1866 "Компонент объединения I<entry> содержит информацию о входе в останов "
1867 "системного вызова."
1868
1869 #. type: TP
1870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1872 #, no-wrap
1873 msgid "B<PTRACE_SYSCALL_INFO_EXIT>"
1874 msgstr "B<PTRACE_SYSCALL_INFO_EXIT>"
1875
1876 #. type: Plain text
1877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1879 msgid ""
1880 "The I<exit> component of the union contains information relating to a system "
1881 "call exit stop."
1882 msgstr ""
1883 "Компонент объединения I<exit> содержит информацию о выходе из останова "
1884 "системного вызова."
1885
1886 #. type: TP
1887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1889 #, no-wrap
1890 msgid "B<PTRACE_SYSCALL_INFO_SECCOMP>"
1891 msgstr "B<PTRACE_SYSCALL_INFO_SECCOMP>"
1892
1893 #. type: Plain text
1894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1896 msgid ""
1897 "The I<seccomp> component of the union contains information relating to a "
1898 "B<PTRACE_EVENT_SECCOMP> stop."
1899 msgstr ""
1900 "Компонент объединения I<seccomp> содержит информацию об останове "
1901 "B<PTRACE_EVENT_SECCOMP>."
1902
1903 #. type: TP
1904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1906 #, no-wrap
1907 msgid "B<PTRACE_SYSCALL_INFO_NONE>"
1908 msgstr "B<PTRACE_SYSCALL_INFO_NONE>"
1909
1910 #. type: Plain text
1911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1913 msgid "No component of the union contains relevant information."
1914 msgstr "Компонент объединения не содержит информации."
1915
1916 #. type: Plain text
1917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1919 msgid ""
1920 "In case of system call entry or exit stops, the data returned by "
1921 "B<PTRACE_GET_SYSCALL_INFO> is limited to type B<PTRACE_SYSCALL_INFO_NONE> "
1922 "unless B<PTRACE_O_TRACESYSGOOD> option is set before the corresponding "
1923 "system call stop has occurred."
1924 msgstr ""
1925
1926 #. type: TP
1927 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1928 #: opensuse-tumbleweed
1929 #, fuzzy, no-wrap
1930 #| msgid "B<PTRACE_GET_SYSCALL_INFO> (since Linux 5.3)"
1931 msgid "B<PTRACE_SET_SYSCALL_INFO> (since Linux 6.16)"
1932 msgstr "B<PTRACE_GET_SYSCALL_INFO> (начиная с Linux 5.3)"
1933
1934 #. commit 26bb32768fe6552de044f782a58b3272073fbfc0
1935 #. type: Plain text
1936 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1937 #: opensuse-tumbleweed
1938 msgid ""
1939 "Modify information about the system call that caused the stop. The I<data> "
1940 "argument is a pointer to I<struct ptrace_syscall_info> that specifies the "
1941 "system call information to be set. The I<addr> argument should be set to "
1942 "I<sizeof(struct ptrace_syscall_info)>. Only the I<nr>, I<args>, and I<rval> "
1943 "fields can be modified."
1944 msgstr ""
1945
1946 #. type: SS
1947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1949 #, no-wrap
1950 msgid "Death under ptrace"
1951 msgstr "Смерть в момент ptrace"
1952
1953 #. type: Plain text
1954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1956 msgid ""
1957 "When a (possibly multithreaded) process receives a killing signal (one whose "
1958 "disposition is set to B<SIG_DFL> and whose default action is to kill the "
1959 "process), all threads exit. Tracees report their death to their tracer(s). "
1960 "Notification of this event is delivered via B<waitpid>(2)."
1961 msgstr ""
1962 "Когда (возможно, многонитевой) процесс получает уничтожающий сигнал (из-за "
1963 "того, что обработчик равен B<SIG_DFL> и что действием по умолчанию является "
1964 "уничтожение процесса), все нити завершают работу (exit). Трассируемые нити "
1965 "сообщают о своей смерти своим трассировщикам. Уведомления об этом событии "
1966 "доставляется с помощью B<waitpid>(2)."
1967
1968 #. type: Plain text
1969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1971 msgid ""
1972 "Note that the killing signal will first cause signal-delivery-stop (on one "
1973 "tracee only), and only after it is injected by the tracer (or after it was "
1974 "dispatched to a thread which isn't traced), will death from the signal "
1975 "happen on I<all> tracees within a multithreaded process. (The term \"signal-"
1976 "delivery-stop\" is explained below.)"
1977 msgstr ""
1978 "Заметим, что уничтожающий сигнал сначала вызовет вхождение в режим signal-"
1979 "delivery-stop (только для одной трассируемой нити), и только после этого "
1980 "будет внедрён трассировщиком (или после того, как был отослан нити, которая "
1981 "не является трассируемой), затем I<все> трассируемые нити в многонитевом "
1982 "процессе завершаются по сигналу (термин «signal-delivery-stop» объяснён "
1983 "далее)."
1984
1985 #. type: Plain text
1986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1988 msgid ""
1989 "B<SIGKILL> does not generate signal-delivery-stop and therefore the tracer "
1990 "can't suppress it. B<SIGKILL> kills even within system calls (syscall-exit-"
1991 "stop is not generated prior to death by B<SIGKILL>). The net effect is that "
1992 "B<SIGKILL> always kills the process (all its threads), even if some threads "
1993 "of the process are ptraced."
1994 msgstr ""
1995 "Сигнал B<SIGKILL> не генерирует режим signal-delivery-stop и поэтому "
1996 "трассировщик не может подавить его. Сигнал B<SIGKILL> уничтожает даже внутри "
1997 "системных вызовов (syscall-exit-stop не генерируется перед уничтожением по "
1998 "B<SIGKILL>). Конечным результатом B<SIGKILL> всегда является уничтожение "
1999 "процесса (всех его нитей), даже если для некоторых нитей процесса "
2000 "выполняется трассировка."
2001
2002 #. type: Plain text
2003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2005 msgid ""
2006 "When the tracee calls B<_exit>(2), it reports its death to its tracer. "
2007 "Other threads are not affected."
2008 msgstr ""
2009 "Когда трассируемая нить вызывает B<_exit>(2), он сообщает о своём "
2010 "уничтожении своему трассировщику. На оставшиеся нити ни какого влияния не "
2011 "оказывается."
2012
2013 #. type: Plain text
2014 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2015 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2016 msgid ""
2017 "When any thread executes B<exit_group>(2), every tracee in its thread group "
2018 "reports its death to its tracer."
2019 msgstr ""
2020 "Если какая-нибудь нить вызывает B<exit_group>(2), то каждая трассируемая "
2021 "нить в этой группе нитей сообщает о своём уничтожении своему трассировщику."
2022
2023 #. type: Plain text
2024 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2025 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2026 msgid ""
2027 "If the B<PTRACE_O_TRACEEXIT> option is on, B<PTRACE_EVENT_EXIT> will happen "
2028 "before actual death. This applies to exits via B<exit>(2), "
2029 "B<exit_group>(2), and signal deaths (except B<SIGKILL>, depending on the "
2030 "kernel version; see BUGS below), and when threads are torn down on "
2031 "B<execve>(2) in a multithreaded process."
2032 msgstr ""
2033 "Если установлен флаг B<PTRACE_O_TRACEEXIT>, то перед непосредственным "
2034 "уничтожением возникает B<PTRACE_EVENT_EXIT>. Это случается при выходе "
2035 "посредством B<exit>(2), B<exit_group>(2) и из-за уничтожения по сигналу (за "
2036 "исключением B<SIGKILL>, в зависимости от версии ядра; смотрите ДЕФЕКТЫ ниже) "
2037 "и когда нити многонитевой процесса разрушаются при B<execve>(2)."
2038
2039 #. type: Plain text
2040 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2041 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2042 #, fuzzy
2043 #| msgid ""
2044 #| "The tracer cannot assume that the ptrace-stopped tracee exists. There "
2045 #| "are many scenarios when the tracee may die while stopped (such as "
2046 #| "B<SIGKILL>). Therefore, the tracer must be prepared to handle an "
2047 #| "B<ESRCH> error on any ptrace operation. Unfortunately, the same error is "
2048 #| "returned if the tracee exists but is not ptrace-stopped (for commands "
2049 #| "which require a stopped tracee), or if it is not traced by the process "
2050 #| "which issued the ptrace call. The tracer needs to keep track of the "
2051 #| "stopped/running state of the tracee, and interpret B<ESRCH> as \"tracee "
2052 #| "died unexpectedly\" only if it knows that the tracee has been observed to "
2053 #| "enter ptrace-stop. Note that there is no guarantee that "
2054 #| "I<waitpid(WNOHANG)> will reliably report the tracee's death status if a "
2055 #| "ptrace operation returned B<ESRCH>. I<waitpid(WNOHANG)> may return 0 "
2056 #| "instead. In other words, the tracee may be \"not yet fully dead\", but "
2057 #| "already refusing ptrace requests."
2058 msgid ""
2059 "The tracer cannot assume that the ptrace-stopped tracee exists. There are "
2060 "many scenarios when the tracee may die while stopped (such as B<SIGKILL>). "
2061 "Therefore, the tracer must be prepared to handle an B<ESRCH> error on any "
2062 "ptrace operation. Unfortunately, the same error is returned if the tracee "
2063 "exists but is not ptrace-stopped (for commands which require a stopped "
2064 "tracee), or if it is not traced by the process which issued the ptrace "
2065 "call. The tracer needs to keep track of the stopped/running state of the "
2066 "tracee, and interpret B<ESRCH> as \"tracee died unexpectedly\" only if it "
2067 "knows that the tracee has been observed to enter ptrace-stop. Note that "
2068 "there is no guarantee that I<waitpid(WNOHANG)> will reliably report the "
2069 "tracee's death status if a ptrace operation returned B<ESRCH>. "
2070 "I<waitpid(WNOHANG)> may return 0 instead. In other words, the tracee may be "
2071 "\"not yet fully dead\", but already refusing ptrace operations."
2072 msgstr ""
2073 "Трассировщик не может предполагать, что трассируемая нить, остановленная по "
2074 "ptrace, существует. Если много случаев, когда трассируемая нить может быть "
2075 "уничтожена будучи в остановленном состоянии (например, по B<SIGKILL>). "
2076 "Поэтому, трассировщик должен быть готов обработать ошибку B<ESRCH> при любом "
2077 "действии ptrace. К сожалению, эта же ошибка возвращается, если трассируемая "
2078 "нить существует, но не остановлена по ptrace (для действий, которые требуют "
2079 "остановленной трассируемой нити), или если она не трассируется процессом, "
2080 "который вызвал ptrace. Трассировщику необходимо отслеживать состояние "
2081 "остановки/работы трассируемой нити и воспринимать B<ESRCH> как «трассируемая "
2082 "нить была неожиданно уничтожена» только, если он знает, что трассируемая "
2083 "нить была в состоянии ptrace-stop. Заметим, что нет гарантии того, что "
2084 "I<waitpid(WNOHANG)> всегда сообщит о состоянии уничтожения трассируемой "
2085 "нити, если действие ptrace вернуло B<ESRCH>. Вызов I<waitpid(WNOHANG)> "
2086 "вместо этого может вернуть 0. Другими словами, трассируемая нить может быть "
2087 "«ещё не полностью уничтожена», но уже отклонять действия ptrace."
2088
2089 #. type: Plain text
2090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2092 msgid ""
2093 "The tracer can't assume that the tracee I<always> ends its life by reporting "
2094 "I<WIFEXITED(status)> or I<WIFSIGNALED(status)>; there are cases where this "
2095 "does not occur. For example, if a thread other than thread group leader "
2096 "does an B<execve>(2), it disappears; its PID will never be seen again, and "
2097 "any subsequent ptrace stops will be reported under the thread group leader's "
2098 "PID."
2099 msgstr ""
2100 "Трассировщик не может предполагать, что I<всегда> поймает завершение "
2101 "существования трассируемой нити с помощью I<WIFEXITED(status)> или "
2102 "I<WIFSIGNALED(status)>; есть несколько случаев, когда этого не происходит. "
2103 "Например, если нить — не лидер группы нитей — вызывает B<execve>(2) и "
2104 "исчезает; её PID больше не появится снова, и все последующие остановки по "
2105 "ptrace будут приходить от PID лидера группы нитей."
2106
2107 #. type: SS
2108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2110 #, no-wrap
2111 msgid "Stopped states"
2112 msgstr "Состояния останова"
2113
2114 #. type: Plain text
2115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2117 msgid ""
2118 "A tracee can be in two states: running or stopped. For the purposes of "
2119 "ptrace, a tracee which is blocked in a system call (such as B<read>(2), "
2120 "B<pause>(2), etc.) is nevertheless considered to be running, even if the "
2121 "tracee is blocked for a long time. The state of the tracee after "
2122 "B<PTRACE_LISTEN> is somewhat of a gray area: it is not in any ptrace-stop "
2123 "(ptrace commands won't work on it, and it will deliver B<waitpid>(2) "
2124 "notifications), but it also may be considered \"stopped\" because it is not "
2125 "executing instructions (is not scheduled), and if it was in group-stop "
2126 "before B<PTRACE_LISTEN>, it will not respond to signals until B<SIGCONT> is "
2127 "received."
2128 msgstr ""
2129 "Трассируемый может находиться в двух состояниях: выполнения или остановки. В "
2130 "целях ptrace, трассируемый, заблокированный в системном вызове (например, "
2131 "B<read>(2), B<pause>(2) и т.д.), считается выполняющимся, даже если он "
2132 "заблокирован уже долго. Состояние трассируемого после B<PTRACE_LISTEN> "
2133 "находится, отчасти, в «сумеречной зоне»: не не в каком-либо из ptrace-stop "
2134 "(команды ptrace не будут с ним работать и он будет посылать уведомления "
2135 "B<waitpid>(2)), но он также может считаться за «остановленный», так как он "
2136 "не выполняет инструкций (не планируется для этого), и если он был в group-"
2137 "stop до B<PTRACE_LISTEN>, он не будет отвечать на сигналы до тех пор, пока "
2138 "не получит B<SIGCONT>."
2139
2140 #. type: Plain text
2141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2143 msgid ""
2144 "There are many kinds of states when the tracee is stopped, and in ptrace "
2145 "discussions they are often conflated. Therefore, it is important to use "
2146 "precise terms."
2147 msgstr ""
2148 "Есть много разновидностей останова, и в обсуждении ptrace они часто "
2149 "объединены. Поэтому очень важно использовать точную терминологию."
2150
2151 #. type: Plain text
2152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2154 msgid ""
2155 "In this manual page, any stopped state in which the tracee is ready to "
2156 "accept ptrace commands from the tracer is called I<ptrace-stop>. Ptrace-"
2157 "stops can be further subdivided into I<signal-delivery-stop>, I<group-stop>, "
2158 "I<syscall-stop>, I<PTRACE_EVENT stops>, and so on. These stopped states are "
2159 "described in detail below."
2160 msgstr ""
2161 "В этой справочной странице любое состояние останова, в котором трассируемая "
2162 "нить готова выполнить действия ptrace трассировщика, называется I<ptrace-"
2163 "stop>. В свою очередь, ptrace-stop можно разделить на I<signal-delivery-"
2164 "stop>, I<group-stop>, I<syscall-stop>, I<PTRACE_EVENT stops> и так далее. "
2165 "Далее эти состояния останова будут описаны подробней."
2166
2167 #. type: Plain text
2168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2170 msgid ""
2171 "When the running tracee enters ptrace-stop, it notifies its tracer using "
2172 "B<waitpid>(2) (or one of the other \"wait\" system calls). Most of this "
2173 "manual page assumes that the tracer waits with:"
2174 msgstr ""
2175 "Когда выполняющаяся трассируемая нить входит в ptrace-stop, это видит "
2176 "трассировщик с помощью B<waitpid>(2) (или через другой системный вызов "
2177 "«wait»). В большей части текста данной справочной страницы предполагается, "
2178 "что трассировщик ждёт с помощью:"
2179
2180 #. type: Plain text
2181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2183 #, no-wrap
2184 msgid "pid = waitpid(pid_or_minus_1, &status, __WALL);\n"
2185 msgstr "pid = waitpid(pid_or_minus_1, &status, __WALL);\n"
2186
2187 #. Denys Vlasenko:
2188 #. Do we require __WALL usage, or will just using 0 be ok? (With 0,
2189 #. I am not 100% sure there aren't ugly corner cases.) Are the
2190 #. rules different if user wants to use waitid? Will waitid require
2191 #. WEXITED?
2192 #. type: Plain text
2193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2195 msgid ""
2196 "Ptrace-stopped tracees are reported as returns with I<pid> greater than 0 "
2197 "and I<WIFSTOPPED(status)> true."
2198 msgstr ""
2199 "О трассируемой нити в состоянии ptrace-stop сообщается возвратом I<pid> "
2200 "большим 0 и значением истины по I<WIFSTOPPED(status)>."
2201
2202 #. type: Plain text
2203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2205 msgid ""
2206 "The B<__WALL> flag does not include the B<WSTOPPED> and B<WEXITED> flags, "
2207 "but implies their functionality."
2208 msgstr ""
2209 "Флаг B<__WALL> не содержит флагов B<WSTOPPED> и B<WEXITED>, но подразумевает "
2210 "их назначение."
2211
2212 #. type: Plain text
2213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2215 msgid ""
2216 "Setting the B<WCONTINUED> flag when calling B<waitpid>(2) is not "
2217 "recommended: the \"continued\" state is per-process and consuming it can "
2218 "confuse the real parent of the tracee."
2219 msgstr ""
2220 "Устанавливать флаг B<WCONTINUED> при вызове B<waitpid>(2) не рекомендуется: "
2221 "состояние «continued» относится к определённому процессу и его поглощение "
2222 "может запутать реального родителя трассируемой нити."
2223
2224 #. type: Plain text
2225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2227 msgid ""
2228 "Use of the B<WNOHANG> flag may cause B<waitpid>(2) to return 0 (\"no wait "
2229 "results available yet\") even if the tracer knows there should be a "
2230 "notification. Example:"
2231 msgstr ""
2232 "Использование флага B<WNOHANG> может привести к тому, что B<waitpid>(2) "
2233 "вернёт 0 («не ждать результатов, если они не готовы»), даже если "
2234 "трассировщик знает, что должно быть уведомление. Пример:"
2235
2236 #. type: Plain text
2237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2239 #, no-wrap
2240 msgid ""
2241 "errno = 0;\n"
2242 "ptrace(PTRACE_CONT, pid, 0L, 0L);\n"
2243 "if (errno == ESRCH) {\n"
2244 " /* tracee is dead */\n"
2245 " r = waitpid(tracee, &status, __WALL | WNOHANG);\n"
2246 " /* r can still be 0 here! */\n"
2247 "}\n"
2248 msgstr ""
2249 "errno = 0;\n"
2250 " ptrace(PTRACE_CONT, pid, 0L, 0L);\n"
2251 " if (errno == ESRCH) {\n"
2252 " /* трассируемая нить мертва */\n"
2253 " r = waitpid(tracee, &status, __WALL | WNOHANG);\n"
2254 " /* r может быть 0 ! */\n"
2255 " }\n"
2256
2257 #. type: Plain text
2258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2260 msgid ""
2261 "The following kinds of ptrace-stops exist: signal-delivery-stops, group-"
2262 "stops, B<PTRACE_EVENT> stops, syscall-stops. They all are reported by "
2263 "B<waitpid>(2) with I<WIFSTOPPED(status)> true. They may be differentiated "
2264 "by examining the value I<statusE<gt>E<gt>8>, and if there is ambiguity in "
2265 "that value, by querying B<PTRACE_GETSIGINFO>. (Note: the "
2266 "I<WSTOPSIG(status)> macro can't be used to perform this examination, because "
2267 "it returns the value I<(statusE<gt>E<gt>8)\\ &\\ 0xff>.)"
2268 msgstr ""
2269 "Существуют следующие разновидности ptrace-stop: signal-delivery-stop, group-"
2270 "stop, остановки B<PTRACE_EVENT>, syscall-stop. Все они могут быть получены "
2271 "по B<waitpid>(2) с значением истинным по I<WIFSTOPPED(status)>. Их можно "
2272 "различить, если проверить значение I<statusE<gt>E<gt>8>, и, если есть "
2273 "неоднозначность этого значения, то запросив B<PTRACE_GETSIGINFO> (замечание: "
2274 "для выполнения этой проверки не может использоваться макрос "
2275 "I<WSTOPSIG(status)>, так как он возвращает значение I<(statusE<gt>E<gt>8)\\ "
2276 "&\\ 0xff>)."
2277
2278 #. type: SS
2279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2281 #, no-wrap
2282 msgid "Signal-delivery-stop"
2283 msgstr "Signal-delivery-stop"
2284
2285 #. type: Plain text
2286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2288 #, fuzzy
2289 #| msgid ""
2290 #| "When a (possibly multithreaded) process receives any signal except "
2291 #| "B<SIGKILL>, the kernel selects an arbitrary thread which handles the "
2292 #| "signal. (If the signal is generated with B<tgkill>(2), the target thread "
2293 #| "can be explicitly selected by the caller.) If the selected thread is "
2294 #| "traced, it enters signal-delivery-stop. At this point, the signal is not "
2295 #| "yet delivered to the process, and can be suppressed by the tracer. If "
2296 #| "the tracer doesn't suppress the signal, it passes the signal to the "
2297 #| "tracee in the next ptrace restart request. This second step of signal "
2298 #| "delivery is called I<signal injection> in this manual page. Note that if "
2299 #| "the signal is blocked, signal-delivery-stop doesn't happen until the "
2300 #| "signal is unblocked, with the usual exception that B<SIGSTOP> can't be "
2301 #| "blocked."
2302 msgid ""
2303 "When a (possibly multithreaded) process receives any signal except "
2304 "B<SIGKILL>, the kernel selects an arbitrary thread which handles the "
2305 "signal. (If the signal is generated with B<tgkill>(2), the target thread "
2306 "can be explicitly selected by the caller.) If the selected thread is "
2307 "traced, it enters signal-delivery-stop. At this point, the signal is not "
2308 "yet delivered to the process, and can be suppressed by the tracer. If the "
2309 "tracer doesn't suppress the signal, it passes the signal to the tracee in "
2310 "the next ptrace restart operation. This second step of signal delivery is "
2311 "called I<signal injection> in this manual page. Note that if the signal is "
2312 "blocked, signal-delivery-stop doesn't happen until the signal is unblocked, "
2313 "with the usual exception that B<SIGSTOP> can't be blocked."
2314 msgstr ""
2315 "Когда процесс (возможно, многонитевой) принимает какой-либо сигнал кроме "
2316 "B<SIGKILL>, ядро выбирает произвольную нить для его обработки (если сигнал "
2317 "генерируется с помощью B<tgkill>(2), то назначаемая нить может быть явно "
2318 "выбрана вызывающим). Если над выбранной нитью выполняется трассировка, то "
2319 "она попадает в режим signal-delivery-stop. В этот момент сигнал ещё не "
2320 "доставлен процессу и может быть отменён трассировщиком. Если трассировщик не "
2321 "отменил сигнал, то он передаётся трассируемой нити при следующем запросе "
2322 "перезапуска ptrace. Этот второй этап доставки сигнала называется в этой "
2323 "справочной странице I<внедрением сигнала>. Заметим, что если сигнал "
2324 "блокируется, то signal-delivery-stop не происходит пока сигнал не будет "
2325 "разблокирован (исключением, как обычно, является B<SIGSTOP>, который нельзя "
2326 "заблокировать)."
2327
2328 #. type: Plain text
2329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2331 msgid ""
2332 "Signal-delivery-stop is observed by the tracer as B<waitpid>(2) returning "
2333 "with I<WIFSTOPPED(status)> true, with the signal returned by "
2334 "I<WSTOPSIG(status)>. If the signal is B<SIGTRAP>, this may be a different "
2335 "kind of ptrace-stop; see the \"Syscall-stops\" and \"execve\" sections below "
2336 "for details. If I<WSTOPSIG(status)> returns a stopping signal, this may be "
2337 "a group-stop; see below."
2338 msgstr ""
2339 "Signal-delivery-stop наблюдается трассировщиком посредством B<waitpid>(2), "
2340 "возвращающим истинное значения для I<WIFSTOPPED(status)> с сигналом, который "
2341 "возвращается по I<WSTOPSIG(status)>. Если возвращается сигнал B<SIGTRAP>, то "
2342 "он может быть разновидностью ptrace-stop; смотрите разделы «Syscall-stops» и "
2343 "«execve» далее. Если I<WSTOPSIG(status)> возвращает останавливающий сигнал, "
2344 "то это может быть group-stop, смотрите далее."
2345
2346 #. type: SS
2347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2349 #, no-wrap
2350 msgid "Signal injection and suppression"
2351 msgstr "Внедрение и подавление сигнала"
2352
2353 #. type: Plain text
2354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2356 msgid ""
2357 "After signal-delivery-stop is observed by the tracer, the tracer should "
2358 "restart the tracee with the call"
2359 msgstr ""
2360 "После обнаружения трассировщиком signal-delivery-stop, он должен "
2361 "перезапустить трассируемую нить вызовом"
2362
2363 #. type: Plain text
2364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2366 #, no-wrap
2367 msgid "ptrace(PTRACE_restart, pid, 0, sig)\n"
2368 msgstr "ptrace(PTRACE_restart, pid, 0, sig)\n"
2369
2370 #. type: Plain text
2371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2373 #, fuzzy
2374 #| msgid ""
2375 #| "where B<PTRACE_restart> is one of the restarting ptrace requests. If "
2376 #| "I<sig> is 0, then a signal is not delivered. Otherwise, the signal "
2377 #| "I<sig> is delivered. This operation is called I<signal injection> in "
2378 #| "this manual page, to distinguish it from signal-delivery-stop."
2379 msgid ""
2380 "where B<PTRACE_restart> is one of the restarting ptrace operations. If "
2381 "I<sig> is 0, then a signal is not delivered. Otherwise, the signal I<sig> "
2382 "is delivered. This operation is called I<signal injection> in this manual "
2383 "page, to distinguish it from signal-delivery-stop."
2384 msgstr ""
2385 "где B<PTRACE_restart> — одно из перезапускающих действий ptrace. Если "
2386 "значение I<sig> равно 0, то сигнал не доставляется. В противном случае, "
2387 "доставляется сигнал I<sig>. Данная операция в справочной странице называется "
2388 "I<внедрением сигнала> для того, чтобы можно отличить её от signal-delivery-"
2389 "stop."
2390
2391 #. type: Plain text
2392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2394 msgid ""
2395 "The I<sig> value may be different from the I<WSTOPSIG(status)> value: the "
2396 "tracer can cause a different signal to be injected."
2397 msgstr ""
2398 "Значение I<sig> может отличаться от значения I<WSTOPSIG(status)>: "
2399 "трассировщик может поменять внедряемый сигнал."
2400
2401 #. type: Plain text
2402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2404 msgid ""
2405 "Note that a suppressed signal still causes system calls to return "
2406 "prematurely. In this case, system calls will be restarted: the tracer will "
2407 "observe the tracee to reexecute the interrupted system call (or "
2408 "B<restart_syscall>(2) system call for a few system calls which use a "
2409 "different mechanism for restarting) if the tracer uses B<PTRACE_SYSCALL>. "
2410 "Even system calls (such as B<poll>(2)) which are not restartable after "
2411 "signal are restarted after signal is suppressed; however, kernel bugs exist "
2412 "which cause some system calls to fail with B<EINTR> even though no "
2413 "observable signal is injected to the tracee."
2414 msgstr ""
2415 "Заметим, что подавленный сигнал всё равно заставит системные вызовы "
2416 "завершиться как можно скорее. В этом случае системные вызовы будут "
2417 "перезапущены: если трассировщик использует B<PTRACE_SYSCALL>, то обнаружит, "
2418 "когда трассируемая нить повторно выполнила прерванный системный вызов (или "
2419 "системный вызов B<restart_syscall>(2) для некоторых системных вызовов, "
2420 "которые используют другой механизм перезапуска). Даже системные вызовы "
2421 "(такие как B<poll>(2)), которые не перезапускаются по сигналу, будут "
2422 "перезапущены после подавления сигнала; однако, в ядре существуют дефекты, из-"
2423 "за которых некоторые системные вызовы завершаются с ошибкой B<EINTR>, даже "
2424 "если наблюдаемый сигнал не был внедрён в трассируемую нить."
2425
2426 #. type: Plain text
2427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2429 msgid ""
2430 "Restarting ptrace commands issued in ptrace-stops other than signal-delivery-"
2431 "stop are not guaranteed to inject a signal, even if I<sig> is nonzero. No "
2432 "error is reported; a nonzero I<sig> may simply be ignored. Ptrace users "
2433 "should not try to \"create a new signal\" this way: use B<tgkill>(2) "
2434 "instead."
2435 msgstr ""
2436 "Перезапускающие действия ptrace, выдаваемые в ptrace-stops, отличные от "
2437 "signal-delivery-stop, не гарантируют внедрения сигнала, даже если значение "
2438 "I<sig> не равно нулю. Об ошибках не сообщается; ненулевое значение I<sig> "
2439 "может быть просто проигнорировано. Пользователи ptrace не должны пытаться "
2440 "«создать новый сигнал» таким способом — используйте вместо этого "
2441 "B<tgkill>(2)."
2442
2443 #. type: Plain text
2444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2446 #, fuzzy
2447 #| msgid ""
2448 #| "The fact that signal injection requests may be ignored when restarting "
2449 #| "the tracee after ptrace stops that are not signal-delivery-stops is a "
2450 #| "cause of confusion among ptrace users. One typical scenario is that the "
2451 #| "tracer observes group-stop, mistakes it for signal-delivery-stop, "
2452 #| "restarts the tracee with"
2453 msgid ""
2454 "The fact that signal injection operations may be ignored when restarting the "
2455 "tracee after ptrace stops that are not signal-delivery-stops is a cause of "
2456 "confusion among ptrace users. One typical scenario is that the tracer "
2457 "observes group-stop, mistakes it for signal-delivery-stop, restarts the "
2458 "tracee with"
2459 msgstr ""
2460 "Тот факт, что запросы внедрения сигнала могут игнорироваться при перезапуске "
2461 "трассируемой нити после остановок ptrace не из signal-delivery-stops, "
2462 "вызывает путаницу у пользователей ptrace. Типичный сценарий: трассировщик "
2463 "обнаруживает group-stop, принимает его за signal-delivery-stop, "
2464 "перезапускает трассируемую нить с помощью"
2465
2466 #. type: Plain text
2467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2469 #, no-wrap
2470 msgid "ptrace(PTRACE_restart, pid, 0, stopsig)\n"
2471 msgstr "ptrace(PTRACE_restart, pid, 0, stopsig)\n"
2472
2473 #. type: Plain text
2474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2476 msgid ""
2477 "with the intention of injecting I<stopsig>, but I<stopsig> gets ignored and "
2478 "the tracee continues to run."
2479 msgstr ""
2480 "пытаясь внедрить I<stopsig>, но I<stopsig> игнорируется и трассируемая нить "
2481 "продолжает выполняться."
2482
2483 #. type: Plain text
2484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2486 msgid ""
2487 "The B<SIGCONT> signal has a side effect of waking up (all threads of) a "
2488 "group-stopped process. This side effect happens before signal-delivery-"
2489 "stop. The tracer can't suppress this side effect (it can only suppress "
2490 "signal injection, which only causes the B<SIGCONT> handler to not be "
2491 "executed in the tracee, if such a handler is installed). In fact, waking up "
2492 "from group-stop may be followed by signal-delivery-stop for signal(s) "
2493 "I<other than> B<SIGCONT>, if they were pending when B<SIGCONT> was "
2494 "delivered. In other words, B<SIGCONT> may be not the first signal observed "
2495 "by the tracee after it was sent."
2496 msgstr ""
2497 "Сигнал B<SIGCONT> имеет побочный эффект — пробуждает (все нити) процесс, "
2498 "находящийся в group-stop. Это случается перед signal-delivery-stop. "
2499 "Трассировщик не может повлиять на это побочное действие (он может только "
2500 "подавить внедрение сигнала, что приводит к тому, что обработчик B<SIGCONT> "
2501 "не будет выполнен в трассируемой нити, если он установлен). Фактически, "
2502 "пробуждение из group-stop может следовать после signal-delivery-stop для "
2503 "сигнала(ов) I<отличных от> B<SIGCONT>, если они ожидают момента доставки "
2504 "B<SIGCONT>. Другими словами, B<SIGCONT> может быть не первым сигналом, "
2505 "который обнаруживает трассируемую нить после её посылки."
2506
2507 #. type: Plain text
2508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2510 msgid ""
2511 "Stopping signals cause (all threads of) a process to enter group-stop. This "
2512 "side effect happens after signal injection, and therefore can be suppressed "
2513 "by the tracer."
2514 msgstr ""
2515 "Останавливающие сигналы заставляют процесс (все его нити) войти в group-"
2516 "stop. Данный побочный эффект возникает после внедрения сигнала, и поэтому "
2517 "может быть отменён трассировщиком."
2518
2519 #. In the Linux 2.4 sources, in arch/i386/kernel/signal.c::do_signal(),
2520 #. there is:
2521 #. /* The debugger continued. Ignore SIGSTOP. */
2522 #. if (signr == SIGSTOP)
2523 #. continue;
2524 #. type: Plain text
2525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2527 msgid "In Linux 2.4 and earlier, the B<SIGSTOP> signal can't be injected."
2528 msgstr ""
2529 "В Linux 2.4 и более ранних версиях, сигнал B<SIGSTOP> не может быть внедрён."
2530
2531 #. type: Plain text
2532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2534 msgid ""
2535 "B<PTRACE_GETSIGINFO> can be used to retrieve a I<siginfo_t> structure which "
2536 "corresponds to the delivered signal. B<PTRACE_SETSIGINFO> may be used to "
2537 "modify it. If B<PTRACE_SETSIGINFO> has been used to alter I<siginfo_t>, the "
2538 "I<si_signo> field and the I<sig> parameter in the restarting command must "
2539 "match, otherwise the result is undefined."
2540 msgstr ""
2541 "Действие B<PTRACE_GETSIGINFO> может использоваться для получения структуры "
2542 "I<siginfo_t>, которая соответствует доставленному сигналу. Для её изменения "
2543 "можно использовать B<PTRACE_SETSIGINFO>. Если B<PTRACE_SETSIGINFO> "
2544 "использовалась для изменения I<siginfo_t>, то поле I<si_signo> и параметр "
2545 "I<sig> в перезапускающем действии должны совпадать, иначе результат "
2546 "непредсказуем."
2547
2548 #. type: SS
2549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2551 #, no-wrap
2552 msgid "Group-stop"
2553 msgstr "Group-stop"
2554
2555 #. type: Plain text
2556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2558 msgid ""
2559 "When a (possibly multithreaded) process receives a stopping signal, all "
2560 "threads stop. If some threads are traced, they enter a group-stop. Note "
2561 "that the stopping signal will first cause signal-delivery-stop (on one "
2562 "tracee only), and only after it is injected by the tracer (or after it was "
2563 "dispatched to a thread which isn't traced), will group-stop be initiated on "
2564 "I<all> tracees within the multithreaded process. As usual, every tracee "
2565 "reports its group-stop separately to the corresponding tracer."
2566 msgstr ""
2567 "Когда (возможно многонитевой) процесс получает останавливающий сигнал, все "
2568 "нити останавливаются. Если для какой-то нити выполняется трассировка, то она "
2569 "входит в режим group-stop. Заметим, что останавливающий сигнал сначала "
2570 "приведёт к signal-delivery-stop (только в одной трассируемой нити) и только "
2571 "затем будет внедрён трассировщиком (или после того, как будет отправлен "
2572 "нити, над которой не выполняется трассировка), будет начат group-stop в "
2573 "I<всех> трассируемых нитях многонитевого процесса. Как обычно, каждая "
2574 "трассируемая нить сообщает о group-stop соответствующему трассировщику."
2575
2576 #. type: Plain text
2577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2579 msgid ""
2580 "Group-stop is observed by the tracer as B<waitpid>(2) returning with "
2581 "I<WIFSTOPPED(status)> true, with the stopping signal available via "
2582 "I<WSTOPSIG(status)>. The same result is returned by some other classes of "
2583 "ptrace-stops, therefore the recommended practice is to perform the call"
2584 msgstr ""
2585 "Group-stop обнаруживается трассировщиком с помощью B<waitpid>(2), который "
2586 "возвращается с истинным значением I<WIFSTOPPED(status)> и останавливающим "
2587 "сигналом из I<WSTOPSIG(status)>. Тот же результат возвращается другими "
2588 "классами ptrace-stops, поэтому рекомендуется выполнять вызов"
2589
2590 #. type: Plain text
2591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2593 #, no-wrap
2594 msgid "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo)\n"
2595 msgstr "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo)\n"
2596
2597 #. type: Plain text
2598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2600 msgid ""
2601 "The call can be avoided if the signal is not B<SIGSTOP>, B<SIGTSTP>, "
2602 "B<SIGTTIN>, or B<SIGTTOU>; only these four signals are stopping signals. If "
2603 "the tracer sees something else, it can't be a group-stop. Otherwise, the "
2604 "tracer needs to call B<PTRACE_GETSIGINFO>. If B<PTRACE_GETSIGINFO> fails "
2605 "with B<EINVAL>, then it is definitely a group-stop. (Other failure codes "
2606 "are possible, such as B<ESRCH> (\"no such process\") if a B<SIGKILL> killed "
2607 "the tracee.)"
2608 msgstr ""
2609 "Вызова можно избежать, если сигнал не равен B<SIGSTOP>, B<SIGTSTP>, "
2610 "B<SIGTTIN> или B<SIGTTOU>; только эти четыре сигнала являются "
2611 "останавливающими. Если трассировщик видит что-то другое, то это не может "
2612 "быть group-stop. В противном случае, трассировщику нужно вызвать "
2613 "B<PTRACE_GETSIGINFO>. Если B<PTRACE_GETSIGINFO> завершается с ошибкой "
2614 "B<EINVAL>, то это определённо group-stop (возможны другие коды ошибок, "
2615 "например, B<ESRCH> («нет такого процесса»), если трассируемая нить "
2616 "уничтожена по B<SIGKILL>)."
2617
2618 #. type: Plain text
2619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2621 msgid ""
2622 "If tracee was attached using B<PTRACE_SEIZE>, group-stop is indicated by "
2623 "B<PTRACE_EVENT_STOP>: I<statusE<gt>E<gt>16 == PTRACE_EVENT_STOP>. This "
2624 "allows detection of group-stops without requiring an extra "
2625 "B<PTRACE_GETSIGINFO> call."
2626 msgstr ""
2627 "Если подключение к трассируемому было сделано с помощью B<PTRACE_SEIZE>, то "
2628 "group-stop указывается B<PTRACE_EVENT_STOP>: I<statusE<gt>E<gt>16 == "
2629 "PTRACE_EVENT_STOP>. Это позволяет обнаружить group-stop без дополнительного "
2630 "вызова B<PTRACE_GETSIGINFO>."
2631
2632 #. type: Plain text
2633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2635 msgid ""
2636 "As of Linux 2.6.38, after the tracer sees the tracee ptrace-stop and until "
2637 "it restarts or kills it, the tracee will not run, and will not send "
2638 "notifications (except B<SIGKILL> death) to the tracer, even if the tracer "
2639 "enters into another B<waitpid>(2) call."
2640 msgstr ""
2641 "Начиная с Linux 2.6.38, после того как трассировщик увидит ptrace-stop "
2642 "трассируемой нити и пока он не перезапустит или завершит её, трассируемая "
2643 "нить не будет выполняться, и не будет посылать уведомления (за исключением "
2644 "уничтожения по B<SIGKILL>) трассировщику, даже если трассировщик войдёт в "
2645 "другой вызов B<waitpid>(2)."
2646
2647 #. type: Plain text
2648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2650 #, fuzzy
2651 #| msgid ""
2652 #| "The kernel behavior described in the previous paragraph causes a problem "
2653 #| "with transparent handling of stopping signals. If the tracer restarts "
2654 #| "the tracee after group-stop, the stopping signal is effectively ignored\\"
2655 #| "(emthe tracee doesn't remain stopped, it runs. If the tracer doesn't "
2656 #| "restart the tracee before entering into the next B<waitpid>(2), future "
2657 #| "B<SIGCONT> signals will not be reported to the tracer; this would cause "
2658 #| "the B<SIGCONT> signals to have no effect on the tracee."
2659 msgid ""
2660 "The kernel behavior described in the previous paragraph causes a problem "
2661 "with transparent handling of stopping signals. If the tracer restarts the "
2662 "tracee after group-stop, the stopping signal is effectively ignored\\[em]the "
2663 "tracee doesn't remain stopped, it runs. If the tracer doesn't restart the "
2664 "tracee before entering into the next B<waitpid>(2), future B<SIGCONT> "
2665 "signals will not be reported to the tracer; this would cause the B<SIGCONT> "
2666 "signals to have no effect on the tracee."
2667 msgstr ""
2668 "Поведение ядра, описанное в предыдущем параграфе, вызывает проблемы с "
2669 "прозрачностью обработки останавливающих сигналов. Если трассировщик "
2670 "перезапускает трассируемую нить после group-stop, то останавливающий сигнал "
2671 "просто игнорируется — трассируемая нить продолжает выполняться. Если "
2672 "трассировщик не перезапускает трассируемую нить перед входом в следующий "
2673 "B<waitpid>(2), то о будущих сигналах B<SIGCONT> не будет сообщено "
2674 "трассировщику; это привело бы к тому, что сигналы B<SIGCONT> не повлияли бы "
2675 "на трассируемую нить."
2676
2677 #. type: Plain text
2678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2680 msgid ""
2681 "Since Linux 3.4, there is a method to overcome this problem: instead of "
2682 "B<PTRACE_CONT>, a B<PTRACE_LISTEN> command can be used to restart a tracee "
2683 "in a way where it does not execute, but waits for a new event which it can "
2684 "report via B<waitpid>(2) (such as when it is restarted by a B<SIGCONT>)."
2685 msgstr ""
2686 "Начиная с Linux 3.4, появился способ преодоления этой проблемы: вместо "
2687 "B<PTRACE_CONT> для перезапуска трассируемой нити можно использовать "
2688 "B<PTRACE_LISTEN>, при которой она не выполняется, а ждёт нового события, и "
2689 "это можно прочитать с помощью B<waitpid>(2) (например, когда был перезапуск "
2690 "по B<SIGCONT>)."
2691
2692 #. type: SS
2693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2695 #, no-wrap
2696 msgid "PTRACE_EVENT stops"
2697 msgstr "Остановки PTRACE_EVENT"
2698
2699 #. type: Plain text
2700 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2701 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2702 msgid ""
2703 "If the tracer sets B<PTRACE_O_TRACE_*> options, the tracee will enter ptrace-"
2704 "stops called B<PTRACE_EVENT> stops."
2705 msgstr ""
2706 "Если трассировщик устанавливает флаги B<PTRACE_O_TRACE_*>, то трассируемая "
2707 "нить будет входить в ptrace-stop-ы, называемые остановками B<PTRACE_EVENT>."
2708
2709 #. type: Plain text
2710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2712 #, fuzzy
2713 #| msgid ""
2714 #| "B<PTRACE_EVENT> stops are observed by the tracer as B<waitpid>(2) "
2715 #| "returning with I<WIFSTOPPED(status)>, and I<WSTOPSIG(status)> returns "
2716 #| "B<SIGTRAP>. An additional bit is set in the higher byte of the status "
2717 #| "word: the value I<statusE<gt>E<gt>8> will be"
2718 msgid ""
2719 "B<PTRACE_EVENT> stops are observed by the tracer as B<waitpid>(2) returning "
2720 "with I<WIFSTOPPED(status)>, and I<WSTOPSIG(status)> returns B<SIGTRAP> (or "
2721 "for B<PTRACE_EVENT_STOP>, returns the stopping signal if tracee is in a "
2722 "group-stop). An additional bit is set in the higher byte of the status "
2723 "word: the value I<statusE<gt>E<gt>8> will be"
2724 msgstr ""
2725 "Остановки B<PTRACE_EVENT> обнаруживаются трассировщиком когда B<waitpid>(2) "
2726 "возвращается с I<WIFSTOPPED(status)> и I<WSTOPSIG(status)> возвращает "
2727 "B<SIGTRAP>. В старшем байте слова состояния устанавливается дополнительный "
2728 "бит: значение I<statusE<gt>E<gt>8> будет равно"
2729
2730 #. type: Plain text
2731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2733 #, no-wrap
2734 msgid "((PTRACE_EVENT_fooE<lt>E<lt>8) | SIGTRAP).\n"
2735 msgstr "((PTRACE_EVENT_fooE<lt>E<lt>8) | SIGTRAP).\n"
2736
2737 #. type: Plain text
2738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2740 msgid "The following events exist:"
2741 msgstr "Могут происходить следующие события:"
2742
2743 #. type: TP
2744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2746 #, no-wrap
2747 msgid "B<PTRACE_EVENT_VFORK>"
2748 msgstr "B<PTRACE_EVENT_VFORK>"
2749
2750 #. type: Plain text
2751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2753 msgid ""
2754 "Stop before return from B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> "
2755 "flag. When the tracee is continued after this stop, it will wait for child "
2756 "to exit/exec before continuing its execution (in other words, the usual "
2757 "behavior on B<vfork>(2))."
2758 msgstr ""
2759 "Остановка перед возвратом из B<vfork>(2) или B<clone>(2) с флагом "
2760 "B<CLONE_VFORK>. Когда трассируемая нить продолжает выполняться после этой "
2761 "остановки, она будет ждать выхода/exec потомка перед продолжением своего "
2762 "исполнения (другими словами, обычное поведение при B<vfork>(2))."
2763
2764 #. type: TP
2765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2767 #, no-wrap
2768 msgid "B<PTRACE_EVENT_FORK>"
2769 msgstr "B<PTRACE_EVENT_FORK>"
2770
2771 #. type: Plain text
2772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2774 msgid ""
2775 "Stop before return from B<fork>(2) or B<clone>(2) with the exit signal set "
2776 "to B<SIGCHLD>."
2777 msgstr ""
2778 "Остановка перед возвратом из B<fork>(2) или B<clone>(2) с установленным "
2779 "сигналом выхода B<SIGCHLD>."
2780
2781 #. type: TP
2782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2784 #, no-wrap
2785 msgid "B<PTRACE_EVENT_CLONE>"
2786 msgstr "B<PTRACE_EVENT_CLONE>"
2787
2788 #. type: Plain text
2789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2791 msgid "Stop before return from B<clone>(2)."
2792 msgstr "Остановка перед возвратом из B<clone>(2)."
2793
2794 #. type: TP
2795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2797 #, no-wrap
2798 msgid "B<PTRACE_EVENT_VFORK_DONE>"
2799 msgstr "B<PTRACE_EVENT_VFORK_DONE>"
2800
2801 #. type: Plain text
2802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2804 msgid ""
2805 "Stop before return from B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> "
2806 "flag, but after the child unblocked this tracee by exiting or execing."
2807 msgstr ""
2808 "Остановка перед возвратом из B<vfork>(2) или B<clone>(2) с установленным "
2809 "флагом B<CLONE_VFORK>, но после того, как потомок разблокирует эту "
2810 "трассируемую нить, завершив работу или выполнив exec."
2811
2812 #. type: Plain text
2813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2815 msgid ""
2816 "For all four stops described above, the stop occurs in the parent (i.e., the "
2817 "tracee), not in the newly created thread. B<PTRACE_GETEVENTMSG> can be used "
2818 "to retrieve the new thread's ID."
2819 msgstr ""
2820 "Для всех четырёх остановок, описанных выше, остановка происходит в родителе "
2821 "(т. е., трассируемой нити), а не в только что созданной нити. Для получения "
2822 "ID новой нити может использовать B<PTRACE_GETEVENTMSG>."
2823
2824 #. type: TP
2825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2827 #, no-wrap
2828 msgid "B<PTRACE_EVENT_EXEC>"
2829 msgstr "B<PTRACE_EVENT_EXEC>"
2830
2831 #. type: Plain text
2832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2834 msgid ""
2835 "Stop before return from B<execve>(2). Since Linux 3.0, "
2836 "B<PTRACE_GETEVENTMSG> returns the former thread ID."
2837 msgstr ""
2838 "Остановка перед возвратом из B<execve>(2). Начиная с Linux 3.0, "
2839 "B<PTRACE_GETEVENTMSG> возвращает ID бывшей нити."
2840
2841 #. type: TP
2842 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2843 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2844 #, no-wrap
2845 msgid "B<PTRACE_EVENT_EXIT>"
2846 msgstr "B<PTRACE_EVENT_EXIT>"
2847
2848 #. type: Plain text
2849 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2850 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2851 msgid ""
2852 "Stop before exit (including death from B<exit_group>(2)), signal death, or "
2853 "exit caused by B<execve>(2) in a multithreaded process. "
2854 "B<PTRACE_GETEVENTMSG> returns the exit status. Registers can be examined "
2855 "(unlike when \"real\" exit happens). The tracee is still alive; it needs to "
2856 "be B<PTRACE_CONT>ed or B<PTRACE_DETACH>ed to finish exiting."
2857 msgstr ""
2858 "Остановка перед выходом (включая уничтожение из B<exit_group>(2)), "
2859 "уничтожение от сигнала или выход, вызванный B<execve>(2) в многонитевом "
2860 "процессе. B<PTRACE_GETEVENTMSG> возвращает код выхода. Можно прочитать "
2861 "значения регистров (в отличие от случая, когда происходит «реальный» выход). "
2862 "Трассируемая нить всё ещё существует; для завершения выхода должно быть "
2863 "выполнено отсоединение с помощью B<PTRACE_CONT> или B<PTRACE_DETACH>."
2864
2865 #. type: TP
2866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2868 #, no-wrap
2869 msgid "B<PTRACE_EVENT_STOP>"
2870 msgstr "B<PTRACE_EVENT_STOP>"
2871
2872 #. type: Plain text
2873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2875 msgid ""
2876 "Stop induced by B<PTRACE_INTERRUPT> command, or group-stop, or initial "
2877 "ptrace-stop when a new child is attached (only if attached using "
2878 "B<PTRACE_SEIZE>)."
2879 msgstr ""
2880 "Остановка вызвана командой B<PTRACE_INTERRUPT>, или group-stop, или "
2881 "начальным ptrace-stop при присоединении к новому потомку (только если для "
2882 "присоединения использовалась B<PTRACE_SEIZE>)."
2883
2884 #. type: TP
2885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2887 #, no-wrap
2888 msgid "B<PTRACE_EVENT_SECCOMP>"
2889 msgstr "B<PTRACE_EVENT_SECCOMP>"
2890
2891 #. type: Plain text
2892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2894 msgid ""
2895 "Stop triggered by a B<seccomp>(2) rule on tracee syscall entry when "
2896 "B<PTRACE_O_TRACESECCOMP> has been set by the tracer. The seccomp event "
2897 "message data (from the B<SECCOMP_RET_DATA> portion of the seccomp filter "
2898 "rule) can be retrieved with B<PTRACE_GETEVENTMSG>. The semantics of this "
2899 "stop are described in detail in a separate section below."
2900 msgstr ""
2901 "Остановка вызвана правилом B<seccomp>(2) из-за элемента syscall "
2902 "трассируемого, когда B<PTRACE_O_TRACESECCOMP> была установлена "
2903 "трассировщиком. Данные сообщения события seccomp (из части "
2904 "B<SECCOMP_RET_DATA> фильтрующего правила seccomp) можно получить с помощью "
2905 "B<PTRACE_GETEVENTMSG>. Семантика данного останова подробно описана в "
2906 "отдельном разделе далее."
2907
2908 #. type: Plain text
2909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2911 msgid ""
2912 "B<PTRACE_GETSIGINFO> on B<PTRACE_EVENT> stops returns B<SIGTRAP> in "
2913 "I<si_signo>, with I<si_code> set to I<(eventE<lt>E<lt>8)\\ |\\ SIGTRAP>."
2914 msgstr ""
2915 "B<PTRACE_GETSIGINFO> при остановке B<PTRACE_EVENT> возвращает B<SIGTRAP> в "
2916 "I<si_signo>, а значение I<si_code> устанавливается в I<(eventE<lt>E<lt>8)\\ |"
2917 "\\ SIGTRAP>."
2918
2919 #. type: SS
2920 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2921 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2922 #, no-wrap
2923 msgid "Syscall-stops"
2924 msgstr "Syscall-stop"
2925
2926 #. type: Plain text
2927 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2928 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2929 msgid ""
2930 "If the tracee was restarted by B<PTRACE_SYSCALL> or B<PTRACE_SYSEMU>, the "
2931 "tracee enters syscall-enter-stop just prior to entering any system call "
2932 "(which will not be executed if the restart was using B<PTRACE_SYSEMU>, "
2933 "regardless of any change made to registers at this point or how the tracee "
2934 "is restarted after this stop). No matter which method caused the syscall-"
2935 "entry-stop, if the tracer restarts the tracee with B<PTRACE_SYSCALL>, the "
2936 "tracee enters syscall-exit-stop when the system call is finished, or if it "
2937 "is interrupted by a signal. (That is, signal-delivery-stop never happens "
2938 "between syscall-enter-stop and syscall-exit-stop; it happens I<after> "
2939 "syscall-exit-stop.). If the tracee is continued using any other method "
2940 "(including B<PTRACE_SYSEMU>), no syscall-exit-stop occurs. Note that all "
2941 "mentions B<PTRACE_SYSEMU> apply equally to B<PTRACE_SYSEMU_SINGLESTEP>."
2942 msgstr ""
2943 "Если трассируемый был перезапущен по B<PTRACE_SYSCALL> или B<PTRACE_SYSEMU>, "
2944 "то он входит в режим syscall-enter-stop сразу перед тем как войти в какой-"
2945 "либо системный вызов (который не будет выполняться, если перезапуск был из-"
2946 "за B<PTRACE_SYSEMU>, независимо от каких-либо изменений в регистрах на этот "
2947 "момент или если трассируемый перезапускается после своей остановки). Неважно "
2948 "какой метод вызвал syscall-entry-stop, если трассировщик перезапускает "
2949 "трассируемого с помощью B<PTRACE_SYSCALL>, то трассируемый входит в syscall-"
2950 "exit-stop при окончании системного вызова, или если он прерывается сигналом "
2951 "(то есть, signal-delivery-stop никогда не возникает между syscall-enter-stop "
2952 "и syscall-exit-stop; он возникает I<после> syscall-exit-stop). Если "
2953 "трассируемый продолжает выполнение с помощью какого-то другого метода "
2954 "(включая B<PTRACE_SYSEMU>), то syscall-exit-stop не возникает. Заметим, что "
2955 "все упоминания B<PTRACE_SYSEMU> применяются и к B<PTRACE_SYSEMU_SINGLESTEP>."
2956
2957 #. type: Plain text
2958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2960 msgid ""
2961 "However, even if the tracee was continued using B<PTRACE_SYSCALL>, it is not "
2962 "guaranteed that the next stop will be a syscall-exit-stop. Other "
2963 "possibilities are that the tracee may stop in a B<PTRACE_EVENT> stop "
2964 "(including seccomp stops), exit (if it entered B<_exit>(2) or "
2965 "B<exit_group>(2)), be killed by B<SIGKILL>, or die silently (if it is a "
2966 "thread group leader, the B<execve>(2) happened in another thread, and that "
2967 "thread is not traced by the same tracer; this situation is discussed later)."
2968 msgstr ""
2969 "Однако даже если трассируемый продолжил выполнение с помощью "
2970 "B<PTRACE_SYSCALL>, это не гарантирует, что следующая остановка будет syscall-"
2971 "exit-stop. Также, трассируемый может остановиться в остановке "
2972 "B<PTRACE_EVENT> (включая остановку seccomp), при выходе (если он вошёл в "
2973 "B<_exit>(2) или B<exit_group>(2)), уничтожении по сигналу B<SIGKILL>, или "
2974 "тихом уничтожении (если он является лидером группы нитей, возникает "
2975 "B<execve>(2) в другой нити, и эта нить не трассируется тем же "
2976 "трассировщиком; эта ситуация описана далее)."
2977
2978 #. type: Plain text
2979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2981 msgid ""
2982 "Syscall-enter-stop and syscall-exit-stop are observed by the tracer as "
2983 "B<waitpid>(2) returning with I<WIFSTOPPED(status)> true, and "
2984 "I<WSTOPSIG(status)> giving B<SIGTRAP>. If the B<PTRACE_O_TRACESYSGOOD> "
2985 "option was set by the tracer, then I<WSTOPSIG(status)> will give the value "
2986 "I<(SIGTRAP\\ |\\ 0x80)>."
2987 msgstr ""
2988 "Syscall-enter-stop и syscall-exit-stop обнаруживаются трассировщиком из "
2989 "B<waitpid>(2), возвращающем истинное значение I<WIFSTOPPED(status)> и "
2990 "I<WSTOPSIG(status)> выдающем B<SIGTRAP>. Если трассировщиком был установлен "
2991 "флаг B<PTRACE_O_TRACESYSGOOD>, то I<WSTOPSIG(status)> выдаст значение "
2992 "I<(SIGTRAP\\ |\\ 0x80)>."
2993
2994 #. type: Plain text
2995 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2996 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2997 msgid ""
2998 "Syscall-stops can be distinguished from signal-delivery-stop with B<SIGTRAP> "
2999 "by querying B<PTRACE_GETSIGINFO> for the following cases:"
3000 msgstr ""
3001 "Syscall-stop можно отличить от signal-delivery-stop по B<SIGTRAP>, запросив "
3002 "B<PTRACE_GETSIGINFO> в следующих случаях:"
3003
3004 #. type: TP
3005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3007 #, no-wrap
3008 msgid "I<si_code> E<lt>= 0"
3009 msgstr "I<si_code> E<lt>= 0"
3010
3011 #. type: Plain text
3012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3014 #, fuzzy
3015 #| msgid ""
3016 #| "B<SIGTRAP> was delivered as a result of a user-space action, for example, "
3017 #| "a system call (B<tgkill>(2), B<kill>(2), B<sigqueue>(3), etc.), "
3018 #| "expiration of a POSIX timer, change of state on a POSIX message queue, or "
3019 #| "completion of an asynchronous I/O request."
3020 msgid ""
3021 "B<SIGTRAP> was delivered as a result of a user-space action, for example, a "
3022 "system call (B<tgkill>(2), B<kill>(2), B<sigqueue>(3), etc.), expiration of "
3023 "a POSIX timer, change of state on a POSIX message queue, or completion of an "
3024 "asynchronous I/O operation."
3025 msgstr ""
3026 "B<SIGTRAP> был доставлен в результате действия из пространства пользователя, "
3027 "например, системного вызова (B<tgkill>(2), B<kill>(2), B<sigqueue>(3) и т. "
3028 "д.), истечении таймера POSIX, изменении состояния очереди сообщений POSIX "
3029 "или выполнении асинхронного запроса ввода/вывода."
3030
3031 #. type: TP
3032 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3033 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3034 #, no-wrap
3035 msgid "I<si_code> == SI_KERNEL (0x80)"
3036 msgstr "I<si_code> == SI_KERNEL (0x80)"
3037
3038 #. type: Plain text
3039 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3040 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3041 msgid "B<SIGTRAP> was sent by the kernel."
3042 msgstr "B<SIGTRAP> был послан ядром."
3043
3044 #. type: TP
3045 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3046 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3047 #, no-wrap
3048 msgid "I<si_code> == SIGTRAP or I<si_code> == (SIGTRAP|0x80)"
3049 msgstr "I<si_code> == SIGTRAP или I<si_code> == (SIGTRAP|0x80)"
3050
3051 #. type: Plain text
3052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3054 msgid "This is a syscall-stop."
3055 msgstr "Это syscall-stop."
3056
3057 #. type: Plain text
3058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3060 msgid ""
3061 "However, syscall-stops happen very often (twice per system call), and "
3062 "performing B<PTRACE_GETSIGINFO> for every syscall-stop may be somewhat "
3063 "expensive."
3064 msgstr ""
3065 "Однако, syscall-stop происходят очень часто (дважды за системный вызов), и "
3066 "выполнение B<PTRACE_GETSIGINFO> для каждого syscall-stop может быть отчасти "
3067 "накладно."
3068
3069 #. type: Plain text
3070 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3071 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3072 msgid ""
3073 "Some architectures allow the cases to be distinguished by examining "
3074 "registers. For example, on x86, I<rax> == -B<ENOSYS> in syscall-enter-"
3075 "stop. Since B<SIGTRAP> (like any other signal) always happens I<after> "
3076 "syscall-exit-stop, and at this point I<rax> almost never contains "
3077 "-B<ENOSYS>, the B<SIGTRAP> looks like \"syscall-stop which is not syscall-"
3078 "enter-stop\"; in other words, it looks like a \"stray syscall-exit-stop\" "
3079 "and can be detected this way. But such detection is fragile and is best "
3080 "avoided."
3081 msgstr ""
3082 "Некоторые архитектуры позволяют отличать эти случаи по значениям регистров. "
3083 "Например, на x86, при syscall-enter-stop I<rax> == -B<ENOSYS>. Так как "
3084 "B<SIGTRAP> (как и любой сигнал) всегда возникает I<после> syscall-exit-stop, "
3085 "и в этот момент I<rax> почти никогда не содержит B<ENOSYS>, B<SIGTRAP> "
3086 "выглядит как «syscall-stop, который не syscall-enter-stop»; другими словами, "
3087 "это выглядит как «блуждающий syscall-exit-stop» и таким способом может быть "
3088 "обнаружен. Но определение этим способом очень ненадёжно и лучше его не "
3089 "использовать."
3090
3091 #. type: Plain text
3092 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3093 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3094 msgid ""
3095 "Using the B<PTRACE_O_TRACESYSGOOD> option is the recommended method to "
3096 "distinguish syscall-stops from other kinds of ptrace-stops, since it is "
3097 "reliable and does not incur a performance penalty."
3098 msgstr ""
3099 "Использование флага B<PTRACE_O_TRACESYSGOOD> — рекомендуемый метод "
3100 "различения syscall-stop от похожих на них других ptrace-stop, так как это "
3101 "надёжно и не приводит к ухудшению производительности."
3102
3103 #. type: Plain text
3104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3106 msgid ""
3107 "Syscall-enter-stop and syscall-exit-stop are indistinguishable from each "
3108 "other by the tracer. The tracer needs to keep track of the sequence of "
3109 "ptrace-stops in order to not misinterpret syscall-enter-stop as syscall-exit-"
3110 "stop or vice versa. In general, a syscall-enter-stop is always followed by "
3111 "syscall-exit-stop, B<PTRACE_EVENT> stop, or the tracee's death; no other "
3112 "kinds of ptrace-stop can occur in between. However, note that seccomp stops "
3113 "(see below) can cause syscall-exit-stops, without preceding syscall-entry-"
3114 "stops. If seccomp is in use, care needs to be taken not to misinterpret "
3115 "such stops as syscall-entry-stops."
3116 msgstr ""
3117 "Syscall-enter-stop и syscall-exit-stop неотличимы друг от друга "
3118 "трассировщиком. Трассировщику требуется отслеживать последовательность "
3119 "ptrace-stop, чтобы правильно истолковать syscall-enter-stop как syscall-exit-"
3120 "stop или наоборот. В общем, за syscall-enter-stop всегда следует syscall-"
3121 "exit-stop, B<PTRACE_EVENT> остановка или уничтожение трассируемого; никаких "
3122 "других ptrace-stop не может возникнуть между ними. Однако заметим, что "
3123 "остановки seccomp (смотрите ниже) могут приводить к syscall-exit-stop без "
3124 "предварительного syscall-entry-stop. Если используется seccomp, необходима "
3125 "осторожность чтобы не посчитать такие остановки за syscall-entry-stop."
3126
3127 #. type: Plain text
3128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3130 msgid ""
3131 "If after syscall-enter-stop, the tracer uses a restarting command other than "
3132 "B<PTRACE_SYSCALL>, syscall-exit-stop is not generated."
3133 msgstr ""
3134 "Если после syscall-enter-stop трассировщик использует перезапускающее "
3135 "действие, отличное от B<PTRACE_SYSCALL>, то syscall-exit-stop не "
3136 "генерируется."
3137
3138 #. type: Plain text
3139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3141 msgid ""
3142 "B<PTRACE_GETSIGINFO> on syscall-stops returns B<SIGTRAP> in I<si_signo>, "
3143 "with I<si_code> set to B<SIGTRAP> or I<(SIGTRAP|0x80)>."
3144 msgstr ""
3145 "B<PTRACE_GETSIGINFO> при syscall-stop возвращает B<SIGTRAP> в I<si_signo>, "
3146 "значение I<si_code> устанавливается в B<SIGTRAP> или I<(SIGTRAP|0x80)>."
3147
3148 #. type: SS
3149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3151 #, fuzzy, no-wrap
3152 #| msgid "PTRACE_EVENT_SECCOMP stops (Linux 3.5 to 4.7)"
3153 msgid "PTRACE_EVENT_SECCOMP stops (Linux 3.5 to Linux 4.7)"
3154 msgstr "Остановки PTRACE_EVENT_SECCOMP (Linux 3.5 по 4.7)"
3155
3156 #. type: Plain text
3157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3159 msgid ""
3160 "The behavior of B<PTRACE_EVENT_SECCOMP> stops and their interaction with "
3161 "other kinds of ptrace stops has changed between kernel versions. This "
3162 "documents the behavior from their introduction until Linux 4.7 (inclusive). "
3163 "The behavior in later kernel versions is documented in the next section."
3164 msgstr ""
3165 "Поведение остановок B<PTRACE_EVENT_SECCOMP> и их взаимодействие с другими "
3166 "видами остановок ptrace различается от версии к версии. Здесь описано "
3167 "поведение от их появления до Linux 4.7 (включительно). Поведение в более "
3168 "новых версиях описано в следующем разделе."
3169
3170 #. type: Plain text
3171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3173 msgid ""
3174 "A B<PTRACE_EVENT_SECCOMP> stop occurs whenever a B<SECCOMP_RET_TRACE> rule "
3175 "is triggered. This is independent of which methods was used to restart the "
3176 "system call. Notably, seccomp still runs even if the tracee was restarted "
3177 "using B<PTRACE_SYSEMU> and this system call is unconditionally skipped."
3178 msgstr ""
3179 "Остановка B<PTRACE_EVENT_SECCOMP> возникает из-за срабатывания правила "
3180 "B<SECCOMP_RET_TRACE>. Она не зависит от используемых методов перезапуска "
3181 "системного вызова. Примечательно, что seccomp по прежнему работает даже, "
3182 "если трассируемый был перезапущен с помощью B<PTRACE_SYSEMU> и этот "
3183 "системный вызов безоговорочно пропускается."
3184
3185 #. type: Plain text
3186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3188 msgid ""
3189 "Restarts from this stop will behave as if the stop had occurred right before "
3190 "the system call in question. In particular, both B<PTRACE_SYSCALL> and "
3191 "B<PTRACE_SYSEMU> will normally cause a subsequent syscall-entry-stop. "
3192 "However, if after the B<PTRACE_EVENT_SECCOMP> the system call number is "
3193 "negative, both the syscall-entry-stop and the system call itself will be "
3194 "skipped. This means that if the system call number is negative after a "
3195 "B<PTRACE_EVENT_SECCOMP> and the tracee is restarted using B<PTRACE_SYSCALL>, "
3196 "the next observed stop will be a syscall-exit-stop, rather than the syscall-"
3197 "entry-stop that might have been expected."
3198 msgstr ""
3199 "Перезапуск из этой остановки будет вести себя как если бы остановка возникла "
3200 "прямо перед рассматриваемым системным вызовом. В частности, "
3201 "B<PTRACE_SYSCALL> и B<PTRACE_SYSEMU> как обычно вызовут последующий syscall-"
3202 "entry-stop. Однако, если после B<PTRACE_EVENT_SECCOMP> номер системного "
3203 "вызова отрицательный, то и syscall-entry-stop и сам системный вызов будут "
3204 "пропущены. Это означает, что если номер системного вызова отрицательный "
3205 "после B<PTRACE_EVENT_SECCOMP> и трассируемый перезапущен с помощью "
3206 "B<PTRACE_SYSCALL>, то следующая наблюдаемая остановка будет syscall-exit-"
3207 "stop, а не syscall-entry-stop, как можно было ожидать."
3208
3209 #. type: SS
3210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3212 #, no-wrap
3213 msgid "PTRACE_EVENT_SECCOMP stops (since Linux 4.8)"
3214 msgstr "Остановки PTRACE_EVENT_SECCOMP (начиная с Linux 4.8)"
3215
3216 #. commit 93e35efb8de45393cf61ed07f7b407629bf698ea
3217 #. type: Plain text
3218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3220 msgid ""
3221 "Starting with Linux 4.8, the B<PTRACE_EVENT_SECCOMP> stop was reordered to "
3222 "occur between syscall-entry-stop and syscall-exit-stop. Note that seccomp "
3223 "no longer runs (and no B<PTRACE_EVENT_SECCOMP> will be reported) if the "
3224 "system call is skipped due to B<PTRACE_SYSEMU>."
3225 msgstr ""
3226 "Начиная с Linux 4.8, остановка B<PTRACE_EVENT_SECCOMP> была преобразована "
3227 "при возникновении между syscall-entry-stop и syscall-exit-stop. Заметим, что "
3228 "seccomp больше не выполняется (и B<PTRACE_EVENT_SECCOMP> не будет выдан), "
3229 "если системный вызов пропускается из-за B<PTRACE_SYSEMU>."
3230
3231 #. type: Plain text
3232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3234 msgid ""
3235 "Functionally, a B<PTRACE_EVENT_SECCOMP> stop functions comparably to a "
3236 "syscall-entry-stop (i.e., continuations using B<PTRACE_SYSCALL> will cause "
3237 "syscall-exit-stops, the system call number may be changed and any other "
3238 "modified registers are visible to the to-be-executed system call as well). "
3239 "Note that there may be, but need not have been a preceding syscall-entry-"
3240 "stop."
3241 msgstr ""
3242 "Функционально, остановка B<PTRACE_EVENT_SECCOMP> работает как syscall-entry-"
3243 "stop (т. е., продолжение использования B<PTRACE_SYSCALL> приведёт к syscall-"
3244 "exit-stop, может измениться номер системного вызова и любые другие регистры, "
3245 "видимые выполняемому в будущем системному вызову). Заметим, что это может "
3246 "быть, но не обязательно предваряется syscall-entry-stop."
3247
3248 #. type: Plain text
3249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3251 msgid ""
3252 "After a B<PTRACE_EVENT_SECCOMP> stop, seccomp will be rerun, with a "
3253 "B<SECCOMP_RET_TRACE> rule now functioning the same as a "
3254 "B<SECCOMP_RET_ALLOW>. Specifically, this means that if registers are not "
3255 "modified during the B<PTRACE_EVENT_SECCOMP> stop, the system call will then "
3256 "be allowed."
3257 msgstr ""
3258 "После остановки B<PTRACE_EVENT_SECCOMP>, seccomp будет выполнен повторно с "
3259 "правилом B<SECCOMP_RET_TRACE>, которое теперь работает также как "
3260 "B<SECCOMP_RET_ALLOW>. Точнее говоря, это означает, что если регистры не "
3261 "изменились во время остановки B<PTRACE_EVENT_SECCOMP>,то после этого "
3262 "системный вызов будет разрешён."
3263
3264 #. type: SS
3265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3267 #, no-wrap
3268 msgid "PTRACE_SINGLESTEP stops"
3269 msgstr "Остановки PTRACE_SINGLESTEP"
3270
3271 #. FIXME .
3272 #. document stops occurring with PTRACE_SINGLESTEP
3273 #. type: Plain text
3274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3276 msgid "[Details of these kinds of stops are yet to be documented.]"
3277 msgstr "[Пока не описаны.]"
3278
3279 #. type: SS
3280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3282 #, no-wrap
3283 msgid "Informational and restarting ptrace commands"
3284 msgstr "Информационные и перезапускающие действия ptrace"
3285
3286 #. type: Plain text
3287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3289 msgid ""
3290 "Most ptrace commands (all except B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, "
3291 "B<PTRACE_TRACEME>, B<PTRACE_INTERRUPT>, and B<PTRACE_KILL>) require the "
3292 "tracee to be in a ptrace-stop, otherwise they fail with B<ESRCH>."
3293 msgstr ""
3294 "Для большинства действий ptrace (все, за исключением B<PTRACE_ATTACH>, "
3295 "B<PTRACE_SEIZE>, B<PTRACE_TRACEME>, B<PTRACE_INTERRUPT> и B<PTRACE_KILL>) "
3296 "требуется, чтобы трассируемая нить была в режиме ptrace-stop, в противном "
3297 "случае они завершаются с ошибкой B<ESRCH>."
3298
3299 #. type: Plain text
3300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3302 msgid ""
3303 "When the tracee is in ptrace-stop, the tracer can read and write data to the "
3304 "tracee using informational commands. These commands leave the tracee in "
3305 "ptrace-stopped state:"
3306 msgstr ""
3307 "Когда трассируемая нить в ptrace-stop, трассировщик может читать и "
3308 "записывать данные в трассируемую нить с помощью информационных действий. Эти "
3309 "действия оставляют трассируемую нить в состоянии ptrace-stop:"
3310
3311 #. type: Plain text
3312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3314 #, no-wrap
3315 msgid ""
3316 "ptrace(PTRACE_PEEKTEXT/PEEKDATA/PEEKUSER, pid, addr, 0);\n"
3317 "ptrace(PTRACE_POKETEXT/POKEDATA/POKEUSER, pid, addr, long_val);\n"
3318 "ptrace(PTRACE_GETREGS/GETFPREGS, pid, 0, &struct);\n"
3319 "ptrace(PTRACE_SETREGS/SETFPREGS, pid, 0, &struct);\n"
3320 "ptrace(PTRACE_GETREGSET, pid, NT_foo, &iov);\n"
3321 "ptrace(PTRACE_SETREGSET, pid, NT_foo, &iov);\n"
3322 "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo);\n"
3323 "ptrace(PTRACE_SETSIGINFO, pid, 0, &siginfo);\n"
3324 "ptrace(PTRACE_GETEVENTMSG, pid, 0, &long_var);\n"
3325 "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
3326 msgstr ""
3327 "ptrace(PTRACE_PEEKTEXT/PEEKDATA/PEEKUSER, pid, addr, 0);\n"
3328 "ptrace(PTRACE_POKETEXT/POKEDATA/POKEUSER, pid, addr, long_val);\n"
3329 "ptrace(PTRACE_GETREGS/GETFPREGS, pid, 0, &struct);\n"
3330 "ptrace(PTRACE_SETREGS/SETFPREGS, pid, 0, &struct);\n"
3331 "ptrace(PTRACE_GETREGSET, pid, NT_foo, &iov);\n"
3332 "ptrace(PTRACE_SETREGSET, pid, NT_foo, &iov);\n"
3333 "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo);\n"
3334 "ptrace(PTRACE_SETSIGINFO, pid, 0, &siginfo);\n"
3335 "ptrace(PTRACE_GETEVENTMSG, pid, 0, &long_var);\n"
3336 "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
3337
3338 #. type: Plain text
3339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3341 msgid ""
3342 "Note that some errors are not reported. For example, setting signal "
3343 "information (I<siginfo>) may have no effect in some ptrace-stops, yet the "
3344 "call may succeed (return 0 and not set I<errno>); querying "
3345 "B<PTRACE_GETEVENTMSG> may succeed and return some random value if current "
3346 "ptrace-stop is not documented as returning a meaningful event message."
3347 msgstr ""
3348 "Заметим, что о некоторых ошибках не сообщается. Например, установка "
3349 "информации о сигнале (I<siginfo>) может никак не отразиться в некоторых "
3350 "ptrace-stop, при этом вызов может завершиться без ошибок (возвращается 0 и "
3351 "значение I<errno> не устанавливается); действие B<PTRACE_GETEVENTMSG> может "
3352 "выполниться без ошибок и вернуть произвольное значение, если текущий ptrace-"
3353 "stop не описан как возвращающий какое-то осмысленное сообщение о событии."
3354
3355 #. type: Plain text
3356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3358 msgid "The call"
3359 msgstr "Вызов"
3360
3361 #. type: Plain text
3362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3364 #, no-wrap
3365 msgid "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
3366 msgstr "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
3367
3368 #. type: Plain text
3369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3371 msgid ""
3372 "affects one tracee. The tracee's current flags are replaced. Flags are "
3373 "inherited by new tracees created and \"auto-attached\" via active "
3374 "B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, or B<PTRACE_O_TRACECLONE> "
3375 "options."
3376 msgstr ""
3377 "затрагивает одну трассируемую нить. Текущие флаги трассируемой нити "
3378 "заменяются. Флаги, наследуемые новой трассируемой нитью, создаются и "
3379 "«автоматически присоединяются» через активные флаги B<PTRACE_O_TRACEFORK>, "
3380 "B<PTRACE_O_TRACEVFORK> или B<PTRACE_O_TRACECLONE>."
3381
3382 #. type: Plain text
3383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3385 msgid ""
3386 "Another group of commands makes the ptrace-stopped tracee run. They have "
3387 "the form:"
3388 msgstr ""
3389 "Другая группа действий заставляет трассируемую нить, находящуюся в ptrace-"
3390 "stop, выполняться. Они могут иметь вид:"
3391
3392 #. type: Plain text
3393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3395 #, no-wrap
3396 msgid "ptrace(cmd, pid, 0, sig);\n"
3397 msgstr "ptrace(cmd, pid, 0, sig);\n"
3398
3399 #. type: Plain text
3400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3402 msgid ""
3403 "where I<cmd> is B<PTRACE_CONT>, B<PTRACE_LISTEN>, B<PTRACE_DETACH>, "
3404 "B<PTRACE_SYSCALL>, B<PTRACE_SINGLESTEP>, B<PTRACE_SYSEMU>, or "
3405 "B<PTRACE_SYSEMU_SINGLESTEP>. If the tracee is in signal-delivery-stop, "
3406 "I<sig> is the signal to be injected (if it is nonzero). Otherwise, I<sig> "
3407 "may be ignored. (When restarting a tracee from a ptrace-stop other than "
3408 "signal-delivery-stop, recommended practice is to always pass 0 in I<sig>.)"
3409 msgstr ""
3410 "где значение I<cmd> равно B<PTRACE_CONT>, B<PTRACE_LISTEN>, "
3411 "B<PTRACE_DETACH>, B<PTRACE_SYSCALL>, B<PTRACE_SINGLESTEP>, B<PTRACE_SYSEMU> "
3412 "или B<PTRACE_SYSEMU_SINGLESTEP>. Если трассируемая нить в signal-delivery-"
3413 "stop, то в I<sig> указывается сигнал, который будет внедрён (если не равен "
3414 "нулю). В противном случае, I<sig> может игнорироваться (при перезапуске "
3415 "трассируемой нити из ptrace-stop в отличный от signal-delivery-stop, "
3416 "рекомендуется передавать в I<sig> значение 0)."
3417
3418 #. type: SS
3419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3421 #, no-wrap
3422 msgid "Attaching and detaching"
3423 msgstr "Присоединение и отсоединение"
3424
3425 #. type: Plain text
3426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3428 msgid "A thread can be attached to the tracer using the call"
3429 msgstr "Нить можно присоединить к трассировщику с помощью вызова"
3430
3431 #. type: Plain text
3432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3434 #, no-wrap
3435 msgid "ptrace(PTRACE_ATTACH, pid, 0, 0);\n"
3436 msgstr "ptrace(PTRACE_ATTACH, pid, 0, 0);\n"
3437
3438 #. type: Plain text
3439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3441 msgid "or"
3442 msgstr "или"
3443
3444 #. type: Plain text
3445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3447 #, no-wrap
3448 msgid "ptrace(PTRACE_SEIZE, pid, 0, PTRACE_O_flags);\n"
3449 msgstr "ptrace(PTRACE_SEIZE, pid, 0, PTRACE_O_flags);\n"
3450
3451 #. FIXME Describe how to attach to a thread which is already group-stopped.
3452 #. type: Plain text
3453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3455 msgid ""
3456 "B<PTRACE_ATTACH> sends B<SIGSTOP> to this thread. If the tracer wants this "
3457 "B<SIGSTOP> to have no effect, it needs to suppress it. Note that if other "
3458 "signals are concurrently sent to this thread during attach, the tracer may "
3459 "see the tracee enter signal-delivery-stop with other signal(s) first! The "
3460 "usual practice is to reinject these signals until B<SIGSTOP> is seen, then "
3461 "suppress B<SIGSTOP> injection. The design bug here is that a ptrace attach "
3462 "and a concurrently delivered B<SIGSTOP> may race and the concurrent "
3463 "B<SIGSTOP> may be lost."
3464 msgstr ""
3465 "B<PTRACE_ATTACH> посылает в нить B<SIGSTOP>. Если трассировщик хочет "
3466 "отменить действие B<SIGSTOP>, ему нужно его подавить. Заметим, что если при "
3467 "присоединении в эту нить в тоже время посылаются другие сигналы, то "
3468 "трассировщик может увидеть, что трассируемая нить сначала вошла в signal-"
3469 "delivery-stop из этих сигналов! Обычной практикой является повторное "
3470 "внедрение этих сигналов до тех пор, пока не будет обнаружен B<SIGSTOP>, а "
3471 "затем подавление внедрения B<SIGSTOP>. Здесь есть ошибка в проектировании в "
3472 "том, что присоединение ptrace и одновременно доставляемый B<SIGSTOP> могут "
3473 "состязаться и одновременный B<SIGSTOP> может быть утерян."
3474
3475 #. type: Plain text
3476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3478 msgid ""
3479 "Since attaching sends B<SIGSTOP> and the tracer usually suppresses it, this "
3480 "may cause a stray B<EINTR> return from the currently executing system call "
3481 "in the tracee, as described in the \"Signal injection and suppression\" "
3482 "section."
3483 msgstr ""
3484 "Так как при присоединении посылается B<SIGSTOP> и трассировщик обычно "
3485 "подавляет его, то это может привести к блуждающему возврату B<EINTR> из в "
3486 "данный момент выполняемого системного вызова в трассируемой нити, как "
3487 "описано в разделе «Внедрение и отмена сигнала»."
3488
3489 #. type: Plain text
3490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3492 msgid ""
3493 "Since Linux 3.4, B<PTRACE_SEIZE> can be used instead of B<PTRACE_ATTACH>. "
3494 "B<PTRACE_SEIZE> does not stop the attached process. If you need to stop it "
3495 "after attach (or at any other time) without sending it any signals, use "
3496 "B<PTRACE_INTERRUPT> command."
3497 msgstr ""
3498 "Начиная с Linux 3.4, вместо B<PTRACE_ATTACH> можно использовать "
3499 "B<PTRACE_SEIZE>. B<PTRACE_SEIZE> не останавливает присоединённый. Если вам "
3500 "нужно остановить его после присоединения (или в любое другое время) без "
3501 "отправки каких-либо, используйте действие B<PTRACE_INTERRUPT>."
3502
3503 #. type: Plain text
3504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3506 #, fuzzy
3507 #| msgid "Special operations"
3508 msgid "The operation"
3509 msgstr "Специальные операции"
3510
3511 #. type: Plain text
3512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3514 #, no-wrap
3515 msgid "ptrace(PTRACE_TRACEME, 0, 0, 0);\n"
3516 msgstr "ptrace(PTRACE_TRACEME, 0, 0, 0);\n"
3517
3518 #. type: Plain text
3519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3521 msgid ""
3522 "turns the calling thread into a tracee. The thread continues to run "
3523 "(doesn't enter ptrace-stop). A common practice is to follow the "
3524 "B<PTRACE_TRACEME> with"
3525 msgstr ""
3526 "включает трассировку вызвавшей нити. Нить продолжает выполняться (не входит "
3527 "в ptrace-stop). Обычно, за B<PTRACE_TRACEME> следует"
3528
3529 #. type: Plain text
3530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3532 #, no-wrap
3533 msgid "raise(SIGSTOP);\n"
3534 msgstr "raise(SIGSTOP);\n"
3535
3536 #. type: Plain text
3537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3539 msgid ""
3540 "and allow the parent (which is our tracer now) to observe our signal-"
3541 "delivery-stop."
3542 msgstr ""
3543 "и это позволяет родителю (который теперь трассировщик) отследить signal-"
3544 "delivery-stop."
3545
3546 #. type: Plain text
3547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3549 msgid ""
3550 "If the B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, or "
3551 "B<PTRACE_O_TRACECLONE> options are in effect, then children created by, "
3552 "respectively, B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> flag, "
3553 "B<fork>(2) or B<clone>(2) with the exit signal set to B<SIGCHLD>, and "
3554 "other kinds of B<clone>(2), are automatically attached to the same tracer "
3555 "which traced their parent. B<SIGSTOP> is delivered to the children, causing "
3556 "them to enter signal-delivery-stop after they exit the system call which "
3557 "created them."
3558 msgstr ""
3559 "Если включены флаги B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK> или "
3560 "B<PTRACE_O_TRACECLONE>, то потомок, создаваемый, соответственно, B<vfork>(2) "
3561 "или B<clone>(2) с флагом B<CLONE_VFORK>, B<fork>(2) или B<clone>(2) с "
3562 "установленным выходным сигналом равным B<SIGCHLD>, и другими видами "
3563 "B<clone>(2), автоматически присоединяется к тому же трассировщику, которой "
3564 "трассирует их родителя. Сигнал B<SIGSTOP> доставляется потомку, заставляя "
3565 "его войти в signal-delivery-stop после завершения системного вызова, который "
3566 "его создал."
3567
3568 #. type: Plain text
3569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3571 msgid "Detaching of the tracee is performed by:"
3572 msgstr "Отсоединение от трассируемой нити выполняется с помощью:"
3573
3574 #. type: Plain text
3575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3577 #, no-wrap
3578 msgid "ptrace(PTRACE_DETACH, pid, 0, sig);\n"
3579 msgstr "ptrace(PTRACE_DETACH, pid, 0, sig);\n"
3580
3581 #. type: Plain text
3582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3584 msgid ""
3585 "B<PTRACE_DETACH> is a restarting operation; therefore it requires the tracee "
3586 "to be in ptrace-stop. If the tracee is in signal-delivery-stop, a signal "
3587 "can be injected. Otherwise, the I<sig> parameter may be silently ignored."
3588 msgstr ""
3589 "B<PTRACE_DETACH> является перезапускающей операцией, поэтому она требует, "
3590 "чтобы трассируемая нить была в ptrace-stop. Если трассируемая нить в signal-"
3591 "delivery-stop, то может быть внедрён сигнал. В противном случае параметр "
3592 "I<sig> может быть проигнорирован."
3593
3594 #. FIXME Describe how to detach from a group-stopped tracee so that it
3595 #. doesn't run, but continues to wait for SIGCONT.
3596 #. type: Plain text
3597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3599 #, fuzzy
3600 #| msgid ""
3601 #| "If the tracee is running when the tracer wants to detach it, the usual "
3602 #| "solution is to send B<SIGSTOP> (using B<tgkill>(2), to make sure it goes "
3603 #| "to the correct thread), wait for the tracee to stop in signal-delivery-"
3604 #| "stop for B<SIGSTOP> and then detach it (suppressing B<SIGSTOP> "
3605 #| "injection). A design bug is that this can race with concurrent "
3606 #| "B<SIGSTOP>s. Another complication is that the tracee may enter other "
3607 #| "ptrace-stops and needs to be restarted and waited for again, until "
3608 #| "B<SIGSTOP> is seen. Yet another complication is to be sure that the "
3609 #| "tracee is not already ptrace-stopped, because no signal delivery happens "
3610 #| "while it is\\(emnot even B<SIGSTOP>."
3611 msgid ""
3612 "If the tracee is running when the tracer wants to detach it, the usual "
3613 "solution is to send B<SIGSTOP> (using B<tgkill>(2), to make sure it goes to "
3614 "the correct thread), wait for the tracee to stop in signal-delivery-stop for "
3615 "B<SIGSTOP> and then detach it (suppressing B<SIGSTOP> injection). A design "
3616 "bug is that this can race with concurrent B<SIGSTOP>s. Another complication "
3617 "is that the tracee may enter other ptrace-stops and needs to be restarted "
3618 "and waited for again, until B<SIGSTOP> is seen. Yet another complication is "
3619 "to be sure that the tracee is not already ptrace-stopped, because no signal "
3620 "delivery happens while it is\\[em]not even B<SIGSTOP>."
3621 msgstr ""
3622 "Если трассировщик хочет отсоединиться,а трассируемая нить выполняется, то "
3623 "решением является посылка сигнала B<SIGSTOP> (с помощью B<tgkill>(2), чтобы "
3624 "точно достичь текущей нити), ожидание пока трассируемая нить не войдёт в "
3625 "signal-delivery-stop для доставки B<SIGSTOP> и затем отсоединение от неё "
3626 "(подавив внедрение B<SIGSTOP>). Ошибкой проектирования является возможность "
3627 "гонок с параллельно отправленными B<SIGSTOP>. Другая трудность в том, что "
3628 "трассируемая нить может войти в другой ptrace-stop и потребуется его "
3629 "перезапуск и повторное ожидание появления B<SIGSTOP>. Ещё одной сложностью "
3630 "является в проверки, что трассируемая нить уже не в ptrace-stop, так как в "
3631 "этом случае доставки сигнала не происходит — даже B<SIGSTOP>."
3632
3633 #. type: Plain text
3634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3636 msgid ""
3637 "If the tracer dies, all tracees are automatically detached and restarted, "
3638 "unless they were in group-stop. Handling of restart from group-stop is "
3639 "currently buggy, but the \"as planned\" behavior is to leave tracee stopped "
3640 "and waiting for B<SIGCONT>. If the tracee is restarted from signal-delivery-"
3641 "stop, the pending signal is injected."
3642 msgstr ""
3643 "Если трассировщик завершает работу, то все трассируемые нити автоматически "
3644 "отсоединяются и перезапускаются, если они не в group-stop. Выполнение "
3645 "перезапуска из group-stop в настоящее время содержит ошибки, но «плановым» "
3646 "поведением считается оставить трассируемую нить остановленной и подождать "
3647 "B<SIGCONT>. Если трассируемая нить перезапускается из signal-delivery-stop, "
3648 "то внедряется ожидающий сигнал."
3649
3650 #. type: SS
3651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3653 #, no-wrap
3654 msgid "execve(2) under ptrace"
3655 msgstr "Выполнение execve(2) во время ptrace"
3656
3657 #. clone(2) CLONE_THREAD says:
3658 #. If any of the threads in a thread group performs an execve(2),
3659 #. then all threads other than the thread group leader are terminated,
3660 #. and the new program is executed in the thread group leader.
3661 #. In Linux 3.1 sources, see fs/exec.c::de_thread()
3662 #. type: Plain text
3663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3665 msgid ""
3666 "When one thread in a multithreaded process calls B<execve>(2), the kernel "
3667 "destroys all other threads in the process, and resets the thread ID of the "
3668 "execing thread to the thread group ID (process ID). (Or, to put things "
3669 "another way, when a multithreaded process does an B<execve>(2), at "
3670 "completion of the call, it appears as though the B<execve>(2) occurred in "
3671 "the thread group leader, regardless of which thread did the B<execve>(2).) "
3672 "This resetting of the thread ID looks very confusing to tracers:"
3673 msgstr ""
3674 "Когда одна нить многонитевого процесса вызывает B<execve>(2), то ядро "
3675 "уничтожает все остальные нити процесса и сбрасывает ID выполняющейся нити в "
3676 "значение ID группы нитей (ID процесса. Или, говоря иначе, когда многонитевой "
3677 "процесс выполняет B<execve>(2), то по завершению вызова это выглядит как "
3678 "если бы B<execve>(2) произошёл в лидере группе нитей, независимо от того, "
3679 "какая нить вызвала B<execve>(2)). Такой сброс ID нити запутывает "
3680 "трассировщиков:"
3681
3682 #. type: IP
3683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3685 #, no-wrap
3686 msgid "\\[bu]"
3687 msgstr "\\[bu]"
3688
3689 #. type: Plain text
3690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3692 msgid ""
3693 "All other threads stop in B<PTRACE_EVENT_EXIT> stop, if the "
3694 "B<PTRACE_O_TRACEEXIT> option was turned on. Then all other threads except "
3695 "the thread group leader report death as if they exited via B<_exit>(2) with "
3696 "exit code 0."
3697 msgstr ""
3698 "Все остальные нити останавливаются в останове B<PTRACE_EVENT_EXIT>, если "
3699 "включён флаг B<PTRACE_O_TRACEEXIT>. Затем все остальные нити, за исключением "
3700 "лидера группы нитей, сообщают о завершении, как если бы они кончили работу с "
3701 "помощью B<_exit>(2) с кодом выхода 0."
3702
3703 #. type: Plain text
3704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3706 msgid ""
3707 "The execing tracee changes its thread ID while it is in the B<execve>(2). "
3708 "(Remember, under ptrace, the \"pid\" returned from B<waitpid>(2), or fed "
3709 "into ptrace calls, is the tracee's thread ID.) That is, the tracee's thread "
3710 "ID is reset to be the same as its process ID, which is the same as the "
3711 "thread group leader's thread ID."
3712 msgstr ""
3713 "У исполняемой трассируемой нити изменяется ID, так как она выполняет "
3714 "B<execve>(2) (помните, что в ptrace «pid», возвращаемый из B<waitpid>(2) или "
3715 "подаваемый в вызовы ptrace, это ID трассируемой нити). То есть ID "
3716 "трассируемой нити сбрасывается в значение ID своего процесса, который равен "
3717 "ID лидера группы нитей."
3718
3719 #. type: Plain text
3720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3722 msgid ""
3723 "Then a B<PTRACE_EVENT_EXEC> stop happens, if the B<PTRACE_O_TRACEEXEC> "
3724 "option was turned on."
3725 msgstr ""
3726 "Затем происходит остановка B<PTRACE_EVENT_EXEC>, если включён флаг "
3727 "B<PTRACE_O_TRACEEXEC>."
3728
3729 #. type: Plain text
3730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3732 msgid ""
3733 "If the thread group leader has reported its B<PTRACE_EVENT_EXIT> stop by "
3734 "this time, it appears to the tracer that the dead thread leader \"reappears "
3735 "from nowhere\". (Note: the thread group leader does not report death via "
3736 "I<WIFEXITED(status)> until there is at least one other live thread. This "
3737 "eliminates the possibility that the tracer will see it dying and then "
3738 "reappearing.) If the thread group leader was still alive, for the tracer "
3739 "this may look as if thread group leader returns from a different system call "
3740 "than it entered, or even \"returned from a system call even though it was "
3741 "not in any system call\". If the thread group leader was not traced (or was "
3742 "traced by a different tracer), then during B<execve>(2) it will appear as "
3743 "if it has become a tracee of the tracer of the execing tracee."
3744 msgstr ""
3745 "Если в это время лидер группы нитей сообщил о своей остановке "
3746 "B<PTRACE_EVENT_EXIT> в это время, то трассировщику кажется, что "
3747 "завершившийся лидер группы «возник из ниоткуда» (замечание: лидер группы "
3748 "нитей не сообщает о завершении через I<WIFEXITED(status)> до тех пор, пока "
3749 "есть одна работающая нить. Это не даёт возможности трассировщику увидеть его "
3750 "завершение и повторное появление). Если лидер группы нитей всё ещё "
3751 "выполнялся, то для трассировщика может казаться, что лидер группы нитей "
3752 "вернулся из другого системного вызова в который входил, или даже «вернулся "
3753 "из системного вызова, хотя не был ни в каком системном вызове». Если лидер "
3754 "группы нитей не трассируется (или трассируется другим трассировщиком), то во "
3755 "время B<execve>(2) он выглядит так, как если бы стал трассируемым "
3756 "трассировщиком выполняющейся трассируемой нити."
3757
3758 #. type: Plain text
3759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3761 msgid ""
3762 "All of the above effects are the artifacts of the thread ID change in the "
3763 "tracee."
3764 msgstr ""
3765 "Все перечисленные выше эффекты происходят из-за смены ID трассируемой нити."
3766
3767 #. type: Plain text
3768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3770 msgid ""
3771 "The B<PTRACE_O_TRACEEXEC> option is the recommended tool for dealing with "
3772 "this situation. First, it enables B<PTRACE_EVENT_EXEC> stop, which occurs "
3773 "before B<execve>(2) returns. In this stop, the tracer can use "
3774 "B<PTRACE_GETEVENTMSG> to retrieve the tracee's former thread ID. (This "
3775 "feature was introduced in Linux 3.0.) Second, the B<PTRACE_O_TRACEEXEC> "
3776 "option disables legacy B<SIGTRAP> generation on B<execve>(2)."
3777 msgstr ""
3778 "В этой ситуации рекомендуется использовать флаг B<PTRACE_O_TRACEEXEC>. Во-"
3779 "первых, он включает остановку B<PTRACE_EVENT_EXEC>, которая происходит перед "
3780 "возвратом из B<execve>(2). В этой остановке трассировщик может использовать "
3781 "B<PTRACE_GETEVENTMSG> для получения предыдущего ID трассируемой нити (эта "
3782 "возможность появилась в Linux 3.0). Во-вторых, флаг B<PTRACE_O_TRACEEXEC> "
3783 "отключает устаревшую генерацию B<SIGTRAP> при B<execve>(2)."
3784
3785 #. type: Plain text
3786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3788 msgid ""
3789 "When the tracer receives B<PTRACE_EVENT_EXEC> stop notification, it is "
3790 "guaranteed that except this tracee and the thread group leader, no other "
3791 "threads from the process are alive."
3792 msgstr ""
3793 "Когда трассировщик получает уведомление об остановке B<PTRACE_EVENT_EXEC>, "
3794 "гарантируется, что за исключением этой трассируемой нити и лидера группы "
3795 "нитей, больше живых нитей в этом процессе нет."
3796
3797 #. type: Plain text
3798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3800 #, fuzzy
3801 #| msgid ""
3802 #| "On receiving the B<PTRACE_EVENT_EXEC> stop notification, the tracer "
3803 #| "should clean up all its internal data structures describing the threads "
3804 #| "of this process, and retain only one data structure\\(emone which "
3805 #| "describes the single still running tracee, with"
3806 msgid ""
3807 "On receiving the B<PTRACE_EVENT_EXEC> stop notification, the tracer should "
3808 "clean up all its internal data structures describing the threads of this "
3809 "process, and retain only one data structure\\[em]one which describes the "
3810 "single still running tracee, with"
3811 msgstr ""
3812 "По получению уведомления об остановке B<PTRACE_EVENT_EXEC> трассировщик "
3813 "должен очистить все свои внутренние структуры данных, описывающие нити этого "
3814 "процесса, и оставить только одну структуру данных, которая описывает одну "
3815 "ещё выполняющуюся трассируемую нить, у которой"
3816
3817 #. type: Plain text
3818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3820 #, no-wrap
3821 msgid "thread ID == thread group ID == process ID.\n"
3822 msgstr "thread ID == thread group ID == process ID.\n"
3823
3824 #. type: Plain text
3825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3827 msgid "Example: two threads call B<execve>(2) at the same time:"
3828 msgstr "Пример: две нити вызывают B<execve>(2) одновременно:"
3829
3830 #. type: Plain text
3831 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
3832 #: opensuse-tumbleweed
3833 #, fuzzy, no-wrap
3834 #| msgid ""
3835 #| "*** we get syscall-enter-stop in thread 1: **\n"
3836 #| "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
3837 #| "*** we issue PTRACE_SYSCALL for thread 1 **\n"
3838 #| "*** we get syscall-enter-stop in thread 2: **\n"
3839 #| "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
3840 #| "*** we issue PTRACE_SYSCALL for thread 2 **\n"
3841 #| "*** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **\n"
3842 #| "*** we get syscall-exit-stop for PID0: **\n"
3843 #| "PID0 E<lt>... execve resumedE<gt> ) = 0\n"
3844 msgid ""
3845 "*** we get syscall-enter-stop in thread 1: **\n"
3846 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
3847 "*** we issue PTRACE_SYSCALL for thread 1 **\n"
3848 "*** we get syscall-enter-stop in thread 2: **\n"
3849 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
3850 "*** we issue PTRACE_SYSCALL for thread 2 **\n"
3851 "*** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **\n"
3852 "*** we get syscall-exit-stop for PID0: **\n"
3853 "PID0 E<lt>...\\& execve resumedE<gt> ) = 0\n"
3854 msgstr ""
3855 "*** мы получаем syscall-enter-stop в нити 1: **\n"
3856 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
3857 "*** мы выдаём PTRACE_SYSCALL для нити 1 **\n"
3858 "*** мы получаем syscall-enter-stop в нити 2: **\n"
3859 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
3860 "*** мы выдаём PTRACE_SYSCALL для нити 2 **\n"
3861 "*** мы получаем PTRACE_EVENT_EXEC for PID0, мы выдаём PTRACE_SYSCALL **\n"
3862 "*** мы получаем syscall-exit-stop для PID0: **\n"
3863 "PID0 E<lt>... execve resumedE<gt> ) = 0\n"
3864
3865 #. type: Plain text
3866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3868 msgid ""
3869 "If the B<PTRACE_O_TRACEEXEC> option is I<not> in effect for the execing "
3870 "tracee, and if the tracee was B<PTRACE_ATTACH>ed rather that "
3871 "B<PTRACE_SEIZE>d, the kernel delivers an extra B<SIGTRAP> to the tracee "
3872 "after B<execve>(2) returns. This is an ordinary signal (similar to one "
3873 "which can be generated by I<kill -TRAP>), not a special kind of ptrace-"
3874 "stop. Employing B<PTRACE_GETSIGINFO> for this signal returns I<si_code> set "
3875 "to 0 (I<SI_USER>). This signal may be blocked by signal mask, and thus may "
3876 "be delivered (much) later."
3877 msgstr ""
3878 "Если флаг B<PTRACE_O_TRACEEXEC> I<не> действует на выполняющуюся "
3879 "трассируемую нить и если трассируемая нить подключена с помощью "
3880 "B<PTRACE_ATTACH>, а не B<PTRACE_SEIZE>, то ядро доставляет ей дополнительный "
3881 "B<SIGTRAP> после возврата из B<execve>(2). Это обычный сигнал (похожий на "
3882 "тот, который генерируется с помощью I<kill -TRAP>), а не какая-то "
3883 "специальная разновидность ptrace-stop. Выдача B<PTRACE_GETSIGINFO> для этого "
3884 "сигнала возвращает I<si_code> равный 0 (I<SI_USER>). Этот сигнал может быть "
3885 "блокирован маской сигналов и поэтому может быть доставлен (намного) позже."
3886
3887 #. type: Plain text
3888 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3889 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3890 msgid ""
3891 "Usually, the tracer (for example, B<strace>(1)) would not want to show this "
3892 "extra post-execve B<SIGTRAP> signal to the user, and would suppress its "
3893 "delivery to the tracee (if B<SIGTRAP> is set to B<SIG_DFL>, it is a killing "
3894 "signal). However, determining I<which> B<SIGTRAP> to suppress is not easy. "
3895 "Setting the B<PTRACE_O_TRACEEXEC> option or using B<PTRACE_SEIZE> and thus "
3896 "suppressing this extra B<SIGTRAP> is the recommended approach."
3897 msgstr ""
3898 "Обычно, трассировщик (например, B<strace>(1)) не хотел бы показывать этот "
3899 "дополнительный пост-execve B<SIGTRAP> сигнал пользователю, и хотел бы "
3900 "подавить его доставку в трассируемую нить (если обработчик B<SIGTRAP> равен "
3901 "B<SIG_DFL>, то это уничтожающий сигнал). Однако, определить I<какой> "
3902 "B<SIGTRAP> подавлять, нелегко. Рекомендуется установить флаг "
3903 "B<PTRACE_O_TRACEEXEC> или B<PTRACE_SEIZE> и затем подавить этот "
3904 "дополнительный B<SIGTRAP>."
3905
3906 #. type: SS
3907 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3908 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3909 #, no-wrap
3910 msgid "Real parent"
3911 msgstr "Настоящий родитель"
3912
3913 #. type: Plain text
3914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3916 msgid ""
3917 "The ptrace API (ab)uses the standard UNIX parent/child signaling over "
3918 "B<waitpid>(2). This used to cause the real parent of the process to stop "
3919 "receiving several kinds of B<waitpid>(2) notifications when the child "
3920 "process is traced by some other process."
3921 msgstr ""
3922 "Программный интерфейс ptrace использует стандартный обмен сигналами UNIX "
3923 "между родителем и потомком через B<waitpid>(2). Это приводит к тому, что "
3924 "настоящий родитель процесса перестаёт получать некоторые виды уведомлений "
3925 "B<waitpid>(2), когда дочерний процесс трассируется другим процессом."
3926
3927 #. type: Plain text
3928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3930 msgid ""
3931 "Many of these bugs have been fixed, but as of Linux 2.6.38 several still "
3932 "exist; see BUGS below."
3933 msgstr ""
3934 "Многие из этих дефектов были исправлены, но на момент версии Linux 2.6.38 "
3935 "некоторые из них всё ещё существуют; смотрите ДЕФЕКТЫ далее."
3936
3937 #. type: Plain text
3938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3940 msgid "As of Linux 2.6.38, the following is believed to work correctly:"
3941 msgstr "На момент версии Linux 2.6.38 работает правильно:"
3942
3943 #. type: Plain text
3944 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3945 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3946 msgid ""
3947 "exit/death by signal is reported first to the tracer, then, when the tracer "
3948 "consumes the B<waitpid>(2) result, to the real parent (to the real parent "
3949 "only when the whole multithreaded process exits). If the tracer and the "
3950 "real parent are the same process, the report is sent only once."
3951 msgstr ""
3952 "при выходе/уничтожении по сигналу об этом сначала сообщается трассировщику, "
3953 "а затем,когда трассировщик подтвердит результат B<waitpid>(2), настоящему "
3954 "родителю (настоящему родителю только когда завершается многонитевой процесс "
3955 "целиком). Если трассировщик и реальный родитель — один и тот же процесс, то "
3956 "сообщение приходит лишь однажды."
3957
3958 #. type: SH
3959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3961 #, no-wrap
3962 msgid "RETURN VALUE"
3963 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
3964
3965 #. type: Plain text
3966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3968 #, fuzzy
3969 #| msgid ""
3970 #| "On success, the B<PTRACE_PEEK*> requests return the requested data (but "
3971 #| "see NOTES), the B<PTRACE_SECCOMP_GET_FILTER> request returns the number "
3972 #| "of instructions in the BPF program, and other requests return zero."
3973 msgid ""
3974 "On success, the B<PTRACE_PEEK*> operations return the requested data (but "
3975 "see NOTES), the B<PTRACE_SECCOMP_GET_FILTER> operation returns the number of "
3976 "instructions in the BPF program, the B<PTRACE_GET_SYSCALL_INFO> operation "
3977 "returns the number of bytes available to be written by the kernel, and other "
3978 "operations return zero."
3979 msgstr ""
3980 "При успешном выполнении запросы B<PTRACE_PEEK*> возвращают запрашиваемые "
3981 "данные (но смотрите ЗАМЕЧАНИЯ), запрос B<PTRACE_SECCOMP_GET_FILTER> "
3982 "возвращает количество инструкций в программе BPF, а другие запросы "
3983 "возвращают ноль."
3984
3985 #. type: Plain text
3986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3988 #, fuzzy
3989 #| msgid ""
3990 #| "On error, all requests return -1, and I<errno> is set appropriately. "
3991 #| "Since the value returned by a successful B<PTRACE_PEEK*> request may be "
3992 #| "-1, the caller must clear I<errno> before the call, and then check it "
3993 #| "afterward to determine whether or not an error occurred."
3994 msgid ""
3995 "On error, all operations return -1, and I<errno> is set to indicate the "
3996 "error. Since the value returned by a successful B<PTRACE_PEEK*> operation "
3997 "may be -1, the caller must clear I<errno> before the call, and then check it "
3998 "afterward to determine whether or not an error occurred."
3999 msgstr ""
4000 "При ошибке для всех действий возвращается -1, а переменной I<errno> "
4001 "присваивается номер ошибки. Так как значение, возвращаемое при удачном "
4002 "выполнении B<PTRACE_PEEK*>, может равняться -1, перед вызовом вызывающий "
4003 "должен очистить содержимое I<errno>, чтобы узнать, возникала ошибка или нет."
4004
4005 #. type: SH
4006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4008 #, no-wrap
4009 msgid "ERRORS"
4010 msgstr "ОШИБКИ"
4011
4012 #. type: TP
4013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4015 #, no-wrap
4016 msgid "B<EBUSY>"
4017 msgstr "B<EBUSY>"
4018
4019 #. type: Plain text
4020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4022 msgid ""
4023 "(i386 only) There was an error with allocating or freeing a debug register."
4024 msgstr ""
4025 "(только для i386) Произошла ошибка при размещении или освобождении "
4026 "отладочного регистра."
4027
4028 #. type: TP
4029 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4030 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4031 #, no-wrap
4032 msgid "B<EFAULT>"
4033 msgstr "B<EFAULT>"
4034
4035 #. type: Plain text
4036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4038 msgid ""
4039 "There was an attempt to read from or write to an invalid area in the "
4040 "tracer's or the tracee's memory, probably because the area wasn't mapped or "
4041 "accessible. Unfortunately, under Linux, different variations of this fault "
4042 "will return B<EIO> or B<EFAULT> more or less arbitrarily."
4043 msgstr ""
4044 "Была сделана попытка чтения или записи информации в область памяти "
4045 "трассируемой нити или трассировщика, но, скорее всего, эта память не "
4046 "отображена или недоступна. К сожалению, в Linux в разных ситуациях в "
4047 "результате этой ошибки возвращаются значения B<EIO> или B<EFAULT>, что не "
4048 "всегда поддается объяснению."
4049
4050 #. type: TP
4051 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4052 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4053 #, no-wrap
4054 msgid "B<EINVAL>"
4055 msgstr "B<EINVAL>"
4056
4057 #. type: Plain text
4058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4060 msgid "An attempt was made to set an invalid option."
4061 msgstr "Попытка установить недопустимое значение."
4062
4063 #. type: TP
4064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4066 #, no-wrap
4067 msgid "B<EIO>"
4068 msgstr "B<EIO>"
4069
4070 #. type: Plain text
4071 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4072 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4073 #, fuzzy
4074 #| msgid ""
4075 #| "I<request> is invalid, or an attempt was made to read from or write to an "
4076 #| "invalid area in the tracer's or the tracee's memory, or there was a word-"
4077 #| "alignment violation, or an invalid signal was specified during a restart "
4078 #| "request."
4079 msgid ""
4080 "I<op> is invalid, or an attempt was made to read from or write to an invalid "
4081 "area in the tracer's or the tracee's memory, or there was a word-alignment "
4082 "violation, or an invalid signal was specified during a restart operation."
4083 msgstr ""
4084 "Задано неверное значение I<request>, или была попытка чтения или записи "
4085 "информации в неподходящую область памяти трассируемой нити или "
4086 "трассировщика; ошибка выравнивания слов по границе, или при запросе "
4087 "возобновления работы дочернего процесса был задан неверно номер сигнала."
4088
4089 #. type: TP
4090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4092 #, no-wrap
4093 msgid "B<EPERM>"
4094 msgstr "B<EPERM>"
4095
4096 #. type: Plain text
4097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4099 #, fuzzy
4100 #| msgid ""
4101 #| "The specified process cannot be traced. This could be because the tracer "
4102 #| "has insufficient privileges (the required capability is "
4103 #| "B<CAP_SYS_PTRACE>); unprivileged processes cannot trace processes that "
4104 #| "they cannot send signals to or those running set-user-ID/set-group-ID "
4105 #| "programs, for obvious reasons. Alternatively, the process may already be "
4106 #| "being traced, or (on kernels before 2.6.26) be B<init>(1) (PID 1)."
4107 msgid ""
4108 "The specified process cannot be traced. This could be because the tracer "
4109 "has insufficient privileges (the required capability is B<CAP_SYS_PTRACE>); "
4110 "unprivileged processes cannot trace processes that they cannot send signals "
4111 "to or those running set-user-ID/set-group-ID programs, for obvious reasons. "
4112 "Alternatively, the process may already be being traced, or (before Linux "
4113 "2.6.26) be B<init>(1) (PID 1)."
4114 msgstr ""
4115 "Указанный процесс не может быть трассирован. Это может произойти потому, что "
4116 "трассировщик не имеет прав на трассировку (требуется мандат "
4117 "B<CAP_SYS_PTRACE>); непривилегированные процессы не могут трассировать "
4118 "процессы, так как они не могут посылать сигналы, или если у них установлен "
4119 "set-user-ID/set-group-ID бит. Также, процесс может уже трассироваться или "
4120 "(на ядрах до версии 2.6.26) быть B<init>(1) (PID 1)."
4121
4122 #. type: TP
4123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4125 #, no-wrap
4126 msgid "B<ESRCH>"
4127 msgstr "B<ESRCH>"
4128
4129 #. type: Plain text
4130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4132 #, fuzzy
4133 #| msgid ""
4134 #| "The specified process does not exist, or is not currently being traced by "
4135 #| "the caller, or is not stopped (for requests that require a stopped "
4136 #| "tracee)."
4137 msgid ""
4138 "The specified process does not exist, or is not currently being traced by "
4139 "the caller, or is not stopped (for operations that require a stopped tracee)."
4140 msgstr ""
4141 "Указанный процесс не существует, в данный момент не трассируется вызывающим "
4142 "процессом, или не остановлен (для выполнения действий, которые требуют "
4143 "остановки трассируемой нити)."
4144
4145 #. type: SH
4146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4148 #, no-wrap
4149 msgid "STANDARDS"
4150 msgstr "СТАНДАРТЫ"
4151
4152 #. type: Plain text
4153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4155 msgid "None."
4156 msgstr "Отсутствуют."
4157
4158 #. type: SH
4159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4161 #, no-wrap
4162 msgid "HISTORY"
4163 msgstr "ИСТОРИЯ"
4164
4165 #. type: Plain text
4166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4168 msgid "SVr4, 4.3BSD."
4169 msgstr "SVr4, 4.3BSD."
4170
4171 #. See commit 00cd5c37afd5f431ac186dd131705048c0a11fdb
4172 #. type: Plain text
4173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4175 #, fuzzy
4176 #| msgid ""
4177 #| "In Linux kernels before 2.6.26, B<init>(1), the process with PID 1, may "
4178 #| "not be traced."
4179 msgid ""
4180 "Before Linux 2.6.26, B<init>(1), the process with PID 1, may not be traced."
4181 msgstr ""
4182 "В ядрах Linux до версии 2.6.26, процесс B<init>(1) с PID 1 не может быть "
4183 "трассирован."
4184
4185 #. type: SH
4186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4188 #, no-wrap
4189 msgid "NOTES"
4190 msgstr "ПРИМЕЧАНИЯ"
4191
4192 #. type: Plain text
4193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4195 #, fuzzy
4196 #| msgid ""
4197 #| "Although arguments to B<ptrace>() are interpreted according to the "
4198 #| "prototype given, glibc currently declares B<ptrace>() as a variadic "
4199 #| "function with only the I<request> argument fixed. It is recommended to "
4200 #| "always supply four arguments, even if the requested operation does not "
4201 #| "use them, setting unused/ignored arguments to I<0L> or I<(void\\ *)\\ 0>."
4202 msgid ""
4203 "Although arguments to B<ptrace>() are interpreted according to the "
4204 "prototype given, glibc currently declares B<ptrace>() as a variadic "
4205 "function with only the I<op> argument fixed. It is recommended to always "
4206 "supply four arguments, even if the requested operation does not use them, "
4207 "setting unused/ignored arguments to I<0L> or I<(void\\ *)\\ 0>."
4208 msgstr ""
4209 "Хотя параметры B<ptrace>() воспринимаются согласно заданному прототипу, в "
4210 "настоящее время в glibc B<ptrace>() объявлена как функция с переменным "
4211 "числом параметров, в которой фиксирован только параметр I<request>. "
4212 "Рекомендуется всегда передавать четыре параметра, даже если в запрашиваемом "
4213 "действии они не используются (неиспользуемые аргументы указывайте как I<0L> "
4214 "или I<(void\\ *)\\ 0>)."
4215
4216 #. type: Plain text
4217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4219 msgid ""
4220 "A tracees parent continues to be the tracer even if that tracer calls "
4221 "B<execve>(2)."
4222 msgstr ""
4223 "Родитель трассируемой нити остаётся трассировщиком даже, если трассировщик "
4224 "вызывает B<execve>(2)."
4225
4226 #. See http://lkml.org/lkml/2008/5/8/375
4227 #. type: Plain text
4228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4230 msgid ""
4231 "The layout of the contents of memory and the USER area are quite operating-"
4232 "system- and architecture-specific. The offset supplied, and the data "
4233 "returned, might not entirely match with the definition of I<struct user>."
4234 msgstr ""
4235 "Структура памяти и области USER зависят от ОС и архитектуры системы. "
4236 "Указываемое смещение и возвращаемые данные могут не полностью "
4237 "соответствовать определению I<struct user>."
4238
4239 #. type: Plain text
4240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4242 msgid ""
4243 "The size of a \"word\" is determined by the operating-system variant (e.g., "
4244 "for 32-bit Linux it is 32 bits)."
4245 msgstr ""
4246 "Размер «слова» определяется вариантом ОС (например, для 32-битного варианта "
4247 "Linux слово будет 32-битным)."
4248
4249 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4250 #. type: Plain text
4251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4253 msgid ""
4254 "This page documents the way the B<ptrace>() call works currently in Linux. "
4255 "Its behavior differs significantly on other flavors of UNIX. In any case, "
4256 "use of B<ptrace>() is highly specific to the operating system and "
4257 "architecture."
4258 msgstr ""
4259 "Эта страница описывает работу системного вызова B<ptrace>() в Linux. Его "
4260 "работа значительно отличается от поведения в других системах UNIX. В любом "
4261 "случае, использование B<ptrace>() очень сильно зависит от ОС и архитектуры."
4262
4263 #. type: SS
4264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4266 #, no-wrap
4267 msgid "Ptrace access mode checking"
4268 msgstr "Проверка режима доступа ptrace"
4269
4270 #. type: Plain text
4271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4273 #, fuzzy
4274 #| msgid ""
4275 #| "Various parts of the kernel-user-space API (not just B<ptrace>() "
4276 #| "operations), require so-called \"ptrace access mode\" checks, whose "
4277 #| "outcome determines whether an operation is permitted (or, in a few cases, "
4278 #| "causes a \"read\" operation to return sanitized data). These checks are "
4279 #| "performed in cases where one process can inspect sensitive information "
4280 #| "about, or in some cases modify the state of, another process. The checks "
4281 #| "are based on factors such as the credentials and capabilities of the two "
4282 #| "processes, whether or not the \"target\" process is dumpable, and the "
4283 #| "results of checks performed by any enabled Linux Security Module (LSM)\\"
4284 #| "(emfor example, SELinux, Yama, or Smack\\(emand by the commoncap LSM "
4285 #| "(which is always invoked)."
4286 msgid ""
4287 "Various parts of the kernel-user-space API (not just B<ptrace>() "
4288 "operations), require so-called \"ptrace access mode\" checks, whose outcome "
4289 "determines whether an operation is permitted (or, in a few cases, causes a "
4290 "\"read\" operation to return sanitized data). These checks are performed in "
4291 "cases where one process can inspect sensitive information about, or in some "
4292 "cases modify the state of, another process. The checks are based on factors "
4293 "such as the credentials and capabilities of the two processes, whether or "
4294 "not the \"target\" process is dumpable, and the results of checks performed "
4295 "by any enabled Linux Security Module (LSM)\\[em]for example, SELinux, Yama, "
4296 "or Smack\\[em]and by the commoncap LSM (which is always invoked)."
4297 msgstr ""
4298 "Для различных частей программного интерфейса ядро — пользовательское "
4299 "пространство (не только операции B<ptrace>()) требуются так называемые "
4300 "проверки «режима доступа ptrace», чьими результатами определяется будет ли "
4301 "разрешена операция (или это, в некоторых случаях, заставит операцию «чтения» "
4302 "цензурировать возвращаемые данные). Эти проверки выполняются в случаях, "
4303 "когда один процесс может просмотреть конфиденциальную информацию или, в "
4304 "некоторых случаях, изменять состояние другого процесса. Проверки "
4305 "основываются на учётных данных и мандатах двух процессов, разрешено ли "
4306 "создание дампа «целевого» процесса, а результаты проверок выполняются любым "
4307 "включённым модулем безопасности Linux (LSM) — например, SELinux, Yama и "
4308 "Smack — и commoncap LSM (который вызывается всегда)."
4309
4310 #. commit 006ebb40d3d65338bd74abb03b945f8d60e362bd
4311 #. type: Plain text
4312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4314 msgid ""
4315 "Prior to Linux 2.6.27, all access checks were of a single type. Since Linux "
4316 "2.6.27, two access mode levels are distinguished:"
4317 msgstr ""
4318 "До Linux 2.6.27 все проверки доступа были одного вида. Начиная с Linux "
4319 "2.6.27 различают два уровня проверок доступа:"
4320
4321 #. type: TP
4322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4324 #, no-wrap
4325 msgid "B<PTRACE_MODE_READ>"
4326 msgstr "B<PTRACE_MODE_READ>"
4327
4328 #. type: Plain text
4329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4331 #, fuzzy
4332 #| msgid ""
4333 #| "For \"read\" operations or other operations that are less dangerous, such "
4334 #| "as: B<get_robust_list>(2); B<kcmp>(2); reading I</proc/[pid]/auxv>, I</"
4335 #| "proc/[pid]/environ>, or I</proc/[pid]/stat>; or B<readlink>(2) of a I</"
4336 #| "proc/[pid]/ns/*> file."
4337 msgid ""
4338 "For \"read\" operations or other operations that are less dangerous, such "
4339 "as: B<get_robust_list>(2); B<kcmp>(2); reading I</proc/>pidI</auxv>, I</proc/"
4340 ">pidI</environ>, or I</proc/>pidI</stat>; or B<readlink>(2) of a I</proc/"
4341 ">pidI</ns/*> file."
4342 msgstr ""
4343 "Для операций «чтения» или других менее опасных операций: "
4344 "B<get_robust_list>(2); B<kcmp>(2); чтение I</proc/[pid]/auxv>, I</proc/[pid]/"
4345 "environ> или I</proc/[pid]/stat>, или B<readlink>(2) для файла I</proc/[pid]/"
4346 "ns/*>."
4347
4348 #. type: TP
4349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4351 #, no-wrap
4352 msgid "B<PTRACE_MODE_ATTACH>"
4353 msgstr "B<PTRACE_MODE_ATTACH>"
4354
4355 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4356 #. Regarding the above description of the distinction between
4357 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4358 #. That was the intent when the distinction was introduced, but it doesn't
4359 #. appear to have been properly maintained, e.g., there is now a common
4360 #. helper lock_trace() that is used for
4361 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4362 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4363 #. should review and make them consistent. There was also some debate
4364 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4365 #. back in the _ATTACH camp.
4366 #. type: Plain text
4367 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4368 #. Regarding the above description of the distinction between
4369 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4370 #. That was the intent when the distinction was introduced, but it doesn't
4371 #. appear to have been properly maintained, e.g. there is now a common
4372 #. helper lock_trace() that is used for
4373 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4374 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4375 #. should review and make them consistent. There was also some debate
4376 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4377 #. back in the _ATTACH camp.
4378 #. type: Plain text
4379 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4380 #. Regarding the above description of the distinction between
4381 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4382 #. That was the intent when the distinction was introduced, but it doesn't
4383 #. appear to have been properly maintained, e.g., there is now a common
4384 #. helper lock_trace() that is used for
4385 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4386 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4387 #. should review and make them consistent. There was also some debate
4388 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4389 #. back in the _ATTACH camp.
4390 #. type: Plain text
4391 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4392 #. Regarding the above description of the distinction between
4393 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4394 #. That was the intent when the distinction was introduced, but it doesn't
4395 #. appear to have been properly maintained, e.g. there is now a common
4396 #. helper lock_trace() that is used for
4397 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4398 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4399 #. should review and make them consistent. There was also some debate
4400 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4401 #. back in the _ATTACH camp.
4402 #. type: Plain text
4403 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4404 #. Regarding the above description of the distinction between
4405 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4406 #. That was the intent when the distinction was introduced, but it doesn't
4407 #. appear to have been properly maintained, e.g. there is now a common
4408 #. helper lock_trace() that is used for
4409 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4410 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4411 #. should review and make them consistent. There was also some debate
4412 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4413 #. back in the _ATTACH camp.
4414 #. type: Plain text
4415 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4416 #. Regarding the above description of the distinction between
4417 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4418 #. That was the intent when the distinction was introduced, but it doesn't
4419 #. appear to have been properly maintained, e.g., there is now a common
4420 #. helper lock_trace() that is used for
4421 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4422 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4423 #. should review and make them consistent. There was also some debate
4424 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4425 #. back in the _ATTACH camp.
4426 #. type: Plain text
4427 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4428 #. Regarding the above description of the distinction between
4429 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4430 #. That was the intent when the distinction was introduced, but it doesn't
4431 #. appear to have been properly maintained, e.g., there is now a common
4432 #. helper lock_trace() that is used for
4433 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4434 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4435 #. should review and make them consistent. There was also some debate
4436 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4437 #. back in the _ATTACH camp.
4438 #. type: Plain text
4439 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4440 #. Regarding the above description of the distinction between
4441 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
4442 #. That was the intent when the distinction was introduced, but it doesn't
4443 #. appear to have been properly maintained, e.g., there is now a common
4444 #. helper lock_trace() that is used for
4445 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
4446 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
4447 #. should review and make them consistent. There was also some debate
4448 #. about proper handling of /proc/pid/fd. Arguably that one might belong
4449 #. back in the _ATTACH camp.
4450 #. type: Plain text
4451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4453 msgid ""
4454 "For \"write\" operations, or other operations that are more dangerous, such "
4455 "as: ptrace attaching (B<PTRACE_ATTACH>) to another process or calling "
4456 "B<process_vm_writev>(2). (B<PTRACE_MODE_ATTACH> was effectively the default "
4457 "before Linux 2.6.27.)"
4458 msgstr ""
4459 "Для операций «записи» или других более опасных операций: присоединение "
4460 "ptrace (B<PTRACE_ATTACH>) к другому процессу или вызов "
4461 "B<process_vm_writev>(2) (B<PTRACE_MODE_ATTACH> было эффективным значением по "
4462 "умолчанию до Linux 2.6.27)."
4463
4464 #. commit caaee6234d05a58c5b4d05e7bf766131b810a657
4465 #. type: Plain text
4466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4468 msgid ""
4469 "Since Linux 4.5, the above access mode checks are combined (ORed) with one "
4470 "of the following modifiers:"
4471 msgstr ""
4472 "Начиная с Linux 4.5 приведённые выше проверки режима доступа объединяются "
4473 "(ИЛИ) с одним из следующих модификаторов:"
4474
4475 #. type: TP
4476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4478 #, no-wrap
4479 msgid "B<PTRACE_MODE_FSCREDS>"
4480 msgstr "B<PTRACE_MODE_FSCREDS>"
4481
4482 #. type: Plain text
4483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4485 msgid ""
4486 "Use the caller's filesystem UID and GID (see B<credentials>(7)) or "
4487 "effective capabilities for LSM checks."
4488 msgstr ""
4489 "Использовать UID и GID файловой системы у вызывающего (смотрите "
4490 "B<credentials>(7)) или эффективные мандаты для проверок LSM."
4491
4492 #. type: TP
4493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4495 #, no-wrap
4496 msgid "B<PTRACE_MODE_REALCREDS>"
4497 msgstr "B<PTRACE_MODE_REALCREDS>"
4498
4499 #. type: Plain text
4500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4502 msgid ""
4503 "Use the caller's real UID and GID or permitted capabilities for LSM checks. "
4504 "This was effectively the default before Linux 4.5."
4505 msgstr ""
4506 "Использовать реальные UID и GID у вызывающего или разрешающие мандаты для "
4507 "проверок LSM. Это было эффективным значением по умолчанию до Linux 4.5."
4508
4509 #. type: Plain text
4510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4512 msgid ""
4513 "Because combining one of the credential modifiers with one of the "
4514 "aforementioned access modes is typical, some macros are defined in the "
4515 "kernel sources for the combinations:"
4516 msgstr ""
4517 "Так как объединение модификаторов мандатов с одной из вышеупомянутых режимов "
4518 "доступа часто используется, то в исходном коде ядра было определено "
4519 "несколько макросов:"
4520
4521 #. type: TP
4522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4524 #, no-wrap
4525 msgid "B<PTRACE_MODE_READ_FSCREDS>"
4526 msgstr "B<PTRACE_MODE_READ_FSCREDS>"
4527
4528 #. type: Plain text
4529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4531 msgid "Defined as B<PTRACE_MODE_READ | PTRACE_MODE_FSCREDS>."
4532 msgstr "Определён как B<PTRACE_MODE_READ | PTRACE_MODE_FSCREDS>."
4533
4534 #. type: TP
4535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4537 #, no-wrap
4538 msgid "B<PTRACE_MODE_READ_REALCREDS>"
4539 msgstr "B<PTRACE_MODE_READ_REALCREDS>"
4540
4541 #. type: Plain text
4542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4544 msgid "Defined as B<PTRACE_MODE_READ | PTRACE_MODE_REALCREDS>."
4545 msgstr "Определён как B<PTRACE_MODE_READ | PTRACE_MODE_REALCREDS>."
4546
4547 #. type: TP
4548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4550 #, no-wrap
4551 msgid "B<PTRACE_MODE_ATTACH_FSCREDS>"
4552 msgstr "B<PTRACE_MODE_ATTACH_FSCREDS>"
4553
4554 #. type: Plain text
4555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4557 msgid "Defined as B<PTRACE_MODE_ATTACH | PTRACE_MODE_FSCREDS>."
4558 msgstr "Определён как B<PTRACE_MODE_ATTACH | PTRACE_MODE_FSCREDS>."
4559
4560 #. type: TP
4561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4563 #, no-wrap
4564 msgid "B<PTRACE_MODE_ATTACH_REALCREDS>"
4565 msgstr "B<PTRACE_MODE_ATTACH_REALCREDS>"
4566
4567 #. type: Plain text
4568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4570 msgid "Defined as B<PTRACE_MODE_ATTACH | PTRACE_MODE_REALCREDS>."
4571 msgstr "Определён как B<PTRACE_MODE_ATTACH | PTRACE_MODE_REALCREDS>."
4572
4573 #. type: Plain text
4574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4576 msgid "One further modifier can be ORed with the access mode:"
4577 msgstr ""
4578 "Один из следующих модификаторов может быть объединённых с режимом доступа:"
4579
4580 #. type: TP
4581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4583 #, no-wrap
4584 msgid "B<PTRACE_MODE_NOAUDIT> (since Linux 3.3)"
4585 msgstr "B<PTRACE_MODE_NOAUDIT> (начиная с Linux 3.3)"
4586
4587 #. commit 69f594a38967f4540ce7a29b3fd214e68a8330bd
4588 #. Just for /proc/pid/stat
4589 #. type: Plain text
4590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4592 msgid ""
4593 "Don't audit this access mode check. This modifier is employed for ptrace "
4594 "access mode checks (such as checks when reading I</proc/>pidI</stat>) that "
4595 "merely cause the output to be filtered or sanitized, rather than causing an "
4596 "error to be returned to the caller. In these cases, accessing the file is "
4597 "not a security violation and there is no reason to generate a security audit "
4598 "record. This modifier suppresses the generation of such an audit record for "
4599 "the particular access check."
4600 msgstr ""
4601 "Не протоколировать (audit) проверку режима доступа. Данный модификатор "
4602 "применяется для проверок режима доступа ptrace (например, проверки при "
4603 "чтении I</proc/>pidI</stat>), которые просто фильтруют или цензурируют "
4604 "вывод, вместо возврата ошибки вызывающему. В этих случаях, доступ к файлу не "
4605 "нарушает правила безопасности и нет причины генерировать запись о нарушении. "
4606 "Данный модификатор отключает создание подобных протокольных записей для "
4607 "определённых проверок доступа."
4608
4609 #. type: Plain text
4610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4612 msgid ""
4613 "Note that all of the B<PTRACE_MODE_*> constants described in this subsection "
4614 "are kernel-internal, and not visible to user space. The constant names are "
4615 "mentioned here in order to label the various kinds of ptrace access mode "
4616 "checks that are performed for various system calls and accesses to various "
4617 "pseudofiles (e.g., under I</proc>). These names are used in other manual "
4618 "pages to provide a simple shorthand for labeling the different kernel checks."
4619 msgstr ""
4620 "Заметим, что все константы B<PTRACE_MODE_*>, описанные в данном разделе, "
4621 "доступны только для ядра и не видны из пользовательского пространства. Имена "
4622 "упомянутых констант служат обозначением различных видов проверок режима "
4623 "доступа ptrace, которые выполняются для разных системных вызовов и получении "
4624 "доступа к разным псевдо-файлам (например, в каталоге I</proc>). Эти имена "
4625 "используются в других справочных страницах как простые сокращения различных "
4626 "проверок ядра."
4627
4628 #. type: Plain text
4629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4631 msgid ""
4632 "The algorithm employed for ptrace access mode checking determines whether "
4633 "the calling process is allowed to perform the corresponding action on the "
4634 "target process. (In the case of opening I</proc/>pid files, the \"calling "
4635 "process\" is the one opening the file, and the process with the "
4636 "corresponding PID is the \"target process\".) The algorithm is as follows:"
4637 msgstr ""
4638 "Задействуемый алгоритм проверок режима доступа ptrace определяется по "
4639 "разрешению вызывающему процессу выполнять соответствующее действие над "
4640 "процессом назначения (в случае открытия файлов I</proc/>pid «вызывающий "
4641 "процесс» это открывающий файл, а процесс с соответствующим PID — «процесс "
4642 "назначения»). Возможные алгоритмы:"
4643
4644 #. type: IP
4645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4647 #, no-wrap
4648 msgid "(1)"
4649 msgstr "(1)"
4650
4651 #. type: Plain text
4652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4654 msgid ""
4655 "If the calling thread and the target thread are in the same thread group, "
4656 "access is always allowed."
4657 msgstr ""
4658 "Если вызывающая нить и нить назначения в одной группе нитей, то доступ "
4659 "всегда разрешён."
4660
4661 #. type: IP
4662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4664 #, no-wrap
4665 msgid "(2)"
4666 msgstr "(2)"
4667
4668 #. type: Plain text
4669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4671 msgid ""
4672 "If the access mode specifies B<PTRACE_MODE_FSCREDS>, then, for the check in "
4673 "the next step, employ the caller's filesystem UID and GID. (As noted in "
4674 "B<credentials>(7), the filesystem UID and GID almost always have the same "
4675 "values as the corresponding effective IDs.)"
4676 msgstr ""
4677 "Если режим доступа равен B<PTRACE_MODE_FSCREDS>, то для проверки на "
4678 "следующем шаге используется UID и GID файловой системы у вызывающего (как "
4679 "упомянуто в B<credentials>(7), UID и GID файловой системы почти всегда равны "
4680 "значениям соответствующих эффективных идентификаторов)."
4681
4682 #. type: Plain text
4683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4685 msgid ""
4686 "Otherwise, the access mode specifies B<PTRACE_MODE_REALCREDS>, so use the "
4687 "caller's real UID and GID for the checks in the next step. (Most APIs that "
4688 "check the caller's UID and GID use the effective IDs. For historical "
4689 "reasons, the B<PTRACE_MODE_REALCREDS> check uses the real IDs instead.)"
4690 msgstr ""
4691 "В противном случае режим доступа равен B<PTRACE_MODE_REALCREDS>, и на "
4692 "следующем шаге проверок используются реальные UID и GID вызывающего "
4693 "(большинство программных интерфейсов, которые проверяют UID и GID "
4694 "вызывающего, используют эффективные идентификаторы. В проверке "
4695 "B<PTRACE_MODE_REALCREDS> используются реальные ID только в силу исторических "
4696 "причин)."
4697
4698 #. type: IP
4699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4701 #, no-wrap
4702 msgid "(3)"
4703 msgstr "(3)"
4704
4705 #. type: Plain text
4706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4708 msgid "Deny access if I<neither> of the following is true:"
4709 msgstr "Запрещается доступ, если срабатывает I<любое> из этих правил:"
4710
4711 #. type: Plain text
4712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4714 msgid ""
4715 "The real, effective, and saved-set user IDs of the target match the caller's "
4716 "user ID, I<and> the real, effective, and saved-set group IDs of the target "
4717 "match the caller's group ID."
4718 msgstr ""
4719 "Реальные, эффективные и сохранённые пользовательские ID назначения совпадают "
4720 "с пользовательским ID вызывающего, I<и> Реальные, эффективные и сохранённые "
4721 "групповые ID назначения совпадают с групповым ID вызывающего."
4722
4723 #. type: Plain text
4724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4726 msgid ""
4727 "The caller has the B<CAP_SYS_PTRACE> capability in the user namespace of the "
4728 "target."
4729 msgstr ""
4730 "Вызывающий имеет мандат B<CAP_SYS_PTRACE> в пользовательском пространстве "
4731 "имён назначения."
4732
4733 #. type: IP
4734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4736 #, no-wrap
4737 msgid "(4)"
4738 msgstr "(4)"
4739
4740 #. type: Plain text
4741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4743 msgid ""
4744 "Deny access if the target process \"dumpable\" attribute has a value other "
4745 "than 1 (B<SUID_DUMP_USER>; see the discussion of B<PR_SET_DUMPABLE> in "
4746 "B<prctl>(2)), and the caller does not have the B<CAP_SYS_PTRACE> capability "
4747 "in the user namespace of the target process."
4748 msgstr ""
4749 "Доступ запрещается, если у процесса назначения значение атрибута "
4750 "«возможности дампа» не равно 1 (B<SUID_DUMP_USER>; смотрите обсуждение "
4751 "B<PR_SET_DUMPABLE> в B<prctl>(2)), и вызывающий не имеет мандата "
4752 "B<CAP_SYS_PTRACE> в пользовательском пространстве имён назначения."
4753
4754 #. type: IP
4755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4757 #, no-wrap
4758 msgid "(5)"
4759 msgstr "(5)"
4760
4761 #. (in cap_ptrace_access_check()):
4762 #. type: Plain text
4763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4765 msgid ""
4766 "The kernel LSM I<security_ptrace_access_check>() interface is invoked to "
4767 "see if ptrace access is permitted. The results depend on the LSM(s). The "
4768 "implementation of this interface in the commoncap LSM performs the following "
4769 "steps:"
4770 msgstr ""
4771 "Для проверки того, что доступ ptrace разрешён, вызывается интерфейс ядра LSM "
4772 "I<security_ptrace_access_check>(). Результат зависит от LSM. Реализация "
4773 "интерфейса в commoncap LSM выполняет следующие шаги:"
4774
4775 #. type: IP
4776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4778 #, no-wrap
4779 msgid "(5.1)"
4780 msgstr ""
4781
4782 #. type: Plain text
4783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4785 msgid ""
4786 "If the access mode includes B<PTRACE_MODE_FSCREDS>, then use the caller's "
4787 "I<effective> capability set in the following check; otherwise (the access "
4788 "mode specifies B<PTRACE_MODE_REALCREDS>, so) use the caller's I<permitted> "
4789 "capability set."
4790 msgstr ""
4791 "Если режим доступа включает B<PTRACE_MODE_FSCREDS>, то используется "
4792 "I<эффективный> набор мандатов вызывающего в последующей проверке; в "
4793 "противном случае (режим доступа равен B<PTRACE_MODE_REALCREDS>) используется "
4794 "I<допускающий> набор мандатов."
4795
4796 #. type: IP
4797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4799 #, no-wrap
4800 msgid "(5.2)"
4801 msgstr ""
4802
4803 #. type: Plain text
4804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4806 msgid ""
4807 "The caller and the target process are in the same user namespace, and the "
4808 "caller's capabilities are a superset of the target process's I<permitted> "
4809 "capabilities."
4810 msgstr ""
4811 "Вызывающий и процесс назначения находятся в одном пользовательском "
4812 "пространстве имён, и мандаты вызывающего составляют покрывающий набор "
4813 "I<допускающих> мандатов процесса назначения."
4814
4815 #. type: Plain text
4816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4818 msgid ""
4819 "The caller has the B<CAP_SYS_PTRACE> capability in the target process's user "
4820 "namespace."
4821 msgstr ""
4822 "Вызывающий имеет мандат B<CAP_SYS_PTRACE> в пользовательском пространстве "
4823 "имён процесса назначения."
4824
4825 #. type: Plain text
4826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4828 msgid ""
4829 "Note that the commoncap LSM does not distinguish between B<PTRACE_MODE_READ> "
4830 "and B<PTRACE_MODE_ATTACH>."
4831 msgstr ""
4832 "Заметим, что commoncap LSM не различает B<PTRACE_MODE_READ> и "
4833 "B<PTRACE_MODE_ATTACH>."
4834
4835 #. type: IP
4836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4838 #, no-wrap
4839 msgid "(6)"
4840 msgstr "(6)"
4841
4842 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4843 #. type: Plain text
4844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4846 msgid ""
4847 "If access has not been denied by any of the preceding steps, then access is "
4848 "allowed."
4849 msgstr "Если доступ не был запрещён в предыдущих шагах, то доступ разрешается."
4850
4851 #. type: SS
4852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4854 #, no-wrap
4855 msgid "/proc/sys/kernel/yama/ptrace_scope"
4856 msgstr "/proc/sys/kernel/yama/ptrace_scope"
4857
4858 #. commit 2d514487faf188938a4ee4fb3464eeecfbdcf8eb
4859 #. type: Plain text
4860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4862 msgid ""
4863 "On systems with the Yama Linux Security Module (LSM) installed (i.e., the "
4864 "kernel was configured with B<CONFIG_SECURITY_YAMA>), the I</proc/sys/kernel/"
4865 "yama/ptrace_scope> file (available since Linux 3.4) can be used to restrict "
4866 "the ability to trace a process with B<ptrace>() (and thus also the ability "
4867 "to use tools such as B<strace>(1) and B<gdb>(1)). The goal of such "
4868 "restrictions is to prevent attack escalation whereby a compromised process "
4869 "can ptrace-attach to other sensitive processes (e.g., a GPG agent or an SSH "
4870 "session) owned by the user in order to gain additional credentials that may "
4871 "exist in memory and thus expand the scope of the attack."
4872 msgstr ""
4873 "В системах с установленным модулем Yama Linux Security Module (LSM) (т. е., "
4874 "ядро было настроено с параметром B<CONFIG_SECURITY_YAMA>) можно использовать "
4875 "файл I</proc/sys/kernel/yama/ptrace_scope> (доступен, начиная с Linux 3.4) "
4876 "для того, чтобы огранить возможность трассировки процесса с помощью "
4877 "B<ptrace>() (то есть ограничить использование таких инструментов как "
4878 "B<strace>(1) и B<gdb>(1)). Целью ограничения является предотвращение "
4879 "возможности атаки, посредством которой скомпроментированный процесс "
4880 "подключается через ptrace к другим ответственным процессам (например, к "
4881 "агенту GPG или сеансу SSH), принадлежащим пользователю, чтобы получить "
4882 "дополнительные полномочия (которые могут существовать в памяти) и, таким "
4883 "образом, расширить атакуемое пространство."
4884
4885 #. type: Plain text
4886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4888 msgid "More precisely, the Yama LSM limits two types of operations:"
4889 msgstr "Более точно, Yama LSM ограничивает два типа операций:"
4890
4891 #. type: Plain text
4892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4894 #, fuzzy
4895 #| msgid ""
4896 #| "Any operation that performs a ptrace access mode B<PTRACE_MODE_ATTACH> "
4897 #| "check\\(emfor example, B<ptrace>() B<PTRACE_ATTACH>. (See the \"Ptrace "
4898 #| "access mode checking\" discussion above.)"
4899 msgid ""
4900 "Any operation that performs a ptrace access mode B<PTRACE_MODE_ATTACH> "
4901 "check\\[em]for example, B<ptrace>() B<PTRACE_ATTACH>. (See the \"Ptrace "
4902 "access mode checking\" discussion above.)"
4903 msgstr ""
4904 "Все операции, которые выполняют проверку режима доступа ptrace "
4905 "B<PTRACE_MODE_ATTACH>, например, B<ptrace>() B<PTRACE_ATTACH> (смотрите "
4906 "«Проверка режима доступа ptrace» выше)."
4907
4908 #. type: Plain text
4909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4911 msgid "B<ptrace>() B<PTRACE_TRACEME>."
4912 msgstr "B<ptrace>() B<PTRACE_TRACEME>."
4913
4914 #. type: Plain text
4915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4917 msgid ""
4918 "A process that has the B<CAP_SYS_PTRACE> capability can update the I</proc/"
4919 "sys/kernel/yama/ptrace_scope> file with one of the following values:"
4920 msgstr ""
4921 "Процесс, имеющий мандат B<CAP_SYS_PTRACE>, может записать в файл I</proc/sys/"
4922 "kernel/yama/ptrace_scope> одно из следующих значений:"
4923
4924 #. type: TP
4925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4927 #, no-wrap
4928 msgid "0 (\"classic ptrace permissions\")"
4929 msgstr "0 («обычные права ptrace»)"
4930
4931 #. type: Plain text
4932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4934 msgid ""
4935 "No additional restrictions on operations that perform B<PTRACE_MODE_ATTACH> "
4936 "checks (beyond those imposed by the commoncap and other LSMs)."
4937 msgstr ""
4938 "Без дополнительных ограничений на операции, выполняющие проверки "
4939 "B<PTRACE_MODE_ATTACH> (кроме накладываемых commoncap и другими LSM)."
4940
4941 #. type: Plain text
4942 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4943 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4944 msgid "The use of B<PTRACE_TRACEME> is unchanged."
4945 msgstr "Использование B<PTRACE_TRACEME> не изменяется."
4946
4947 #. type: TP
4948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4950 #, no-wrap
4951 msgid "1 (\"restricted ptrace\") [default value]"
4952 msgstr "1 («ограниченный ptrace») [значение по умолчанию]"
4953
4954 #. type: Plain text
4955 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4956 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4957 msgid ""
4958 "When performing an operation that requires a B<PTRACE_MODE_ATTACH> check, "
4959 "the calling process must either have the B<CAP_SYS_PTRACE> capability in the "
4960 "user namespace of the target process or it must have a predefined "
4961 "relationship with the target process. By default, the predefined "
4962 "relationship is that the target process must be a descendant of the caller."
4963 msgstr ""
4964 "Когда выполняется операция, требующая проверки B<PTRACE_MODE_ATTACH>, "
4965 "вызывающий процесс должен иметь мандат B<CAP_SYS_PTRACE> в пользовательском "
4966 "пространстве имён процесса назначения или должен иметь предопределённые "
4967 "отношения с процессом назначения. По умолчанию, предопределённые отношения "
4968 "это когда процесс назначения должен быть потомком вызывающего."
4969
4970 #. type: Plain text
4971 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
4972 #: opensuse-tumbleweed
4973 #, fuzzy
4974 #| msgid ""
4975 #| "A target process can employ the B<prctl>(2) B<PR_SET_PTRACER> operation "
4976 #| "to declare an additional PID that is allowed to perform "
4977 #| "B<PTRACE_MODE_ATTACH> operations on the target. See the kernel source "
4978 #| "file I<Documentation/admin-guide/LSM/Yama.rst> (or I<Documentation/"
4979 #| "security/Yama.txt> before Linux 4.13) for further details."
4980 msgid ""
4981 "A target process can employ the B<prctl>(2) B<PR_SET_PTRACER> operation to "
4982 "declare an additional PID that is allowed to perform B<PTRACE_MODE_ATTACH> "
4983 "operations on the target. See the kernel source file I<Documentation/admin-"
4984 "guide/LSM/Yama.rst> for further details."
4985 msgstr ""
4986 "Процесс назначения может выполнить операцию B<prctl>(2) B<PR_SET_PTRACER> "
4987 "для объявления дополнительного PID, которому разрешено выполнять операции "
4988 "B<PTRACE_MODE_ATTACH> над процессом назначения. Подробности смотрите в файле "
4989 "исходного кода ядра I<Documentation/admin-guide/LSM/Yama.rst> (или "
4990 "I<Documentation/security/Yama.txt> до Linux 4.13)."
4991
4992 #. type: TP
4993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4995 #, no-wrap
4996 msgid "2 (\"admin-only attach\")"
4997 msgstr "2 («только администраторское присоединение»)"
4998
4999 #. type: Plain text
5000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5002 msgid ""
5003 "Only processes with the B<CAP_SYS_PTRACE> capability in the user namespace "
5004 "of the target process may perform B<PTRACE_MODE_ATTACH> operations or trace "
5005 "children that employ B<PTRACE_TRACEME>."
5006 msgstr ""
5007 "Только процессы с мандатом B<CAP_SYS_PTRACE> в пользовательском пространстве "
5008 "имён процесса назначения могут выполнять операции B<PTRACE_MODE_ATTACH> или "
5009 "трассировать потомков, выполнивших B<PTRACE_TRACEME>."
5010
5011 #. type: TP
5012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5014 #, no-wrap
5015 msgid "3 (\"no attach\")"
5016 msgstr "3 («присоединение заблокировано»)"
5017
5018 #. type: Plain text
5019 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5020 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5021 msgid ""
5022 "No process may perform B<PTRACE_MODE_ATTACH> operations or trace children "
5023 "that employ B<PTRACE_TRACEME>."
5024 msgstr ""
5025 "Никакие процессы не могут выполнять операции B<PTRACE_MODE_ATTACH> или "
5026 "трассировать потомков, выполнивших B<PTRACE_TRACEME>."
5027
5028 #. type: Plain text
5029 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5030 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5031 msgid "Once this value has been written to the file, it cannot be changed."
5032 msgstr "После записи такого значения в файл, его нельзя изменить."
5033
5034 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5035 #. type: Plain text
5036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5038 msgid ""
5039 "With respect to values 1 and 2, note that creating a new user namespace "
5040 "effectively removes the protection offered by Yama. This is because a "
5041 "process in the parent user namespace whose effective UID matches the UID of "
5042 "the creator of a child namespace has all capabilities (including "
5043 "B<CAP_SYS_PTRACE>) when performing operations within the child user "
5044 "namespace (and further-removed descendants of that namespace). "
5045 "Consequently, when a process tries to use user namespaces to sandbox itself, "
5046 "it inadvertently weakens the protections offered by the Yama LSM."
5047 msgstr ""
5048 "Относительно значений 1 и 2 заметим, что создание нового пользовательского "
5049 "пространства имён фактически удаляет защиту, предлагаемую Yama. Это "
5050 "происходит из-за того, что процесс в родительском пользовательском "
5051 "пространстве имён, у которого эффективный UID совпадает с UID создателя "
5052 "дочернего пространства имён, имеет все мандаты (включая B<CAP_SYS_PTRACE>) "
5053 "при выполнении им операций внутри дочернего пользовательского пространства "
5054 "имён (вплоть до удаления потомков этого пространства имён). В результате, "
5055 "когда процесс сам пытается использовать пользовательские пространства имён "
5056 "для песочницы, это непреднамеренно ослабляет защиту, предлагаемую Yama LSM."
5057
5058 #. type: SS
5059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5061 #, no-wrap
5062 msgid "C library/kernel differences"
5063 msgstr "Отличия между библиотекой C и ядром"
5064
5065 #. type: Plain text
5066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5068 #, fuzzy
5069 #| msgid ""
5070 #| "At the system call level, the B<PTRACE_PEEKTEXT>, B<PTRACE_PEEKDATA>, and "
5071 #| "B<PTRACE_PEEKUSER> requests have a different API: they store the result "
5072 #| "at the address specified by the I<data> parameter, and the return value "
5073 #| "is the error flag. The glibc wrapper function provides the API given in "
5074 #| "DESCRIPTION above, with the result being returned via the function return "
5075 #| "value."
5076 msgid ""
5077 "At the system call level, the B<PTRACE_PEEKTEXT>, B<PTRACE_PEEKDATA>, and "
5078 "B<PTRACE_PEEKUSER> operations have a different API: they store the result at "
5079 "the address specified by the I<data> parameter, and the return value is the "
5080 "error flag. The glibc wrapper function provides the API given in "
5081 "DESCRIPTION above, with the result being returned via the function return "
5082 "value."
5083 msgstr ""
5084 "На уровне системных вызовов запросы B<PTRACE_PEEKTEXT>, B<PTRACE_PEEKDATA> и "
5085 "B<PTRACE_PEEKUSER> имеют разный программный интерфейс: они сохраняют "
5086 "результат по адресу, указанному в параметре I<data>, а возвращаемое значение "
5087 "является индикатором ошибки. Обёрточная функция glibc предоставляет "
5088 "программный интерфейс, описанные ОПИСАНИЕ выше, а результат возвращается в "
5089 "виде возвращаемого значения функции."
5090
5091 #. type: SH
5092 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5093 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5094 #, no-wrap
5095 msgid "BUGS"
5096 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
5097
5098 #. type: Plain text
5099 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5101 #, fuzzy
5102 #| msgid ""
5103 #| "On hosts with 2.6 kernel headers, B<PTRACE_SETOPTIONS> is declared with a "
5104 #| "different value than the one for 2.4. This leads to applications "
5105 #| "compiled with 2.6 kernel headers failing when run on 2.4 kernels. This "
5106 #| "can be worked around by redefining B<PTRACE_SETOPTIONS> to "
5107 #| "B<PTRACE_OLDSETOPTIONS>, if that is defined."
5108 msgid ""
5109 "On hosts with Linux 2.6 kernel headers, B<PTRACE_SETOPTIONS> is declared "
5110 "with a different value than the one for Linux 2.4. This leads to "
5111 "applications compiled with Linux 2.6 kernel headers failing when run on "
5112 "Linux 2.4. This can be worked around by redefining B<PTRACE_SETOPTIONS> to "
5113 "B<PTRACE_OLDSETOPTIONS>, if that is defined."
5114 msgstr ""
5115 "На машинах с заголовочными файлами ядра 2.6 значение B<PTRACE_SETOPTIONS> "
5116 "отличается от использованного в версии 2.4. Это приводит к тому, что "
5117 "приложения, скомпилированные с такими заголовочными файлами, не работают при "
5118 "использовании ядер 2.4. Этого можно избежать сделав B<PTRACE_SETOPTIONS> "
5119 "равным B<PTRACE_OLDSETOPTIONS>, если данная константа определена."
5120
5121 #. type: Plain text
5122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5124 msgid ""
5125 "Group-stop notifications are sent to the tracer, but not to real parent. "
5126 "Last confirmed on 2.6.38.6."
5127 msgstr ""
5128 "Уведомления group-stop посылаются трассировщику, но не реальному родителю. "
5129 "Последнее подтверждение в версии 2.6.38.6."
5130
5131 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5132 #. Note from Denys Vlasenko:
5133 #. Here "exits" means any kind of death - _exit, exit_group,
5134 #. signal death. Signal death and exit_group cases are trivial,
5135 #. though: since signal death and exit_group kill all other threads
5136 #. too, "until all other threads exit" thing happens rather soon
5137 #. in these cases. Therefore, only _exit presents observably
5138 #. puzzling behavior to ptrace users: thread leader _exit's,
5139 #. but WIFEXITED isn't reported! We are trying to explain here
5140 #. why it is so.
5141 #. FIXME . need to test/verify this scenario
5142 #. type: Plain text
5143 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5144 #. Note from Denys Vlasenko:
5145 #. Here "exits" means any kind of death - _exit, exit_group,
5146 #. signal death. Signal death and exit_group cases are trivial,
5147 #. though: since signal death and exit_group kill all other threads
5148 #. too, "until all other threads exit" thing happens rather soon
5149 #. in these cases. Therefore, only _exit presents observably
5150 #. puzzling behavior to ptrace users: thread leader _exit's,
5151 #. but WIFEXITED isn't reported! We are trying to explain here
5152 #. why it is so.
5153 #. FIXME . need to test/verify this scenario
5154 #. type: Plain text
5155 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5156 #. Note from Denys Vlasenko:
5157 #. Here "exits" means any kind of death - _exit, exit_group,
5158 #. signal death. Signal death and exit_group cases are trivial,
5159 #. though: since signal death and exit_group kill all other threads
5160 #. too, "until all other threads exit" thing happens rather soon
5161 #. in these cases. Therefore, only _exit presents observably
5162 #. puzzling behavior to ptrace users: thread leader _exit's,
5163 #. but WIFEXITED isn't reported! We are trying to explain here
5164 #. why it is so.
5165 #. FIXME . need to test/verify this scenario
5166 #. type: Plain text
5167 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5168 #. Note from Denys Vlasenko:
5169 #. Here "exits" means any kind of death - _exit, exit_group,
5170 #. signal death. Signal death and exit_group cases are trivial,
5171 #. though: since signal death and exit_group kill all other threads
5172 #. too, "until all other threads exit" thing happens rather soon
5173 #. in these cases. Therefore, only _exit presents observably
5174 #. puzzling behavior to ptrace users: thread leader _exit's,
5175 #. but WIFEXITED isn't reported! We are trying to explain here
5176 #. why it is so.
5177 #. FIXME . need to test/verify this scenario
5178 #. type: Plain text
5179 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5180 #. Note from Denys Vlasenko:
5181 #. Here "exits" means any kind of death - _exit, exit_group,
5182 #. signal death. Signal death and exit_group cases are trivial,
5183 #. though: since signal death and exit_group kill all other threads
5184 #. too, "until all other threads exit" thing happens rather soon
5185 #. in these cases. Therefore, only _exit presents observably
5186 #. puzzling behavior to ptrace users: thread leader _exit's,
5187 #. but WIFEXITED isn't reported! We are trying to explain here
5188 #. why it is so.
5189 #. FIXME . need to test/verify this scenario
5190 #. type: Plain text
5191 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5192 #. Note from Denys Vlasenko:
5193 #. Here "exits" means any kind of death - _exit, exit_group,
5194 #. signal death. Signal death and exit_group cases are trivial,
5195 #. though: since signal death and exit_group kill all other threads
5196 #. too, "until all other threads exit" thing happens rather soon
5197 #. in these cases. Therefore, only _exit presents observably
5198 #. puzzling behavior to ptrace users: thread leader _exit's,
5199 #. but WIFEXITED isn't reported! We are trying to explain here
5200 #. why it is so.
5201 #. FIXME . need to test/verify this scenario
5202 #. type: Plain text
5203 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5204 #. Note from Denys Vlasenko:
5205 #. Here "exits" means any kind of death - _exit, exit_group,
5206 #. signal death. Signal death and exit_group cases are trivial,
5207 #. though: since signal death and exit_group kill all other threads
5208 #. too, "until all other threads exit" thing happens rather soon
5209 #. in these cases. Therefore, only _exit presents observably
5210 #. puzzling behavior to ptrace users: thread leader _exit's,
5211 #. but WIFEXITED isn't reported! We are trying to explain here
5212 #. why it is so.
5213 #. FIXME . need to test/verify this scenario
5214 #. type: Plain text
5215 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
5216 #. Note from Denys Vlasenko:
5217 #. Here "exits" means any kind of death - _exit, exit_group,
5218 #. signal death. Signal death and exit_group cases are trivial,
5219 #. though: since signal death and exit_group kill all other threads
5220 #. too, "until all other threads exit" thing happens rather soon
5221 #. in these cases. Therefore, only _exit presents observably
5222 #. puzzling behavior to ptrace users: thread leader _exit's,
5223 #. but WIFEXITED isn't reported! We are trying to explain here
5224 #. why it is so.
5225 #. FIXME . need to test/verify this scenario
5226 #. type: Plain text
5227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5229 msgid ""
5230 "If a thread group leader is traced and exits by calling B<_exit>(2), a "
5231 "B<PTRACE_EVENT_EXIT> stop will happen for it (if requested), but the "
5232 "subsequent B<WIFEXITED> notification will not be delivered until all other "
5233 "threads exit. As explained above, if one of other threads calls "
5234 "B<execve>(2), the death of the thread group leader will I<never> be "
5235 "reported. If the execed thread is not traced by this tracer, the tracer "
5236 "will never know that B<execve>(2) happened. One possible workaround is to "
5237 "B<PTRACE_DETACH> the thread group leader instead of restarting it in this "
5238 "case. Last confirmed on 2.6.38.6."
5239 msgstr ""
5240 "Если трассируется лидер группы нитей и завершается с помощью вызова "
5241 "B<_exit>(2), то происходит его останов B<PTRACE_EVENT_EXIT> (если это "
5242 "запрашивалось), но последующее уведомление B<WIFEXITED> не будет доставлено "
5243 "пока все остальные нити не завершат работу. Как объяснялось выше, если одна "
5244 "из остальных нитей вызывает B<execve>(2), то о завершении лидера группы "
5245 "I<никогда> не будет сообщено. Если исполняемая нить не трассируется этим "
5246 "трассировщиком, то трассировщик никогда не узнает, что происходил "
5247 "B<execve>(2). Одним из обходных вариантов решения в этом случае является "
5248 "выполнение B<PTRACE_DETACH> для лидера группы вместо перезапуска. Последнее "
5249 "подтверждение в версии 2.6.38.6."
5250
5251 #. type: Plain text
5252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5254 msgid ""
5255 "A B<SIGKILL> signal may still cause a B<PTRACE_EVENT_EXIT> stop before "
5256 "actual signal death. This may be changed in the future; B<SIGKILL> is meant "
5257 "to always immediately kill tasks even under ptrace. Last confirmed on Linux "
5258 "3.13."
5259 msgstr ""
5260 "Сигнал B<SIGKILL> всё ещё может вызвать остановку B<PTRACE_EVENT_EXIT> перед "
5261 "настоящем завершением процесса по сигналу. Это поведение может измениться в "
5262 "будущем; B<SIGKILL> всегда подразумевает немедленное завершение задач даже "
5263 "под ptrace. Последняя подтверждённая версия Linux — 3.13."
5264
5265 #. type: Plain text
5266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5268 msgid ""
5269 "Some system calls return with B<EINTR> if a signal was sent to a tracee, but "
5270 "delivery was suppressed by the tracer. (This is very typical operation: it "
5271 "is usually done by debuggers on every attach, in order to not introduce a "
5272 "bogus B<SIGSTOP>). As of Linux 3.2.9, the following system calls are "
5273 "affected (this list is likely incomplete): B<epoll_wait>(2), and B<read>(2) "
5274 "from an B<inotify>(7) file descriptor. The usual symptom of this bug is "
5275 "that when you attach to a quiescent process with the command"
5276 msgstr ""
5277 "Некоторые системные вызовы возвращаются с B<EINTR>, если сигнал был послан "
5278 "трассируемой нити, но доставка была подавлена трассировщиком (это очень "
5279 "распространённая операция: она обычно выполняется отладчиками при каждом "
5280 "присоединении, чтобы не вызывать ненужный B<SIGSTOP>). Начиная с Linux "
5281 "3.2.9, подвержены следующие системные вызовы (вероятно, это не полный "
5282 "список): B<epoll_wait>(2) и B<read>(2) из файлового дескриптора "
5283 "B<inotify>(7). Обычный симптом этой ошибки: когда вы присоединяетесь к "
5284 "неактивному процессу с помощью команды"
5285
5286 #. type: Plain text
5287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5289 #, no-wrap
5290 msgid "strace -p E<lt>process-IDE<gt>\n"
5291 msgstr "strace -p E<lt>process-IDE<gt>\n"
5292
5293 #. type: Plain text
5294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5296 msgid "then, instead of the usual and expected one-line output such as"
5297 msgstr "то вместо обычного и ожидаемого вывода одной строки"
5298
5299 #. type: Plain text
5300 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
5301 #: opensuse-tumbleweed
5302 #, fuzzy, no-wrap
5303 #| msgid "restart_syscall(E<lt>... resuming interrupted call ...E<gt>_\n"
5304 msgid "restart_syscall(E<lt>...\\& resuming interrupted call ...E<gt>_\n"
5305 msgstr "restart_syscall(E<lt>... resuming interrupted call ...E<gt>_\n"
5306
5307 #. type: Plain text
5308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5310 #, no-wrap
5311 msgid "select(6, [5], NULL, [5], NULL_\n"
5312 msgstr "select(6, [5], NULL, [5], NULL_\n"
5313
5314 #. type: Plain text
5315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5317 msgid ""
5318 "('_' denotes the cursor position), you observe more than one line. For "
5319 "example:"
5320 msgstr "(«_» означает позицию курсора), вы видите несколько строк. Пример:"
5321
5322 #. type: Plain text
5323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5325 #, no-wrap
5326 msgid ""
5327 " clock_gettime(CLOCK_MONOTONIC, {15370, 690928118}) = 0\n"
5328 " epoll_wait(4,_\n"
5329 msgstr ""
5330 " clock_gettime(CLOCK_MONOTONIC, {15370, 690928118}) = 0\n"
5331 " epoll_wait(4,_\n"
5332
5333 #. type: Plain text
5334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5336 msgid ""
5337 "What is not visible here is that the process was blocked in "
5338 "B<epoll_wait>(2) before B<strace>(1) has attached to it. Attaching caused "
5339 "B<epoll_wait>(2) to return to user space with the error B<EINTR>. In this "
5340 "particular case, the program reacted to B<EINTR> by checking the current "
5341 "time, and then executing B<epoll_wait>(2) again. (Programs which do not "
5342 "expect such \"stray\" B<EINTR> errors may behave in an unintended way upon "
5343 "an B<strace>(1) attach.)"
5344 msgstr ""
5345 "Здесь не видно, что процесс был заблокирован в B<epoll_wait>(2) до того, как "
5346 "B<strace>(1) присоединился к нему. Присоединение заставляет B<epoll_wait>(2) "
5347 "вернуться в пользовательское пространство с ошибкой B<EINTR>. В этом частном "
5348 "случае, программа отвечает на B<EINTR> проверкой текущего времени и затем "
5349 "вызывает B<epoll_wait>(2) снова (программы, которые не ожидают таких "
5350 "«побочных» ошибок B<EINTR>, при присоединении B<strace>(1) могут повести "
5351 "себя непредсказуемо)."
5352
5353 #. type: Plain text
5354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5356 msgid ""
5357 "Contrary to the normal rules, the glibc wrapper for B<ptrace>() can set "
5358 "I<errno> to zero."
5359 msgstr ""
5360 "В отличие от обычных правил, обёрточная функция glibc для B<ptrace>() может "
5361 "присваивать I<errno> значение нуля."
5362
5363 #. type: SH
5364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5366 #, no-wrap
5367 msgid "SEE ALSO"
5368 msgstr "СМОТРИТЕ ТАКЖЕ"
5369
5370 #. type: Plain text
5371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
5372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
5373 msgid ""
5374 "B<gdb>(1), B<ltrace>(1), B<strace>(1), B<clone>(2), B<execve>(2), "
5375 "B<fork>(2), B<gettid>(2), B<prctl>(2), B<seccomp>(2), B<sigaction>(2), "
5376 "B<tgkill>(2), B<vfork>(2), B<waitpid>(2), B<exec>(3), B<capabilities>(7), "
5377 "B<signal>(7)"
5378 msgstr ""
5379 "B<gdb>(1), B<ltrace>(1), B<strace>(1), B<clone>(2), B<execve>(2), "
5380 "B<fork>(2), B<gettid>(2), B<prctl>(2), B<seccomp>(2), B<sigaction>(2), "
5381 "B<tgkill>(2), B<vfork>(2), B<waitpid>(2), B<exec>(3), B<capabilities>(7), "
5382 "B<signal>(7)"
5383
5384 #. type: TH
5385 #: debian-trixie
5386 #, no-wrap
5387 msgid "2024-05-02"
5388 msgstr "2 мая 2024 г."
5389
5390 #. type: TH
5391 #: debian-trixie
5392 #, no-wrap
5393 msgid "Linux man-pages 6.9.1"
5394 msgstr "Страницы руководства Linux 6.9.1"
5395
5396 #. type: Plain text
5397 #: debian-trixie
5398 msgid "Standard C library (I<libc>, I<-lc>)"
5399 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
5400
5401 #. type: Plain text
5402 #: debian-trixie
5403 msgid ""
5404 "Read the tracee's registers. I<addr> specifies, in an architecture-"
5405 "dependent way, the type of registers to be read. B<NT_PRSTATUS> (with "
5406 "numerical value 1) usually results in reading of general-purpose "
5407 "registers. If the CPU has, for example, floating-point and/or vector "
5408 "registers, they can be retrieved by setting I<addr> to the corresponding "
5409 "B<NT_foo> constant. I<data> points to a B<struct iovec>, which describes "
5410 "the destination buffer's location and length. On return, the kernel "
5411 "modifies B<iov.len> to indicate the actual number of bytes returned."
5412 msgstr ""
5413 "Читает регистры трассируемой нити. В I<addr> указывается, в зависящей от "
5414 "архитектуры форме, тип читаемых регистров. Значение B<NT_PRSTATUS> (равно 1) "
5415 "обычно служит для чтения регистров общего назначения. Если в ЦП есть, "
5416 "например, векторные регистры и для плавающей запятой, то их можно получить "
5417 "назначив I<addr> соответствующую константу B<NT_foo>. Значение I<data> "
5418 "указывает на B<struct iovec>, которая описывает расположение буфера "
5419 "назначения и длину. При возврате ядро изменяет B<iov.len>, возвращая "
5420 "реальное количество возвращаемых байт."
5421
5422 #. type: Plain text
5423 #: debian-trixie fedora-44 fedora-rawhide
5424 #, fuzzy, no-wrap
5425 #| msgid ""
5426 #| "struct ptrace_syscall_info {\n"
5427 #| " __u8 op; /* Type of system call stop */\n"
5428 #| " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
5429 #| " __u64 instruction_pointer; /* CPU instruction pointer */\n"
5430 #| " __u64 stack_pointer; /* CPU stack pointer */\n"
5431 #| " union {\n"
5432 #| " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
5433 #| " __u64 nr; /* System call number */\n"
5434 #| " __u64 args[6]; /* System call arguments */\n"
5435 #| " } entry;\n"
5436 #| " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
5437 #| " __s64 rval; /* System call return value */\n"
5438 #| " __u8 is_error; /* System call error flag;\n"
5439 #| " Boolean: does rval contain\n"
5440 #| " an error value (-ERRCODE) or\n"
5441 #| " a nonerror return value? */\n"
5442 #| " } exit;\n"
5443 #| " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
5444 #| " __u64 nr; /* System call number */\n"
5445 #| " __u64 args[6]; /* System call arguments */\n"
5446 #| " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
5447 #| " of SECCOMP_RET_TRACE\n"
5448 #| " return value */\n"
5449 #| " } seccomp;\n"
5450 #| " };\n"
5451 #| "};\n"
5452 msgid ""
5453 "struct ptrace_syscall_info {\n"
5454 " __u8 op; /* Type of system call stop */\n"
5455 " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
5456 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
5457 " __u64 stack_pointer; /* CPU stack pointer */\n"
5458 " union {\n"
5459 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
5460 " __u64 nr; /* System call number */\n"
5461 " __u64 args[6]; /* System call arguments */\n"
5462 " } entry;\n"
5463 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
5464 " __s64 rval; /* System call return value */\n"
5465 " __u8 is_error; /* System call error flag;\n"
5466 " Boolean: does rval contain\n"
5467 " an error value (-ERRCODE) or\n"
5468 " a nonerror return value? */\n"
5469 " } exit;\n"
5470 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
5471 " __u64 nr; /* System call number */\n"
5472 " __u64 args[6]; /* System call arguments */\n"
5473 " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
5474 " of SECCOMP_RET_TRACE\n"
5475 " return value */\n"
5476 " } seccomp;\n"
5477 " };\n"
5478 "};\n"
5479 msgstr ""
5480 "struct ptrace_syscall_info {\n"
5481 " __u8 op; /* тип останова системного вызова */\n"
5482 " __u32 arch; /* значение AUDIT_ARCH_*; смотрите seccomp(2) */\n"
5483 " __u64 instruction_pointer; /* указатель инструкции ЦП */\n"
5484 " __u64 stack_pointer; /* указатель стека ЦП */\n"
5485 " union {\n"
5486 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
5487 " __u64 nr; /* номер системного вызова */\n"
5488 " __u64 args[6]; /* аргументы системного вызова */\n"
5489 " } entry;\n"
5490 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
5491 " __s64 rval; /* возвращаемое значение системного вызова */\n"
5492 " __u8 is_error; /* флаг ошибки системного вызова;\n"
5493 " логический: в rval содержится\n"
5494 " значение ошибки (-ERRCODE) или\n"
5495 " или не ошибки? */\n"
5496 " } exit;\n"
5497 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
5498 " __u64 nr; /* номер системного вызова */\n"
5499 " __u64 args[6]; /* аргументы системного вызова */\n"
5500 " __u32 ret_data; /* часть SECCOMP_RET_DATA\n"
5501 " возвращаемого значения\n"
5502 " SECCOMP_RET_TRACE */\n"
5503 " } seccomp;\n"
5504 " };\n"
5505 "};\n"
5506
5507 #. type: Plain text
5508 #: debian-trixie fedora-44 fedora-rawhide
5509 #, no-wrap
5510 msgid ""
5511 "*** we get syscall-enter-stop in thread 1: **\n"
5512 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
5513 "*** we issue PTRACE_SYSCALL for thread 1 **\n"
5514 "*** we get syscall-enter-stop in thread 2: **\n"
5515 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
5516 "*** we issue PTRACE_SYSCALL for thread 2 **\n"
5517 "*** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **\n"
5518 "*** we get syscall-exit-stop for PID0: **\n"
5519 "PID0 E<lt>... execve resumedE<gt> ) = 0\n"
5520 msgstr ""
5521 "*** мы получаем syscall-enter-stop в нити 1: **\n"
5522 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
5523 "*** мы выдаём PTRACE_SYSCALL для нити 1 **\n"
5524 "*** мы получаем syscall-enter-stop в нити 2: **\n"
5525 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
5526 "*** мы выдаём PTRACE_SYSCALL для нити 2 **\n"
5527 "*** мы получаем PTRACE_EVENT_EXEC for PID0, мы выдаём PTRACE_SYSCALL **\n"
5528 "*** мы получаем syscall-exit-stop для PID0: **\n"
5529 "PID0 E<lt>... execve resumedE<gt> ) = 0\n"
5530
5531 #. commit 90bb766440f2147486a2acc3e793d7b8348b0c22
5532 #. type: Plain text
5533 #: debian-trixie fedora-44 fedora-rawhide
5534 msgid ""
5535 "A target process can employ the B<prctl>(2) B<PR_SET_PTRACER> operation to "
5536 "declare an additional PID that is allowed to perform B<PTRACE_MODE_ATTACH> "
5537 "operations on the target. See the kernel source file I<Documentation/admin-"
5538 "guide/LSM/Yama.rst> (or I<Documentation/security/Yama.txt> before Linux "
5539 "4.13) for further details."
5540 msgstr ""
5541 "Процесс назначения может выполнить операцию B<prctl>(2) B<PR_SET_PTRACER> "
5542 "для объявления дополнительного PID, которому разрешено выполнять операции "
5543 "B<PTRACE_MODE_ATTACH> над процессом назначения. Подробности смотрите в файле "
5544 "исходного кода ядра I<Documentation/admin-guide/LSM/Yama.rst> (или "
5545 "I<Documentation/security/Yama.txt> до Linux 4.13)."
5546
5547 #. type: Plain text
5548 #: debian-trixie fedora-44 fedora-rawhide
5549 #, no-wrap
5550 msgid "restart_syscall(E<lt>... resuming interrupted call ...E<gt>_\n"
5551 msgstr "restart_syscall(E<lt>... resuming interrupted call ...E<gt>_\n"
5552
5553 #. type: TH
5554 #: fedora-44 fedora-rawhide
5555 #, no-wrap
5556 msgid "2024-11-17"
5557 msgstr "17 ноября 2024 г."
5558
5559 #. type: TH
5560 #: fedora-44 fedora-rawhide
5561 #, no-wrap
5562 msgid "Linux man-pages 6.13"
5563 msgstr "Страницы руководства Linux 6.13"
5564
5565 #. type: TH
5566 #: mageia-cauldron
5567 #, no-wrap
5568 msgid "Linux man-pages 6.17"
5569 msgstr "Страницы руководства Linux 6.17"
5570
5571 #. type: TH
5572 #: opensuse-leap-16-1 opensuse-tumbleweed
5573 #, no-wrap
5574 msgid "Linux man-pages (unreleased)"
5575 msgstr "Страницы руководства Linux (не выпущены)"