Debian Codegraph @

po/nl/man2/ptrace.2.po

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