Debian Codegraph @

po/es/man2/ptrace.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
10 "PO-Revision-Date: 2000-01-08 19:53+0200\n"
11 "Last-Translator: Juan Piernas <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, fuzzy, no-wrap
24 #| msgid "B<xtrace>"
25 msgid "ptrace"
26 msgstr "B<xtrace>"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-10"
33 msgstr "10 Febrero 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Páginas de Manual de Linux 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOMBRE"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "ptrace - process trace"
53 msgstr "ptrace - rastreo de un proceso"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSIS"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/ptrace.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/ptrace.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<long ptrace(enum __ptrace_request >I<request>B<, pid_t >I<pid>B<,>\n"
88 #| "B< void *>I<addr>B<, void *>I<data>B<);>\n"
89 msgid ""
90 "B<long ptrace(enum __ptrace_request >I<op>B<, pid_t >I<pid>B<,>\n"
91 "B< void *>I<addr>B<, void *>I<data>B<);>\n"
92 msgstr ""
93 "B<long ptrace(enum __ptrace_request >I<petición>B<, pid_t >I<pid>B<,>\n"
94 "B< void *>I<direc>B<, void *>I<datos>B<);>\n"
95
96 #. type: SH
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "DESCRIPTION"
101 msgstr "DESCRIPCIÓN"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, fuzzy
107 #| msgid ""
108 #| "The B<ptrace> system call provides a means by which a parent process may "
109 #| "observe and control the execution of another process, and examine and "
110 #| "change its core image and registers. It is primarily used to implement "
111 #| "breakpoint debugging and system call tracing."
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 "La llamada al sistema B<ptrace> proporciona un medio por el que un proceso "
119 "padre puede observar y controlar la ejecución de otro proceso y examinar y "
120 "cambiar su imagen de memoria y registros. Se usa principalmente en la "
121 "implementación de depuración con puntos de ruptura y en el rastreo de "
122 "llamadas al sistema."
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 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, fuzzy, no-wrap
140 #| msgid " ptrace(PTRACE_foo, pid, ...)\n"
141 msgid "ptrace(PTRACE_foo, pid, ...)\n"
142 msgstr " ptrace(PTRACE_foo, pid, ...)\n"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid "where I<pid> is the thread ID of the corresponding Linux thread."
148 msgstr ""
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 ""
154 "(Note that in this page, a \"multithreaded process\" means a thread group "
155 "consisting of threads created using the B<clone>(2) B<CLONE_THREAD> flag.)"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, fuzzy
162 #| msgid ""
163 #| "The parent can initiate a trace by calling B<fork>(2) and having the "
164 #| "resulting child do a PTRACE_TRACEME, followed (typically) by an "
165 #| "B<exec>(3). Alternatively, the parent may commence trace of an existing "
166 #| "process using PTRACE_ATTACH."
167 msgid ""
168 "A process can initiate a trace by calling B<fork>(2) and having the "
169 "resulting child do a B<PTRACE_TRACEME>, followed (typically) by an "
170 "B<execve>(2). Alternatively, one process may commence tracing another "
171 "process using B<PTRACE_ATTACH> or B<PTRACE_SEIZE>."
172 msgstr ""
173 "El padre puede inicar un rastreo llamando a B<fork>(2) haciendo que el hijo "
174 "restultante realice un PTRACE_TRACEME, seguido (normalmente) por un "
175 "B<exec>(3). Alternativamente, el padre puede comenzar a rastrear un proceso "
176 "existente usando PTRACE_ATTACH."
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 #, fuzzy
182 #| msgid ""
183 #| "While being traced, the child will stop each time a signal is delivered, "
184 #| "even if the signal is being ignored. (The exception is SIGKILL, which "
185 #| "has its usual effect.) The parent will be notified at its next "
186 #| "B<wait>(2) and may inspect and modify the child process while it is "
187 #| "stopped. The parent then causes the child to continue, optionally "
188 #| "ignoring the delivered signal (or even delivering a different signal "
189 #| "instead)."
190 msgid ""
191 "While being traced, the tracee will stop each time a signal is delivered, "
192 "even if the signal is being ignored. (An exception is B<SIGKILL>, which has "
193 "its usual effect.) The tracer will be notified at its next call to "
194 "B<waitpid>(2) (or one of the related \"wait\" system calls); that call will "
195 "return a I<status> value containing information that indicates the cause of "
196 "the stop in the tracee. While the tracee is stopped, the tracer can use "
197 "various ptrace operations to inspect and modify the tracee. The tracer then "
198 "causes the tracee to continue, optionally ignoring the delivered signal (or "
199 "even delivering a different signal instead)."
200 msgstr ""
201 "Mientras está siendo rastreado, el hijo se detendrá cada vez que reciba una "
202 "señal, aun cuando la señal se haya ignorado. (La excepción es SIGKILL que "
203 "tiene su efecto habitual.) El padre será informado en su siguiente "
204 "B<wait>(2) y puede inspeccionar y modificar el proceso hijo mientras está "
205 "parado. A continuación, el padre puede hacer que el hijo continúe, "
206 "ignorando opcionalmente la señal recibida (o incluso entregando una señal "
207 "distinta en su lugar)."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "If the B<PTRACE_O_TRACEEXEC> option is not in effect, all successful calls "
214 "to B<execve>(2) by the traced process will cause it to be sent a B<SIGTRAP> "
215 "signal, giving the parent a chance to gain control before the new program "
216 "begins execution."
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, fuzzy
223 #| msgid ""
224 #| "When the parent is finished tracing, it can terminate the child with "
225 #| "PTRACE_KILL or cause it to continue executing in a normal, untraced mode "
226 #| "via PTRACE_DETACH."
227 msgid ""
228 "When the tracer is finished tracing, it can cause the tracee to continue "
229 "executing in a normal, untraced mode via B<PTRACE_DETACH>."
230 msgstr ""
231 "Cuando el padre termina de rastrear, puede terminar el hijo con PTRACE_KILL "
232 "o hace que se continúe ejecutando en un modo normal sin rastreo mediante "
233 "PTRACE_DETACH."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, fuzzy
239 #| msgid "The value of I<request> determines the action to be performed:"
240 msgid "The value of I<op> determines the operation to be performed:"
241 msgstr "El valor del argumento I<petición> determina la acción a realizar:"
242
243 #. type: TP
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "B<PTRACE_TRACEME>"
248 msgstr "B<PTRACE_TRACEME>"
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "Indicate that this process is to be traced by its parent. A process "
255 "probably shouldn't make this operation if its parent isn't expecting to "
256 "trace it. (I<pid>, I<addr>, and I<data> are ignored.)"
257 msgstr ""
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, fuzzy
263 #| msgid ""
264 #| "The above request is used only by the child process; the rest are used "
265 #| "only by the parent. In the following requests, I<pid> specifies the "
266 #| "child process to be acted on. For requests other than PTRACE_KILL, the "
267 #| "child process must be stopped."
268 msgid ""
269 "The B<PTRACE_TRACEME> operation is used only by the tracee; the remaining "
270 "operations are used only by the tracer. In the following operations, I<pid> "
271 "specifies the thread ID of the tracee to be acted on. For operations other "
272 "than B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, B<PTRACE_INTERRUPT>, and "
273 "B<PTRACE_KILL>, the tracee must be stopped."
274 msgstr ""
275 "La petición anterior la usa sólo el proceso hijo. El resto las usa sólo el "
276 "padre. En las siguientes peticiones, I<pid> indica el proceso hijo sobre el "
277 "que se actuará. Para peticiones distintas de PTRACE_KILL, el proceso hijo "
278 "debe estar parado."
279
280 #. type: TP
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, fuzzy, no-wrap
284 #| msgid "B<PTRACE_EVENT_EXIT>"
285 msgid "B<PTRACE_PEEKTEXT>"
286 msgstr "B<PTRACE_EVENT_EXIT>"
287
288 #. type: TQ
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, fuzzy, no-wrap
292 #| msgid "B<PTRACE_PEEKUSER>"
293 msgid "B<PTRACE_PEEKDATA>"
294 msgstr "B<PTRACE_PEEKUSER>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, fuzzy
300 msgid ""
301 "Read a word at the address I<addr> in the tracee's memory, returning the "
302 "word as the result of the B<ptrace>() call. Linux does not have separate "
303 "text and data address spaces, so these two operations are currently "
304 "equivalent. (I<data> is ignored; but see NOTES.)"
305 msgstr "Lee una palabra de la posición I<direc>."
306
307 #. type: TP
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "B<PTRACE_PEEKUSER>"
312 msgstr "B<PTRACE_PEEKUSER>"
313
314 #. PTRACE_PEEKUSR in kernel source, but glibc uses PTRACE_PEEKUSER,
315 #. and that is the name that seems common on other systems.
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, fuzzy
320 #| msgid ""
321 #| "Reads a word at offset I<addr> in the child's B<USER> area, which holds "
322 #| "the registers and other information about the process (see E<lt>linux/"
323 #| "user.hE<gt> and E<lt>sys/user.hE<gt>). The word is returned as the "
324 #| "result of the B<ptrace> call. Typically the offset must be word-aligned, "
325 #| "though this might vary by architecture. (I<data> is ignored.)"
326 msgid ""
327 "Read a word at offset I<addr> in the tracee's USER area, which holds the "
328 "registers and other information about the process (see I<E<lt>sys/"
329 "user.hE<gt>>). The word is returned as the result of the B<ptrace>() "
330 "call. Typically, the offset must be word-aligned, though this might vary by "
331 "architecture. See NOTES. (I<data> is ignored; but see NOTES.)"
332 msgstr ""
333 "Lee una palabra en el desplazamiento I<direc> del área B<USER> del hijo, que "
334 "contiene los registros y otra información sobre el proceso (vea E<lt>linux/"
335 "user.hE<gt> y E<lt>sys/user.hE<gt>). La palabra se devuelve como resultado "
336 "de la llamada B<ptrace>. Típicamente, el desplazamiento debe está alineado "
337 "en una frontera de palabra, aunque esto podría variar en cada arquitectura. "
338 "(I<datos> se ignora)."
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, fuzzy, no-wrap
344 #| msgid "B<PTRACE_POKEUSER>"
345 msgid "B<PTRACE_POKETEXT>"
346 msgstr "B<PTRACE_POKEUSER>"
347
348 #. type: TQ
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, fuzzy, no-wrap
352 #| msgid "B<PTRACE_POKEUSER>"
353 msgid "B<PTRACE_POKEDATA>"
354 msgstr "B<PTRACE_POKEUSER>"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, fuzzy
360 #| msgid ""
361 #| "Copies the word I<data> to location I<addr> in the child's memory. As "
362 #| "above, the two requests are currently equivalent."
363 msgid ""
364 "Copy the word I<data> to the address I<addr> in the tracee's memory. As for "
365 "B<PTRACE_PEEKTEXT> and B<PTRACE_PEEKDATA>, these two operations are "
366 "currently equivalent."
367 msgstr ""
368 "Copia una palabra de la posición I<datos> a la posición I<direc> de la "
369 "memoria del hijo. Como antes, las dos peticiones son actualmente "
370 "equivalentes."
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<PTRACE_POKEUSER>"
377 msgstr "B<PTRACE_POKEUSER>"
378
379 #. PTRACE_POKEUSR in kernel source, but glibc uses PTRACE_POKEUSER,
380 #. and that is the name that seems common on other systems.
381 #. FIXME In the preceding sentence, which modifications are disallowed,
382 #. and when they are disallowed, how does user space discover that fact?
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, fuzzy
387 #| msgid ""
388 #| "Copies the word I<data> to offset I<addr> in the child's B<USER> area. "
389 #| "As above, the offset must typically be word-aligned. In order to "
390 #| "maintain the integrity of the kernel, some modifications to the B<USER> "
391 #| "area are disallowed."
392 msgid ""
393 "Copy the word I<data> to offset I<addr> in the tracee's USER area. As for "
394 "B<PTRACE_PEEKUSER>, the offset must typically be word-aligned. In order to "
395 "maintain the integrity of the kernel, some modifications to the USER area "
396 "are disallowed."
397 msgstr ""
398 "Copia una palabra de la posición I<datos> al desplazamiento I<direc> en el "
399 "área B<USER> del hijo. Al igual que antes, el desplazamiento debe estar "
400 "típicamente alineado en una frontera de palabra. Para conservar la "
401 "integridad del núcleo, algunas modificaciones al área B<USER> se encuentran "
402 "deshabilitadas."
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, fuzzy, no-wrap
408 #| msgid "B<PTRACE_TRACEME>"
409 msgid "B<PTRACE_GETREGS>"
410 msgstr "B<PTRACE_TRACEME>"
411
412 #. type: TQ
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, fuzzy, no-wrap
416 #| msgid "B<PTRACE_MODE_FSCREDS>"
417 msgid "B<PTRACE_GETFPREGS>"
418 msgstr "B<PTRACE_MODE_FSCREDS>"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "Copy the tracee's general-purpose or floating-point registers, respectively, "
425 "to the address I<data> in the tracer. See I<E<lt>sys/user.hE<gt>> for "
426 "information on the format of this data. (I<addr> is ignored.) Note that "
427 "SPARC systems have the meaning of I<data> and I<addr> reversed; that is, "
428 "I<data> is ignored and the registers are copied to the address I<addr>. "
429 "B<PTRACE_GETREGS> and B<PTRACE_GETFPREGS> are not present on all "
430 "architectures."
431 msgstr ""
432
433 #. type: TP
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "B<PTRACE_GETREGSET> (since Linux 2.6.34)"
438 msgstr "B<PTRACE_GETREGSET> (desde Linux 2.6.34)"
439
440 #. type: Plain text
441 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
442 #: opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "Read the tracee's registers. I<addr> specifies, in an architecture-"
445 "dependent way, the type of registers to be read. B<NT_PRSTATUS> (with "
446 "numerical value 1) usually results in reading of general-purpose "
447 "registers. If the CPU has, for example, floating-point and/or vector "
448 "registers, they can be retrieved by setting I<addr> to the corresponding "
449 "B<NT_foo> constant. I<data> points to a B<struct iovec>, which describes "
450 "the destination buffer's location and size. On return, the kernel modifies "
451 "B<iov.len> to indicate the actual number of bytes returned."
452 msgstr ""
453
454 #. type: TP
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, fuzzy, no-wrap
458 #| msgid "B<PTRACE_TRACEME>"
459 msgid "B<PTRACE_SETREGS>"
460 msgstr "B<PTRACE_TRACEME>"
461
462 #. type: TQ
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, fuzzy, no-wrap
466 #| msgid "B<PTRACE_MODE_FSCREDS>"
467 msgid "B<PTRACE_SETFPREGS>"
468 msgstr "B<PTRACE_MODE_FSCREDS>"
469
470 #. FIXME . In the preceding sentence, which modifications are disallowed,
471 #. and when they are disallowed, how does user space discover that fact?
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "Modify the tracee's general-purpose or floating-point registers, "
477 "respectively, from the address I<data> in the tracer. As for "
478 "B<PTRACE_POKEUSER>, some general-purpose register modifications may be "
479 "disallowed. (I<addr> is ignored.) Note that SPARC systems have the meaning "
480 "of I<data> and I<addr> reversed; that is, I<data> is ignored and the "
481 "registers are copied from the address I<addr>. B<PTRACE_SETREGS> and "
482 "B<PTRACE_SETFPREGS> are not present on all architectures."
483 msgstr ""
484
485 #. type: TP
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "B<PTRACE_SETREGSET> (since Linux 2.6.34)"
490 msgstr "B<PTRACE_SETREGSET> (desde Linux 2.6.34)"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "Modify the tracee's registers. The meaning of I<addr> and I<data> is "
497 "analogous to B<PTRACE_GETREGSET>."
498 msgstr ""
499
500 #. type: TP
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "B<PTRACE_GETSIGINFO> (since Linux 2.3.99-pre6)"
505 msgstr "B<PTRACE_GETSIGINFO> (desde Linux 2.3.99-pre6)"
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "Retrieve information about the signal that caused the stop. Copy a "
512 "I<siginfo_t> structure (see B<sigaction>(2)) from the tracee to the address "
513 "I<data> in the tracer. (I<addr> is ignored.)"
514 msgstr ""
515
516 #. type: TP
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "B<PTRACE_SETSIGINFO> (since Linux 2.3.99-pre6)"
521 msgstr "B<PTRACE_SETSIGINFO> (desde Linux 2.3.99-pre6)"
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid ""
527 "Set signal information: copy a I<siginfo_t> structure from the address "
528 "I<data> in the tracer to the tracee. This will affect only signals that "
529 "would normally be delivered to the tracee and were caught by the tracer. It "
530 "may be difficult to tell these normal signals from synthetic signals "
531 "generated by B<ptrace>() itself. (I<addr> is ignored.)"
532 msgstr ""
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<PTRACE_PEEKSIGINFO> (since Linux 3.10)"
539 msgstr "B<PTRACE_PEEKSIGINFO> (desde Linux 3.10)"
540
541 #. commit 84c751bd4aebbaae995fe32279d3dba48327bad4
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "Retrieve I<siginfo_t> structures without removing signals from a queue. "
547 "I<addr> points to a I<ptrace_peeksiginfo_args> structure that specifies the "
548 "ordinal position from which copying of signals should start, and the number "
549 "of signals to copy. I<siginfo_t> structures are copied into the buffer "
550 "pointed to by I<data>. The return value contains the number of copied "
551 "signals (zero indicates that there is no signal corresponding to the "
552 "specified ordinal position). Within the returned I<siginfo> structures, the "
553 "I<si_code> field includes information (B<__SI_CHLD>, B<__SI_FAULT>, etc.) "
554 "that are not otherwise exposed to user space."
555 msgstr ""
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 #, no-wrap
561 msgid ""
562 "struct ptrace_peeksiginfo_args {\n"
563 " u64 off; /* Ordinal position in queue at which\n"
564 " to start copying signals */\n"
565 " u32 flags; /* PTRACE_PEEKSIGINFO_SHARED or 0 */\n"
566 " s32 nr; /* Number of signals to copy */\n"
567 "};\n"
568 msgstr ""
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "Currently, there is only one flag, B<PTRACE_PEEKSIGINFO_SHARED>, for dumping "
575 "signals from the process-wide signal queue. If this flag is not set, "
576 "signals are read from the per-thread queue of the specified thread."
577 msgstr ""
578
579 #. type: TP
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "B<PTRACE_GETSIGMASK> (since Linux 3.11)"
584 msgstr "B<PTRACE_GETSIGMASK> (desde Linux 3.11)"
585
586 #. commit 29000caecbe87b6b66f144f72111f0d02fbbf0c1
587 #. type: Plain text
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 msgid ""
591 "Place a copy of the mask of blocked signals (see B<sigprocmask>(2)) in the "
592 "buffer pointed to by I<data>, which should be a pointer to a buffer of type "
593 "I<sigset_t>. The I<addr> argument contains the size of the buffer pointed "
594 "to by I<data> (i.e., I<sizeof(sigset_t)>)."
595 msgstr ""
596
597 #. type: TP
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 #, no-wrap
601 msgid "B<PTRACE_SETSIGMASK> (since Linux 3.11)"
602 msgstr "B<PTRACE_SETSIGMASK> (desde Linux 3.11)"
603
604 #. type: Plain text
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 msgid ""
608 "Change the mask of blocked signals (see B<sigprocmask>(2)) to the value "
609 "specified in the buffer pointed to by I<data>, which should be a pointer to "
610 "a buffer of type I<sigset_t>. The I<addr> argument contains the size of the "
611 "buffer pointed to by I<data> (i.e., I<sizeof(sigset_t)>)."
612 msgstr ""
613
614 #. type: TP
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "B<PTRACE_SETOPTIONS> (since Linux 2.4.6; see BUGS for caveats)"
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "Set ptrace options from I<data>. (I<addr> is ignored.) I<data> is "
626 "interpreted as a bit mask of options, which are specified by the following "
627 "flags:"
628 msgstr ""
629
630 #. type: TP
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "B<PTRACE_O_EXITKILL> (since Linux 3.8)"
635 msgstr "B<PTRACE_O_EXITKILL> (desde Linux 3.8)"
636
637 #. commit 992fb6e170639b0849bace8e49bf31bd37c4123
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 msgid ""
642 "Send a B<SIGKILL> signal to the tracee if the tracer exits. This option is "
643 "useful for ptrace jailers that want to ensure that tracees can never escape "
644 "the tracer's control."
645 msgstr ""
646
647 #. type: TP
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "B<PTRACE_O_TRACECLONE> (since Linux 2.5.46)"
652 msgstr "B<PTRACE_O_TRACECLONE> (desde Linux 2.5.46)"
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 msgid ""
658 "Stop the tracee at the next B<clone>(2) and automatically start tracing the "
659 "newly cloned process, which will start with a B<SIGSTOP>, or "
660 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
661 "tracer will return a I<status> value such that"
662 msgstr ""
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 #, no-wrap
668 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_CLONEE<lt>E<lt>8))\n"
669 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_CLONEE<lt>E<lt>8))\n"
670
671 #. type: Plain text
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 msgid "The PID of the new process can be retrieved with B<PTRACE_GETEVENTMSG>."
675 msgstr ""
676
677 #. type: Plain text
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 msgid ""
681 "This option may not catch B<clone>(2) calls in all cases. If the tracee "
682 "calls B<clone>(2) with the B<CLONE_VFORK> flag, B<PTRACE_EVENT_VFORK> will "
683 "be delivered instead if B<PTRACE_O_TRACEVFORK> is set; otherwise if the "
684 "tracee calls B<clone>(2) with the exit signal set to B<SIGCHLD>, "
685 "B<PTRACE_EVENT_FORK> will be delivered if B<PTRACE_O_TRACEFORK> is set."
686 msgstr ""
687
688 #. type: TP
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid "B<PTRACE_O_TRACEEXEC> (since Linux 2.5.46)"
693 msgstr "B<PTRACE_O_TRACEEXEC> (desde Linux 2.5.46)"
694
695 #. type: Plain text
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 msgid ""
699 "Stop the tracee at the next B<execve>(2). A B<waitpid>(2) by the tracer "
700 "will return a I<status> value such that"
701 msgstr ""
702
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXECE<lt>E<lt>8))\n"
708 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXECE<lt>E<lt>8))\n"
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid ""
714 "If the execing thread is not a thread group leader, the thread ID is reset "
715 "to thread group leader's ID before this stop. Since Linux 3.0, the former "
716 "thread ID can be retrieved with B<PTRACE_GETEVENTMSG>."
717 msgstr ""
718
719 #. type: TP
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 #, no-wrap
723 msgid "B<PTRACE_O_TRACEEXIT> (since Linux 2.5.60)"
724 msgstr "B<PTRACE_O_TRACEEXIT> (desde Linux 2.5.60)"
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid ""
730 "Stop the tracee at exit. A B<waitpid>(2) by the tracer will return a "
731 "I<status> value such that"
732 msgstr ""
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXITE<lt>E<lt>8))\n"
739 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_EXITE<lt>E<lt>8))\n"
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 msgid "The tracee's exit status can be retrieved with B<PTRACE_GETEVENTMSG>."
745 msgstr ""
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 msgid ""
751 "The tracee is stopped early during process exit, when registers are still "
752 "available, allowing the tracer to see where the exit occurred, whereas the "
753 "normal exit notification is done after the process is finished exiting. "
754 "Even though context is available, the tracer cannot prevent the exit from "
755 "happening at this point."
756 msgstr ""
757
758 #. type: TP
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 #, no-wrap
762 msgid "B<PTRACE_O_TRACEFORK> (since Linux 2.5.46)"
763 msgstr "B<PTRACE_O_TRACEFORK> (desde Linux 2.5.46)"
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid ""
769 "Stop the tracee at the next B<fork>(2) and automatically start tracing the "
770 "newly forked process, which will start with a B<SIGSTOP>, or "
771 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
772 "tracer will return a I<status> value such that"
773 msgstr ""
774
775 #. type: Plain text
776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
778 #, no-wrap
779 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_FORKE<lt>E<lt>8))\n"
780 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_FORKE<lt>E<lt>8))\n"
781
782 #. type: TP
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 #, no-wrap
786 msgid "B<PTRACE_O_TRACESYSGOOD> (since Linux 2.4.6)"
787 msgstr "B<PTRACE_O_TRACESYSGOOD> (desde Linux 2.4.6)"
788
789 #. type: Plain text
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 msgid ""
793 "When delivering system call traps, set bit 7 in the signal number (i.e., "
794 "deliver I<SIGTRAP|0x80>). This makes it easy for the tracer to distinguish "
795 "normal traps from those caused by a system call."
796 msgstr ""
797
798 #. type: TP
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 #, no-wrap
802 msgid "B<PTRACE_O_TRACEVFORK> (since Linux 2.5.46)"
803 msgstr "B<PTRACE_O_TRACEVFORK> (desde Linux 2.5.46)"
804
805 #. type: Plain text
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 msgid ""
809 "Stop the tracee at the next B<vfork>(2) and automatically start tracing the "
810 "newly vforked process, which will start with a B<SIGSTOP>, or "
811 "B<PTRACE_EVENT_STOP> if B<PTRACE_SEIZE> was used. A B<waitpid>(2) by the "
812 "tracer will return a I<status> value such that"
813 msgstr ""
814
815 #. type: Plain text
816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
818 #, no-wrap
819 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORKE<lt>E<lt>8))\n"
820 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORKE<lt>E<lt>8))\n"
821
822 #. type: TP
823 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
824 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "B<PTRACE_O_TRACEVFORKDONE> (since Linux 2.5.60)"
827 msgstr "B<PTRACE_O_TRACEVFORKDONE> (desde Linux 2.5.60)"
828
829 #. type: Plain text
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 msgid ""
833 "Stop the tracee at the completion of the next B<vfork>(2). A B<waitpid>(2) "
834 "by the tracer will return a I<status> value such that"
835 msgstr ""
836
837 #. type: Plain text
838 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
839 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
840 #, no-wrap
841 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORK_DONEE<lt>E<lt>8))\n"
842 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_VFORK_DONEE<lt>E<lt>8))\n"
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 msgid ""
848 "The PID of the new process can (since Linux 2.6.18) be retrieved with "
849 "B<PTRACE_GETEVENTMSG>."
850 msgstr ""
851
852 #. type: TP
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 #, no-wrap
856 msgid "B<PTRACE_O_TRACESECCOMP> (since Linux 3.5)"
857 msgstr "B<PTRACE_O_TRACESECCOMP> (desde Linux 3.5)"
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 "Stop the tracee when a B<seccomp>(2) B<SECCOMP_RET_TRACE> rule is "
864 "triggered. A B<waitpid>(2) by the tracer will return a I<status> value "
865 "such that"
866 msgstr ""
867
868 #. type: Plain text
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_SECCOMPE<lt>E<lt>8))\n"
873 msgstr " statusE<gt>E<gt>8 == (SIGTRAP | (PTRACE_EVENT_SECCOMPE<lt>E<lt>8))\n"
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "While this triggers a B<PTRACE_EVENT> stop, it is similar to a syscall-enter-"
880 "stop. For details, see the note on B<PTRACE_EVENT_SECCOMP> below. The "
881 "seccomp event message data (from the B<SECCOMP_RET_DATA> portion of the "
882 "seccomp filter rule) can be retrieved with B<PTRACE_GETEVENTMSG>."
883 msgstr ""
884
885 #. type: TP
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 #, no-wrap
889 msgid "B<PTRACE_O_SUSPEND_SECCOMP> (since Linux 4.3)"
890 msgstr "B<PTRACE_O_SUSPEND_SECCOMP> (desde Linux 4.3)"
891
892 #. commit 13c4a90119d28cfcb6b5bdd820c233b86c2b0237
893 #. type: Plain text
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 msgid ""
897 "Suspend the tracee's seccomp protections. This applies regardless of mode, "
898 "and can be used when the tracee has not yet installed seccomp filters. That "
899 "is, a valid use case is to suspend a tracee's seccomp protections before "
900 "they are installed by the tracee, let the tracee install the filters, and "
901 "then clear this flag when the filters should be resumed. Setting this "
902 "option requires that the tracer have the B<CAP_SYS_ADMIN> capability, not "
903 "have any seccomp protections installed, and not have "
904 "B<PTRACE_O_SUSPEND_SECCOMP> set on itself."
905 msgstr ""
906
907 #. type: TP
908 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
909 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
910 #, no-wrap
911 msgid "B<PTRACE_GETEVENTMSG> (since Linux 2.5.46)"
912 msgstr "B<PTRACE_GETEVENTMSG> (desde Linux 2.5.46)"
913
914 #. type: Plain text
915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
917 msgid ""
918 "Retrieve a message (as an I<unsigned long>) about the ptrace event that "
919 "just happened, placing it at the address I<data> in the tracer. For "
920 "B<PTRACE_EVENT_EXIT>, this is the tracee's exit status. For "
921 "B<PTRACE_EVENT_FORK>, B<PTRACE_EVENT_VFORK>, B<PTRACE_EVENT_VFORK_DONE>, and "
922 "B<PTRACE_EVENT_CLONE>, this is the PID of the new process. For "
923 "B<PTRACE_EVENT_SECCOMP>, this is the B<seccomp>(2) filter's "
924 "B<SECCOMP_RET_DATA> associated with the triggered rule. (I<addr> is "
925 "ignored.)"
926 msgstr ""
927
928 #. type: TP
929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
931 #, no-wrap
932 msgid "B<PTRACE_CONT>"
933 msgstr "B<PTRACE_CONT>"
934
935 #. type: Plain text
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 #, fuzzy
939 #| msgid ""
940 #| "Restarts the stopped child process. If I<data> is non-zero and not "
941 #| "SIGSTOP, it is interpreted as a signal to be delivered to the child; "
942 #| "otherwise, no signal is delivered. Thus, for example, the parent can "
943 #| "control whether a signal sent to the child is delivered or not. (I<addr> "
944 #| "is ignored.)"
945 msgid ""
946 "Restart the stopped tracee process. If I<data> is nonzero, it is "
947 "interpreted as the number of a signal to be delivered to the tracee; "
948 "otherwise, no signal is delivered. Thus, for example, the tracer can "
949 "control whether a signal sent to the tracee is delivered or not. (I<addr> "
950 "is ignored.)"
951 msgstr ""
952 "Reinicia el proceso hijo parado. Si I<datos> no es cero y tampoco SIGSTOP se "
953 "interpreta como una señal que se entregará al hijo. En otro caso, no se "
954 "entrega ninguna señal. Así, por ejemplo, el padre puede controlar si una "
955 "señal enviada al hijo es entregada o no. (I<direc> se ignora.)"
956
957 #. type: TP
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 #, fuzzy, no-wrap
961 #| msgid "B<PTRACE_KILL>"
962 msgid "B<PTRACE_SYSCALL>"
963 msgstr "B<PTRACE_KILL>"
964
965 #. type: TQ
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 #, fuzzy, no-wrap
969 #| msgid "PTRACE_SYSCALL, PTRACE_SINGLESTEP"
970 msgid "B<PTRACE_SINGLESTEP>"
971 msgstr "PTRACE_SYSCALL, PTRACE_SINGLESTEP"
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 #, fuzzy
977 #| msgid ""
978 #| "Restarts the stopped child as for PTRACE_CONT, but arranges for the child "
979 #| "to be stopped at the next entry to or exit from a system call, or after "
980 #| "execution of a single instruction, respectively. (The child will also, "
981 #| "as usual, be stopped upon receipt of a signal.) From the parent's "
982 #| "perspective, the child will appear to have been stopped by receipt of a "
983 #| "SIGTRAP. So, for PTRACE_SYSCALL, for example, the idea is to inspect the "
984 #| "arguments to the system call at the first stop, then do another "
985 #| "PTRACE_SYSCALL and inspect the return value of the system call at the "
986 #| "second stop. (I<addr> is ignored.)"
987 msgid ""
988 "Restart the stopped tracee as for B<PTRACE_CONT>, but arrange for the tracee "
989 "to be stopped at the next entry to or exit from a system call, or after "
990 "execution of a single instruction, respectively. (The tracee will also, as "
991 "usual, be stopped upon receipt of a signal.) From the tracer's perspective, "
992 "the tracee will appear to have been stopped by receipt of a B<SIGTRAP>. So, "
993 "for B<PTRACE_SYSCALL>, for example, the idea is to inspect the arguments to "
994 "the system call at the first stop, then do another B<PTRACE_SYSCALL> and "
995 "inspect the return value of the system call at the second stop. The I<data> "
996 "argument is treated as for B<PTRACE_CONT>. (I<addr> is ignored.)"
997 msgstr ""
998 "Reinicia el proceso hijo parado al igual que PTRACE_CONT pero prepara al "
999 "hijo para que se pare en la siguiente entrada a o salida de una llamda al "
1000 "sistema o tras la ejecución de una única intrucción, respectivamente. (Como "
1001 "es usual, el hijo también se detendrá al recibir una señal). Desde la "
1002 "perspectiva del padre, el hijo aparecerá como si se hubiera detenido al "
1003 "recibir una señal SIGTRAP. Por lo que, por ejemplo, para PTRACE_SYSCALL, la "
1004 "idea es inspeccionar los argumentos de la llamada al sistema en la primera "
1005 "parada, realizar a continuación otra PTRACE_SYSCALL e inspeccionar los "
1006 "valores devueltos por la llamada al sistema cuando se detenga la segunda "
1007 "vez. (I<direc> se ignora.)"
1008
1009 #. type: TP
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 #, no-wrap
1013 msgid "B<PTRACE_SET_SYSCALL> (since Linux 2.6.16)"
1014 msgstr "B<PTRACE_SET_SYSCALL> (desde Linux 2.6.16)"
1015
1016 #. commit 3f471126ee53feb5e9b210ea2f525ed3bb9b7a7f
1017 #. As of 4.19-rc2
1018 #. commit 27aa55c5e5123fa8b8ad0156559d34d7edff58ca
1019 #. see change_syscall in tools/testing/selftests/seccomp/seccomp_bpf.c
1020 #. and also strace's linux/*/set_scno.c files.
1021 #. type: Plain text
1022 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1023 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1024 msgid ""
1025 "When in syscall-enter-stop, change the number of the system call that is "
1026 "about to be executed to the number specified in the I<data> argument. The "
1027 "I<addr> argument is ignored. This operation is currently supported only on "
1028 "arm (and arm64, though only for backwards compatibility), but most other "
1029 "architectures have other means of accomplishing this (usually by changing "
1030 "the register that the userland code passed the system call number in)."
1031 msgstr ""
1032
1033 #. type: TP
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 #, fuzzy, no-wrap
1037 #| msgid "B<PTRACE_TRACEME>"
1038 msgid "B<PTRACE_SYSEMU>"
1039 msgstr "B<PTRACE_TRACEME>"
1040
1041 #. type: TQ
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 #, fuzzy, no-wrap
1045 #| msgid "B<PTRACE_SYSEMU>, B<PTRACE_SYSEMU_SINGLESTEP> (since Linux 2.6.14)"
1046 msgid "B<PTRACE_SYSEMU_SINGLESTEP> (since Linux 2.6.14)"
1047 msgstr "B<PTRACE_SYSEMU>, B<PTRACE_SYSEMU_SINGLESTEP> (desde Linux 2.6.14)"
1048
1049 #. As at 3.7
1050 #. type: Plain text
1051 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1052 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1053 msgid ""
1054 "For B<PTRACE_SYSEMU>, continue and stop on entry to the next system call, "
1055 "which will not be executed. See the documentation on syscall-stops below. "
1056 "For B<PTRACE_SYSEMU_SINGLESTEP>, do the same but also singlestep if not a "
1057 "system call. This call is used by programs like User Mode Linux that want "
1058 "to emulate all the tracee's system calls. The I<data> argument is treated "
1059 "as for B<PTRACE_CONT>. The I<addr> argument is ignored. These operations "
1060 "are currently supported only on x86."
1061 msgstr ""
1062
1063 #. type: TP
1064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1066 #, no-wrap
1067 msgid "B<PTRACE_LISTEN> (since Linux 3.4)"
1068 msgstr "B<PTRACE_LISTEN> (desde Linux 3.4)"
1069
1070 #. type: Plain text
1071 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1072 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1073 msgid ""
1074 "Restart the stopped tracee, but prevent it from executing. The resulting "
1075 "state of the tracee is similar to a process which has been stopped by a "
1076 "B<SIGSTOP> (or other stopping signal). See the \"group-stop\" subsection "
1077 "for additional information. B<PTRACE_LISTEN> works only on tracees attached "
1078 "by B<PTRACE_SEIZE>."
1079 msgstr ""
1080
1081 #. type: TP
1082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1084 #, no-wrap
1085 msgid "B<PTRACE_KILL>"
1086 msgstr "B<PTRACE_KILL>"
1087
1088 #. type: Plain text
1089 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1090 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1091 #, fuzzy
1092 #| msgid ""
1093 #| "Sends the child a SIGKILL to terminate it. (I<addr> and I<data> are "
1094 #| "ignored.)"
1095 msgid ""
1096 "Send the tracee a B<SIGKILL> to terminate it. (I<addr> and I<data> are "
1097 "ignored.)"
1098 msgstr ""
1099 "Envía al hijo una señal B<SIGKILL> para que termine. (I<direc> y I<datos> se "
1100 "ignoran.)"
1101
1102 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1103 #. [Note from Denys Vlasenko:
1104 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1105 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1106 #. type: Plain text
1107 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1108 #. [Note from Denys Vlasenko:
1109 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1110 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1111 #. type: Plain text
1112 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1113 #. [Note from Denys Vlasenko:
1114 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1115 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1116 #. type: Plain text
1117 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1118 #. [Note from Denys Vlasenko:
1119 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1120 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1121 #. type: Plain text
1122 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1123 #. [Note from Denys Vlasenko:
1124 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1125 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1126 #. type: Plain text
1127 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1128 #. [Note from Denys Vlasenko:
1129 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1130 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1131 #. type: Plain text
1132 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1133 #. [Note from Denys Vlasenko:
1134 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1135 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1136 #. type: Plain text
1137 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1138 #. [Note from Denys Vlasenko:
1139 #. deprecation suggested by Oleg Nesterov. He prefers to deprecate it
1140 #. instead of describing (and needing to support) PTRACE_KILL's quirks.]
1141 #. type: Plain text
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 msgid ""
1145 "I<This operation is deprecated; do not use it!> Instead, send a B<SIGKILL> "
1146 "directly using B<kill>(2) or B<tgkill>(2). The problem with B<PTRACE_KILL> "
1147 "is that it requires the tracee to be in signal-delivery-stop, otherwise it "
1148 "may not work (i.e., may complete successfully but won't kill the tracee). "
1149 "By contrast, sending a B<SIGKILL> directly has no such limitation."
1150 msgstr ""
1151
1152 #. type: TP
1153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1155 #, no-wrap
1156 msgid "B<PTRACE_INTERRUPT> (since Linux 3.4)"
1157 msgstr "B<PTRACE_INTERRUPT> (desde Linux 3.4)"
1158
1159 #. type: Plain text
1160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1162 msgid ""
1163 "Stop a tracee. If the tracee is running or sleeping in kernel space and "
1164 "B<PTRACE_SYSCALL> is in effect, the system call is interrupted and syscall-"
1165 "exit-stop is reported. (The interrupted system call is restarted when the "
1166 "tracee is restarted.) If the tracee was already stopped by a signal and "
1167 "B<PTRACE_LISTEN> was sent to it, the tracee stops with B<PTRACE_EVENT_STOP> "
1168 "and I<WSTOPSIG(status)> returns the stop signal. If any other ptrace-stop "
1169 "is generated at the same time (for example, if a signal is sent to the "
1170 "tracee), this ptrace-stop happens. If none of the above applies (for "
1171 "example, if the tracee is running in user space), it stops with "
1172 "B<PTRACE_EVENT_STOP> with I<WSTOPSIG(status)> == B<SIGTRAP>. "
1173 "B<PTRACE_INTERRUPT> only works on tracees attached by B<PTRACE_SEIZE>."
1174 msgstr ""
1175
1176 #. type: TP
1177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1179 #, no-wrap
1180 msgid "B<PTRACE_ATTACH>"
1181 msgstr "B<PTRACE_ATTACH>"
1182
1183 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1184 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1185 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1186 #. Basically, it's not true for any Linux in practical use.
1187 #. the behavior of the tracee is as if it had done a
1188 #. .BR PTRACE_TRACEME .
1189 #. The calling process actually becomes the parent of the tracee
1190 #. process for most purposes (e.g., it will receive
1191 #. notification of tracee events and appears in
1192 #. .BR ps (1)
1193 #. output as the tracee's parent), but a
1194 #. .BR getppid (2)
1195 #. by the tracee will still return the PID of the original parent.
1196 #. type: Plain text
1197 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1198 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1199 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1200 #. Basically, it's not true for any Linux in practical use.
1201 #. ; the behavior of the tracee is as if it had done a
1202 #. .BR PTRACE_TRACEME .
1203 #. The calling process actually becomes the parent of the tracee
1204 #. process for most purposes (e.g., it will receive
1205 #. notification of tracee events and appears in
1206 #. .BR ps (1)
1207 #. output as the tracee's parent), but a
1208 #. .BR getppid (2)
1209 #. by the tracee will still return the PID of the original parent.
1210 #. type: Plain text
1211 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1212 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1213 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1214 #. Basically, it's not true for any Linux in practical use.
1215 #. the behavior of the tracee is as if it had done a
1216 #. .BR PTRACE_TRACEME .
1217 #. The calling process actually becomes the parent of the tracee
1218 #. process for most purposes (e.g., it will receive
1219 #. notification of tracee events and appears in
1220 #. .BR ps (1)
1221 #. output as the tracee's parent), but a
1222 #. .BR getppid (2)
1223 #. by the tracee will still return the PID of the original parent.
1224 #. type: Plain text
1225 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1226 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1227 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1228 #. Basically, it's not true for any Linux in practical use.
1229 #. ; the behavior of the tracee is as if it had done a
1230 #. .BR PTRACE_TRACEME .
1231 #. The calling process actually becomes the parent of the tracee
1232 #. process for most purposes (e.g., it will receive
1233 #. notification of tracee events and appears in
1234 #. .BR ps (1)
1235 #. output as the tracee's parent), but a
1236 #. .BR getppid (2)
1237 #. by the tracee will still return the PID of the original parent.
1238 #. type: Plain text
1239 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1240 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1241 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1242 #. Basically, it's not true for any Linux in practical use.
1243 #. ; the behavior of the tracee is as if it had done a
1244 #. .BR PTRACE_TRACEME .
1245 #. The calling process actually becomes the parent of the tracee
1246 #. process for most purposes (e.g., it will receive
1247 #. notification of tracee events and appears in
1248 #. .BR ps (1)
1249 #. output as the tracee's parent), but a
1250 #. .BR getppid (2)
1251 #. by the tracee will still return the PID of the original parent.
1252 #. type: Plain text
1253 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1254 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1255 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1256 #. Basically, it's not true for any Linux in practical use.
1257 #. the behavior of the tracee is as if it had done a
1258 #. .BR PTRACE_TRACEME .
1259 #. The calling process actually becomes the parent of the tracee
1260 #. process for most purposes (e.g., it will receive
1261 #. notification of tracee events and appears in
1262 #. .BR ps (1)
1263 #. output as the tracee's parent), but a
1264 #. .BR getppid (2)
1265 #. by the tracee will still return the PID of the original parent.
1266 #. type: Plain text
1267 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1268 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1269 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1270 #. Basically, it's not true for any Linux in practical use.
1271 #. the behavior of the tracee is as if it had done a
1272 #. .BR PTRACE_TRACEME .
1273 #. The calling process actually becomes the parent of the tracee
1274 #. process for most purposes (e.g., it will receive
1275 #. notification of tracee events and appears in
1276 #. .BR ps (1)
1277 #. output as the tracee's parent), but a
1278 #. .BR getppid (2)
1279 #. by the tracee will still return the PID of the original parent.
1280 #. type: Plain text
1281 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
1282 #. No longer true (removed by Denys Vlasenko, 2011, who remarks:
1283 #. "I think it isn't true in non-ancient 2.4 and in Linux 2.6/3.x.
1284 #. Basically, it's not true for any Linux in practical use.
1285 #. the behavior of the tracee is as if it had done a
1286 #. .BR PTRACE_TRACEME .
1287 #. The calling process actually becomes the parent of the tracee
1288 #. process for most purposes (e.g., it will receive
1289 #. notification of tracee events and appears in
1290 #. .BR ps (1)
1291 #. output as the tracee's parent), but a
1292 #. .BR getppid (2)
1293 #. by the tracee will still return the PID of the original parent.
1294 #. type: Plain text
1295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1297 msgid ""
1298 "Attach to the process specified in I<pid>, making it a tracee of the calling "
1299 "process. The tracee is sent a B<SIGSTOP>, but will not necessarily have "
1300 "stopped by the completion of this call; use B<waitpid>(2) to wait for the "
1301 "tracee to stop. See the \"Attaching and detaching\" subsection for "
1302 "additional information. (I<addr> and I<data> are ignored.)"
1303 msgstr ""
1304
1305 #. type: Plain text
1306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1308 msgid ""
1309 "Permission to perform a B<PTRACE_ATTACH> is governed by a ptrace access mode "
1310 "B<PTRACE_MODE_ATTACH_REALCREDS> check; see below."
1311 msgstr ""
1312
1313 #. type: TP
1314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1316 #, no-wrap
1317 msgid "B<PTRACE_SEIZE> (since Linux 3.4)"
1318 msgstr "B<PTRACE_SEIZE> (desde Linux 3.4)"
1319
1320 #
1321 #
1322 #
1323 #. Noted by Dmitry Levin:
1324 #. PTRACE_SEIZE was introduced by commit v3.1-rc1~308^2~28, but
1325 #. it had to be used along with a temporary flag PTRACE_SEIZE_DEVEL,
1326 #. which was removed later by commit v3.4-rc1~109^2~20.
1327 #. That is, [before] v3.4 we had a test mode of PTRACE_SEIZE API,
1328 #. which was not compatible with the current PTRACE_SEIZE API introduced
1329 #. in Linux 3.4.
1330 #. type: Plain text
1331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1333 msgid ""
1334 "Attach to the process specified in I<pid>, making it a tracee of the calling "
1335 "process. Unlike B<PTRACE_ATTACH>, B<PTRACE_SEIZE> does not stop the "
1336 "process. Group-stops are reported as B<PTRACE_EVENT_STOP> and "
1337 "I<WSTOPSIG(status)> returns the stop signal. Automatically attached "
1338 "children stop with B<PTRACE_EVENT_STOP> and I<WSTOPSIG(status)> returns "
1339 "B<SIGTRAP> instead of having B<SIGSTOP> signal delivered to them. "
1340 "B<execve>(2) does not deliver an extra B<SIGTRAP>. Only a B<PTRACE_SEIZE>d "
1341 "process can accept B<PTRACE_INTERRUPT> and B<PTRACE_LISTEN> commands. The "
1342 "\"seized\" behavior just described is inherited by children that are "
1343 "automatically attached using B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, "
1344 "and B<PTRACE_O_TRACECLONE>. I<addr> must be zero. I<data> contains a bit "
1345 "mask of ptrace options to activate immediately."
1346 msgstr ""
1347
1348 #. type: Plain text
1349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1351 msgid ""
1352 "Permission to perform a B<PTRACE_SEIZE> is governed by a ptrace access mode "
1353 "B<PTRACE_MODE_ATTACH_REALCREDS> check; see below."
1354 msgstr ""
1355
1356 #. type: TP
1357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1359 #, no-wrap
1360 msgid "B<PTRACE_SECCOMP_GET_FILTER> (since Linux 4.4)"
1361 msgstr "B<PTRACE_SECCOMP_GET_FILTER> (desde Linux 4.4)"
1362
1363 #. commit f8e529ed941ba2bbcbf310b575d968159ce7e895
1364 #. type: Plain text
1365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1367 msgid ""
1368 "This operation allows the tracer to dump the tracee's classic BPF filters."
1369 msgstr ""
1370
1371 #. type: Plain text
1372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1374 msgid ""
1375 "I<addr> is an integer specifying the index of the filter to be dumped. The "
1376 "most recently installed filter has the index 0. If I<addr> is greater than "
1377 "the number of installed filters, the operation fails with the error "
1378 "B<ENOENT>."
1379 msgstr ""
1380
1381 #. type: Plain text
1382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1384 msgid ""
1385 "I<data> is either a pointer to a I<struct sock_filter> array that is large "
1386 "enough to store the BPF program, or NULL if the program is not to be stored."
1387 msgstr ""
1388
1389 #. type: Plain text
1390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1392 msgid ""
1393 "Upon success, the return value is the number of instructions in the BPF "
1394 "program. If I<data> was NULL, then this return value can be used to "
1395 "correctly size the I<struct sock_filter> array passed in a subsequent call."
1396 msgstr ""
1397
1398 #. type: Plain text
1399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1401 msgid ""
1402 "This operation fails with the error B<EACCES> if the caller does not have "
1403 "the B<CAP_SYS_ADMIN> capability or if the caller is in strict or filter "
1404 "seccomp mode. If the filter referred to by I<addr> is not a classic BPF "
1405 "filter, the operation fails with the error B<EMEDIUMTYPE>."
1406 msgstr ""
1407
1408 #. type: Plain text
1409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1411 msgid ""
1412 "This operation is available if the kernel was configured with both the "
1413 "B<CONFIG_SECCOMP_FILTER> and the B<CONFIG_CHECKPOINT_RESTORE> options."
1414 msgstr ""
1415
1416 #. type: TP
1417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1419 #, no-wrap
1420 msgid "B<PTRACE_DETACH>"
1421 msgstr "B<PTRACE_DETACH>"
1422
1423 #. type: Plain text
1424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1426 #, fuzzy
1427 #| msgid ""
1428 #| "Restarts the stopped child as for PTRACE_CONT, but first detaches from "
1429 #| "the process, undoing the reparenting effect of PTRACE_ATTACH, and the "
1430 #| "effects of PTRACE_TRACEME. Although perhaps not intended, under Linux a "
1431 #| "traced child can be detached in this way regardless of which method was "
1432 #| "used to initiate tracing. (I<addr> is ignored.)"
1433 msgid ""
1434 "Restart the stopped tracee as for B<PTRACE_CONT>, but first detach from it. "
1435 "Under Linux, a tracee can be detached in this way regardless of which method "
1436 "was used to initiate tracing. (I<addr> is ignored.)"
1437 msgstr ""
1438 "Reinicia el hijo parado al igual que PTRACE_CONT pero primero lo desata del "
1439 "proceso, deshaciendo el efecto de reparentesco de PTRACE_ATTACH y los "
1440 "efectos de PTRACE_TRACEME. Aunque quizás no sea intencionado, bajo Linux un "
1441 "proceso rastreado puede ser desatado de esta manera sin tener en cuenta qué "
1442 "método se usó para iniciar el rastreo. (I<direc> is ignored.)"
1443
1444 #. type: TP
1445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1447 #, no-wrap
1448 msgid "B<PTRACE_GET_THREAD_AREA> (since Linux 2.6.0)"
1449 msgstr "B<PTRACE_GET_THREAD_AREA> (desde Linux 2.6.0)"
1450
1451 #. type: Plain text
1452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1454 msgid ""
1455 "This operation performs a similar task to B<get_thread_area>(2). It reads "
1456 "the TLS entry in the GDT whose index is given in I<addr>, placing a copy of "
1457 "the entry into the I<struct user_desc> pointed to by I<data>. (By contrast "
1458 "with B<get_thread_area>(2), the I<entry_number> of the I<struct user_desc> "
1459 "is ignored.)"
1460 msgstr ""
1461
1462 #. type: TP
1463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1465 #, no-wrap
1466 msgid "B<PTRACE_SET_THREAD_AREA> (since Linux 2.6.0)"
1467 msgstr "B<PTRACE_SET_THREAD_AREA> (desde Linux 2.6.0)"
1468
1469 #. type: Plain text
1470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1472 msgid ""
1473 "This operation performs a similar task to B<set_thread_area>(2). It sets "
1474 "the TLS entry in the GDT whose index is given in I<addr>, assigning it the "
1475 "data supplied in the I<struct user_desc> pointed to by I<data>. (By "
1476 "contrast with B<set_thread_area>(2), the I<entry_number> of the I<struct "
1477 "user_desc> is ignored; in other words, this ptrace operation can't be used "
1478 "to allocate a free TLS entry.)"
1479 msgstr ""
1480
1481 #. type: TP
1482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1484 #, no-wrap
1485 msgid "B<PTRACE_GET_SYSCALL_INFO> (since Linux 5.3)"
1486 msgstr "B<PTRACE_GET_SYSCALL_INFO> (desde Linux 5.3)"
1487
1488 #. commit 201766a20e30f982ccfe36bebfad9602c3ff574a
1489 #. type: Plain text
1490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1492 msgid ""
1493 "Retrieve information about the system call that caused the stop. The "
1494 "information is placed into the buffer pointed by the I<data> argument, which "
1495 "should be a pointer to a buffer of type I<struct ptrace_syscall_info>. The "
1496 "I<addr> argument contains the size of the buffer pointed to by the I<data> "
1497 "argument (i.e., I<sizeof(struct ptrace_syscall_info)>). The return value "
1498 "contains the number of bytes available to be written by the kernel. If the "
1499 "size of the data to be written by the kernel exceeds the size specified by "
1500 "the I<addr> argument, the output data is truncated."
1501 msgstr ""
1502
1503 #. type: Plain text
1504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1506 msgid "The I<ptrace_syscall_info> structure contains the following fields:"
1507 msgstr ""
1508
1509 #. type: Plain text
1510 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1511 #: opensuse-tumbleweed
1512 #, no-wrap
1513 msgid ""
1514 "struct ptrace_syscall_info {\n"
1515 " __u8 op; /* Type of system call stop */\n"
1516 " __u8 reserved; /* Reserved for future use, must be zero */\n"
1517 " __u16 flags; /* Reserved for future use, must be zero */\n"
1518 " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
1519 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
1520 " __u64 stack_pointer; /* CPU stack pointer */\n"
1521 " union {\n"
1522 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
1523 " __u64 nr; /* System call number */\n"
1524 " __u64 args[6]; /* System call arguments */\n"
1525 " } entry;\n"
1526 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
1527 " __s64 rval; /* System call return value */\n"
1528 " __u8 is_error; /* System call error flag;\n"
1529 " Boolean: does rval contain\n"
1530 " an error value (-ERRCODE) or\n"
1531 " a nonerror return value? */\n"
1532 " } exit;\n"
1533 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
1534 " __u64 nr; /* System call number */\n"
1535 " __u64 args[6]; /* System call arguments */\n"
1536 " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
1537 " of SECCOMP_RET_TRACE\n"
1538 " return value */\n"
1539 " } seccomp;\n"
1540 " };\n"
1541 "};\n"
1542 msgstr ""
1543
1544 #. type: Plain text
1545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1547 msgid ""
1548 "The I<op>, I<arch>, I<instruction_pointer>, and I<stack_pointer> fields are "
1549 "defined for all kinds of ptrace system call stops. The rest of the "
1550 "structure is a union; one should read only those fields that are meaningful "
1551 "for the kind of system call stop specified by the I<op> field."
1552 msgstr ""
1553
1554 #. type: Plain text
1555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1557 msgid ""
1558 "The I<op> field has one of the following values (defined in I<E<lt>linux/"
1559 "ptrace.hE<gt>>) indicating what type of stop occurred and which part of the "
1560 "union is filled:"
1561 msgstr ""
1562
1563 #. type: TP
1564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1566 #, no-wrap
1567 msgid "B<PTRACE_SYSCALL_INFO_ENTRY>"
1568 msgstr "B<PTRACE_SYSCALL_INFO_ENTRY>"
1569
1570 #. type: Plain text
1571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1573 msgid ""
1574 "The I<entry> component of the union contains information relating to a "
1575 "system call entry stop."
1576 msgstr ""
1577
1578 #. type: TP
1579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1581 #, no-wrap
1582 msgid "B<PTRACE_SYSCALL_INFO_EXIT>"
1583 msgstr "B<PTRACE_SYSCALL_INFO_EXIT>"
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 "The I<exit> component of the union contains information relating to a system "
1590 "call exit stop."
1591 msgstr ""
1592
1593 #. type: TP
1594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1596 #, no-wrap
1597 msgid "B<PTRACE_SYSCALL_INFO_SECCOMP>"
1598 msgstr "B<PTRACE_SYSCALL_INFO_SECCOMP>"
1599
1600 #. type: Plain text
1601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1603 msgid ""
1604 "The I<seccomp> component of the union contains information relating to a "
1605 "B<PTRACE_EVENT_SECCOMP> stop."
1606 msgstr ""
1607
1608 #. type: TP
1609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1611 #, no-wrap
1612 msgid "B<PTRACE_SYSCALL_INFO_NONE>"
1613 msgstr "B<PTRACE_SYSCALL_INFO_NONE>"
1614
1615 #. type: Plain text
1616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1618 msgid "No component of the union contains relevant information."
1619 msgstr ""
1620
1621 #. type: Plain text
1622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1624 msgid ""
1625 "In case of system call entry or exit stops, the data returned by "
1626 "B<PTRACE_GET_SYSCALL_INFO> is limited to type B<PTRACE_SYSCALL_INFO_NONE> "
1627 "unless B<PTRACE_O_TRACESYSGOOD> option is set before the corresponding "
1628 "system call stop has occurred."
1629 msgstr ""
1630
1631 #. type: TP
1632 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1633 #: opensuse-tumbleweed
1634 #, fuzzy, no-wrap
1635 #| msgid "B<PTRACE_GET_SYSCALL_INFO> (since Linux 5.3)"
1636 msgid "B<PTRACE_SET_SYSCALL_INFO> (since Linux 6.16)"
1637 msgstr "B<PTRACE_GET_SYSCALL_INFO> (desde Linux 5.3)"
1638
1639 #. commit 26bb32768fe6552de044f782a58b3272073fbfc0
1640 #. type: Plain text
1641 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1642 #: opensuse-tumbleweed
1643 msgid ""
1644 "Modify information about the system call that caused the stop. The I<data> "
1645 "argument is a pointer to I<struct ptrace_syscall_info> that specifies the "
1646 "system call information to be set. The I<addr> argument should be set to "
1647 "I<sizeof(struct ptrace_syscall_info)>. Only the I<nr>, I<args>, and I<rval> "
1648 "fields can be modified."
1649 msgstr ""
1650
1651 #. type: SS
1652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1654 #, no-wrap
1655 msgid "Death under ptrace"
1656 msgstr ""
1657
1658 #. type: Plain text
1659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1661 msgid ""
1662 "When a (possibly multithreaded) process receives a killing signal (one whose "
1663 "disposition is set to B<SIG_DFL> and whose default action is to kill the "
1664 "process), all threads exit. Tracees report their death to their tracer(s). "
1665 "Notification of this event is delivered via B<waitpid>(2)."
1666 msgstr ""
1667
1668 #. type: Plain text
1669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1671 msgid ""
1672 "Note that the killing signal will first cause signal-delivery-stop (on one "
1673 "tracee only), and only after it is injected by the tracer (or after it was "
1674 "dispatched to a thread which isn't traced), will death from the signal "
1675 "happen on I<all> tracees within a multithreaded process. (The term \"signal-"
1676 "delivery-stop\" is explained below.)"
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1682 msgid ""
1683 "B<SIGKILL> does not generate signal-delivery-stop and therefore the tracer "
1684 "can't suppress it. B<SIGKILL> kills even within system calls (syscall-exit-"
1685 "stop is not generated prior to death by B<SIGKILL>). The net effect is that "
1686 "B<SIGKILL> always kills the process (all its threads), even if some threads "
1687 "of the process are ptraced."
1688 msgstr ""
1689
1690 #. type: Plain text
1691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1693 msgid ""
1694 "When the tracee calls B<_exit>(2), it reports its death to its tracer. "
1695 "Other threads are not affected."
1696 msgstr ""
1697
1698 #. type: Plain text
1699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1701 msgid ""
1702 "When any thread executes B<exit_group>(2), every tracee in its thread group "
1703 "reports its death to its tracer."
1704 msgstr ""
1705
1706 #. type: Plain text
1707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1709 msgid ""
1710 "If the B<PTRACE_O_TRACEEXIT> option is on, B<PTRACE_EVENT_EXIT> will happen "
1711 "before actual death. This applies to exits via B<exit>(2), "
1712 "B<exit_group>(2), and signal deaths (except B<SIGKILL>, depending on the "
1713 "kernel version; see BUGS below), and when threads are torn down on "
1714 "B<execve>(2) in a multithreaded process."
1715 msgstr ""
1716
1717 #. type: Plain text
1718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1720 msgid ""
1721 "The tracer cannot assume that the ptrace-stopped tracee exists. There are "
1722 "many scenarios when the tracee may die while stopped (such as B<SIGKILL>). "
1723 "Therefore, the tracer must be prepared to handle an B<ESRCH> error on any "
1724 "ptrace operation. Unfortunately, the same error is returned if the tracee "
1725 "exists but is not ptrace-stopped (for commands which require a stopped "
1726 "tracee), or if it is not traced by the process which issued the ptrace "
1727 "call. The tracer needs to keep track of the stopped/running state of the "
1728 "tracee, and interpret B<ESRCH> as \"tracee died unexpectedly\" only if it "
1729 "knows that the tracee has been observed to enter ptrace-stop. Note that "
1730 "there is no guarantee that I<waitpid(WNOHANG)> will reliably report the "
1731 "tracee's death status if a ptrace operation returned B<ESRCH>. "
1732 "I<waitpid(WNOHANG)> may return 0 instead. In other words, the tracee may be "
1733 "\"not yet fully dead\", but already refusing ptrace operations."
1734 msgstr ""
1735
1736 #. type: Plain text
1737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1739 msgid ""
1740 "The tracer can't assume that the tracee I<always> ends its life by reporting "
1741 "I<WIFEXITED(status)> or I<WIFSIGNALED(status)>; there are cases where this "
1742 "does not occur. For example, if a thread other than thread group leader "
1743 "does an B<execve>(2), it disappears; its PID will never be seen again, and "
1744 "any subsequent ptrace stops will be reported under the thread group leader's "
1745 "PID."
1746 msgstr ""
1747
1748 #. type: SS
1749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1751 #, no-wrap
1752 msgid "Stopped states"
1753 msgstr ""
1754
1755 #. type: Plain text
1756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1758 msgid ""
1759 "A tracee can be in two states: running or stopped. For the purposes of "
1760 "ptrace, a tracee which is blocked in a system call (such as B<read>(2), "
1761 "B<pause>(2), etc.) is nevertheless considered to be running, even if the "
1762 "tracee is blocked for a long time. The state of the tracee after "
1763 "B<PTRACE_LISTEN> is somewhat of a gray area: it is not in any ptrace-stop "
1764 "(ptrace commands won't work on it, and it will deliver B<waitpid>(2) "
1765 "notifications), but it also may be considered \"stopped\" because it is not "
1766 "executing instructions (is not scheduled), and if it was in group-stop "
1767 "before B<PTRACE_LISTEN>, it will not respond to signals until B<SIGCONT> is "
1768 "received."
1769 msgstr ""
1770
1771 #. type: Plain text
1772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1774 msgid ""
1775 "There are many kinds of states when the tracee is stopped, and in ptrace "
1776 "discussions they are often conflated. Therefore, it is important to use "
1777 "precise terms."
1778 msgstr ""
1779
1780 #. type: Plain text
1781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1783 msgid ""
1784 "In this manual page, any stopped state in which the tracee is ready to "
1785 "accept ptrace commands from the tracer is called I<ptrace-stop>. Ptrace-"
1786 "stops can be further subdivided into I<signal-delivery-stop>, I<group-stop>, "
1787 "I<syscall-stop>, I<PTRACE_EVENT stops>, and so on. These stopped states are "
1788 "described in detail below."
1789 msgstr ""
1790
1791 #. type: Plain text
1792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1794 msgid ""
1795 "When the running tracee enters ptrace-stop, it notifies its tracer using "
1796 "B<waitpid>(2) (or one of the other \"wait\" system calls). Most of this "
1797 "manual page assumes that the tracer waits with:"
1798 msgstr ""
1799
1800 #. type: Plain text
1801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1803 #, fuzzy, no-wrap
1804 #| msgid " pid = waitpid(pid_or_minus_1, &status, __WALL);\n"
1805 msgid "pid = waitpid(pid_or_minus_1, &status, __WALL);\n"
1806 msgstr " pid = waitpid(pid_or_minus_1, &status, __WALL);\n"
1807
1808 #. Denys Vlasenko:
1809 #. Do we require __WALL usage, or will just using 0 be ok? (With 0,
1810 #. I am not 100% sure there aren't ugly corner cases.) Are the
1811 #. rules different if user wants to use waitid? Will waitid require
1812 #. WEXITED?
1813 #. type: Plain text
1814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1816 msgid ""
1817 "Ptrace-stopped tracees are reported as returns with I<pid> greater than 0 "
1818 "and I<WIFSTOPPED(status)> true."
1819 msgstr ""
1820
1821 #. type: Plain text
1822 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1823 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1824 msgid ""
1825 "The B<__WALL> flag does not include the B<WSTOPPED> and B<WEXITED> flags, "
1826 "but implies their functionality."
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1832 msgid ""
1833 "Setting the B<WCONTINUED> flag when calling B<waitpid>(2) is not "
1834 "recommended: the \"continued\" state is per-process and consuming it can "
1835 "confuse the real parent of the tracee."
1836 msgstr ""
1837
1838 #. type: Plain text
1839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1841 msgid ""
1842 "Use of the B<WNOHANG> flag may cause B<waitpid>(2) to return 0 (\"no wait "
1843 "results available yet\") even if the tracer knows there should be a "
1844 "notification. Example:"
1845 msgstr ""
1846
1847 #. type: Plain text
1848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1850 #, no-wrap
1851 msgid ""
1852 "errno = 0;\n"
1853 "ptrace(PTRACE_CONT, pid, 0L, 0L);\n"
1854 "if (errno == ESRCH) {\n"
1855 " /* tracee is dead */\n"
1856 " r = waitpid(tracee, &status, __WALL | WNOHANG);\n"
1857 " /* r can still be 0 here! */\n"
1858 "}\n"
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1864 msgid ""
1865 "The following kinds of ptrace-stops exist: signal-delivery-stops, group-"
1866 "stops, B<PTRACE_EVENT> stops, syscall-stops. They all are reported by "
1867 "B<waitpid>(2) with I<WIFSTOPPED(status)> true. They may be differentiated "
1868 "by examining the value I<statusE<gt>E<gt>8>, and if there is ambiguity in "
1869 "that value, by querying B<PTRACE_GETSIGINFO>. (Note: the "
1870 "I<WSTOPSIG(status)> macro can't be used to perform this examination, because "
1871 "it returns the value I<(statusE<gt>E<gt>8)\\ &\\ 0xff>.)"
1872 msgstr ""
1873
1874 #. type: SS
1875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1877 #, no-wrap
1878 msgid "Signal-delivery-stop"
1879 msgstr ""
1880
1881 #. type: Plain text
1882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1884 msgid ""
1885 "When a (possibly multithreaded) process receives any signal except "
1886 "B<SIGKILL>, the kernel selects an arbitrary thread which handles the "
1887 "signal. (If the signal is generated with B<tgkill>(2), the target thread "
1888 "can be explicitly selected by the caller.) If the selected thread is "
1889 "traced, it enters signal-delivery-stop. At this point, the signal is not "
1890 "yet delivered to the process, and can be suppressed by the tracer. If the "
1891 "tracer doesn't suppress the signal, it passes the signal to the tracee in "
1892 "the next ptrace restart operation. This second step of signal delivery is "
1893 "called I<signal injection> in this manual page. Note that if the signal is "
1894 "blocked, signal-delivery-stop doesn't happen until the signal is unblocked, "
1895 "with the usual exception that B<SIGSTOP> can't be blocked."
1896 msgstr ""
1897
1898 #. type: Plain text
1899 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1900 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1901 msgid ""
1902 "Signal-delivery-stop is observed by the tracer as B<waitpid>(2) returning "
1903 "with I<WIFSTOPPED(status)> true, with the signal returned by "
1904 "I<WSTOPSIG(status)>. If the signal is B<SIGTRAP>, this may be a different "
1905 "kind of ptrace-stop; see the \"Syscall-stops\" and \"execve\" sections below "
1906 "for details. If I<WSTOPSIG(status)> returns a stopping signal, this may be "
1907 "a group-stop; see below."
1908 msgstr ""
1909
1910 #. type: SS
1911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1913 #, no-wrap
1914 msgid "Signal injection and suppression"
1915 msgstr ""
1916
1917 #. type: Plain text
1918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1920 msgid ""
1921 "After signal-delivery-stop is observed by the tracer, the tracer should "
1922 "restart the tracee with the call"
1923 msgstr ""
1924
1925 #. type: Plain text
1926 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1927 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1928 #, fuzzy, no-wrap
1929 #| msgid " ptrace(PTRACE_restart, pid, 0, sig)\n"
1930 msgid "ptrace(PTRACE_restart, pid, 0, sig)\n"
1931 msgstr " ptrace(PTRACE_restart, pid, 0, sig)\n"
1932
1933 #. type: Plain text
1934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1936 msgid ""
1937 "where B<PTRACE_restart> is one of the restarting ptrace operations. If "
1938 "I<sig> is 0, then a signal is not delivered. Otherwise, the signal I<sig> "
1939 "is delivered. This operation is called I<signal injection> in this manual "
1940 "page, to distinguish it from signal-delivery-stop."
1941 msgstr ""
1942
1943 #. type: Plain text
1944 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1945 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1946 msgid ""
1947 "The I<sig> value may be different from the I<WSTOPSIG(status)> value: the "
1948 "tracer can cause a different signal to be injected."
1949 msgstr ""
1950
1951 #. type: Plain text
1952 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1953 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1954 msgid ""
1955 "Note that a suppressed signal still causes system calls to return "
1956 "prematurely. In this case, system calls will be restarted: the tracer will "
1957 "observe the tracee to reexecute the interrupted system call (or "
1958 "B<restart_syscall>(2) system call for a few system calls which use a "
1959 "different mechanism for restarting) if the tracer uses B<PTRACE_SYSCALL>. "
1960 "Even system calls (such as B<poll>(2)) which are not restartable after "
1961 "signal are restarted after signal is suppressed; however, kernel bugs exist "
1962 "which cause some system calls to fail with B<EINTR> even though no "
1963 "observable signal is injected to the tracee."
1964 msgstr ""
1965
1966 #. type: Plain text
1967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1969 msgid ""
1970 "Restarting ptrace commands issued in ptrace-stops other than signal-delivery-"
1971 "stop are not guaranteed to inject a signal, even if I<sig> is nonzero. No "
1972 "error is reported; a nonzero I<sig> may simply be ignored. Ptrace users "
1973 "should not try to \"create a new signal\" this way: use B<tgkill>(2) "
1974 "instead."
1975 msgstr ""
1976
1977 #. type: Plain text
1978 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1979 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1980 msgid ""
1981 "The fact that signal injection operations may be ignored when restarting the "
1982 "tracee after ptrace stops that are not signal-delivery-stops is a cause of "
1983 "confusion among ptrace users. One typical scenario is that the tracer "
1984 "observes group-stop, mistakes it for signal-delivery-stop, restarts the "
1985 "tracee with"
1986 msgstr ""
1987
1988 #. type: Plain text
1989 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1990 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1991 #, fuzzy, no-wrap
1992 #| msgid " ptrace(PTRACE_restart, pid, 0, stopsig)\n"
1993 msgid "ptrace(PTRACE_restart, pid, 0, stopsig)\n"
1994 msgstr " ptrace(PTRACE_restart, pid, 0, stopsig)\n"
1995
1996 #. type: Plain text
1997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1999 msgid ""
2000 "with the intention of injecting I<stopsig>, but I<stopsig> gets ignored and "
2001 "the tracee continues to run."
2002 msgstr ""
2003
2004 #. type: Plain text
2005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2007 msgid ""
2008 "The B<SIGCONT> signal has a side effect of waking up (all threads of) a "
2009 "group-stopped process. This side effect happens before signal-delivery-"
2010 "stop. The tracer can't suppress this side effect (it can only suppress "
2011 "signal injection, which only causes the B<SIGCONT> handler to not be "
2012 "executed in the tracee, if such a handler is installed). In fact, waking up "
2013 "from group-stop may be followed by signal-delivery-stop for signal(s) "
2014 "I<other than> B<SIGCONT>, if they were pending when B<SIGCONT> was "
2015 "delivered. In other words, B<SIGCONT> may be not the first signal observed "
2016 "by the tracee after it was sent."
2017 msgstr ""
2018
2019 #. type: Plain text
2020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2022 msgid ""
2023 "Stopping signals cause (all threads of) a process to enter group-stop. This "
2024 "side effect happens after signal injection, and therefore can be suppressed "
2025 "by the tracer."
2026 msgstr ""
2027
2028 #
2029 #. In the Linux 2.4 sources, in arch/i386/kernel/signal.c::do_signal(),
2030 #. there is:
2031 #. /* The debugger continued. Ignore SIGSTOP. */
2032 #. if (signr == SIGSTOP)
2033 #. continue;
2034 #. type: Plain text
2035 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2036 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2037 msgid "In Linux 2.4 and earlier, the B<SIGSTOP> signal can't be injected."
2038 msgstr ""
2039
2040 #. type: Plain text
2041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2043 msgid ""
2044 "B<PTRACE_GETSIGINFO> can be used to retrieve a I<siginfo_t> structure which "
2045 "corresponds to the delivered signal. B<PTRACE_SETSIGINFO> may be used to "
2046 "modify it. If B<PTRACE_SETSIGINFO> has been used to alter I<siginfo_t>, the "
2047 "I<si_signo> field and the I<sig> parameter in the restarting command must "
2048 "match, otherwise the result is undefined."
2049 msgstr ""
2050
2051 #. type: SS
2052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2054 #, no-wrap
2055 msgid "Group-stop"
2056 msgstr ""
2057
2058 #. type: Plain text
2059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2061 msgid ""
2062 "When a (possibly multithreaded) process receives a stopping signal, all "
2063 "threads stop. If some threads are traced, they enter a group-stop. Note "
2064 "that the stopping signal will first cause signal-delivery-stop (on one "
2065 "tracee only), and only after it is injected by the tracer (or after it was "
2066 "dispatched to a thread which isn't traced), will group-stop be initiated on "
2067 "I<all> tracees within the multithreaded process. As usual, every tracee "
2068 "reports its group-stop separately to the corresponding tracer."
2069 msgstr ""
2070
2071 #. type: Plain text
2072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2074 msgid ""
2075 "Group-stop is observed by the tracer as B<waitpid>(2) returning with "
2076 "I<WIFSTOPPED(status)> true, with the stopping signal available via "
2077 "I<WSTOPSIG(status)>. The same result is returned by some other classes of "
2078 "ptrace-stops, therefore the recommended practice is to perform the call"
2079 msgstr ""
2080
2081 #. type: Plain text
2082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2084 #, fuzzy, no-wrap
2085 #| msgid " ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo)\n"
2086 msgid "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo)\n"
2087 msgstr " ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo)\n"
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 call can be avoided if the signal is not B<SIGSTOP>, B<SIGTSTP>, "
2094 "B<SIGTTIN>, or B<SIGTTOU>; only these four signals are stopping signals. If "
2095 "the tracer sees something else, it can't be a group-stop. Otherwise, the "
2096 "tracer needs to call B<PTRACE_GETSIGINFO>. If B<PTRACE_GETSIGINFO> fails "
2097 "with B<EINVAL>, then it is definitely a group-stop. (Other failure codes "
2098 "are possible, such as B<ESRCH> (\"no such process\") if a B<SIGKILL> killed "
2099 "the tracee.)"
2100 msgstr ""
2101
2102 #. type: Plain text
2103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2105 msgid ""
2106 "If tracee was attached using B<PTRACE_SEIZE>, group-stop is indicated by "
2107 "B<PTRACE_EVENT_STOP>: I<statusE<gt>E<gt>16 == PTRACE_EVENT_STOP>. This "
2108 "allows detection of group-stops without requiring an extra "
2109 "B<PTRACE_GETSIGINFO> call."
2110 msgstr ""
2111
2112 #. type: Plain text
2113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2115 msgid ""
2116 "As of Linux 2.6.38, after the tracer sees the tracee ptrace-stop and until "
2117 "it restarts or kills it, the tracee will not run, and will not send "
2118 "notifications (except B<SIGKILL> death) to the tracer, even if the tracer "
2119 "enters into another B<waitpid>(2) call."
2120 msgstr ""
2121
2122 #. type: Plain text
2123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2125 msgid ""
2126 "The kernel behavior described in the previous paragraph causes a problem "
2127 "with transparent handling of stopping signals. If the tracer restarts the "
2128 "tracee after group-stop, the stopping signal is effectively ignored\\[em]the "
2129 "tracee doesn't remain stopped, it runs. If the tracer doesn't restart the "
2130 "tracee before entering into the next B<waitpid>(2), future B<SIGCONT> "
2131 "signals will not be reported to the tracer; this would cause the B<SIGCONT> "
2132 "signals to have no effect on the tracee."
2133 msgstr ""
2134
2135 #. type: Plain text
2136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2138 msgid ""
2139 "Since Linux 3.4, there is a method to overcome this problem: instead of "
2140 "B<PTRACE_CONT>, a B<PTRACE_LISTEN> command can be used to restart a tracee "
2141 "in a way where it does not execute, but waits for a new event which it can "
2142 "report via B<waitpid>(2) (such as when it is restarted by a B<SIGCONT>)."
2143 msgstr ""
2144
2145 #. type: SS
2146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2148 #, fuzzy, no-wrap
2149 #| msgid "PTRACE_CONT"
2150 msgid "PTRACE_EVENT stops"
2151 msgstr "PTRACE_CONT"
2152
2153 #. type: Plain text
2154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2156 msgid ""
2157 "If the tracer sets B<PTRACE_O_TRACE_*> options, the tracee will enter ptrace-"
2158 "stops called B<PTRACE_EVENT> stops."
2159 msgstr ""
2160
2161 #. type: Plain text
2162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2164 msgid ""
2165 "B<PTRACE_EVENT> stops are observed by the tracer as B<waitpid>(2) returning "
2166 "with I<WIFSTOPPED(status)>, and I<WSTOPSIG(status)> returns B<SIGTRAP> (or "
2167 "for B<PTRACE_EVENT_STOP>, returns the stopping signal if tracee is in a "
2168 "group-stop). An additional bit is set in the higher byte of the status "
2169 "word: the value I<statusE<gt>E<gt>8> will be"
2170 msgstr ""
2171
2172 #. type: Plain text
2173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2175 #, fuzzy, no-wrap
2176 #| msgid " ((PTRACE_EVENT_fooE<lt>E<lt>8) | SIGTRAP).\n"
2177 msgid "((PTRACE_EVENT_fooE<lt>E<lt>8) | SIGTRAP).\n"
2178 msgstr " ((PTRACE_EVENT_fooE<lt>E<lt>8) | SIGTRAP).\n"
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 msgid "The following events exist:"
2184 msgstr ""
2185
2186 #. type: TP
2187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2189 #, no-wrap
2190 msgid "B<PTRACE_EVENT_VFORK>"
2191 msgstr "B<PTRACE_EVENT_VFORK>"
2192
2193 #. type: Plain text
2194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2196 msgid ""
2197 "Stop before return from B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> "
2198 "flag. When the tracee is continued after this stop, it will wait for child "
2199 "to exit/exec before continuing its execution (in other words, the usual "
2200 "behavior on B<vfork>(2))."
2201 msgstr ""
2202
2203 #. type: TP
2204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2206 #, no-wrap
2207 msgid "B<PTRACE_EVENT_FORK>"
2208 msgstr "B<PTRACE_EVENT_FORK>"
2209
2210 #. type: Plain text
2211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2213 msgid ""
2214 "Stop before return from B<fork>(2) or B<clone>(2) with the exit signal set "
2215 "to B<SIGCHLD>."
2216 msgstr ""
2217
2218 #. type: TP
2219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2221 #, no-wrap
2222 msgid "B<PTRACE_EVENT_CLONE>"
2223 msgstr "B<PTRACE_EVENT_CLONE>"
2224
2225 #. type: Plain text
2226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2228 msgid "Stop before return from B<clone>(2)."
2229 msgstr ""
2230
2231 #. type: TP
2232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2234 #, no-wrap
2235 msgid "B<PTRACE_EVENT_VFORK_DONE>"
2236 msgstr "B<PTRACE_EVENT_VFORK_DONE>"
2237
2238 #. type: Plain text
2239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2241 msgid ""
2242 "Stop before return from B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> "
2243 "flag, but after the child unblocked this tracee by exiting or execing."
2244 msgstr ""
2245
2246 #. type: Plain text
2247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2249 msgid ""
2250 "For all four stops described above, the stop occurs in the parent (i.e., the "
2251 "tracee), not in the newly created thread. B<PTRACE_GETEVENTMSG> can be used "
2252 "to retrieve the new thread's ID."
2253 msgstr ""
2254
2255 #. type: TP
2256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2258 #, no-wrap
2259 msgid "B<PTRACE_EVENT_EXEC>"
2260 msgstr "B<PTRACE_EVENT_EXEC>"
2261
2262 #. type: Plain text
2263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2265 msgid ""
2266 "Stop before return from B<execve>(2). Since Linux 3.0, "
2267 "B<PTRACE_GETEVENTMSG> returns the former thread ID."
2268 msgstr ""
2269
2270 #. type: TP
2271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2273 #, no-wrap
2274 msgid "B<PTRACE_EVENT_EXIT>"
2275 msgstr "B<PTRACE_EVENT_EXIT>"
2276
2277 #. type: Plain text
2278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2280 msgid ""
2281 "Stop before exit (including death from B<exit_group>(2)), signal death, or "
2282 "exit caused by B<execve>(2) in a multithreaded process. "
2283 "B<PTRACE_GETEVENTMSG> returns the exit status. Registers can be examined "
2284 "(unlike when \"real\" exit happens). The tracee is still alive; it needs to "
2285 "be B<PTRACE_CONT>ed or B<PTRACE_DETACH>ed to finish exiting."
2286 msgstr ""
2287
2288 #. type: TP
2289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2291 #, no-wrap
2292 msgid "B<PTRACE_EVENT_STOP>"
2293 msgstr "B<PTRACE_EVENT_STOP>"
2294
2295 #. type: Plain text
2296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2298 msgid ""
2299 "Stop induced by B<PTRACE_INTERRUPT> command, or group-stop, or initial "
2300 "ptrace-stop when a new child is attached (only if attached using "
2301 "B<PTRACE_SEIZE>)."
2302 msgstr ""
2303
2304 #. type: TP
2305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2307 #, no-wrap
2308 msgid "B<PTRACE_EVENT_SECCOMP>"
2309 msgstr "B<PTRACE_EVENT_SECCOMP>"
2310
2311 #. type: Plain text
2312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2314 msgid ""
2315 "Stop triggered by a B<seccomp>(2) rule on tracee syscall entry when "
2316 "B<PTRACE_O_TRACESECCOMP> has been set by the tracer. The seccomp event "
2317 "message data (from the B<SECCOMP_RET_DATA> portion of the seccomp filter "
2318 "rule) can be retrieved with B<PTRACE_GETEVENTMSG>. The semantics of this "
2319 "stop are described in detail in a separate section below."
2320 msgstr ""
2321
2322 #. type: Plain text
2323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2325 msgid ""
2326 "B<PTRACE_GETSIGINFO> on B<PTRACE_EVENT> stops returns B<SIGTRAP> in "
2327 "I<si_signo>, with I<si_code> set to I<(eventE<lt>E<lt>8)\\ |\\ SIGTRAP>."
2328 msgstr ""
2329
2330 #. type: SS
2331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2333 #, no-wrap
2334 msgid "Syscall-stops"
2335 msgstr ""
2336
2337 #. type: Plain text
2338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2340 msgid ""
2341 "If the tracee was restarted by B<PTRACE_SYSCALL> or B<PTRACE_SYSEMU>, the "
2342 "tracee enters syscall-enter-stop just prior to entering any system call "
2343 "(which will not be executed if the restart was using B<PTRACE_SYSEMU>, "
2344 "regardless of any change made to registers at this point or how the tracee "
2345 "is restarted after this stop). No matter which method caused the syscall-"
2346 "entry-stop, if the tracer restarts the tracee with B<PTRACE_SYSCALL>, the "
2347 "tracee enters syscall-exit-stop when the system call is finished, or if it "
2348 "is interrupted by a signal. (That is, signal-delivery-stop never happens "
2349 "between syscall-enter-stop and syscall-exit-stop; it happens I<after> "
2350 "syscall-exit-stop.). If the tracee is continued using any other method "
2351 "(including B<PTRACE_SYSEMU>), no syscall-exit-stop occurs. Note that all "
2352 "mentions B<PTRACE_SYSEMU> apply equally to B<PTRACE_SYSEMU_SINGLESTEP>."
2353 msgstr ""
2354
2355 #. type: Plain text
2356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2358 msgid ""
2359 "However, even if the tracee was continued using B<PTRACE_SYSCALL>, it is not "
2360 "guaranteed that the next stop will be a syscall-exit-stop. Other "
2361 "possibilities are that the tracee may stop in a B<PTRACE_EVENT> stop "
2362 "(including seccomp stops), exit (if it entered B<_exit>(2) or "
2363 "B<exit_group>(2)), be killed by B<SIGKILL>, or die silently (if it is a "
2364 "thread group leader, the B<execve>(2) happened in another thread, and that "
2365 "thread is not traced by the same tracer; this situation is discussed later)."
2366 msgstr ""
2367
2368 #. type: Plain text
2369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2371 msgid ""
2372 "Syscall-enter-stop and syscall-exit-stop are observed by the tracer as "
2373 "B<waitpid>(2) returning with I<WIFSTOPPED(status)> true, and "
2374 "I<WSTOPSIG(status)> giving B<SIGTRAP>. If the B<PTRACE_O_TRACESYSGOOD> "
2375 "option was set by the tracer, then I<WSTOPSIG(status)> will give the value "
2376 "I<(SIGTRAP\\ |\\ 0x80)>."
2377 msgstr ""
2378
2379 #. type: Plain text
2380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2382 msgid ""
2383 "Syscall-stops can be distinguished from signal-delivery-stop with B<SIGTRAP> "
2384 "by querying B<PTRACE_GETSIGINFO> for the following cases:"
2385 msgstr ""
2386
2387 #. type: TP
2388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2390 #, no-wrap
2391 msgid "I<si_code> E<lt>= 0"
2392 msgstr "I<si_code> E<lt>= 0"
2393
2394 #. type: Plain text
2395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2397 msgid ""
2398 "B<SIGTRAP> was delivered as a result of a user-space action, for example, a "
2399 "system call (B<tgkill>(2), B<kill>(2), B<sigqueue>(3), etc.), expiration of "
2400 "a POSIX timer, change of state on a POSIX message queue, or completion of an "
2401 "asynchronous I/O operation."
2402 msgstr ""
2403
2404 #. type: TP
2405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2407 #, no-wrap
2408 msgid "I<si_code> == SI_KERNEL (0x80)"
2409 msgstr "I<si_code> == SI_KERNEL (0x80)"
2410
2411 #. type: Plain text
2412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2414 msgid "B<SIGTRAP> was sent by the kernel."
2415 msgstr ""
2416
2417 #. type: TP
2418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2420 #, no-wrap
2421 msgid "I<si_code> == SIGTRAP or I<si_code> == (SIGTRAP|0x80)"
2422 msgstr "I<si_code> == SIGTRAP o I<si_code> == (SIGTRAP|0x80)"
2423
2424 #. type: Plain text
2425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2427 msgid "This is a syscall-stop."
2428 msgstr ""
2429
2430 #. type: Plain text
2431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2433 msgid ""
2434 "However, syscall-stops happen very often (twice per system call), and "
2435 "performing B<PTRACE_GETSIGINFO> for every syscall-stop may be somewhat "
2436 "expensive."
2437 msgstr ""
2438
2439 #. type: Plain text
2440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2442 msgid ""
2443 "Some architectures allow the cases to be distinguished by examining "
2444 "registers. For example, on x86, I<rax> == -B<ENOSYS> in syscall-enter-"
2445 "stop. Since B<SIGTRAP> (like any other signal) always happens I<after> "
2446 "syscall-exit-stop, and at this point I<rax> almost never contains "
2447 "-B<ENOSYS>, the B<SIGTRAP> looks like \"syscall-stop which is not syscall-"
2448 "enter-stop\"; in other words, it looks like a \"stray syscall-exit-stop\" "
2449 "and can be detected this way. But such detection is fragile and is best "
2450 "avoided."
2451 msgstr ""
2452
2453 #. type: Plain text
2454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2456 msgid ""
2457 "Using the B<PTRACE_O_TRACESYSGOOD> option is the recommended method to "
2458 "distinguish syscall-stops from other kinds of ptrace-stops, since it is "
2459 "reliable and does not incur a performance penalty."
2460 msgstr ""
2461
2462 #. type: Plain text
2463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2465 msgid ""
2466 "Syscall-enter-stop and syscall-exit-stop are indistinguishable from each "
2467 "other by the tracer. The tracer needs to keep track of the sequence of "
2468 "ptrace-stops in order to not misinterpret syscall-enter-stop as syscall-exit-"
2469 "stop or vice versa. In general, a syscall-enter-stop is always followed by "
2470 "syscall-exit-stop, B<PTRACE_EVENT> stop, or the tracee's death; no other "
2471 "kinds of ptrace-stop can occur in between. However, note that seccomp stops "
2472 "(see below) can cause syscall-exit-stops, without preceding syscall-entry-"
2473 "stops. If seccomp is in use, care needs to be taken not to misinterpret "
2474 "such stops as syscall-entry-stops."
2475 msgstr ""
2476
2477 #. type: Plain text
2478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2480 msgid ""
2481 "If after syscall-enter-stop, the tracer uses a restarting command other than "
2482 "B<PTRACE_SYSCALL>, syscall-exit-stop is not generated."
2483 msgstr ""
2484
2485 #. type: Plain text
2486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2488 msgid ""
2489 "B<PTRACE_GETSIGINFO> on syscall-stops returns B<SIGTRAP> in I<si_signo>, "
2490 "with I<si_code> set to B<SIGTRAP> or I<(SIGTRAP|0x80)>."
2491 msgstr ""
2492
2493 #. type: SS
2494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2496 #, fuzzy, no-wrap
2497 #| msgid "B<PTRACE_O_SUSPEND_SECCOMP> (since Linux 4.3)"
2498 msgid "PTRACE_EVENT_SECCOMP stops (Linux 3.5 to Linux 4.7)"
2499 msgstr "B<PTRACE_O_SUSPEND_SECCOMP> (desde Linux 4.3)"
2500
2501 #. type: Plain text
2502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2504 msgid ""
2505 "The behavior of B<PTRACE_EVENT_SECCOMP> stops and their interaction with "
2506 "other kinds of ptrace stops has changed between kernel versions. This "
2507 "documents the behavior from their introduction until Linux 4.7 (inclusive). "
2508 "The behavior in later kernel versions is documented in the next section."
2509 msgstr ""
2510
2511 #. type: Plain text
2512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2514 msgid ""
2515 "A B<PTRACE_EVENT_SECCOMP> stop occurs whenever a B<SECCOMP_RET_TRACE> rule "
2516 "is triggered. This is independent of which methods was used to restart the "
2517 "system call. Notably, seccomp still runs even if the tracee was restarted "
2518 "using B<PTRACE_SYSEMU> and this system call is unconditionally skipped."
2519 msgstr ""
2520
2521 #. type: Plain text
2522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2524 msgid ""
2525 "Restarts from this stop will behave as if the stop had occurred right before "
2526 "the system call in question. In particular, both B<PTRACE_SYSCALL> and "
2527 "B<PTRACE_SYSEMU> will normally cause a subsequent syscall-entry-stop. "
2528 "However, if after the B<PTRACE_EVENT_SECCOMP> the system call number is "
2529 "negative, both the syscall-entry-stop and the system call itself will be "
2530 "skipped. This means that if the system call number is negative after a "
2531 "B<PTRACE_EVENT_SECCOMP> and the tracee is restarted using B<PTRACE_SYSCALL>, "
2532 "the next observed stop will be a syscall-exit-stop, rather than the syscall-"
2533 "entry-stop that might have been expected."
2534 msgstr ""
2535
2536 #. type: SS
2537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2539 #, no-wrap
2540 msgid "PTRACE_EVENT_SECCOMP stops (since Linux 4.8)"
2541 msgstr ""
2542
2543 #. commit 93e35efb8de45393cf61ed07f7b407629bf698ea
2544 #. type: Plain text
2545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2547 msgid ""
2548 "Starting with Linux 4.8, the B<PTRACE_EVENT_SECCOMP> stop was reordered to "
2549 "occur between syscall-entry-stop and syscall-exit-stop. Note that seccomp "
2550 "no longer runs (and no B<PTRACE_EVENT_SECCOMP> will be reported) if the "
2551 "system call is skipped due to B<PTRACE_SYSEMU>."
2552 msgstr ""
2553
2554 #. type: Plain text
2555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2557 msgid ""
2558 "Functionally, a B<PTRACE_EVENT_SECCOMP> stop functions comparably to a "
2559 "syscall-entry-stop (i.e., continuations using B<PTRACE_SYSCALL> will cause "
2560 "syscall-exit-stops, the system call number may be changed and any other "
2561 "modified registers are visible to the to-be-executed system call as well). "
2562 "Note that there may be, but need not have been a preceding syscall-entry-"
2563 "stop."
2564 msgstr ""
2565
2566 #. type: Plain text
2567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2569 msgid ""
2570 "After a B<PTRACE_EVENT_SECCOMP> stop, seccomp will be rerun, with a "
2571 "B<SECCOMP_RET_TRACE> rule now functioning the same as a "
2572 "B<SECCOMP_RET_ALLOW>. Specifically, this means that if registers are not "
2573 "modified during the B<PTRACE_EVENT_SECCOMP> stop, the system call will then "
2574 "be allowed."
2575 msgstr ""
2576
2577 #. type: SS
2578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2580 #, fuzzy, no-wrap
2581 #| msgid "PTRACE_SYSCALL, PTRACE_SINGLESTEP"
2582 msgid "PTRACE_SINGLESTEP stops"
2583 msgstr "PTRACE_SYSCALL, PTRACE_SINGLESTEP"
2584
2585 #
2586 #. FIXME .
2587 #. document stops occurring with PTRACE_SINGLESTEP
2588 #. type: Plain text
2589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2591 msgid "[Details of these kinds of stops are yet to be documented.]"
2592 msgstr ""
2593
2594 #. type: SS
2595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2597 #, no-wrap
2598 msgid "Informational and restarting ptrace commands"
2599 msgstr ""
2600
2601 #. type: Plain text
2602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2604 msgid ""
2605 "Most ptrace commands (all except B<PTRACE_ATTACH>, B<PTRACE_SEIZE>, "
2606 "B<PTRACE_TRACEME>, B<PTRACE_INTERRUPT>, and B<PTRACE_KILL>) require the "
2607 "tracee to be in a ptrace-stop, otherwise they fail with B<ESRCH>."
2608 msgstr ""
2609
2610 #. type: Plain text
2611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2613 msgid ""
2614 "When the tracee is in ptrace-stop, the tracer can read and write data to the "
2615 "tracee using informational commands. These commands leave the tracee in "
2616 "ptrace-stopped state:"
2617 msgstr ""
2618
2619 #. type: Plain text
2620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2622 #, no-wrap
2623 msgid ""
2624 "ptrace(PTRACE_PEEKTEXT/PEEKDATA/PEEKUSER, pid, addr, 0);\n"
2625 "ptrace(PTRACE_POKETEXT/POKEDATA/POKEUSER, pid, addr, long_val);\n"
2626 "ptrace(PTRACE_GETREGS/GETFPREGS, pid, 0, &struct);\n"
2627 "ptrace(PTRACE_SETREGS/SETFPREGS, pid, 0, &struct);\n"
2628 "ptrace(PTRACE_GETREGSET, pid, NT_foo, &iov);\n"
2629 "ptrace(PTRACE_SETREGSET, pid, NT_foo, &iov);\n"
2630 "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo);\n"
2631 "ptrace(PTRACE_SETSIGINFO, pid, 0, &siginfo);\n"
2632 "ptrace(PTRACE_GETEVENTMSG, pid, 0, &long_var);\n"
2633 "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
2634 msgstr ""
2635 "ptrace(PTRACE_PEEKTEXT/PEEKDATA/PEEKUSER, pid, addr, 0);\n"
2636 "ptrace(PTRACE_POKETEXT/POKEDATA/POKEUSER, pid, addr, long_val);\n"
2637 "ptrace(PTRACE_GETREGS/GETFPREGS, pid, 0, &struct);\n"
2638 "ptrace(PTRACE_SETREGS/SETFPREGS, pid, 0, &struct);\n"
2639 "ptrace(PTRACE_GETREGSET, pid, NT_foo, &iov);\n"
2640 "ptrace(PTRACE_SETREGSET, pid, NT_foo, &iov);\n"
2641 "ptrace(PTRACE_GETSIGINFO, pid, 0, &siginfo);\n"
2642 "ptrace(PTRACE_SETSIGINFO, pid, 0, &siginfo);\n"
2643 "ptrace(PTRACE_GETEVENTMSG, pid, 0, &long_var);\n"
2644 "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
2645
2646 #. type: Plain text
2647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2649 msgid ""
2650 "Note that some errors are not reported. For example, setting signal "
2651 "information (I<siginfo>) may have no effect in some ptrace-stops, yet the "
2652 "call may succeed (return 0 and not set I<errno>); querying "
2653 "B<PTRACE_GETEVENTMSG> may succeed and return some random value if current "
2654 "ptrace-stop is not documented as returning a meaningful event message."
2655 msgstr ""
2656
2657 #. type: Plain text
2658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2660 msgid "The call"
2661 msgstr "La llamada"
2662
2663 #. type: Plain text
2664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2666 #, fuzzy, no-wrap
2667 #| msgid " ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
2668 msgid "ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
2669 msgstr " ptrace(PTRACE_SETOPTIONS, pid, 0, PTRACE_O_flags);\n"
2670
2671 #. type: Plain text
2672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2674 msgid ""
2675 "affects one tracee. The tracee's current flags are replaced. Flags are "
2676 "inherited by new tracees created and \"auto-attached\" via active "
2677 "B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, or B<PTRACE_O_TRACECLONE> "
2678 "options."
2679 msgstr ""
2680
2681 #. type: Plain text
2682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2684 msgid ""
2685 "Another group of commands makes the ptrace-stopped tracee run. They have "
2686 "the form:"
2687 msgstr ""
2688
2689 #. type: Plain text
2690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2692 #, fuzzy, no-wrap
2693 #| msgid " ptrace(cmd, pid, 0, sig);\n"
2694 msgid "ptrace(cmd, pid, 0, sig);\n"
2695 msgstr " ptrace(cmd, pid, 0, sig);\n"
2696
2697 #. type: Plain text
2698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2700 msgid ""
2701 "where I<cmd> is B<PTRACE_CONT>, B<PTRACE_LISTEN>, B<PTRACE_DETACH>, "
2702 "B<PTRACE_SYSCALL>, B<PTRACE_SINGLESTEP>, B<PTRACE_SYSEMU>, or "
2703 "B<PTRACE_SYSEMU_SINGLESTEP>. If the tracee is in signal-delivery-stop, "
2704 "I<sig> is the signal to be injected (if it is nonzero). Otherwise, I<sig> "
2705 "may be ignored. (When restarting a tracee from a ptrace-stop other than "
2706 "signal-delivery-stop, recommended practice is to always pass 0 in I<sig>.)"
2707 msgstr ""
2708
2709 #. type: SS
2710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2712 #, no-wrap
2713 msgid "Attaching and detaching"
2714 msgstr ""
2715
2716 #. type: Plain text
2717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2719 msgid "A thread can be attached to the tracer using the call"
2720 msgstr ""
2721
2722 #. type: Plain text
2723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2725 #, fuzzy, no-wrap
2726 #| msgid " ptrace(PTRACE_ATTACH, pid, 0, 0);\n"
2727 msgid "ptrace(PTRACE_ATTACH, pid, 0, 0);\n"
2728 msgstr " ptrace(PTRACE_ATTACH, pid, 0, 0);\n"
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 msgid "or"
2734 msgstr "o"
2735
2736 #. type: Plain text
2737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2739 #, fuzzy, no-wrap
2740 #| msgid " ptrace(PTRACE_SEIZE, pid, 0, PTRACE_O_flags);\n"
2741 msgid "ptrace(PTRACE_SEIZE, pid, 0, PTRACE_O_flags);\n"
2742 msgstr " ptrace(PTRACE_SEIZE, pid, 0, PTRACE_O_flags);\n"
2743
2744 #
2745 #. FIXME Describe how to attach to a thread which is already group-stopped.
2746 #. type: Plain text
2747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2749 msgid ""
2750 "B<PTRACE_ATTACH> sends B<SIGSTOP> to this thread. If the tracer wants this "
2751 "B<SIGSTOP> to have no effect, it needs to suppress it. Note that if other "
2752 "signals are concurrently sent to this thread during attach, the tracer may "
2753 "see the tracee enter signal-delivery-stop with other signal(s) first! The "
2754 "usual practice is to reinject these signals until B<SIGSTOP> is seen, then "
2755 "suppress B<SIGSTOP> injection. The design bug here is that a ptrace attach "
2756 "and a concurrently delivered B<SIGSTOP> may race and the concurrent "
2757 "B<SIGSTOP> may be lost."
2758 msgstr ""
2759
2760 #. type: Plain text
2761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2763 msgid ""
2764 "Since attaching sends B<SIGSTOP> and the tracer usually suppresses it, this "
2765 "may cause a stray B<EINTR> return from the currently executing system call "
2766 "in the tracee, as described in the \"Signal injection and suppression\" "
2767 "section."
2768 msgstr ""
2769
2770 #. type: Plain text
2771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2773 msgid ""
2774 "Since Linux 3.4, B<PTRACE_SEIZE> can be used instead of B<PTRACE_ATTACH>. "
2775 "B<PTRACE_SEIZE> does not stop the attached process. If you need to stop it "
2776 "after attach (or at any other time) without sending it any signals, use "
2777 "B<PTRACE_INTERRUPT> command."
2778 msgstr ""
2779
2780 #. type: Plain text
2781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2783 #, fuzzy
2784 #| msgid "Main operation mode:"
2785 msgid "The operation"
2786 msgstr "Modo principal de operación:"
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 #, fuzzy, no-wrap
2792 #| msgid " ptrace(PTRACE_TRACEME, 0, 0, 0);\n"
2793 msgid "ptrace(PTRACE_TRACEME, 0, 0, 0);\n"
2794 msgstr " ptrace(PTRACE_TRACEME, 0, 0, 0);\n"
2795
2796 #. type: Plain text
2797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2799 msgid ""
2800 "turns the calling thread into a tracee. The thread continues to run "
2801 "(doesn't enter ptrace-stop). A common practice is to follow the "
2802 "B<PTRACE_TRACEME> with"
2803 msgstr ""
2804
2805 #. type: Plain text
2806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2808 #, fuzzy, no-wrap
2809 #| msgid " raise(SIGSTOP);\n"
2810 msgid "raise(SIGSTOP);\n"
2811 msgstr " raise(SIGSTOP);\n"
2812
2813 #. type: Plain text
2814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2816 msgid ""
2817 "and allow the parent (which is our tracer now) to observe our signal-"
2818 "delivery-stop."
2819 msgstr ""
2820
2821 #. type: Plain text
2822 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2823 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2824 msgid ""
2825 "If the B<PTRACE_O_TRACEFORK>, B<PTRACE_O_TRACEVFORK>, or "
2826 "B<PTRACE_O_TRACECLONE> options are in effect, then children created by, "
2827 "respectively, B<vfork>(2) or B<clone>(2) with the B<CLONE_VFORK> flag, "
2828 "B<fork>(2) or B<clone>(2) with the exit signal set to B<SIGCHLD>, and "
2829 "other kinds of B<clone>(2), are automatically attached to the same tracer "
2830 "which traced their parent. B<SIGSTOP> is delivered to the children, causing "
2831 "them to enter signal-delivery-stop after they exit the system call which "
2832 "created them."
2833 msgstr ""
2834
2835 #. type: Plain text
2836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2838 msgid "Detaching of the tracee is performed by:"
2839 msgstr ""
2840
2841 #. type: Plain text
2842 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2843 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2844 #, fuzzy, no-wrap
2845 #| msgid " ptrace(PTRACE_DETACH, pid, 0, sig);\n"
2846 msgid "ptrace(PTRACE_DETACH, pid, 0, sig);\n"
2847 msgstr " ptrace(PTRACE_DETACH, pid, 0, sig);\n"
2848
2849 #. type: Plain text
2850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2852 msgid ""
2853 "B<PTRACE_DETACH> is a restarting operation; therefore it requires the tracee "
2854 "to be in ptrace-stop. If the tracee is in signal-delivery-stop, a signal "
2855 "can be injected. Otherwise, the I<sig> parameter may be silently ignored."
2856 msgstr ""
2857
2858 #. FIXME Describe how to detach from a group-stopped tracee so that it
2859 #. doesn't run, but continues to wait for SIGCONT.
2860 #. type: Plain text
2861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2863 msgid ""
2864 "If the tracee is running when the tracer wants to detach it, the usual "
2865 "solution is to send B<SIGSTOP> (using B<tgkill>(2), to make sure it goes to "
2866 "the correct thread), wait for the tracee to stop in signal-delivery-stop for "
2867 "B<SIGSTOP> and then detach it (suppressing B<SIGSTOP> injection). A design "
2868 "bug is that this can race with concurrent B<SIGSTOP>s. Another complication "
2869 "is that the tracee may enter other ptrace-stops and needs to be restarted "
2870 "and waited for again, until B<SIGSTOP> is seen. Yet another complication is "
2871 "to be sure that the tracee is not already ptrace-stopped, because no signal "
2872 "delivery happens while it is\\[em]not even B<SIGSTOP>."
2873 msgstr ""
2874
2875 #. type: Plain text
2876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2878 msgid ""
2879 "If the tracer dies, all tracees are automatically detached and restarted, "
2880 "unless they were in group-stop. Handling of restart from group-stop is "
2881 "currently buggy, but the \"as planned\" behavior is to leave tracee stopped "
2882 "and waiting for B<SIGCONT>. If the tracee is restarted from signal-delivery-"
2883 "stop, the pending signal is injected."
2884 msgstr ""
2885
2886 #. type: SS
2887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2889 #, no-wrap
2890 msgid "execve(2) under ptrace"
2891 msgstr ""
2892
2893 #
2894 #. clone(2) CLONE_THREAD says:
2895 #. If any of the threads in a thread group performs an execve(2),
2896 #. then all threads other than the thread group leader are terminated,
2897 #. and the new program is executed in the thread group leader.
2898 #. In Linux 3.1 sources, see fs/exec.c::de_thread()
2899 #. type: Plain text
2900 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2901 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2902 msgid ""
2903 "When one thread in a multithreaded process calls B<execve>(2), the kernel "
2904 "destroys all other threads in the process, and resets the thread ID of the "
2905 "execing thread to the thread group ID (process ID). (Or, to put things "
2906 "another way, when a multithreaded process does an B<execve>(2), at "
2907 "completion of the call, it appears as though the B<execve>(2) occurred in "
2908 "the thread group leader, regardless of which thread did the B<execve>(2).) "
2909 "This resetting of the thread ID looks very confusing to tracers:"
2910 msgstr ""
2911
2912 #. type: IP
2913 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2914 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2915 #, no-wrap
2916 msgid "\\[bu]"
2917 msgstr "\\[bu]"
2918
2919 #. type: Plain text
2920 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2921 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2922 msgid ""
2923 "All other threads stop in B<PTRACE_EVENT_EXIT> stop, if the "
2924 "B<PTRACE_O_TRACEEXIT> option was turned on. Then all other threads except "
2925 "the thread group leader report death as if they exited via B<_exit>(2) with "
2926 "exit code 0."
2927 msgstr ""
2928
2929 #. type: Plain text
2930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2932 msgid ""
2933 "The execing tracee changes its thread ID while it is in the B<execve>(2). "
2934 "(Remember, under ptrace, the \"pid\" returned from B<waitpid>(2), or fed "
2935 "into ptrace calls, is the tracee's thread ID.) That is, the tracee's thread "
2936 "ID is reset to be the same as its process ID, which is the same as the "
2937 "thread group leader's thread ID."
2938 msgstr ""
2939
2940 #. type: Plain text
2941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2943 msgid ""
2944 "Then a B<PTRACE_EVENT_EXEC> stop happens, if the B<PTRACE_O_TRACEEXEC> "
2945 "option was turned on."
2946 msgstr ""
2947
2948 #. type: Plain text
2949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2951 msgid ""
2952 "If the thread group leader has reported its B<PTRACE_EVENT_EXIT> stop by "
2953 "this time, it appears to the tracer that the dead thread leader \"reappears "
2954 "from nowhere\". (Note: the thread group leader does not report death via "
2955 "I<WIFEXITED(status)> until there is at least one other live thread. This "
2956 "eliminates the possibility that the tracer will see it dying and then "
2957 "reappearing.) If the thread group leader was still alive, for the tracer "
2958 "this may look as if thread group leader returns from a different system call "
2959 "than it entered, or even \"returned from a system call even though it was "
2960 "not in any system call\". If the thread group leader was not traced (or was "
2961 "traced by a different tracer), then during B<execve>(2) it will appear as "
2962 "if it has become a tracee of the tracer of the execing tracee."
2963 msgstr ""
2964
2965 #. type: Plain text
2966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2968 msgid ""
2969 "All of the above effects are the artifacts of the thread ID change in the "
2970 "tracee."
2971 msgstr ""
2972
2973 #. type: Plain text
2974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2976 msgid ""
2977 "The B<PTRACE_O_TRACEEXEC> option is the recommended tool for dealing with "
2978 "this situation. First, it enables B<PTRACE_EVENT_EXEC> stop, which occurs "
2979 "before B<execve>(2) returns. In this stop, the tracer can use "
2980 "B<PTRACE_GETEVENTMSG> to retrieve the tracee's former thread ID. (This "
2981 "feature was introduced in Linux 3.0.) Second, the B<PTRACE_O_TRACEEXEC> "
2982 "option disables legacy B<SIGTRAP> generation on B<execve>(2)."
2983 msgstr ""
2984
2985 #. type: Plain text
2986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2988 msgid ""
2989 "When the tracer receives B<PTRACE_EVENT_EXEC> stop notification, it is "
2990 "guaranteed that except this tracee and the thread group leader, no other "
2991 "threads from the process are alive."
2992 msgstr ""
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 "On receiving the B<PTRACE_EVENT_EXEC> stop notification, the tracer should "
2999 "clean up all its internal data structures describing the threads of this "
3000 "process, and retain only one data structure\\[em]one which describes the "
3001 "single still running tracee, with"
3002 msgstr ""
3003
3004 #. type: Plain text
3005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3007 #, no-wrap
3008 msgid "thread ID == thread group ID == process ID.\n"
3009 msgstr ""
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 msgid "Example: two threads call B<execve>(2) at the same time:"
3015 msgstr ""
3016
3017 #. type: Plain text
3018 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
3019 #: opensuse-tumbleweed
3020 #, no-wrap
3021 msgid ""
3022 "*** we get syscall-enter-stop in thread 1: **\n"
3023 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
3024 "*** we issue PTRACE_SYSCALL for thread 1 **\n"
3025 "*** we get syscall-enter-stop in thread 2: **\n"
3026 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
3027 "*** we issue PTRACE_SYSCALL for thread 2 **\n"
3028 "*** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **\n"
3029 "*** we get syscall-exit-stop for PID0: **\n"
3030 "PID0 E<lt>...\\& execve resumedE<gt> ) = 0\n"
3031 msgstr ""
3032
3033 #. type: Plain text
3034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3036 msgid ""
3037 "If the B<PTRACE_O_TRACEEXEC> option is I<not> in effect for the execing "
3038 "tracee, and if the tracee was B<PTRACE_ATTACH>ed rather that "
3039 "B<PTRACE_SEIZE>d, the kernel delivers an extra B<SIGTRAP> to the tracee "
3040 "after B<execve>(2) returns. This is an ordinary signal (similar to one "
3041 "which can be generated by I<kill -TRAP>), not a special kind of ptrace-"
3042 "stop. Employing B<PTRACE_GETSIGINFO> for this signal returns I<si_code> set "
3043 "to 0 (I<SI_USER>). This signal may be blocked by signal mask, and thus may "
3044 "be delivered (much) later."
3045 msgstr ""
3046
3047 #. type: Plain text
3048 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3049 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3050 msgid ""
3051 "Usually, the tracer (for example, B<strace>(1)) would not want to show this "
3052 "extra post-execve B<SIGTRAP> signal to the user, and would suppress its "
3053 "delivery to the tracee (if B<SIGTRAP> is set to B<SIG_DFL>, it is a killing "
3054 "signal). However, determining I<which> B<SIGTRAP> to suppress is not easy. "
3055 "Setting the B<PTRACE_O_TRACEEXEC> option or using B<PTRACE_SEIZE> and thus "
3056 "suppressing this extra B<SIGTRAP> is the recommended approach."
3057 msgstr ""
3058
3059 #. type: SS
3060 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3061 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3062 #, no-wrap
3063 msgid "Real parent"
3064 msgstr ""
3065
3066 #. type: Plain text
3067 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3068 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3069 msgid ""
3070 "The ptrace API (ab)uses the standard UNIX parent/child signaling over "
3071 "B<waitpid>(2). This used to cause the real parent of the process to stop "
3072 "receiving several kinds of B<waitpid>(2) notifications when the child "
3073 "process is traced by some other process."
3074 msgstr ""
3075
3076 #. type: Plain text
3077 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3078 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3079 msgid ""
3080 "Many of these bugs have been fixed, but as of Linux 2.6.38 several still "
3081 "exist; see BUGS below."
3082 msgstr ""
3083
3084 #. type: Plain text
3085 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3086 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3087 msgid "As of Linux 2.6.38, the following is believed to work correctly:"
3088 msgstr ""
3089
3090 #. type: Plain text
3091 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3092 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3093 msgid ""
3094 "exit/death by signal is reported first to the tracer, then, when the tracer "
3095 "consumes the B<waitpid>(2) result, to the real parent (to the real parent "
3096 "only when the whole multithreaded process exits). If the tracer and the "
3097 "real parent are the same process, the report is sent only once."
3098 msgstr ""
3099
3100 #. type: SH
3101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3103 #, no-wrap
3104 msgid "RETURN VALUE"
3105 msgstr "VALOR DEVUELTO"
3106
3107 #. type: Plain text
3108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3110 msgid ""
3111 "On success, the B<PTRACE_PEEK*> operations return the requested data (but "
3112 "see NOTES), the B<PTRACE_SECCOMP_GET_FILTER> operation returns the number of "
3113 "instructions in the BPF program, the B<PTRACE_GET_SYSCALL_INFO> operation "
3114 "returns the number of bytes available to be written by the kernel, and other "
3115 "operations return zero."
3116 msgstr ""
3117
3118 #. type: Plain text
3119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3121 #, fuzzy
3122 #| msgid ""
3123 #| "On success, PTRACE_PEEK* requests return the requested data, while other "
3124 #| "requests return zero. On error, all requests return -1, and I<errno>(3) "
3125 #| "is set appropriately. Since the value returned by a successful "
3126 #| "PTRACE_PEEK* request may be -1, the caller must check I<errno> after such "
3127 #| "requests to determine whether or not an error occurred."
3128 msgid ""
3129 "On error, all operations return -1, and I<errno> is set to indicate the "
3130 "error. Since the value returned by a successful B<PTRACE_PEEK*> operation "
3131 "may be -1, the caller must clear I<errno> before the call, and then check it "
3132 "afterward to determine whether or not an error occurred."
3133 msgstr ""
3134 "En caso de éxito, las peticiones PTRACE_PEEK* devuelven los datos "
3135 "solicitados, mientras que las otras peticiones devuelven cero. En caso de "
3136 "error, todas las peticiones devuelven -1 y a I<errno>(3) se le asigna un "
3137 "valor apropiado. Ya que el valor devuelto por una petición PTRACE_PEEK* con "
3138 "éxito puede ser -1, el invocador debe comprobar I<errno> después de tales "
3139 "peticiones para determinar si hubo error o no."
3140
3141 #. type: SH
3142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3144 #, no-wrap
3145 msgid "ERRORS"
3146 msgstr "ERRORES"
3147
3148 #. type: TP
3149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3151 #, no-wrap
3152 msgid "B<EBUSY>"
3153 msgstr "B<EBUSY>"
3154
3155 #. type: Plain text
3156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3158 msgid ""
3159 "(i386 only) There was an error with allocating or freeing a debug register."
3160 msgstr ""
3161
3162 #. type: TP
3163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3165 #, no-wrap
3166 msgid "B<EFAULT>"
3167 msgstr "B<EFAULT>"
3168
3169 #. type: Plain text
3170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3172 #, fuzzy
3173 #| msgid ""
3174 #| "There was an attempt to read from or write to an invalid area in the "
3175 #| "parent's or child's memory, probably because the area wasn't mapped or "
3176 #| "accessible. Unfortunately, under Linux, different variations of this "
3177 #| "fault will return EIO or EFAULT more or less arbitrarily."
3178 msgid ""
3179 "There was an attempt to read from or write to an invalid area in the "
3180 "tracer's or the tracee's memory, probably because the area wasn't mapped or "
3181 "accessible. Unfortunately, under Linux, different variations of this fault "
3182 "will return B<EIO> or B<EFAULT> more or less arbitrarily."
3183 msgstr ""
3184 "Se ha intentado leer de o escribir en una área inválida de la memoria del "
3185 "padre o del hijo, probablemente porque el área no estaba asignada o no era "
3186 "accesible. Desafortunadamente, en Linux, diferentes versiones de este fallo "
3187 "devolverán EIO o EFAULT de forma más o menos arbitraria."
3188
3189 #. type: TP
3190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3192 #, no-wrap
3193 msgid "B<EINVAL>"
3194 msgstr "B<EINVAL>"
3195
3196 #. type: Plain text
3197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3199 msgid "An attempt was made to set an invalid option."
3200 msgstr ""
3201
3202 #. type: TP
3203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3205 #, no-wrap
3206 msgid "B<EIO>"
3207 msgstr "B<EIO>"
3208
3209 #. type: Plain text
3210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3212 #, fuzzy
3213 #| msgid ""
3214 #| "I<request> is invalid, or an attempt was made to read from or write to an "
3215 #| "invalid area in the parent's or child's memory, or there was a word-"
3216 #| "alignment violation, or an invalid signal was specified during a restart "
3217 #| "request."
3218 msgid ""
3219 "I<op> is invalid, or an attempt was made to read from or write to an invalid "
3220 "area in the tracer's or the tracee's memory, or there was a word-alignment "
3221 "violation, or an invalid signal was specified during a restart operation."
3222 msgstr ""
3223 "I<Petición> no es válida o se ha intentado leer de o escribir en una área "
3224 "inválida de la memoria del padre o del hijo, o se ha producido una violación "
3225 "en la alíneación de palabra o se ha especificado una señal inválida durante "
3226 "una petición de reinicio."
3227
3228 #. type: TP
3229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3231 #, no-wrap
3232 msgid "B<EPERM>"
3233 msgstr "B<EPERM>"
3234
3235 #. type: Plain text
3236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3238 #, fuzzy
3239 #| msgid ""
3240 #| "The specified process cannot be traced. This could be because the parent "
3241 #| "has insufficient privileges; non-root processes cannot trace processes "
3242 #| "that they cannot send signals to or those running setuid/setgid programs, "
3243 #| "for obvious reasons. Alternatively, the process may already be being "
3244 #| "traced, or be B<init> (pid 1)."
3245 msgid ""
3246 "The specified process cannot be traced. This could be because the tracer "
3247 "has insufficient privileges (the required capability is B<CAP_SYS_PTRACE>); "
3248 "unprivileged processes cannot trace processes that they cannot send signals "
3249 "to or those running set-user-ID/set-group-ID programs, for obvious reasons. "
3250 "Alternatively, the process may already be being traced, or (before Linux "
3251 "2.6.26) be B<init>(1) (PID 1)."
3252 msgstr ""
3253 "El proceso indicado no puede ser rastreado. Esto podría deberse a que el "
3254 "padre no tiene suficientes privilegios. Los procesos que no son del root no "
3255 "pueden rastrear procesos a los que no pueden enviar señales o programas en "
3256 "ejecución setuid/setgid por razones obvias. Alternativamente, puede que el "
3257 "proceso ya se esté rastreando o ser el proceso B<init> (pid 1)."
3258
3259 #. type: TP
3260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3262 #, no-wrap
3263 msgid "B<ESRCH>"
3264 msgstr "B<ESRCH>"
3265
3266 #. type: Plain text
3267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3269 #, fuzzy
3270 #| msgid ""
3271 #| "The specified process does not exist, or is not currently being traced by "
3272 #| "the caller, or is not stopped (for requests that require that)."
3273 msgid ""
3274 "The specified process does not exist, or is not currently being traced by "
3275 "the caller, or is not stopped (for operations that require a stopped tracee)."
3276 msgstr ""
3277 "El proceso especificado no existe o el invocador no lo está rastreando "
3278 "actualmente o no está parado (para peticiones que necesiten que lo esté)."
3279
3280 #. type: SH
3281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3283 #, no-wrap
3284 msgid "STANDARDS"
3285 msgstr "ESTÁNDARES"
3286
3287 #. type: Plain text
3288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3290 msgid "None."
3291 msgstr ""
3292
3293 #. type: SH
3294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3296 #, no-wrap
3297 msgid "HISTORY"
3298 msgstr "HISTORIAL"
3299
3300 #. type: Plain text
3301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3303 msgid "SVr4, 4.3BSD."
3304 msgstr "SVr4, 4.3BSD."
3305
3306 #. See commit 00cd5c37afd5f431ac186dd131705048c0a11fdb
3307 #. type: Plain text
3308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3310 #, fuzzy
3311 #| msgid "B<init>(8), the process with pid 1, may not be traced."
3312 msgid ""
3313 "Before Linux 2.6.26, B<init>(1), the process with PID 1, may not be traced."
3314 msgstr "B<init>(8), el proceso con PID 1, no puede ser rastreado."
3315
3316 #. type: SH
3317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3319 #, no-wrap
3320 msgid "NOTES"
3321 msgstr "NOTAS"
3322
3323 #. type: Plain text
3324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3326 #, fuzzy
3327 #| msgid ""
3328 #| "Although arguments to B<ptrace> are interpreted according to the "
3329 #| "prototype given, GNU libc currently declares B<ptrace> as a variadic "
3330 #| "function with only the I<request> argument fixed. This means that "
3331 #| "unneeded trailing arguments may be omitted, though doing so makes use of "
3332 #| "undocumented B<gcc(1)> behavior."
3333 msgid ""
3334 "Although arguments to B<ptrace>() are interpreted according to the "
3335 "prototype given, glibc currently declares B<ptrace>() as a variadic "
3336 "function with only the I<op> argument fixed. It is recommended to always "
3337 "supply four arguments, even if the requested operation does not use them, "
3338 "setting unused/ignored arguments to I<0L> or I<(void\\ *)\\ 0>."
3339 msgstr ""
3340 "Aunque los argumentos de B<ptrace> se interpretan según el prototipo dado, "
3341 "GNU libc declara actualmente B<ptrace> como una función en la que sólo el "
3342 "argumento I<petición> tiene sentido. Esto significa que se pueden omitir "
3343 "los argumentos del final innecesarios, aunque al hacerlo así se hace uso de "
3344 "comportamiento de B<gcc(1)> sin documentar."
3345
3346 #. type: Plain text
3347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3349 msgid ""
3350 "A tracees parent continues to be the tracer even if that tracer calls "
3351 "B<execve>(2)."
3352 msgstr ""
3353
3354 #. See http://lkml.org/lkml/2008/5/8/375
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 ""
3359 "The layout of the contents of memory and the USER area are quite operating-"
3360 "system- and architecture-specific. The offset supplied, and the data "
3361 "returned, might not entirely match with the definition of I<struct user>."
3362 msgstr ""
3363
3364 #. type: Plain text
3365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3367 #, fuzzy
3368 #| msgid ""
3369 #| "The size of a \"word\" is determined by the OS variant (e.g., for 32-bit "
3370 #| "Linux it's 32 bits, etc.)."
3371 msgid ""
3372 "The size of a \"word\" is determined by the operating-system variant (e.g., "
3373 "for 32-bit Linux it is 32 bits)."
3374 msgstr ""
3375 "El tamaño de una \"palabra\" viene determinado por la variante del sistema "
3376 "operativo (por ejemplo, para un Linux de 32 bits es de 32 bits, etc.)"
3377
3378 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3379 #. type: Plain text
3380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3382 #, fuzzy
3383 #| msgid ""
3384 #| "This page documents the way the B<ptrace> call works currently in Linux. "
3385 #| "Its behavior differs noticeably on other flavors of Unix. In any case, "
3386 #| "use of B<ptrace> is highly OS- and architecture-specific."
3387 msgid ""
3388 "This page documents the way the B<ptrace>() call works currently in Linux. "
3389 "Its behavior differs significantly on other flavors of UNIX. In any case, "
3390 "use of B<ptrace>() is highly specific to the operating system and "
3391 "architecture."
3392 msgstr ""
3393 "Esta página documenta la forma en que funciona actualmente la llamada "
3394 "B<ptrace> en Linux. Su comportamiento difiere notablemente en otros Unix. En "
3395 "cualquier caso, el uso B<ptrace> es altamente específico del sistema "
3396 "operativo (y la arquitectura)."
3397
3398 #. type: SS
3399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3401 #, no-wrap
3402 msgid "Ptrace access mode checking"
3403 msgstr ""
3404
3405 #. type: Plain text
3406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3408 msgid ""
3409 "Various parts of the kernel-user-space API (not just B<ptrace>() "
3410 "operations), require so-called \"ptrace access mode\" checks, whose outcome "
3411 "determines whether an operation is permitted (or, in a few cases, causes a "
3412 "\"read\" operation to return sanitized data). These checks are performed in "
3413 "cases where one process can inspect sensitive information about, or in some "
3414 "cases modify the state of, another process. The checks are based on factors "
3415 "such as the credentials and capabilities of the two processes, whether or "
3416 "not the \"target\" process is dumpable, and the results of checks performed "
3417 "by any enabled Linux Security Module (LSM)\\[em]for example, SELinux, Yama, "
3418 "or Smack\\[em]and by the commoncap LSM (which is always invoked)."
3419 msgstr ""
3420
3421 #. commit 006ebb40d3d65338bd74abb03b945f8d60e362bd
3422 #. type: Plain text
3423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3425 msgid ""
3426 "Prior to Linux 2.6.27, all access checks were of a single type. Since Linux "
3427 "2.6.27, two access mode levels are distinguished:"
3428 msgstr ""
3429
3430 #. type: TP
3431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3433 #, no-wrap
3434 msgid "B<PTRACE_MODE_READ>"
3435 msgstr "B<PTRACE_MODE_READ>"
3436
3437 #. type: Plain text
3438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3440 msgid ""
3441 "For \"read\" operations or other operations that are less dangerous, such "
3442 "as: B<get_robust_list>(2); B<kcmp>(2); reading I</proc/>pidI</auxv>, I</proc/"
3443 ">pidI</environ>, or I</proc/>pidI</stat>; or B<readlink>(2) of a I</proc/"
3444 ">pidI</ns/*> file."
3445 msgstr ""
3446
3447 #. type: TP
3448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3450 #, no-wrap
3451 msgid "B<PTRACE_MODE_ATTACH>"
3452 msgstr "B<PTRACE_MODE_ATTACH>"
3453
3454 #
3455 #
3456 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3457 #. Regarding the above description of the distinction between
3458 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3459 #. That was the intent when the distinction was introduced, but it doesn't
3460 #. appear to have been properly maintained, e.g., there is now a common
3461 #. helper lock_trace() that is used for
3462 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3463 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3464 #. should review and make them consistent. There was also some debate
3465 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3466 #. back in the _ATTACH camp.
3467 #. type: Plain text
3468 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3469 #. Regarding the above description of the distinction between
3470 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3471 #. That was the intent when the distinction was introduced, but it doesn't
3472 #. appear to have been properly maintained, e.g. there is now a common
3473 #. helper lock_trace() that is used for
3474 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3475 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3476 #. should review and make them consistent. There was also some debate
3477 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3478 #. back in the _ATTACH camp.
3479 #. type: Plain text
3480 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3481 #. Regarding the above description of the distinction between
3482 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3483 #. That was the intent when the distinction was introduced, but it doesn't
3484 #. appear to have been properly maintained, e.g., there is now a common
3485 #. helper lock_trace() that is used for
3486 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3487 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3488 #. should review and make them consistent. There was also some debate
3489 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3490 #. back in the _ATTACH camp.
3491 #. type: Plain text
3492 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3493 #. Regarding the above description of the distinction between
3494 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3495 #. That was the intent when the distinction was introduced, but it doesn't
3496 #. appear to have been properly maintained, e.g. there is now a common
3497 #. helper lock_trace() that is used for
3498 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3499 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3500 #. should review and make them consistent. There was also some debate
3501 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3502 #. back in the _ATTACH camp.
3503 #. type: Plain text
3504 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3505 #. Regarding the above description of the distinction between
3506 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3507 #. That was the intent when the distinction was introduced, but it doesn't
3508 #. appear to have been properly maintained, e.g. there is now a common
3509 #. helper lock_trace() that is used for
3510 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3511 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3512 #. should review and make them consistent. There was also some debate
3513 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3514 #. back in the _ATTACH camp.
3515 #. type: Plain text
3516 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3517 #. Regarding the above description of the distinction between
3518 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3519 #. That was the intent when the distinction was introduced, but it doesn't
3520 #. appear to have been properly maintained, e.g., there is now a common
3521 #. helper lock_trace() that is used for
3522 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3523 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3524 #. should review and make them consistent. There was also some debate
3525 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3526 #. back in the _ATTACH camp.
3527 #. type: Plain text
3528 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3529 #. Regarding the above description of the distinction between
3530 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3531 #. That was the intent when the distinction was introduced, but it doesn't
3532 #. appear to have been properly maintained, e.g., there is now a common
3533 #. helper lock_trace() that is used for
3534 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3535 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3536 #. should review and make them consistent. There was also some debate
3537 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3538 #. back in the _ATTACH camp.
3539 #. type: Plain text
3540 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
3541 #. Regarding the above description of the distinction between
3542 #. PTRACE_MODE_READ and PTRACE_MODE_ATTACH, Stephen Smalley notes:
3543 #. That was the intent when the distinction was introduced, but it doesn't
3544 #. appear to have been properly maintained, e.g., there is now a common
3545 #. helper lock_trace() that is used for
3546 #. /proc/pid/{stack,syscall,personality} but checks PTRACE_MODE_ATTACH, and
3547 #. PTRACE_MODE_ATTACH is also used in timerslack_ns_write/show(). Likely
3548 #. should review and make them consistent. There was also some debate
3549 #. about proper handling of /proc/pid/fd. Arguably that one might belong
3550 #. back in the _ATTACH camp.
3551 #. type: Plain text
3552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3554 msgid ""
3555 "For \"write\" operations, or other operations that are more dangerous, such "
3556 "as: ptrace attaching (B<PTRACE_ATTACH>) to another process or calling "
3557 "B<process_vm_writev>(2). (B<PTRACE_MODE_ATTACH> was effectively the default "
3558 "before Linux 2.6.27.)"
3559 msgstr ""
3560
3561 #. commit caaee6234d05a58c5b4d05e7bf766131b810a657
3562 #. type: Plain text
3563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3565 msgid ""
3566 "Since Linux 4.5, the above access mode checks are combined (ORed) with one "
3567 "of the following modifiers:"
3568 msgstr ""
3569
3570 #. type: TP
3571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3573 #, no-wrap
3574 msgid "B<PTRACE_MODE_FSCREDS>"
3575 msgstr "B<PTRACE_MODE_FSCREDS>"
3576
3577 #. type: Plain text
3578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3580 msgid ""
3581 "Use the caller's filesystem UID and GID (see B<credentials>(7)) or "
3582 "effective capabilities for LSM checks."
3583 msgstr ""
3584
3585 #. type: TP
3586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3588 #, no-wrap
3589 msgid "B<PTRACE_MODE_REALCREDS>"
3590 msgstr "B<PTRACE_MODE_REALCREDS>"
3591
3592 #. type: Plain text
3593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3595 msgid ""
3596 "Use the caller's real UID and GID or permitted capabilities for LSM checks. "
3597 "This was effectively the default before Linux 4.5."
3598 msgstr ""
3599
3600 #. type: Plain text
3601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3603 msgid ""
3604 "Because combining one of the credential modifiers with one of the "
3605 "aforementioned access modes is typical, some macros are defined in the "
3606 "kernel sources for the combinations:"
3607 msgstr ""
3608
3609 #. type: TP
3610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3612 #, no-wrap
3613 msgid "B<PTRACE_MODE_READ_FSCREDS>"
3614 msgstr "B<PTRACE_MODE_READ_FSCREDS>"
3615
3616 #. type: Plain text
3617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3619 msgid "Defined as B<PTRACE_MODE_READ | PTRACE_MODE_FSCREDS>."
3620 msgstr ""
3621
3622 #. type: TP
3623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3625 #, no-wrap
3626 msgid "B<PTRACE_MODE_READ_REALCREDS>"
3627 msgstr "B<PTRACE_MODE_READ_REALCREDS>"
3628
3629 #. type: Plain text
3630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3632 msgid "Defined as B<PTRACE_MODE_READ | PTRACE_MODE_REALCREDS>."
3633 msgstr ""
3634
3635 #. type: TP
3636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3638 #, no-wrap
3639 msgid "B<PTRACE_MODE_ATTACH_FSCREDS>"
3640 msgstr "B<PTRACE_MODE_ATTACH_FSCREDS>"
3641
3642 #. type: Plain text
3643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3645 msgid "Defined as B<PTRACE_MODE_ATTACH | PTRACE_MODE_FSCREDS>."
3646 msgstr ""
3647
3648 #. type: TP
3649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3651 #, no-wrap
3652 msgid "B<PTRACE_MODE_ATTACH_REALCREDS>"
3653 msgstr "B<PTRACE_MODE_ATTACH_REALCREDS>"
3654
3655 #. type: Plain text
3656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3658 msgid "Defined as B<PTRACE_MODE_ATTACH | PTRACE_MODE_REALCREDS>."
3659 msgstr ""
3660
3661 #. type: Plain text
3662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3664 msgid "One further modifier can be ORed with the access mode:"
3665 msgstr ""
3666
3667 #. type: TP
3668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3670 #, no-wrap
3671 msgid "B<PTRACE_MODE_NOAUDIT> (since Linux 3.3)"
3672 msgstr "B<PTRACE_MODE_NOAUDIT> (desde Linux 3.3)"
3673
3674 #. commit 69f594a38967f4540ce7a29b3fd214e68a8330bd
3675 #. Just for /proc/pid/stat
3676 #. type: Plain text
3677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3679 msgid ""
3680 "Don't audit this access mode check. This modifier is employed for ptrace "
3681 "access mode checks (such as checks when reading I</proc/>pidI</stat>) that "
3682 "merely cause the output to be filtered or sanitized, rather than causing an "
3683 "error to be returned to the caller. In these cases, accessing the file is "
3684 "not a security violation and there is no reason to generate a security audit "
3685 "record. This modifier suppresses the generation of such an audit record for "
3686 "the particular access check."
3687 msgstr ""
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 "Note that all of the B<PTRACE_MODE_*> constants described in this subsection "
3694 "are kernel-internal, and not visible to user space. The constant names are "
3695 "mentioned here in order to label the various kinds of ptrace access mode "
3696 "checks that are performed for various system calls and accesses to various "
3697 "pseudofiles (e.g., under I</proc>). These names are used in other manual "
3698 "pages to provide a simple shorthand for labeling the different kernel checks."
3699 msgstr ""
3700
3701 #. type: Plain text
3702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3704 msgid ""
3705 "The algorithm employed for ptrace access mode checking determines whether "
3706 "the calling process is allowed to perform the corresponding action on the "
3707 "target process. (In the case of opening I</proc/>pid files, the \"calling "
3708 "process\" is the one opening the file, and the process with the "
3709 "corresponding PID is the \"target process\".) The algorithm is as follows:"
3710 msgstr ""
3711
3712 #. type: IP
3713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3715 #, no-wrap
3716 msgid "(1)"
3717 msgstr "(1)"
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 "If the calling thread and the target thread are in the same thread group, "
3724 "access is always allowed."
3725 msgstr ""
3726
3727 #. type: IP
3728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3730 #, no-wrap
3731 msgid "(2)"
3732 msgstr "(2)"
3733
3734 #. type: Plain text
3735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3737 msgid ""
3738 "If the access mode specifies B<PTRACE_MODE_FSCREDS>, then, for the check in "
3739 "the next step, employ the caller's filesystem UID and GID. (As noted in "
3740 "B<credentials>(7), the filesystem UID and GID almost always have the same "
3741 "values as the corresponding effective IDs.)"
3742 msgstr ""
3743
3744 #. type: Plain text
3745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3747 msgid ""
3748 "Otherwise, the access mode specifies B<PTRACE_MODE_REALCREDS>, so use the "
3749 "caller's real UID and GID for the checks in the next step. (Most APIs that "
3750 "check the caller's UID and GID use the effective IDs. For historical "
3751 "reasons, the B<PTRACE_MODE_REALCREDS> check uses the real IDs instead.)"
3752 msgstr ""
3753
3754 #. type: IP
3755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3757 #, no-wrap
3758 msgid "(3)"
3759 msgstr "(3)"
3760
3761 #. type: Plain text
3762 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3763 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3764 msgid "Deny access if I<neither> of the following is true:"
3765 msgstr ""
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 real, effective, and saved-set user IDs of the target match the caller's "
3772 "user ID, I<and> the real, effective, and saved-set group IDs of the target "
3773 "match the caller's group ID."
3774 msgstr ""
3775
3776 #. type: Plain text
3777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3779 msgid ""
3780 "The caller has the B<CAP_SYS_PTRACE> capability in the user namespace of the "
3781 "target."
3782 msgstr ""
3783
3784 #. type: IP
3785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3787 #, no-wrap
3788 msgid "(4)"
3789 msgstr "(4)"
3790
3791 #. type: Plain text
3792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3794 msgid ""
3795 "Deny access if the target process \"dumpable\" attribute has a value other "
3796 "than 1 (B<SUID_DUMP_USER>; see the discussion of B<PR_SET_DUMPABLE> in "
3797 "B<prctl>(2)), and the caller does not have the B<CAP_SYS_PTRACE> capability "
3798 "in the user namespace of the target process."
3799 msgstr ""
3800
3801 #. type: IP
3802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3804 #, no-wrap
3805 msgid "(5)"
3806 msgstr "(5)"
3807
3808 #. (in cap_ptrace_access_check()):
3809 #. type: Plain text
3810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3812 msgid ""
3813 "The kernel LSM I<security_ptrace_access_check>() interface is invoked to "
3814 "see if ptrace access is permitted. The results depend on the LSM(s). The "
3815 "implementation of this interface in the commoncap LSM performs the following "
3816 "steps:"
3817 msgstr ""
3818
3819 #. type: IP
3820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3822 #, no-wrap
3823 msgid "(5.1)"
3824 msgstr ""
3825
3826 #. type: Plain text
3827 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3828 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3829 msgid ""
3830 "If the access mode includes B<PTRACE_MODE_FSCREDS>, then use the caller's "
3831 "I<effective> capability set in the following check; otherwise (the access "
3832 "mode specifies B<PTRACE_MODE_REALCREDS>, so) use the caller's I<permitted> "
3833 "capability set."
3834 msgstr ""
3835
3836 #. type: IP
3837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3839 #, no-wrap
3840 msgid "(5.2)"
3841 msgstr ""
3842
3843 #. type: Plain text
3844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3846 msgid ""
3847 "The caller and the target process are in the same user namespace, and the "
3848 "caller's capabilities are a superset of the target process's I<permitted> "
3849 "capabilities."
3850 msgstr ""
3851
3852 #. type: Plain text
3853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3855 msgid ""
3856 "The caller has the B<CAP_SYS_PTRACE> capability in the target process's user "
3857 "namespace."
3858 msgstr ""
3859
3860 #. type: Plain text
3861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3863 msgid ""
3864 "Note that the commoncap LSM does not distinguish between B<PTRACE_MODE_READ> "
3865 "and B<PTRACE_MODE_ATTACH>."
3866 msgstr ""
3867
3868 #. type: IP
3869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3871 #, no-wrap
3872 msgid "(6)"
3873 msgstr "(6)"
3874
3875 #
3876 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
3877 #. type: Plain text
3878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3880 msgid ""
3881 "If access has not been denied by any of the preceding steps, then access is "
3882 "allowed."
3883 msgstr ""
3884
3885 #. type: SS
3886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3888 #, no-wrap
3889 msgid "/proc/sys/kernel/yama/ptrace_scope"
3890 msgstr ""
3891
3892 #. commit 2d514487faf188938a4ee4fb3464eeecfbdcf8eb
3893 #. type: Plain text
3894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3896 msgid ""
3897 "On systems with the Yama Linux Security Module (LSM) installed (i.e., the "
3898 "kernel was configured with B<CONFIG_SECURITY_YAMA>), the I</proc/sys/kernel/"
3899 "yama/ptrace_scope> file (available since Linux 3.4) can be used to restrict "
3900 "the ability to trace a process with B<ptrace>() (and thus also the ability "
3901 "to use tools such as B<strace>(1) and B<gdb>(1)). The goal of such "
3902 "restrictions is to prevent attack escalation whereby a compromised process "
3903 "can ptrace-attach to other sensitive processes (e.g., a GPG agent or an SSH "
3904 "session) owned by the user in order to gain additional credentials that may "
3905 "exist in memory and thus expand the scope of the attack."
3906 msgstr ""
3907
3908 #. type: Plain text
3909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3911 msgid "More precisely, the Yama LSM limits two types of operations:"
3912 msgstr ""
3913
3914 #. type: Plain text
3915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3917 msgid ""
3918 "Any operation that performs a ptrace access mode B<PTRACE_MODE_ATTACH> "
3919 "check\\[em]for example, B<ptrace>() B<PTRACE_ATTACH>. (See the \"Ptrace "
3920 "access mode checking\" discussion above.)"
3921 msgstr ""
3922
3923 #. type: Plain text
3924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3926 msgid "B<ptrace>() B<PTRACE_TRACEME>."
3927 msgstr "B<ptrace>() B<PTRACE_TRACEME>."
3928
3929 #. type: Plain text
3930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3932 msgid ""
3933 "A process that has the B<CAP_SYS_PTRACE> capability can update the I</proc/"
3934 "sys/kernel/yama/ptrace_scope> file with one of the following values:"
3935 msgstr ""
3936
3937 #. type: TP
3938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3940 #, no-wrap
3941 msgid "0 (\"classic ptrace permissions\")"
3942 msgstr ""
3943
3944 #. type: Plain text
3945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3947 msgid ""
3948 "No additional restrictions on operations that perform B<PTRACE_MODE_ATTACH> "
3949 "checks (beyond those imposed by the commoncap and other LSMs)."
3950 msgstr ""
3951
3952 #. type: Plain text
3953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3955 msgid "The use of B<PTRACE_TRACEME> is unchanged."
3956 msgstr ""
3957
3958 #. type: TP
3959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3961 #, no-wrap
3962 msgid "1 (\"restricted ptrace\") [default 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 msgid ""
3969 "When performing an operation that requires a B<PTRACE_MODE_ATTACH> check, "
3970 "the calling process must either have the B<CAP_SYS_PTRACE> capability in the "
3971 "user namespace of the target process or it must have a predefined "
3972 "relationship with the target process. By default, the predefined "
3973 "relationship is that the target process must be a descendant of the caller."
3974 msgstr ""
3975
3976 #. type: Plain text
3977 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
3978 #: opensuse-tumbleweed
3979 msgid ""
3980 "A target process can employ the B<prctl>(2) B<PR_SET_PTRACER> operation to "
3981 "declare an additional PID that is allowed to perform B<PTRACE_MODE_ATTACH> "
3982 "operations on the target. See the kernel source file I<Documentation/admin-"
3983 "guide/LSM/Yama.rst> for further details."
3984 msgstr ""
3985
3986 #. type: TP
3987 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3988 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3989 #, no-wrap
3990 msgid "2 (\"admin-only attach\")"
3991 msgstr ""
3992
3993 #. type: Plain text
3994 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3995 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3996 msgid ""
3997 "Only processes with the B<CAP_SYS_PTRACE> capability in the user namespace "
3998 "of the target process may perform B<PTRACE_MODE_ATTACH> operations or trace "
3999 "children that employ B<PTRACE_TRACEME>."
4000 msgstr ""
4001
4002 #. type: TP
4003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4005 #, no-wrap
4006 msgid "3 (\"no attach\")"
4007 msgstr ""
4008
4009 #. type: Plain text
4010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4012 msgid ""
4013 "No process may perform B<PTRACE_MODE_ATTACH> operations or trace children "
4014 "that employ B<PTRACE_TRACEME>."
4015 msgstr ""
4016
4017 #. type: Plain text
4018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4020 msgid "Once this value has been written to the file, it cannot be changed."
4021 msgstr ""
4022
4023 #
4024 #. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4025 #. type: Plain text
4026 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4027 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4028 msgid ""
4029 "With respect to values 1 and 2, note that creating a new user namespace "
4030 "effectively removes the protection offered by Yama. This is because a "
4031 "process in the parent user namespace whose effective UID matches the UID of "
4032 "the creator of a child namespace has all capabilities (including "
4033 "B<CAP_SYS_PTRACE>) when performing operations within the child user "
4034 "namespace (and further-removed descendants of that namespace). "
4035 "Consequently, when a process tries to use user namespaces to sandbox itself, "
4036 "it inadvertently weakens the protections offered by the Yama LSM."
4037 msgstr ""
4038
4039 #. type: SS
4040 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4041 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4042 #, no-wrap
4043 msgid "C library/kernel differences"
4044 msgstr "Diferencias núcleo / biblioteca C"
4045
4046 #. type: Plain text
4047 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4048 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4049 msgid ""
4050 "At the system call level, the B<PTRACE_PEEKTEXT>, B<PTRACE_PEEKDATA>, and "
4051 "B<PTRACE_PEEKUSER> operations have a different API: they store the result at "
4052 "the address specified by the I<data> parameter, and the return value is the "
4053 "error flag. The glibc wrapper function provides the API given in "
4054 "DESCRIPTION above, with the result being returned via the function return "
4055 "value."
4056 msgstr ""
4057
4058 #. type: SH
4059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4061 #, no-wrap
4062 msgid "BUGS"
4063 msgstr "ERRORES"
4064
4065 #. type: Plain text
4066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4068 msgid ""
4069 "On hosts with Linux 2.6 kernel headers, B<PTRACE_SETOPTIONS> is declared "
4070 "with a different value than the one for Linux 2.4. This leads to "
4071 "applications compiled with Linux 2.6 kernel headers failing when run on "
4072 "Linux 2.4. This can be worked around by redefining B<PTRACE_SETOPTIONS> to "
4073 "B<PTRACE_OLDSETOPTIONS>, if that is defined."
4074 msgstr ""
4075
4076 #. type: Plain text
4077 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4078 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4079 msgid ""
4080 "Group-stop notifications are sent to the tracer, but not to real parent. "
4081 "Last confirmed on 2.6.38.6."
4082 msgstr ""
4083
4084 #. #-#-#-#-# archlinux: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4085 #. Note from Denys Vlasenko:
4086 #. Here "exits" means any kind of death - _exit, exit_group,
4087 #. signal death. Signal death and exit_group cases are trivial,
4088 #. though: since signal death and exit_group kill all other threads
4089 #. too, "until all other threads exit" thing happens rather soon
4090 #. in these cases. Therefore, only _exit presents observably
4091 #. puzzling behavior to ptrace users: thread leader _exit's,
4092 #. but WIFEXITED isn't reported! We are trying to explain here
4093 #. why it is so.
4094 #. FIXME . need to test/verify this scenario
4095 #. type: Plain text
4096 #. #-#-#-#-# debian-trixie: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4097 #. Note from Denys Vlasenko:
4098 #. Here "exits" means any kind of death - _exit, exit_group,
4099 #. signal death. Signal death and exit_group cases are trivial,
4100 #. though: since signal death and exit_group kill all other threads
4101 #. too, "until all other threads exit" thing happens rather soon
4102 #. in these cases. Therefore, only _exit presents observably
4103 #. puzzling behavior to ptrace users: thread leader _exit's,
4104 #. but WIFEXITED isn't reported! We are trying to explain here
4105 #. why it is so.
4106 #. FIXME . need to test/verify this scenario
4107 #. type: Plain text
4108 #. #-#-#-#-# debian-unstable: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4109 #. Note from Denys Vlasenko:
4110 #. Here "exits" means any kind of death - _exit, exit_group,
4111 #. signal death. Signal death and exit_group cases are trivial,
4112 #. though: since signal death and exit_group kill all other threads
4113 #. too, "until all other threads exit" thing happens rather soon
4114 #. in these cases. Therefore, only _exit presents observably
4115 #. puzzling behavior to ptrace users: thread leader _exit's,
4116 #. but WIFEXITED isn't reported! We are trying to explain here
4117 #. why it is so.
4118 #. FIXME . need to test/verify this scenario
4119 #. type: Plain text
4120 #. #-#-#-#-# fedora-44: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4121 #. Note from Denys Vlasenko:
4122 #. Here "exits" means any kind of death - _exit, exit_group,
4123 #. signal death. Signal death and exit_group cases are trivial,
4124 #. though: since signal death and exit_group kill all other threads
4125 #. too, "until all other threads exit" thing happens rather soon
4126 #. in these cases. Therefore, only _exit presents observably
4127 #. puzzling behavior to ptrace users: thread leader _exit's,
4128 #. but WIFEXITED isn't reported! We are trying to explain here
4129 #. why it is so.
4130 #. FIXME . need to test/verify this scenario
4131 #. type: Plain text
4132 #. #-#-#-#-# fedora-rawhide: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4133 #. Note from Denys Vlasenko:
4134 #. Here "exits" means any kind of death - _exit, exit_group,
4135 #. signal death. Signal death and exit_group cases are trivial,
4136 #. though: since signal death and exit_group kill all other threads
4137 #. too, "until all other threads exit" thing happens rather soon
4138 #. in these cases. Therefore, only _exit presents observably
4139 #. puzzling behavior to ptrace users: thread leader _exit's,
4140 #. but WIFEXITED isn't reported! We are trying to explain here
4141 #. why it is so.
4142 #. FIXME . need to test/verify this scenario
4143 #. type: Plain text
4144 #. #-#-#-#-# mageia-cauldron: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4145 #. Note from Denys Vlasenko:
4146 #. Here "exits" means any kind of death - _exit, exit_group,
4147 #. signal death. Signal death and exit_group cases are trivial,
4148 #. though: since signal death and exit_group kill all other threads
4149 #. too, "until all other threads exit" thing happens rather soon
4150 #. in these cases. Therefore, only _exit presents observably
4151 #. puzzling behavior to ptrace users: thread leader _exit's,
4152 #. but WIFEXITED isn't reported! We are trying to explain here
4153 #. why it is so.
4154 #. FIXME . need to test/verify this scenario
4155 #. type: Plain text
4156 #. #-#-#-#-# opensuse-leap-16-1: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4157 #. Note from Denys Vlasenko:
4158 #. Here "exits" means any kind of death - _exit, exit_group,
4159 #. signal death. Signal death and exit_group cases are trivial,
4160 #. though: since signal death and exit_group kill all other threads
4161 #. too, "until all other threads exit" thing happens rather soon
4162 #. in these cases. Therefore, only _exit presents observably
4163 #. puzzling behavior to ptrace users: thread leader _exit's,
4164 #. but WIFEXITED isn't reported! We are trying to explain here
4165 #. why it is so.
4166 #. FIXME . need to test/verify this scenario
4167 #. type: Plain text
4168 #. #-#-#-#-# opensuse-tumbleweed: ptrace.2.pot (PACKAGE VERSION) #-#-#-#-#
4169 #. Note from Denys Vlasenko:
4170 #. Here "exits" means any kind of death - _exit, exit_group,
4171 #. signal death. Signal death and exit_group cases are trivial,
4172 #. though: since signal death and exit_group kill all other threads
4173 #. too, "until all other threads exit" thing happens rather soon
4174 #. in these cases. Therefore, only _exit presents observably
4175 #. puzzling behavior to ptrace users: thread leader _exit's,
4176 #. but WIFEXITED isn't reported! We are trying to explain here
4177 #. why it is so.
4178 #. FIXME . need to test/verify this scenario
4179 #. type: Plain text
4180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4182 msgid ""
4183 "If a thread group leader is traced and exits by calling B<_exit>(2), a "
4184 "B<PTRACE_EVENT_EXIT> stop will happen for it (if requested), but the "
4185 "subsequent B<WIFEXITED> notification will not be delivered until all other "
4186 "threads exit. As explained above, if one of other threads calls "
4187 "B<execve>(2), the death of the thread group leader will I<never> be "
4188 "reported. If the execed thread is not traced by this tracer, the tracer "
4189 "will never know that B<execve>(2) happened. One possible workaround is to "
4190 "B<PTRACE_DETACH> the thread group leader instead of restarting it in this "
4191 "case. Last confirmed on 2.6.38.6."
4192 msgstr ""
4193
4194 #. type: Plain text
4195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4197 msgid ""
4198 "A B<SIGKILL> signal may still cause a B<PTRACE_EVENT_EXIT> stop before "
4199 "actual signal death. This may be changed in the future; B<SIGKILL> is meant "
4200 "to always immediately kill tasks even under ptrace. Last confirmed on Linux "
4201 "3.13."
4202 msgstr ""
4203
4204 #. type: Plain text
4205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4207 msgid ""
4208 "Some system calls return with B<EINTR> if a signal was sent to a tracee, but "
4209 "delivery was suppressed by the tracer. (This is very typical operation: it "
4210 "is usually done by debuggers on every attach, in order to not introduce a "
4211 "bogus B<SIGSTOP>). As of Linux 3.2.9, the following system calls are "
4212 "affected (this list is likely incomplete): B<epoll_wait>(2), and B<read>(2) "
4213 "from an B<inotify>(7) file descriptor. The usual symptom of this bug is "
4214 "that when you attach to a quiescent process with the command"
4215 msgstr ""
4216
4217 #. type: Plain text
4218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4220 #, fuzzy, no-wrap
4221 #| msgid "ptrace - process trace"
4222 msgid "strace -p E<lt>process-IDE<gt>\n"
4223 msgstr "ptrace - rastreo de un proceso"
4224
4225 #. type: Plain text
4226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4228 msgid "then, instead of the usual and expected one-line output such as"
4229 msgstr ""
4230
4231 #. type: Plain text
4232 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
4233 #: opensuse-tumbleweed
4234 #, no-wrap
4235 msgid "restart_syscall(E<lt>...\\& resuming interrupted call ...E<gt>_\n"
4236 msgstr ""
4237
4238 #. type: Plain text
4239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4241 #, no-wrap
4242 msgid "select(6, [5], NULL, [5], NULL_\n"
4243 msgstr "select(6, [5], NULL, [5], NULL_\n"
4244
4245 #. type: Plain text
4246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4248 msgid ""
4249 "('_' denotes the cursor position), you observe more than one line. For "
4250 "example:"
4251 msgstr ""
4252
4253 #. type: Plain text
4254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4256 #, no-wrap
4257 msgid ""
4258 " clock_gettime(CLOCK_MONOTONIC, {15370, 690928118}) = 0\n"
4259 " epoll_wait(4,_\n"
4260 msgstr ""
4261 " clock_gettime(CLOCK_MONOTONIC, {15370, 690928118}) = 0\n"
4262 " epoll_wait(4,_\n"
4263
4264 #. type: Plain text
4265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4267 msgid ""
4268 "What is not visible here is that the process was blocked in "
4269 "B<epoll_wait>(2) before B<strace>(1) has attached to it. Attaching caused "
4270 "B<epoll_wait>(2) to return to user space with the error B<EINTR>. In this "
4271 "particular case, the program reacted to B<EINTR> by checking the current "
4272 "time, and then executing B<epoll_wait>(2) again. (Programs which do not "
4273 "expect such \"stray\" B<EINTR> errors may behave in an unintended way upon "
4274 "an B<strace>(1) attach.)"
4275 msgstr ""
4276
4277 #. type: Plain text
4278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4280 msgid ""
4281 "Contrary to the normal rules, the glibc wrapper for B<ptrace>() can set "
4282 "I<errno> to zero."
4283 msgstr ""
4284
4285 #. type: SH
4286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4288 #, no-wrap
4289 msgid "SEE ALSO"
4290 msgstr "VÉASE TAMBIÉN"
4291
4292 #. type: Plain text
4293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
4294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
4295 msgid ""
4296 "B<gdb>(1), B<ltrace>(1), B<strace>(1), B<clone>(2), B<execve>(2), "
4297 "B<fork>(2), B<gettid>(2), B<prctl>(2), B<seccomp>(2), B<sigaction>(2), "
4298 "B<tgkill>(2), B<vfork>(2), B<waitpid>(2), B<exec>(3), B<capabilities>(7), "
4299 "B<signal>(7)"
4300 msgstr ""
4301 "B<gdb>(1), B<ltrace>(1), B<strace>(1), B<clone>(2), B<execve>(2), "
4302 "B<fork>(2), B<gettid>(2), B<prctl>(2), B<seccomp>(2), B<sigaction>(2), "
4303 "B<tgkill>(2), B<vfork>(2), B<waitpid>(2), B<exec>(3), B<capabilities>(7), "
4304 "B<signal>(7)"
4305
4306 #. type: TH
4307 #: debian-trixie
4308 #, no-wrap
4309 msgid "2024-05-02"
4310 msgstr "2 Mayo 2024"
4311
4312 #. type: TH
4313 #: debian-trixie
4314 #, no-wrap
4315 msgid "Linux man-pages 6.9.1"
4316 msgstr "Páginas de Manual de Linux 6.9.1"
4317
4318 #. type: Plain text
4319 #: debian-trixie
4320 msgid "Standard C library (I<libc>, I<-lc>)"
4321 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
4322
4323 #. type: Plain text
4324 #: debian-trixie
4325 msgid ""
4326 "Read the tracee's registers. I<addr> specifies, in an architecture-"
4327 "dependent way, the type of registers to be read. B<NT_PRSTATUS> (with "
4328 "numerical value 1) usually results in reading of general-purpose "
4329 "registers. If the CPU has, for example, floating-point and/or vector "
4330 "registers, they can be retrieved by setting I<addr> to the corresponding "
4331 "B<NT_foo> constant. I<data> points to a B<struct iovec>, which describes "
4332 "the destination buffer's location and length. On return, the kernel "
4333 "modifies B<iov.len> to indicate the actual number of bytes returned."
4334 msgstr ""
4335
4336 #. type: Plain text
4337 #: debian-trixie fedora-44 fedora-rawhide
4338 #, no-wrap
4339 msgid ""
4340 "struct ptrace_syscall_info {\n"
4341 " __u8 op; /* Type of system call stop */\n"
4342 " __u32 arch; /* AUDIT_ARCH_* value; see seccomp(2) */\n"
4343 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
4344 " __u64 stack_pointer; /* CPU stack pointer */\n"
4345 " union {\n"
4346 " struct { /* op == PTRACE_SYSCALL_INFO_ENTRY */\n"
4347 " __u64 nr; /* System call number */\n"
4348 " __u64 args[6]; /* System call arguments */\n"
4349 " } entry;\n"
4350 " struct { /* op == PTRACE_SYSCALL_INFO_EXIT */\n"
4351 " __s64 rval; /* System call return value */\n"
4352 " __u8 is_error; /* System call error flag;\n"
4353 " Boolean: does rval contain\n"
4354 " an error value (-ERRCODE) or\n"
4355 " a nonerror return value? */\n"
4356 " } exit;\n"
4357 " struct { /* op == PTRACE_SYSCALL_INFO_SECCOMP */\n"
4358 " __u64 nr; /* System call number */\n"
4359 " __u64 args[6]; /* System call arguments */\n"
4360 " __u32 ret_data; /* SECCOMP_RET_DATA portion\n"
4361 " of SECCOMP_RET_TRACE\n"
4362 " return value */\n"
4363 " } seccomp;\n"
4364 " };\n"
4365 "};\n"
4366 msgstr ""
4367
4368 #. type: Plain text
4369 #: debian-trixie fedora-44 fedora-rawhide
4370 #, no-wrap
4371 msgid ""
4372 "*** we get syscall-enter-stop in thread 1: **\n"
4373 "PID1 execve(\"/bin/foo\", \"foo\" E<lt>unfinished ...E<gt>\n"
4374 "*** we issue PTRACE_SYSCALL for thread 1 **\n"
4375 "*** we get syscall-enter-stop in thread 2: **\n"
4376 "PID2 execve(\"/bin/bar\", \"bar\" E<lt>unfinished ...E<gt>\n"
4377 "*** we issue PTRACE_SYSCALL for thread 2 **\n"
4378 "*** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **\n"
4379 "*** we get syscall-exit-stop for PID0: **\n"
4380 "PID0 E<lt>... execve resumedE<gt> ) = 0\n"
4381 msgstr ""
4382
4383 #. commit 90bb766440f2147486a2acc3e793d7b8348b0c22
4384 #. type: Plain text
4385 #: debian-trixie fedora-44 fedora-rawhide
4386 msgid ""
4387 "A target process can employ the B<prctl>(2) B<PR_SET_PTRACER> operation to "
4388 "declare an additional PID that is allowed to perform B<PTRACE_MODE_ATTACH> "
4389 "operations on the target. See the kernel source file I<Documentation/admin-"
4390 "guide/LSM/Yama.rst> (or I<Documentation/security/Yama.txt> before Linux "
4391 "4.13) for further details."
4392 msgstr ""
4393
4394 #. type: Plain text
4395 #: debian-trixie fedora-44 fedora-rawhide
4396 #, no-wrap
4397 msgid "restart_syscall(E<lt>... resuming interrupted call ...E<gt>_\n"
4398 msgstr ""
4399
4400 #. type: TH
4401 #: fedora-44 fedora-rawhide
4402 #, no-wrap
4403 msgid "2024-11-17"
4404 msgstr "17 Noviembre 2024"
4405
4406 #. type: TH
4407 #: fedora-44 fedora-rawhide
4408 #, no-wrap
4409 msgid "Linux man-pages 6.13"
4410 msgstr "Páginas de Manual de Linux 6.13"
4411
4412 #. type: TH
4413 #: mageia-cauldron
4414 #, no-wrap
4415 msgid "Linux man-pages 6.17"
4416 msgstr "Páginas de Manual de Linux 6.17"
4417
4418 #. type: TH
4419 #: opensuse-leap-16-1 opensuse-tumbleweed
4420 #, no-wrap
4421 msgid "Linux man-pages (unreleased)"
4422 msgstr "Páginas de Manual de Linux (no publicadas)"