Debian Codegraph @

po/ar/man2/ptrace.2.po

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