Debian Codegraph @

po/ar/man2/seccomp.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
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.30.2\n"
9 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
10 "PO-Revision-Date: 2026-06-05 23:56+0400\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=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 "seccomp"
26 msgstr "seccomp"
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 "seccomp - operate on Secure Computing state of the process"
52 msgstr "seccomp - العمل على حالة الحوسبة الآمنة للعملية"
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 #. Kees Cook noted: Anything that uses SECCOMP_RET_TRACE returns will
75 #. need <sys/ptrace.h>
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid ""
81 "B<#include E<lt>linux/seccomp.hE<gt>> /* Definition of B<SECCOMP_*>"
82 " constants */\n"
83 "B<#include E<lt>linux/filter.hE<gt>> /* Definition of B<struct sock_fprog>"
84 " */\n"
85 "B<#include E<lt>linux/audit.hE<gt>> /* Definition of B<AUDIT_*> constants"
86 " */\n"
87 "B<#include E<lt>linux/signal.hE<gt>> /* Definition of B<SIG*> constants */\n"
88 "B<#include E<lt>sys/ptrace.hE<gt>> /* Definition of B<PTRACE_*> constants"
89 " */\n"
90 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants"
91 " */\n"
92 "B<#include E<lt>unistd.hE<gt>>\n"
93 msgstr ""
94 "B<#include E<lt>linux/seccomp.hE<gt>> /* تعريف ثوابت B<SECCOMP_*> */\n"
95 "B<#include E<lt>linux/filter.hE<gt>> /* تعريف B<struct sock_fprog> */\n"
96 "B<#include E<lt>linux/audit.hE<gt>> /* تعريف ثوابت B<AUDIT_*> */\n"
97 "B<#include E<lt>linux/signal.hE<gt>> /* تعريف ثوابت B<SIG*> */\n"
98 "B<#include E<lt>sys/ptrace.hE<gt>> /* تعريف ثوابت B<PTRACE_*> */\n"
99 "B<#include E<lt>sys/syscall.hE<gt>> /* تعريف ثوابت B<SYS_*> */\n"
100 "B<#include E<lt>unistd.hE<gt>>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid ""
107 "B<int syscall(SYS_seccomp, unsigned int >I<operation>B<, unsigned int >I<"
108 "flags>B<,>\n"
109 "B< void *>I<args>B<);>\n"
110 msgstr ""
111 "B<int syscall(SYS_seccomp, unsigned int >I<operation>B<, unsigned int >I<"
112 "flags>B<,>\n"
113 "B< void *>I<args>B<);>\n"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "I<Note>: glibc provides no wrapper for B<seccomp>(), necessitating the use "
120 "of B<syscall>(2)."
121 msgstr ""
122 "I<ملاحظة>: لا توفر glibc غلافًا للدالة B<seccomp>()، مما يستلزم استخدام "
123 "B<syscall>(2)."
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "DESCRIPTION"
130 msgstr "الوصف"
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "The B<seccomp>() system call operates on the Secure Computing (seccomp) "
137 "state of the calling process."
138 msgstr ""
139 "يعمل استدعاء النظام B<seccomp>() على حالة الحوسبة الآمنة (seccomp) للعملية "
140 "المستدعِيَة."
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid "Currently, Linux supports the following I<operation> values:"
146 msgstr "يدعم لينكس حاليًا قيم I<operation> التالية:"
147
148 #. type: TP
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "B<SECCOMP_SET_MODE_STRICT>"
153 msgstr "B<SECCOMP_SET_MODE_STRICT>"
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The only system calls that the calling thread is permitted to make are "
160 "B<read>(2), B<write>(2), B<_exit>(2) (but not B<exit_group>(2)), and "
161 "B<sigreturn>(2). Other system calls result in the termination of the "
162 "calling thread, or termination of the entire process with the B<SIGKILL> "
163 "signal when there is only one thread. Strict secure computing mode is "
164 "useful for number-crunching applications that may need to execute untrusted "
165 "byte code, perhaps obtained by reading from a pipe or socket."
166 msgstr ""
167 "استدعاءات النظام الوحيدة التي يُسمح للخيط المستدعِي بإجرائها هي B<read>(2)، "
168 "وB<write>(2)، وB<_exit>(2) (وليس B<exit_group>(2))، وB<sigreturn>(2). تؤدي "
169 "استدعاءات النظام الأخرى إلى إنهاء الخيط المستدعِي، أو إنهاء العملية بأكملها "
170 "بإشارة B<SIGKILL> عندما لا يوجد سوى خيط واحد. يُعد وضع الحوسبة الآمنة الصارم "
171 "مفيدًا للتطبيقات كثيفة الحسابات التي قد تحتاج إلى تنفيذ شيفرة بايت غير "
172 "موثوقة، ربما استُحصل عليها بالقراءة من أنبوب أو مقبس."
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "Note that although the calling thread can no longer call B<sigprocmask>(2), "
179 "it can use B<sigreturn>(2) to block all signals apart from B<SIGKILL> and "
180 "B<SIGSTOP>. This means that B<alarm>(2) (for example) is not sufficient "
181 "for restricting the process's execution time. Instead, to reliably "
182 "terminate the process, B<SIGKILL> must be used. This can be done by using "
183 "B<timer_create>(2) with B<SIGEV_SIGNAL> and I<sigev_signo> set to "
184 "B<SIGKILL>, or by using B<setrlimit>(2) to set the hard limit for "
185 "B<RLIMIT_CPU>."
186 msgstr ""
187 "لاحظ أنه على الرغم من أن الخيط المستدعِي لم يعد بإمكانه استدعاء "
188 "B<sigprocmask>(2)، إلا أنه يمكنه استخدام B<sigreturn>(2) لحجب جميع الإشارات "
189 "باستثناء B<SIGKILL> وB<SIGSTOP>. وهذا يعني أن B<alarm>(2) (على سبيل المثال) "
190 "ليس كافيًا لتقييد وقت تنفيذ العملية. وبدلاً من ذلك، ولإنهاء العملية بشكل "
191 "موثوق، يجب استخدام B<SIGKILL>. يمكن القيام بذلك باستخدام B<timer_create>(2) "
192 "مع ضبط B<SIGEV_SIGNAL> وI<sigev_signo> على B<SIGKILL>، أو باستخدام "
193 "B<setrlimit>(2) لضبط الحد الصارم لـ B<RLIMIT_CPU>."
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "This operation is available only if the kernel is configured with "
200 "B<CONFIG_SECCOMP> enabled."
201 msgstr "تتوفر هذه العملية فقط إذا تم ضبط النواة مع تمكين B<CONFIG_SECCOMP>."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid "The value of I<flags> must be 0, and I<args> must be NULL."
207 msgstr "يجب أن تكون قيمة I<flags> تساوي 0، ويجب أن يكون I<args> هو NULL."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid "This operation is functionally identical to the call:"
213 msgstr "هذه العملية متطابقة وظيفيًا مع الاستدعاء:"
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT);\n"
220 msgstr "prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT);\n"
221
222 #. type: TP
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "B<SECCOMP_SET_MODE_FILTER>"
227 msgstr "B<SECCOMP_SET_MODE_FILTER>"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #| msgid ""
233 #| "The system calls allowed are defined by a pointer to a Berkeley Packet "
234 #| "Filter (BPF) passed via I<args>. This argument is a pointer to a "
235 #| "I<struct\\~sock_fprog>; it can be designed to filter arbitrary system "
236 #| "calls and system call arguments. If the filter is invalid, B<seccomp>() "
237 #| "fails, returning B<EINVAL> in I<errno>."
238 msgid ""
239 "The system calls allowed are defined by a pointer to a Berkeley Packet "
240 "Filter (BPF) passed via I<args>. This argument is a pointer to a I<struct\\ "
241 "sock_fprog>; it can be designed to filter arbitrary system calls and system "
242 "call arguments. If the filter is invalid, B<seccomp>() fails, returning "
243 "B<EINVAL> in I<errno>."
244 msgstr ""
245 "تُحدد استدعاءات النظام المسموح بها بواسطة مؤشر إلى مرشح حزم بيركلي (BPF)"
246 " يُمرر "
247 "عبر I<args>. هذا المعامل هو مؤشر إلى I<struct\\ sock_fprog>؛ يمكن تصميمه "
248 "لترشيح استدعاءات نظام ومعاملات استدعاء نظام عشوائية. إذا كان المرشح غير "
249 "صالح، يفشل B<seccomp>()، ويعيد B<EINVAL> في I<errno>."
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "If B<fork>(2) or B<clone>(2) is allowed by the filter, any child processes "
256 "will be constrained to the same system call filters as the parent. If "
257 "B<execve>(2) is allowed, the existing filters will be preserved across a "
258 "call to B<execve>(2)."
259 msgstr ""
260 "إذا سمح المرشح بـ B<fork>(2) أو B<clone>(2)، فستُقيد أي عمليات وليدة بنفس "
261 "مرشحات استدعاء النظام الخاصة بالأب. إذا سُمح بـ B<execve>(2)، فستُحفظ"
262 " المرشحات "
263 "الحالية عبر استدعاء B<execve>(2)."
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 "In order to use the B<SECCOMP_SET_MODE_FILTER> operation, either the calling "
270 "thread must have the B<CAP_SYS_ADMIN> capability in its user namespace, or "
271 "the thread must already have the I<no_new_privs> bit set. If that bit was "
272 "not already set by an ancestor of this thread, the thread must make the "
273 "following call:"
274 msgstr ""
275 "من أجل استخدام عملية B<SECCOMP_SET_MODE_FILTER>، إما أن يمتلك الخيط المستدعِي "
276 "صلاحية B<CAP_SYS_ADMIN> في مساحة اسم المستخدم الخاصة به، أو يجب أن يكون بت "
277 "I<no_new_privs> مضبوطًا بالفعل لدى الخيط. إذا لم يكن هذا البت مضبوطًا بالفعل "
278 "من قِبل سلف لهذا الخيط، فيجب على الخيط إجراء الاستدعاء التالي:"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "prctl(PR_SET_NO_NEW_PRIVS, 1);\n"
285 msgstr "prctl(PR_SET_NO_NEW_PRIVS, 1);\n"
286
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 "Otherwise, the B<SECCOMP_SET_MODE_FILTER> operation fails and returns "
292 "B<EACCES> in I<errno>. This requirement ensures that an unprivileged "
293 "process cannot apply a malicious filter and then invoke a set-user-ID or "
294 "other privileged program using B<execve>(2), thus potentially compromising "
295 "that program. (Such a malicious filter might, for example, cause an attempt "
296 "to use B<setuid>(2) to set the caller's user IDs to nonzero values to "
297 "instead return 0 without actually making the system call. Thus, the program "
298 "might be tricked into retaining superuser privileges in circumstances where "
299 "it is possible to influence it to do dangerous things because it did not "
300 "actually drop privileges.)"
301 msgstr ""
302 "خلاف ذلك، تفشل عملية B<SECCOMP_SET_MODE_FILTER> وتُعيد B<EACCES> في I<errno>. "
303 "يضمن هذا المتطلب عدم تمكن عملية غير مميزة من تطبيق مرشح خبيث ثم استدعاء "
304 "برنامج bit-set-user-ID أو أي برنامج مميز آخر باستخدام B<execve>(2)، مما قد "
305 "يؤدي إلى اختراق ذلك البرنامج. (قد يتسبب مثل هذا المرشح الخبيث، على سبيل "
306 "المثال، في جعل محاولة استخدام B<setuid>(2) لضبط معرفات مستخدم المستدعِي على "
307 "قيم غير صفرية تُعيد القيمة 0 بدلاً من ذلك دون إجراء استدعاء النظام فعليًا. "
308 "وبالتالي، قد يُخدع البرنامج للاحتفاظ بامتيازات المستخدم الخارق في ظروف يمكن "
309 "فيها التأثير عليه للقيام بأشياء خطيرة لأنه لم يتخلَ فعليًا عن الامتيازات)."
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "If B<prctl>(2) or B<seccomp>() is allowed by the attached filter, further "
316 "filters may be added. This will increase evaluation time, but allows for "
317 "further reduction of the attack surface during execution of a thread."
318 msgstr ""
319 "إذا سُمح بـ B<prctl>(2) أو B<seccomp>() بواسطة المرشح الملحق، فيمكن إضافة "
320 "المزيد من المرشحات. سيؤدي هذا إلى زيادة وقت التقييم، ولكنه يسمح بمزيد من "
321 "تقليل سطح الهجوم أثناء تنفيذ الخيط."
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "The B<SECCOMP_SET_MODE_FILTER> operation is available only if the kernel is "
328 "configured with B<CONFIG_SECCOMP_FILTER> enabled."
329 msgstr ""
330 "تتوفر عملية B<SECCOMP_SET_MODE_FILTER> فقط إذا ضُبطت النواة مع تمكين "
331 "B<CONFIG_SECCOMP_FILTER>."
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid ""
337 "When I<flags> is 0, this operation is functionally identical to the call:"
338 msgstr ""
339 "عندما يكون I<flags> مساويًا لـ 0، تكون هذه العملية متطابقة وظيفيًا مع "
340 "الاستدعاء:"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, args);\n"
347 msgstr "prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, args);\n"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "The recognized I<flags> are:"
353 msgstr "الرايات (I<flags>) المعروفة هي:"
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<SECCOMP_FILTER_FLAG_LOG> (since Linux 4.14)"
360 msgstr "B<SECCOMP_FILTER_FLAG_LOG> (منذ لينكس 4.14)"
361
362 #. commit e66a39977985b1e69e17c4042cb290768eca9b02
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "All filter return actions except B<SECCOMP_RET_ALLOW> should be logged. An "
368 "administrator may override this filter flag by preventing specific actions "
369 "from being logged via the I</proc/sys/kernel/seccomp/actions_logged> file."
370 msgstr ""
371 "ينبغي تسجيل جميع إجراءات إرجاع المرشح باستثناء B<SECCOMP_RET_ALLOW>. يمكن "
372 "للمسؤول تجاوز راية المرشح هذه عن طريق منع تسجيل إجراءات معينة عبر ملف I</"
373 "proc/sys/kernel/seccomp/actions_logged>."
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> (since Linux 5.0)"
380 msgstr "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> (منذ لينكس 5.0)"
381
382 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "After successfully installing the filter program, return a new user-space "
388 "notification file descriptor. (The close-on-exec flag is set for the file "
389 "descriptor.) When the filter returns B<SECCOMP_RET_USER_NOTIF> a "
390 "notification will be sent to this file descriptor."
391 msgstr ""
392 "بعد تثبيت برنامج المرشح بنجاح، يُعاد واصف ملف إشعار جديد في مساحة المستخدم. "
393 "(تُضبط راية الإغلاق عند التنفيذ close-on-exec لواصف الملف). عندما يُعيد"
394 " المرشح "
395 "B<SECCOMP_RET_USER_NOTIF>، سيُرسل إشعار إلى واصف الملف هذا."
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "At most one seccomp filter using the B<SECCOMP_FILTER_FLAG_NEW_LISTENER> "
402 "flag can be installed for a thread."
403 msgstr ""
404 "يمكن تثبيت مرشح seccomp واحد كحد أقصى باستخدام راية "
405 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> لكل خيط."
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid "See B<seccomp_unotify>(2) for further details."
411 msgstr "انظر B<seccomp_unotify>(2) لمزيد من التفاصيل."
412
413 #. type: TP
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "B<SECCOMP_FILTER_FLAG_SPEC_ALLOW> (since Linux 4.17)"
418 msgstr "B<SECCOMP_FILTER_FLAG_SPEC_ALLOW> (منذ لينكس 4.17)"
419
420 #. commit 00a02d0c502a06d15e07b857f8ff921e3e402675
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "Disable Speculative Store Bypass mitigation."
425 msgstr "عطّل تخفيف تجاوز التخزين التخميني (Speculative Store Bypass)."
426
427 #. type: TP
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "B<SECCOMP_FILTER_FLAG_TSYNC>"
432 msgstr "B<SECCOMP_FILTER_FLAG_TSYNC>"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "When adding a new filter, synchronize all other threads of the calling "
439 "process to the same seccomp filter tree. A \"filter tree\" is the ordered "
440 "list of filters attached to a thread. (Attaching identical filters in "
441 "separate B<seccomp>() calls results in different filters from this "
442 "perspective.)"
443 msgstr ""
444 "عند إضافة مرشح جديد، قم بمزامنة جميع الخيوط الأخرى للعملية المستدعِيَة مع"
445 " شجرة "
446 "مرشحات seccomp نفسها. \"شجرة المرشحات\" هي القائمة المرتبة للمرشحات الملحقة "
447 "بالخيط. (إلحاق مرشحات متطابقة في استدعاءات B<seccomp>() منفصلة يؤدي إلى "
448 "مرشحات مختلفة من هذا المنظور)."
449
450 #. type: Plain text
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 msgid ""
454 "If any thread cannot synchronize to the same filter tree, the call will not "
455 "attach the new seccomp filter, and will fail, returning the first thread ID "
456 "found that cannot synchronize. Synchronization will fail if another thread "
457 "in the same process is in B<SECCOMP_MODE_STRICT> or if it has attached new "
458 "seccomp filters to itself, diverging from the calling thread's filter tree."
459 msgstr ""
460 "إذا تعذر على أي خيط المزامنة مع نفس شجرة المرشحات، فلن يقوم الاستدعاء بإلحاق "
461 "مرشح seccomp الجديد، وسيفشل، مع إرجاع أول معرف خيط عُثر عليه لا يمكنه "
462 "المزامنة. ستفشل المزامنة إذا كان خيط آخر في نفس العملية في وضع "
463 "B<SECCOMP_MODE_STRICT> أو إذا ألحق مرشحات seccomp جديدة بنفسه، مما يؤدي إلى "
464 "تباعده عن شجرة مرشحات الخيط المستدعِي."
465
466 #. type: TP
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "B<SECCOMP_GET_ACTION_AVAIL> (since Linux 4.14)"
471 msgstr "B<SECCOMP_GET_ACTION_AVAIL> (منذ لينكس 4.14)"
472
473 #. commit d612b1fd8010d0d67b5287fe146b8b55bcbb8655
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "Test to see if an action is supported by the kernel. This operation is "
479 "helpful to confirm that the kernel knows of a more recently added filter "
480 "return action since the kernel treats all unknown actions as "
481 "B<SECCOMP_RET_KILL_PROCESS>."
482 msgstr ""
483 "اختبر لترى ما إذا كان الإجراء مدعومًا من قبل النواة. هذه العملية مفيدة للتأكد "
484 "من أن النواة تعرف إجراء إرجاع مرشح أضيف حديثًا، لأن النواة تعامل جميع "
485 "الإجراءات المجهولة على أنها B<SECCOMP_RET_KILL_PROCESS>."
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid ""
491 "The value of I<flags> must be 0, and I<args> must be a pointer to an "
492 "unsigned 32-bit filter return action."
493 msgstr ""
494 "يجب أن تكون قيمة I<flags> تساوي 0، ويجب أن يكون I<args> مؤشرًا إلى إجراء "
495 "إرجاع مرشح 32-بت غير موقع."
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<SECCOMP_GET_NOTIF_SIZES> (since Linux 5.0)"
502 msgstr "B<SECCOMP_GET_NOTIF_SIZES> (منذ لينكس 5.0)"
503
504 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "Get the sizes of the seccomp user-space notification structures. Since "
510 "these structures may evolve and grow over time, this command can be used to "
511 "determine how much memory to allocate for sending and receiving "
512 "notifications."
513 msgstr ""
514 "احصل على أحجام هياكل إشعارات seccomp في مساحة المستخدم. وبما أن هذه الهياكل "
515 "قد تتطور وتكبر بمرور الوقت، يمكن استخدام هذا الأمر لتحديد مقدار الذاكرة التي "
516 "يجب تخصيصها لإرسال واستلام الإشعارات."
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "The value of I<flags> must be 0, and I<args> must be a pointer to a I<struct "
523 "seccomp_notif_sizes>, which has the following form:"
524 msgstr ""
525 "يجب أن تكون قيمة I<flags> تساوي 0، ويجب أن يكون I<args> مؤشرًا إلى I<struct "
526 "seccomp_notif_sizes>، الذي له الشكل التالي:"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid ""
533 "struct seccomp_notif_sizes\n"
534 " __u16 seccomp_notif; /* Size of notification structure */\n"
535 " __u16 seccomp_notif_resp; /* Size of response structure */\n"
536 " __u16 seccomp_data; /* Size of \\[aq]struct seccomp_data\\[aq] */\n"
537 "};\n"
538 msgstr ""
539 "struct seccomp_notif_sizes\n"
540 " __u16 seccomp_notif; /* حجم هيكل الإشعار */\n"
541 " __u16 seccomp_notif_resp; /* حجم هيكل الاستجابة */\n"
542 " __u16 seccomp_data; /* حجم \\[aq]struct seccomp_data\\[aq] */\n"
543 "};\n"
544
545 #. type: SS
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "Filters"
550 msgstr "المرشحات"
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "When adding filters via B<SECCOMP_SET_MODE_FILTER>, I<args> points to a "
557 "filter program:"
558 msgstr ""
559 "عند إضافة مرشحات عبر B<SECCOMP_SET_MODE_FILTER>، يشير I<args> إلى برنامج "
560 "مرشح:"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid ""
567 "struct sock_fprog {\n"
568 " unsigned short len; /* Number of BPF instructions */\n"
569 " struct sock_filter *filter; /* Pointer to array of\n"
570 " BPF instructions */\n"
571 "};\n"
572 msgstr ""
573 "struct sock_fprog {\n"
574 " unsigned short len; /* عدد تعليمات BPF */\n"
575 " struct sock_filter *filter; /* مؤشر إلى مصفوفة من\n"
576 " تعليمات BPF */\n"
577 "};\n"
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid "Each program must contain one or more BPF instructions:"
583 msgstr "يجب أن يحتوي كل برنامج على تعليمة BPF واحدة أو أكثر:"
584
585 #. type: Plain text
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid ""
590 "struct sock_filter { /* Filter block */\n"
591 " __u16 code; /* Actual filter code */\n"
592 " __u8 jt; /* Jump true */\n"
593 " __u8 jf; /* Jump false */\n"
594 " __u32 k; /* Generic multiuse field */\n"
595 "};\n"
596 msgstr ""
597 "struct sock_filter { /* كتلة المرشح */\n"
598 " __u16 code; /* شيفرة المرشح الفعلية */\n"
599 " __u8 jt; /* قفز في حال الصحة */\n"
600 " __u8 jf; /* قفز في حال الخطأ */\n"
601 " __u32 k; /* حقل عام متعدد الاستخدامات */\n"
602 "};\n"
603
604 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
605 #. Quoting Kees Cook:
606 #. If BPF even allows changing the data, it's not copied back to
607 #. the syscall when it runs. Anything wanting to do things like
608 #. that would need to use ptrace to catch the call and directly
609 #. modify the registers before continuing with the call.
610 #. type: Plain text
611 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
612 #. Quoting Kees Cook:
613 #. If BPF even allows changing the data, it's not copied back to
614 #. the syscall when it runs. Anything wanting to do things like
615 #. that would need to use ptrace to catch the call and directly
616 #. modify the registers before continuing with the call.
617 #. type: Plain text
618 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
619 #. Quoting Kees Cook:
620 #. If BPF even allows changing the data, it's not copied back to
621 #. the syscall when it runs. Anything wanting to do things like
622 #. that would need to use ptrace to catch the call and directly
623 #. modify the registers before continuing with the call.
624 #. type: Plain text
625 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
626 #. Quoting Kees Cook:
627 #. If BPF even allows changing the data, it's not copied back to
628 #. the syscall when it runs. Anything wanting to do things like
629 #. that would need to use ptrace to catch the call and directly
630 #. modify the registers before continuing with the call.
631 #. type: Plain text
632 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
633 #. Quoting Kees Cook:
634 #. If BPF even allows changing the data, it's not copied back to
635 #. the syscall when it runs. Anything wanting to do things like
636 #. that would need to use ptrace to catch the call and directly
637 #. modify the registers before continuing with the call.
638 #. type: Plain text
639 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
640 #. Quoting Kees Cook:
641 #. If BPF even allows changing the data, it's not copied back to
642 #. the syscall when it runs. Anything wanting to do things like
643 #. that would need to use ptrace to catch the call and directly
644 #. modify the registers before continuing with the call.
645 #. type: Plain text
646 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
647 #. Quoting Kees Cook:
648 #. If BPF even allows changing the data, it's not copied back to
649 #. the syscall when it runs. Anything wanting to do things like
650 #. that would need to use ptrace to catch the call and directly
651 #. modify the registers before continuing with the call.
652 #. type: Plain text
653 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
654 #. Quoting Kees Cook:
655 #. If BPF even allows changing the data, it's not copied back to
656 #. the syscall when it runs. Anything wanting to do things like
657 #. that would need to use ptrace to catch the call and directly
658 #. modify the registers before continuing with the call.
659 #. type: Plain text
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 msgid ""
663 "When executing the instructions, the BPF program operates on the system call "
664 "information made available (i.e., use the B<BPF_ABS> addressing mode) as a "
665 "(read-only) buffer of the following form:"
666 msgstr ""
667 "عند تنفيذ التعليمات، يعمل برنامج BPF على معلومات استدعاء النظام المتاحة (أي "
668 "باستخدام وضع العنونة B<BPF_ABS>) كدرء (للقراءة فقط) بالشكل التالي:"
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 #, no-wrap
674 msgid ""
675 "struct seccomp_data {\n"
676 " int nr; /* System call number */\n"
677 " __u32 arch; /* AUDIT_ARCH_* value\n"
678 " (see E<lt>linux/audit.hE<gt>) */\n"
679 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
680 " __u64 args[6]; /* Up to 6 system call arguments */\n"
681 "};\n"
682 msgstr ""
683 "struct seccomp_data {\n"
684 " int nr; /* رقم استدعاء النظام */\n"
685 " __u32 arch; /* قيمة AUDIT_ARCH_*\n"
686 " (انظر E<lt>linux/audit.hE<gt>) */\n"
687 " __u64 instruction_pointer; /* مؤشر تعليمات وحدة المعالجة المركزية */\n"
688 " __u64 args[6]; /* ما يصل إلى 6 معاملات لاستدعاء النظام */\n"
689 "};\n"
690
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 msgid ""
695 "Because numbering of system calls varies between architectures and some "
696 "architectures (e.g., x86-64) allow user-space code to use the calling "
697 "conventions of multiple architectures (and the convention being used may "
698 "vary over the life of a process that uses B<execve>(2) to execute binaries "
699 "that employ the different conventions), it is usually necessary to verify "
700 "the value of the I<arch> field."
701 msgstr ""
702 "نظرًا لأن ترقيم استدعاءات النظام يختلف بين البنيات المعمارية، وتسمح بعض "
703 "البنيات (مثل x86-64) لشفرة مساحة المستخدم باستخدام اصطلاحات الاستدعاء لبنيات "
704 "متعددة (وقد يختلف الاصطلاح المستخدم خلال عمر العملية التي تستخدم "
705 "B<execve>(2) لتنفيذ ملفات ثنائية تستخدم اصطلاحات مختلفة)، فمن الضروري عادةً "
706 "التحقق من قيمة حقل I<arch>."
707
708 #. type: Plain text
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 msgid ""
712 "It is strongly recommended to use an allow-list approach whenever possible "
713 "because such an approach is more robust and simple. A deny-list will have "
714 "to be updated whenever a potentially dangerous system call is added (or a "
715 "dangerous flag or option if those are deny-listed), and it is often possible "
716 "to alter the representation of a value without altering its meaning, leading "
717 "to a deny-list bypass. See also I<Caveats> below."
718 msgstr ""
719 "يوصى بشدة باستخدام نهج \"قائمة السماح\" كلما أمكن ذلك لأن مثل هذا النهج أكثر "
720 "قوة وبساطة. سيتعين تحديث \"قائمة المنع\" كلما أُضيف استدعاء نظام يحتمل أن "
721 "يكون خطيرًا (أو راية أو خيار خطير إذا كانت هذه مدرجة في قائمة المنع)، وغالبًا "
722 "ما يكون من الممكن تغيير تمثيل القيمة دون تغيير معناها، مما يؤدي إلى تجاوز "
723 "قائمة المنع. انظر أيضًا I<Caveats> أدناه."
724
725 #
726 #. As noted by Dave Drysdale in a note at the end of
727 #. https://lwn.net/Articles/604515/
728 #. One additional detail to point out for the x32 ABI case:
729 #. the syscall number gets a high bit set (__X32_SYSCALL_BIT),
730 #. to mark it as an x32 call.
731 #. If x32 support is included in the kernel, then __SYSCALL_MASK
732 #. will have a value that is not all-ones, and this will trigger
733 #. an extra instruction in system_call to mask off the extra bit,
734 #. so that the syscall table indexing still works.
735 #. type: Plain text
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 msgid ""
739 "The I<arch> field is not unique for all calling conventions. The x86-64 ABI "
740 "and the x32 ABI both use B<AUDIT_ARCH_X86_64> as I<arch>, and they run on "
741 "the same processors. Instead, the mask B<__X32_SYSCALL_BIT> is used on the "
742 "system call number to tell the two ABIs apart."
743 msgstr ""
744 "حقل I<arch> ليس فريدًا لجميع اصطلاحات الاستدعاء. يستخدم كل من x86-64 ABI وx32 "
745 "ABI القيمة B<AUDIT_ARCH_X86_64> كـ I<arch>، ويعملان على نفس المعالجات. وبدلاً "
746 "من ذلك، يُستخدم القناع B<__X32_SYSCALL_BIT> في رقم استدعاء النظام للتمييز بين "
747 "واجهتي التطبيق الثنائية (ABIs)."
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "This means that a policy must either deny all syscalls with "
754 "B<__X32_SYSCALL_BIT> or it must recognize syscalls with and without "
755 "B<__X32_SYSCALL_BIT> set. A list of system calls to be denied based on "
756 "I<nr> that does not also contain I<nr> values with B<__X32_SYSCALL_BIT> set "
757 "can be bypassed by a malicious program that sets B<__X32_SYSCALL_BIT>."
758 msgstr ""
759 "هذا يعني أن السياسة يجب أن تمنع جميع استدعاءات النظام مع "
760 "B<__X32_SYSCALL_BIT> أو يجب أن تتعرف على الاستدعاءات مع ضبط "
761 "B<__X32_SYSCALL_BIT> وبدونه. قائمة استدعاءات النظام التي سيتم منعها بناءً على "
762 "I<nr> والتي لا تحتوي أيضًا على قيم I<nr> مع ضبط B<__X32_SYSCALL_BIT> يمكن "
763 "تجاوزها بواسطة برنامج خبيث يضبط B<__X32_SYSCALL_BIT>."
764
765 #. commit 6365b842aae4490ebfafadfc6bb27a6d3cc54757
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid ""
770 "Additionally, kernels prior to Linux 5.4 incorrectly permitted I<nr> in the "
771 "ranges 512-547 as well as the corresponding non-x32 syscalls ORed with "
772 "B<__X32_SYSCALL_BIT>. For example, I<nr> == 521 and I<nr> == (101 | "
773 "B<__X32_SYSCALL_BIT>) would result in invocations of B<ptrace>(2) with "
774 "potentially confused x32-vs-x86_64 semantics in the kernel. Policies "
775 "intended to work on kernels before Linux 5.4 must ensure that they deny or "
776 "otherwise correctly handle these system calls. On Linux 5.4 and newer, such "
777 "system calls will fail with the error B<ENOSYS>, without doing anything."
778 msgstr ""
779 "بالإضافة إلى ذلك، سمحت النوى السابقة للينكس 5.4 بشكل غير صحيح بـ I<nr> في "
780 "النطاقات 512-547 بالإضافة إلى استدعاءات النظام المقابلة لغير x32 التي أُجريت "
781 "عليها عملية OR مع B<__X32_SYSCALL_BIT>. على سبيل المثال، I<nr> == 521 و "
782 "I<nr> == (101 | B<__X32_SYSCALL_BIT>) سيؤديان إلى استدعاءات B<ptrace>(2) مع "
783 "دلالات x32 مقابل x86_64 قد تكون مشوشة في النواة. السياسات المخصصة للعمل على "
784 "نوى قبل لينكس 5.4 يجب أن تضمن منع هذه الاستدعاءات أو التعامل معها بشكل صحيح. "
785 "في لينكس 5.4 والأحدث، ستفشل استدعاءات النظام هذه مع الخطأ B<ENOSYS>، دون "
786 "القيام بأي شيء."
787
788 #. type: Plain text
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 msgid ""
792 "The I<instruction_pointer> field provides the address of the machine-"
793 "language instruction that performed the system call. This might be useful "
794 "in conjunction with the use of I</proc/>pidI</maps> to perform checks based "
795 "on which region (mapping) of the program made the system call. (Probably, "
796 "it is wise to lock down the B<mmap>(2) and B<mprotect>(2) system calls to "
797 "prevent the program from subverting such checks.)"
798 msgstr ""
799 "يوفر حقل I<instruction_pointer> عنوان تعليمة لغة الآلة التي أجرت استدعاء "
800 "النظام. قد يكون هذا مفيدًا بالاقتران مع استخدام I</proc/>pidI</maps> لإجراء "
801 "فحوصات بناءً على أي منطقة (تخطيط) من البرنامج أجرت استدعاء النظام. (ربما من "
802 "الحكمة قفل استدعاءات النظام B<mmap>(2) وB<mprotect>(2) لمنع البرنامج من "
803 "تخريب مثل هذه الفحوصات)."
804
805 #. type: Plain text
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 msgid ""
809 "When checking values from I<args>, keep in mind that arguments are often "
810 "silently truncated before being processed, but after the seccomp check. For "
811 "example, this happens if the i386 ABI is used on an x86-64 kernel: although "
812 "the kernel will normally not look beyond the 32 lowest bits of the "
813 "arguments, the values of the full 64-bit registers will be present in the "
814 "seccomp data. A less surprising example is that if the x86-64 ABI is used "
815 "to perform a system call that takes an argument of type I<int>, the more-"
816 "significant half of the argument register is ignored by the system call, but "
817 "visible in the seccomp data."
818 msgstr ""
819 "عند فحص القيم من I<args>، ضع في اعتبارك أن المعاملات غالبًا ما تُبتر بصمت قبل "
820 "معالجتها، ولكن بعد فحص seccomp. على سبيل المثال، يحدث هذا إذا استخدم i386 "
821 "ABI على نواة x86-64: على الرغم من أن النواة لن تنظر عادةً إلى ما بعد أدنى 32 "
822 "بت من المعاملات، إلا أن قيم سجلات 64 بت الكاملة ستكون موجودة في بيانات "
823 "seccomp. مثال أقل إثارة للدهشة هو أنه إذا استُخدم x86-64 ABI لإجراء استدعاء "
824 "نظام يأخذ معاملًا من نوع I<int>، فإن النصف الأكثر أهمية من سجل المعامل"
825 " يُتجاهل "
826 "بواسطة استدعاء النظام، ولكنه يكون مرئيًا في بيانات seccomp."
827
828 #. type: Plain text
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 msgid ""
832 "A seccomp filter returns a 32-bit value consisting of two parts: the most "
833 "significant 16 bits (corresponding to the mask defined by the constant "
834 "B<SECCOMP_RET_ACTION_FULL>) contain one of the \"action\" values listed "
835 "below; the least significant 16-bits (defined by the constant "
836 "B<SECCOMP_RET_DATA>) are \"data\" to be associated with this return value."
837 msgstr ""
838 "يُعيد مرشح seccomp قيمة 32-بت تتكون من جزأين: أهم 16 بتًا (المقابلة للقناع "
839 "المحدد بالثابت B<SECCOMP_RET_ACTION_FULL>) تحتوي على إحدى قيم \"الإجراء\" "
840 "المدرجة أدناه؛ وأدنى 16 بتًا (المحددة بالثابت B<SECCOMP_RET_DATA>) هي "
841 "\"بيانات\" ترتبط بقيمة الإرجاع هذه."
842
843 #
844 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
845 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
846 #. filters are applied even if one of the early filters returns
847 #. SECCOMP_RET_KILL:
848 #. It's just because it would be an optimization that would only speed up
849 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
850 #. benefit meaningfully from such a change (you need to kill the process
851 #. really quickly?). We would speed up killing a program at the (albeit
852 #. tiny) expense to all other filtered programs. Best to keep the filter
853 #. execution logic clear, simple, and as fast as possible for all
854 #. filters.
855 #. type: Plain text
856 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
857 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
858 #. filters are applied even if one of the early filters returns
859 #. SECCOMP_RET_KILL:
860 #. It's just because it would be an optimization that would only speed up
861 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
862 #. benefit meaningfully from such a change (you need to kill the process
863 #. really quickly?). We would speed up killing a program at the (albeit
864 #. tiny) expense to all other filtered programs. Best to keep the filter
865 #. execution logic clear, simple, and as fast as possible for all
866 #. filters.
867 #. type: Plain text
868 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
869 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
870 #. filters are applied even if one of the early filters returns
871 #. SECCOMP_RET_KILL:
872 #. It's just because it would be an optimization that would only speed up
873 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
874 #. benefit meaningfully from such a change (you need to kill the process
875 #. really quickly?). We would speed up killing a program at the (albeit
876 #. tiny) expense to all other filtered programs. Best to keep the filter
877 #. execution logic clear, simple, and as fast as possible for all
878 #. filters.
879 #. type: Plain text
880 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
881 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
882 #. filters are applied even if one of the early filters returns
883 #. SECCOMP_RET_KILL:
884 #. It's just because it would be an optimization that would only speed up
885 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
886 #. benefit meaningfully from such a change (you need to kill the process
887 #. really quickly?). We would speed up killing a program at the (albeit
888 #. tiny) expense to all other filtered programs. Best to keep the filter
889 #. execution logic clear, simple, and as fast as possible for all
890 #. filters.
891 #. type: Plain text
892 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
893 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
894 #. filters are applied even if one of the early filters returns
895 #. SECCOMP_RET_KILL:
896 #. It's just because it would be an optimization that would only speed up
897 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
898 #. benefit meaningfully from such a change (you need to kill the process
899 #. really quickly?). We would speed up killing a program at the (albeit
900 #. tiny) expense to all other filtered programs. Best to keep the filter
901 #. execution logic clear, simple, and as fast as possible for all
902 #. filters.
903 #. type: Plain text
904 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
905 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
906 #. filters are applied even if one of the early filters returns
907 #. SECCOMP_RET_KILL:
908 #. It's just because it would be an optimization that would only speed up
909 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
910 #. benefit meaningfully from such a change (you need to kill the process
911 #. really quickly?). We would speed up killing a program at the (albeit
912 #. tiny) expense to all other filtered programs. Best to keep the filter
913 #. execution logic clear, simple, and as fast as possible for all
914 #. filters.
915 #. type: Plain text
916 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
917 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
918 #. filters are applied even if one of the early filters returns
919 #. SECCOMP_RET_KILL:
920 #. It's just because it would be an optimization that would only speed up
921 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
922 #. benefit meaningfully from such a change (you need to kill the process
923 #. really quickly?). We would speed up killing a program at the (albeit
924 #. tiny) expense to all other filtered programs. Best to keep the filter
925 #. execution logic clear, simple, and as fast as possible for all
926 #. filters.
927 #. type: Plain text
928 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
929 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
930 #. filters are applied even if one of the early filters returns
931 #. SECCOMP_RET_KILL:
932 #. It's just because it would be an optimization that would only speed up
933 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
934 #. benefit meaningfully from such a change (you need to kill the process
935 #. really quickly?). We would speed up killing a program at the (albeit
936 #. tiny) expense to all other filtered programs. Best to keep the filter
937 #. execution logic clear, simple, and as fast as possible for all
938 #. filters.
939 #. type: Plain text
940 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
941 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
942 msgid ""
943 "If multiple filters exist, they are I<all> executed, in reverse order of "
944 "their addition to the filter tree\\[em]that is, the most recently installed "
945 "filter is executed first. (Note that all filters will be called even if one "
946 "of the earlier filters returns B<SECCOMP_RET_KILL>. This is done to "
947 "simplify the kernel code and to provide a tiny speed-up in the execution of "
948 "sets of filters by avoiding a check for this uncommon case.) The return "
949 "value for the evaluation of a given system call is the first-seen action "
950 "value of highest precedence (along with its accompanying data) returned by "
951 "execution of all of the filters."
952 msgstr ""
953 "في حال وجود مرشحات متعددة، فإنه يتم تنفيذها I<جميعها>، بترتيب عكسي لإضافتها "
954 "إلى شجرة المرشحات؛ أي أن المرشح المثبت مؤخرًا يُنفذ أولاً. (لاحظ أنه سيتم "
955 "استدعاء جميع المرشحات حتى لو أعاد أحد المرشحات السابقة B<SECCOMP_RET_KILL>. "
956 "يتم ذلك لتبسيط كود النواة ولتوفير تسريع بسيط في تنفيذ مجموعات المرشحات عن "
957 "طريق تجنب الفحص لهذه الحالة غير الشائعة). قيمة الإرجاع لتقييم استدعاء نظام "
958 "معين هي أول قيمة إجراء مرئية ذات أعلى أسبقية (إلى جانب البيانات المصاحبة "
959 "لها) تُرجعها عملية تنفيذ جميع المرشحات."
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "In decreasing order of precedence, the action values that may be returned by "
966 "a seccomp filter are:"
967 msgstr "بترتيب تنازلي للأسبقية، قيم الإجراءات التي قد يُرجعها مرشح seccomp هي:"
968
969 #. type: TP
970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
972 #, no-wrap
973 msgid "B<SECCOMP_RET_KILL_PROCESS> (since Linux 4.14)"
974 msgstr "B<SECCOMP_RET_KILL_PROCESS> (منذ لينكس 4.14)"
975
976 #. commit 4d3b0b05aae9ee9ce0970dc4cc0fb3fad5e85945
977 #. commit 0466bdb99e8744bc9befa8d62a317f0fd7fd7421
978 #. type: Plain text
979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
981 msgid ""
982 "This value results in immediate termination of the process, with a core "
983 "dump. The system call is not executed. By contrast with "
984 "B<SECCOMP_RET_KILL_THREAD> below, all threads in the thread group are "
985 "terminated. (For a discussion of thread groups, see the description of the "
986 "B<CLONE_THREAD> flag in B<clone>(2).)"
987 msgstr ""
988 "تؤدي هذه القيمة إلى إنهاء فوري للعملية، مع تفريغ الذاكرة (core dump). لا "
989 "يُنفذ استدعاء النظام. وعلى النقيض من B<SECCOMP_RET_KILL_THREAD> أدناه، تُنهى "
990 "جميع الخيوط في مجموعة الخيوط. (لمناقشة مجموعات الخيوط، انظر وصف راية "
991 "B<CLONE_THREAD> في B<clone>(2))."
992
993 #. type: Plain text
994 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
995 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
996 msgid ""
997 "The process terminates I<as though> killed by a B<SIGSYS> signal. Even if a "
998 "signal handler has been registered for B<SIGSYS>, the handler will be "
999 "ignored in this case and the process always terminates. To a parent process "
1000 "that is waiting on this process (using B<waitpid>(2) or similar), the "
1001 "returned I<wstatus> will indicate that its child was terminated as though by "
1002 "a B<SIGSYS> signal."
1003 msgstr ""
1004 "تُنتهى العملية I<كما لو> قُتلت بإشارة B<SIGSYS>. حتى لو سُجل معالج إشارة لـ "
1005 "B<SIGSYS>، فسيتم تجاهل المعالج في هذه الحالة وتنتهي العملية دائمًا. بالنسبة "
1006 "لعملية أب تنتظر هذه العملية (باستخدام B<waitpid>(2) أو ما شابه)، فإن "
1007 "I<wstatus> المُرجع سيشير إلى أن وليدها قد أُنهي كما لو كان بإشارة B<SIGSYS>."
1008
1009 #. type: TP
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 #, no-wrap
1013 msgid "B<SECCOMP_RET_KILL_THREAD> (or B<SECCOMP_RET_KILL>)"
1014 msgstr "B<SECCOMP_RET_KILL_THREAD> (أو B<SECCOMP_RET_KILL>)"
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 "This value results in immediate termination of the thread that made the "
1021 "system call. The system call is not executed. Other threads in the same "
1022 "thread group will continue to execute."
1023 msgstr ""
1024 "تؤدي هذه القيمة إلى إنهاء فوري للخيط الذي أجرى استدعاء النظام. لا يُنفذ "
1025 "استدعاء النظام. ستستمر الخيوط الأخرى في نفس مجموعة الخيوط في التنفيذ."
1026
1027 #. type: Plain text
1028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1030 msgid ""
1031 "The thread terminates I<as though> killed by a B<SIGSYS> signal. See "
1032 "B<SECCOMP_RET_KILL_PROCESS> above."
1033 msgstr ""
1034 "ينتهي الخيط I<كما لو> قُتل بإشارة B<SIGSYS>. انظر B<SECCOMP_RET_KILL_PROCESS> "
1035 "أعلاه."
1036
1037 #. See these commits:
1038 #. seccomp: dump core when using SECCOMP_RET_KILL
1039 #. (b25e67161c295c98acda92123b2dd1e7d8642901)
1040 #. seccomp: Only dump core when single-threaded
1041 #. (d7276e321ff8a53106a59c85ca46d03e34288893)
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 msgid ""
1046 "Before Linux 4.11, any process terminated in this way would not trigger a "
1047 "coredump (even though B<SIGSYS> is documented in B<signal>(7) as having a "
1048 "default action of termination with a core dump). Since Linux 4.11, a single-"
1049 "threaded process will dump core if terminated in this way."
1050 msgstr ""
1051 "قبل لينكس 4.11، لم تكن أي عملية أُنهيت بهذه الطريقة لتؤدي إلى تفريغ الذاكرة "
1052 "(على الرغم من أن B<SIGSYS> موثق في B<signal>(7) على أنه يمتلك إجراءً مبدئيًا "
1053 "بالإنهاء مع تفريغ الذاكرة). منذ لينكس 4.11، ستقوم العملية أحادية الخيط "
1054 "بتفريغ الذاكرة إذا أُنهيت بهذه الطريقة."
1055
1056 #. type: Plain text
1057 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1058 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1059 msgid ""
1060 "With the addition of B<SECCOMP_RET_KILL_PROCESS> in Linux 4.14, "
1061 "B<SECCOMP_RET_KILL_THREAD> was added as a synonym for B<SECCOMP_RET_KILL>, "
1062 "in order to more clearly distinguish the two actions."
1063 msgstr ""
1064 "مع إضافة B<SECCOMP_RET_KILL_PROCESS> في لينكس 4.14، أُضيف "
1065 "B<SECCOMP_RET_KILL_THREAD> كمرادف لـ B<SECCOMP_RET_KILL>، من أجل التمييز "
1066 "بوضوح أكبر بين الإجراءين."
1067
1068 #. type: Plain text
1069 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1070 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1071 msgid ""
1072 "B<Note>: the use of B<SECCOMP_RET_KILL_THREAD> to kill a single thread in a "
1073 "multithreaded process is likely to leave the process in a permanently "
1074 "inconsistent and possibly corrupt state."
1075 msgstr ""
1076 "B<ملاحظة>: من المحتمل أن يؤدي استخدام B<SECCOMP_RET_KILL_THREAD> لقتل خيط "
1077 "واحد في عملية متعددة الخيوط إلى ترك العملية في حالة غير متسقة بشكل دائم "
1078 "وربما تالفة."
1079
1080 #. type: TP
1081 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1082 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1083 #, no-wrap
1084 msgid "B<SECCOMP_RET_TRAP>"
1085 msgstr "B<SECCOMP_RET_TRAP>"
1086
1087 #. type: Plain text
1088 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1089 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1090 msgid ""
1091 "This value results in the kernel sending a thread-directed B<SIGSYS> signal "
1092 "to the triggering thread. (The system call is not executed.) Various "
1093 "fields will be set in the I<siginfo_t> structure (see B<sigaction>(2)) "
1094 "associated with signal:"
1095 msgstr ""
1096 "تؤدي هذه القيمة إلى قيام النواة بإرسال إشارة B<SIGSYS> موجهة للخيط إلى الخيط "
1097 "المسبب. (لا يُنفذ استدعاء النظام). ستُضبط حقول مختلفة في هيكل I<siginfo_t> "
1098 "(انظر B<sigaction>(2)) المرتبط بالإشارة:"
1099
1100 #. type: IP
1101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1103 #, no-wrap
1104 msgid "\\[bu]"
1105 msgstr "\\[bu]"
1106
1107 #. type: Plain text
1108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1110 msgid "I<si_signo> will contain B<SIGSYS>."
1111 msgstr "سيحتوي I<si_signo> على B<SIGSYS>."
1112
1113 #. type: Plain text
1114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1116 msgid "I<si_call_addr> will show the address of the system call instruction."
1117 msgstr "سيعرض I<si_call_addr> عنوان تعليمة استدعاء النظام."
1118
1119 #. type: Plain text
1120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1122 msgid ""
1123 "I<si_syscall> and I<si_arch> will indicate which system call was attempted."
1124 msgstr "سيوضح I<si_syscall> و I<si_arch> استدعاء النظام الذي جرت محاولته."
1125
1126 #. type: Plain text
1127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1129 msgid "I<si_code> will contain B<SYS_SECCOMP>."
1130 msgstr "سيحتوي I<si_code> على B<SYS_SECCOMP>."
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 "I<si_errno> will contain the B<SECCOMP_RET_DATA> portion of the filter "
1137 "return value."
1138 msgstr "سيحتوي I<si_errno> على جزء B<SECCOMP_RET_DATA> من قيمة إرجاع المرشح."
1139
1140 #. type: Plain text
1141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1143 msgid ""
1144 "The program counter will be as though the system call happened (i.e., the "
1145 "program counter will not point to the system call instruction). The return "
1146 "value register will contain an architecture-dependent value; if resuming "
1147 "execution, set it to something appropriate for the system call. (The "
1148 "architecture dependency is because replacing it with B<ENOSYS> could "
1149 "overwrite some useful information.)"
1150 msgstr ""
1151 "سيكون عداد البرنامج كما لو أن استدعاء النظام قد حدث (أي أن عداد البرنامج لن "
1152 "يشير إلى تعليمة استدعاء النظام). سيحتوي سجل قيمة الإرجاع على قيمة تعتمد على "
1153 "البنية المعمارية؛ إذا استؤنف التنفيذ، فاصبطه على شيء مناسب لاستدعاء النظام. "
1154 "(الاعتماد على البنية هو لأن استبداله بـ B<ENOSYS> قد يكتب فوق بعض المعلومات "
1155 "المفيدة)."
1156
1157 #. type: TP
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 #, no-wrap
1161 msgid "B<SECCOMP_RET_ERRNO>"
1162 msgstr "B<SECCOMP_RET_ERRNO>"
1163
1164 #. type: Plain text
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 msgid ""
1168 "This value results in the B<SECCOMP_RET_DATA> portion of the filter's return "
1169 "value being passed to user space as the I<errno> value without executing the "
1170 "system call."
1171 msgstr ""
1172 "تؤدي هذه القيمة إلى تمرير جزء B<SECCOMP_RET_DATA> من قيمة إرجاع المرشح إلى "
1173 "مساحة المستخدم كقيمة I<errno> دون تنفيذ استدعاء النظام."
1174
1175 #. type: TP
1176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1178 #, no-wrap
1179 msgid "B<SECCOMP_RET_USER_NOTIF> (since Linux 5.0)"
1180 msgstr "B<SECCOMP_RET_USER_NOTIF> (منذ لينكس 5.0)"
1181
1182 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
1183 #. type: Plain text
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 msgid ""
1187 "Forward the system call to an attached user-space supervisor process to "
1188 "allow that process to decide what to do with the system call. If there is "
1189 "no attached supervisor (either because the filter was not installed with the "
1190 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> flag or because the file descriptor was "
1191 "closed), the filter returns B<ENOSYS> (similar to what happens when a filter "
1192 "returns B<SECCOMP_RET_TRACE> and there is no tracer). See "
1193 "B<seccomp_unotify>(2) for further details."
1194 msgstr ""
1195 "حول استدعاء النظام إلى عملية مشرفة ملحقة في مساحة المستخدم للسماح لتلك "
1196 "العملية بتقرير ما يجب فعله باستدعاء النظام. إذا لم يكن هناك مشرف ملحق (إما "
1197 "لأن المرشح لم يُثبت مع راية B<SECCOMP_FILTER_FLAG_NEW_LISTENER> أو لأن واصف "
1198 "الملف أُغلق)، يُرجع المرشح B<ENOSYS> (على غرار ما يحدث عندما يُرجع المرشح "
1199 "B<SECCOMP_RET_TRACE> ولا يوجد متتبع). انظر B<seccomp_unotify>(2) لمزيد من "
1200 "التفاصيل."
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 "Note that the supervisor process will not be notified if another filter "
1207 "returns an action value with a precedence greater than "
1208 "B<SECCOMP_RET_USER_NOTIF>."
1209 msgstr ""
1210 "لاحظ أنه لن يتم إخطار عملية المشرف إذا أعاد مرشح آخر قيمة إجراء بأسبقية أعلى "
1211 "من B<SECCOMP_RET_USER_NOTIF>."
1212
1213 #. type: TP
1214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1216 #, no-wrap
1217 msgid "B<SECCOMP_RET_TRACE>"
1218 msgstr "B<SECCOMP_RET_TRACE>"
1219
1220 #. type: Plain text
1221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1223 msgid ""
1224 "When returned, this value will cause the kernel to attempt to notify a "
1225 "B<ptrace>(2)-based tracer prior to executing the system call. If there is "
1226 "no tracer present, the system call is not executed and returns a failure "
1227 "status with I<errno> set to B<ENOSYS>."
1228 msgstr ""
1229 "عند إرجاعها، ستتسبب هذه القيمة في قيام النواة بمحاولة إخطار متتبع يعتمد على "
1230 "B<ptrace>(2) قبل تنفيذ استدعاء النظام. إذا لم يكن هناك متتبع موجود، فلن يُنفذ "
1231 "استدعاء النظام ويُرجع حالة فشل مع ضبط I<errno> على B<ENOSYS>."
1232
1233 #. type: Plain text
1234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1236 msgid ""
1237 "A tracer will be notified if it requests B<PTRACE_O_TRACESECCOMP> using "
1238 "I<ptrace(PTRACE_SETOPTIONS)>. The tracer will be notified of a "
1239 "B<PTRACE_EVENT_SECCOMP> and the B<SECCOMP_RET_DATA> portion of the filter's "
1240 "return value will be available to the tracer via B<PTRACE_GETEVENTMSG>."
1241 msgstr ""
1242 "سيُخطر المتتبع إذا طلب B<PTRACE_O_TRACESECCOMP> باستخدام "
1243 "I<ptrace(PTRACE_SETOPTIONS)>. سيُخطر المتتبع بـ B<PTRACE_EVENT_SECCOMP> "
1244 "وسيكون جزء B<SECCOMP_RET_DATA> من قيمة إرجاع المرشح متاحًا للمتتبع عبر "
1245 "B<PTRACE_GETEVENTMSG>."
1246
1247 #. type: Plain text
1248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1250 msgid ""
1251 "The tracer can skip the system call by changing the system call number to "
1252 "-1. Alternatively, the tracer can change the system call requested by "
1253 "changing the system call to a valid system call number. If the tracer asks "
1254 "to skip the system call, then the system call will appear to return the "
1255 "value that the tracer puts in the return value register."
1256 msgstr ""
1257 "يمكن للمتتبع تخطي استدعاء النظام عن طريق تغيير رقم استدعاء النظام إلى -1. "
1258 "وبدلاً من ذلك، يمكن للمتتبع تغيير استدعاء النظام المطلوب عن طريق تغيير "
1259 "استدعاء النظام إلى رقم استدعاء نظام صالح. إذا طلب المتتبع تخطي استدعاء "
1260 "النظام، فسيظهر استدعاء النظام وكأنه يُرجع القيمة التي يضعها المتتبع في سجل "
1261 "قيمة الإرجاع."
1262
1263 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1264 #. This was changed in ce6526e8afa4.
1265 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1266 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1267 #. 0f3912fd934c for ARM.
1268 #. type: Plain text
1269 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1270 #. This was changed in ce6526e8afa4.
1271 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1272 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1273 #. 0f3912fd934c for ARM.
1274 #. type: Plain text
1275 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1276 #. This was changed in ce6526e8afa4.
1277 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1278 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1279 #. 0f3912fd934c for ARM.
1280 #. type: Plain text
1281 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1282 #. This was changed in ce6526e8afa4.
1283 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1284 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1285 #. 0f3912fd934c for ARM.
1286 #. type: Plain text
1287 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1288 #. This was changed in ce6526e8afa4.
1289 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1290 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1291 #. 0f3912fd934c for ARM.
1292 #. type: Plain text
1293 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1294 #. This was changed in ce6526e8afa4.
1295 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1296 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1297 #. 0f3912fd934c for ARM.
1298 #. type: Plain text
1299 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1300 #. This was changed in ce6526e8afa4.
1301 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1302 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1303 #. 0f3912fd934c for ARM.
1304 #. type: Plain text
1305 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1306 #. This was changed in ce6526e8afa4.
1307 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1308 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1309 #. 0f3912fd934c for ARM.
1310 #. type: Plain text
1311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1313 msgid ""
1314 "Before Linux 4.8, the seccomp check will not be run again after the tracer "
1315 "is notified. (This means that, on older kernels, seccomp-based sandboxes "
1316 "B<must not> allow use of B<ptrace>(2)\\[em]even of other sandboxed "
1317 "processes\\[em]without extreme care; ptracers can use this mechanism to "
1318 "escape from the seccomp sandbox.)"
1319 msgstr ""
1320 "قبل لينكس 4.8، لن يُشغل فحص seccomp مرة أخرى بعد إخطار المتتبع. (وهذا يعني "
1321 "أنه في النوى القديمة، B<يجب ألا> تسمح البيئات المعزولة القائمة على seccomp "
1322 "باستخدام B<ptrace>(2) - حتى للعمليات المعزولة الأخرى - بدون عناية فائقة؛ إذ "
1323 "يمكن للمتتبعين استخدام هذه الآلية للهروب من بيئة seccomp المعزولة)."
1324
1325 #. type: Plain text
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 msgid ""
1329 "Note that a tracer process will not be notified if another filter returns an "
1330 "action value with a precedence greater than B<SECCOMP_RET_TRACE>."
1331 msgstr ""
1332 "لاحظ أنه لن يتم إخطار عملية المتتبع إذا أعاد مرشح آخر قيمة إجراء بأسبقية "
1333 "أعلى من B<SECCOMP_RET_TRACE>."
1334
1335 #. type: TP
1336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1338 #, no-wrap
1339 msgid "B<SECCOMP_RET_LOG> (since Linux 4.14)"
1340 msgstr "B<SECCOMP_RET_LOG> (منذ لينكس 4.14)"
1341
1342 #. commit 59f5cf44a38284eb9e76270c786fb6cc62ef8ac4
1343 #. type: Plain text
1344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1346 msgid ""
1347 "This value results in the system call being executed after the filter return "
1348 "action is logged. An administrator may override the logging of this action "
1349 "via the I</proc/sys/kernel/seccomp/actions_logged> file."
1350 msgstr ""
1351 "تؤدي هذه القيمة إلى تنفيذ استدعاء النظام بعد تسجيل إجراء إرجاع المرشح. يمكن "
1352 "للمسؤول تجاوز تسجيل هذا الإجراء عبر ملف I</proc/sys/kernel/seccomp/"
1353 "actions_logged>."
1354
1355 #. type: TP
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1358 #, no-wrap
1359 msgid "B<SECCOMP_RET_ALLOW>"
1360 msgstr "B<SECCOMP_RET_ALLOW>"
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 "This value results in the system call being executed."
1366 msgstr "تؤدي هذه القيمة إلى تنفيذ نداء النظام."
1367
1368 #. commit 4d3b0b05aae9ee9ce0970dc4cc0fb3fad5e85945
1369 #. type: Plain text
1370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1372 msgid ""
1373 "If an action value other than one of the above is specified, then the filter "
1374 "action is treated as either B<SECCOMP_RET_KILL_PROCESS> (since Linux 4.14) "
1375 "or B<SECCOMP_RET_KILL_THREAD> (in Linux 4.13 and earlier)."
1376 msgstr ""
1377 "إذا حُددت قيمة إجراء بخلاف القيم المذكورة أعلاه، فسيُعامل إجراء المرشح إما كـ "
1378 "B<SECCOMP_RET_KILL_PROCESS> (منذ لينكس 4.14) أو B<SECCOMP_RET_KILL_THREAD> "
1379 "(في لينكس 4.13 وما قبله)."
1380
1381 #. type: SS
1382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1384 #, no-wrap
1385 msgid "/proc interfaces"
1386 msgstr "واجهات /proc"
1387
1388 #. type: Plain text
1389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1391 msgid ""
1392 "The files in the directory I</proc/sys/kernel/seccomp> provide additional "
1393 "seccomp information and configuration:"
1394 msgstr ""
1395 "توفر الملفات الموجودة في الدليل I</proc/sys/kernel/seccomp> معلومات وضبط "
1396 "seccomp إضافي:"
1397
1398 #. type: TP
1399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1401 #, no-wrap
1402 msgid "I<actions_avail> (since Linux 4.14)"
1403 msgstr "I<actions_avail> (منذ لينكس 4.14)"
1404
1405 #. commit 8e5f1ad116df6b0de65eac458d5e7c318d1c05af
1406 #. type: Plain text
1407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1409 msgid ""
1410 "A read-only ordered list of seccomp filter return actions in string form. "
1411 "The ordering, from left-to-right, is in decreasing order of precedence. The "
1412 "list represents the set of seccomp filter return actions supported by the "
1413 "kernel."
1414 msgstr ""
1415 "قائمة مرتبة للقراءة فقط لإجراءات إرجاع مرشح seccomp في شكل سلسلة نصية. "
1416 "الترتيب، من اليسار إلى اليمين، هو بترتيب تنازلي للأسبقية. تمثل القائمة "
1417 "مجموعة إجراءات إرجاع مرشح seccomp التي تدعمها النواة."
1418
1419 #. type: TP
1420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1422 #, no-wrap
1423 msgid "I<actions_logged> (since Linux 4.14)"
1424 msgstr "I<actions_logged> (منذ لينكس 4.14)"
1425
1426 #. commit 0ddec0fc8900201c0897b87b762b7c420436662f
1427 #. type: Plain text
1428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1430 msgid ""
1431 "A read-write ordered list of seccomp filter return actions that are allowed "
1432 "to be logged. Writes to the file do not need to be in ordered form but "
1433 "reads from the file will be ordered in the same way as the I<actions_avail> "
1434 "file."
1435 msgstr ""
1436 "قائمة مرتبة للقراءة والكتابة لإجراءات إرجاع مرشح seccomp المسموح بتسجيلها. "
1437 "لا يلزم أن تكون عمليات الكتابة في الملف مرتبة، ولكن عمليات القراءة من الملف "
1438 "ستكون مرتبة بنفس طريقة ملف I<actions_avail>."
1439
1440 #. type: Plain text
1441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1443 msgid ""
1444 "It is important to note that the value of I<actions_logged> does not prevent "
1445 "certain filter return actions from being logged when the audit subsystem is "
1446 "configured to audit a task. If the action is not found in the "
1447 "I<actions_logged> file, the final decision on whether to audit the action "
1448 "for that task is ultimately left up to the audit subsystem to decide for all "
1449 "filter return actions other than B<SECCOMP_RET_ALLOW>."
1450 msgstr ""
1451 "من المهم ملاحظة أن قيمة I<actions_logged> لا تمنع تسجيل إجراءات إرجاع مرشح "
1452 "معينة عندما يُضبط النظام الفرعي للتدقيق لتدقيق مهمة ما. إذا لم يُعثر على "
1453 "الإجراء في ملف I<actions_logged>، فإن القرار النهائي بشأن تدقيق الإجراء لتلك "
1454 "المهمة يُترك في النهاية للنظام الفرعي للتدقيق ليقرر لجميع إجراءات إرجاع "
1455 "المرشح بخلاف B<SECCOMP_RET_ALLOW>."
1456
1457 #. type: Plain text
1458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1460 msgid ""
1461 "The \"allow\" string is not accepted in the I<actions_logged> file as it is "
1462 "not possible to log B<SECCOMP_RET_ALLOW> actions. Attempting to write "
1463 "\"allow\" to the file will fail with the error B<EINVAL>."
1464 msgstr ""
1465 "لا تُقبل السلسلة \"allow\" في ملف I<actions_logged> لأنه لا يمكن تسجيل "
1466 "إجراءات B<SECCOMP_RET_ALLOW>. ستفشل محاولة كتابة \"allow\" في الملف مع الخطأ "
1467 "B<EINVAL>."
1468
1469 #. type: SS
1470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1472 #, no-wrap
1473 msgid "Audit logging of seccomp actions"
1474 msgstr "تسجيل التدقيق لإجراءات seccomp"
1475
1476 #. commit 59f5cf44a38284eb9e76270c786fb6cc62ef8ac4
1477 #. or auditing could be enabled via the netlink API (AUDIT_SET)
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 "Since Linux 4.14, the kernel provides the facility to log the actions "
1483 "returned by seccomp filters in the audit log. The kernel makes the decision "
1484 "to log an action based on the action type, whether or not the action is "
1485 "present in the I<actions_logged> file, and whether kernel auditing is "
1486 "enabled (e.g., via the kernel boot option I<audit=1>). The rules are as "
1487 "follows:"
1488 msgstr ""
1489 "منذ لينكس 4.14، توفر النواة وسيلة لتسجيل الإجراءات التي تعيدها مرشحات "
1490 "seccomp في سجل التدقيق. تتخذ النواة قرار تسجيل إجراء بناءً على نوع الإجراء، "
1491 "وما إذا كان الإجراء موجودًا في ملف I<actions_logged>، وما إذا كان تدقيق "
1492 "النواة مفعلًا (على سبيل المثال، عبر خيار إقلاع النواة I<audit=1>). القواعد هي "
1493 "كما يلي:"
1494
1495 #. type: Plain text
1496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1498 msgid "If the action is B<SECCOMP_RET_ALLOW>, the action is not logged."
1499 msgstr "إذا كان الإجراء B<SECCOMP_RET_ALLOW>، فلا يُسجل الإجراء."
1500
1501 #. type: Plain text
1502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1504 msgid ""
1505 "Otherwise, if the action is either B<SECCOMP_RET_KILL_PROCESS> or "
1506 "B<SECCOMP_RET_KILL_THREAD>, and that action appears in the I<actions_logged> "
1507 "file, the action is logged."
1508 msgstr ""
1509 "وإلا، إذا كان الإجراء إما B<SECCOMP_RET_KILL_PROCESS> أو "
1510 "B<SECCOMP_RET_KILL_THREAD>، وظهر هذا الإجراء في ملف I<actions_logged>، فيُسجل "
1511 "الإجراء."
1512
1513 #. type: Plain text
1514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1516 msgid ""
1517 "Otherwise, if the filter has requested logging (the "
1518 "B<SECCOMP_FILTER_FLAG_LOG> flag) and the action appears in the "
1519 "I<actions_logged> file, the action is logged."
1520 msgstr ""
1521 "وإلا، إذا طلب المرشح التسجيل (راية B<SECCOMP_FILTER_FLAG_LOG>) وظهر الإجراء "
1522 "في ملف I<actions_logged>، فيُسجل الإجراء."
1523
1524 #. type: Plain text
1525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1527 msgid ""
1528 "Otherwise, if kernel auditing is enabled and the process is being audited "
1529 "(B<autrace>(8)), the action is logged."
1530 msgstr ""
1531 "وإلا، إذا كان تدقيق النواة مفعلًا وكانت العملية تخضع للتدقيق (B<autrace>(8))، "
1532 "فيُسجل الإجراء."
1533
1534 #. type: Plain text
1535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1537 msgid "Otherwise, the action is not logged."
1538 msgstr "خلاف ذلك، لا يُسجل الإجراء."
1539
1540 #. type: SH
1541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1543 #, no-wrap
1544 msgid "RETURN VALUE"
1545 msgstr "قيمة الإرجاع"
1546
1547 #. type: Plain text
1548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1550 msgid ""
1551 "On success, B<seccomp>() returns 0. On error, if "
1552 "B<SECCOMP_FILTER_FLAG_TSYNC> was used, the return value is the ID of the "
1553 "thread that caused the synchronization failure. (This ID is a kernel thread "
1554 "ID of the type returned by B<clone>(2) and B<gettid>(2).) On other errors, "
1555 "-1 is returned, and I<errno> is set to indicate the error."
1556 msgstr ""
1557 "عند النجاح، يعيد B<seccomp>() القيمة 0. عند الخطأ، إذا استُخدمت "
1558 "B<SECCOMP_FILTER_FLAG_TSYNC>، فإن القيمة المعادة هي معرف الخيط (thread) الذي "
1559 "تسبب في فشل المزامنة. (هذا المعرف هو معرف خيط نواة من النوع الذي يعيده "
1560 "B<clone>(2) و B<gettid>(2)). في الأخطاء الأخرى، تُعاد -1، ويُضبط I<errno> "
1561 "للإشارة إلى الخطأ."
1562
1563 #. type: SH
1564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1566 #, no-wrap
1567 msgid "ERRORS"
1568 msgstr "الأخطاء"
1569
1570 #. type: Plain text
1571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1573 msgid "B<seccomp>() can fail for the following reasons:"
1574 msgstr "يمكن أن يفشل B<seccomp>() للأسباب التالية:"
1575
1576 #. type: TP
1577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1579 #, no-wrap
1580 msgid "B<EACCES>"
1581 msgstr "B<EACCES>"
1582
1583 #. type: Plain text
1584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1586 msgid ""
1587 "The caller did not have the B<CAP_SYS_ADMIN> capability in its user "
1588 "namespace, or had not set I<no_new_privs> before using "
1589 "B<SECCOMP_SET_MODE_FILTER>."
1590 msgstr ""
1591 "لم يمتلك المستدعِي قدرة B<CAP_SYS_ADMIN> في مساحة أسماء المستخدم الخاصة به، "
1592 "أو لم يضبط I<no_new_privs> قبل استخدام B<SECCOMP_SET_MODE_FILTER>."
1593
1594 #. type: TP
1595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1597 #, no-wrap
1598 msgid "B<EBUSY>"
1599 msgstr "B<EBUSY>"
1600
1601 #. type: Plain text
1602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1604 msgid ""
1605 "While installing a new filter, the B<SECCOMP_FILTER_FLAG_NEW_LISTENER> flag "
1606 "was specified, but a previous filter had already been installed with that "
1607 "flag."
1608 msgstr ""
1609 "أثناء تثبيت مرشح جديد، حُددت الراية B<SECCOMP_FILTER_FLAG_NEW_LISTENER>، ولكن "
1610 "ثُبِّت مرشح سابق بالفعل مع هذه الراية."
1611
1612 #. type: TP
1613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1615 #, no-wrap
1616 msgid "B<EFAULT>"
1617 msgstr "B<EFAULT>"
1618
1619 #. type: Plain text
1620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1622 msgid "I<args> was not a valid address."
1623 msgstr "‏I<args> لم يكن عنوانًا صالحًا."
1624
1625 #. type: TP
1626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1628 #, no-wrap
1629 msgid "B<EINVAL>"
1630 msgstr "B<EINVAL>"
1631
1632 #. type: Plain text
1633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1635 msgid ""
1636 "I<operation> is unknown or is not supported by this kernel version or "
1637 "configuration."
1638 msgstr ""
1639 "العملية I<operation> غير معروفة أو غير مدعومة من قِبل إصدار النواة هذا أو "
1640 "الضبط."
1641
1642 #. type: Plain text
1643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1645 msgid "The specified I<flags> are invalid for the given I<operation>."
1646 msgstr "الرايات I<flags> المحددة غير صالحة للعملية I<operation> المعطاة."
1647
1648 #. type: Plain text
1649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1651 #| msgid ""
1652 #| "I<operation> included B<BPF_ABS>, but the specified offset was not "
1653 #| "aligned to a 32-bit boundary or exceeded I<sizeof(struct\\~seccomp_data)>."
1654 msgid ""
1655 "I<operation> included B<BPF_ABS>, but the specified offset was not aligned "
1656 "to a 32-bit boundary or exceeded I<sizeof(struct\\ seccomp_data)>."
1657 msgstr ""
1658 "تضمنت العملية I<operation> القيمة B<BPF_ABS>، ولكن الإزاحة المحددة لم تكن "
1659 "محاذية لحد 32 بت أو تجاوزت I<sizeof(struct\\ seccomp_data)>."
1660
1661 #. See kernel/seccomp.c::seccomp_may_assign_mode() in Linux 3.18 sources
1662 #. type: Plain text
1663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1665 msgid ""
1666 "A secure computing mode has already been set, and I<operation> differs from "
1667 "the existing setting."
1668 msgstr ""
1669 "وُضع وضع حوسبة آمن بالفعل، وتختلف العملية I<operation> عن الإعداد الحالي."
1670
1671 #. type: Plain text
1672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1674 msgid ""
1675 "I<operation> specified B<SECCOMP_SET_MODE_FILTER>, but the filter program "
1676 "pointed to by I<args> was not valid or the length of the filter program was "
1677 "zero or exceeded B<BPF_MAXINSNS> (4096) instructions."
1678 msgstr ""
1679 "حددت العملية I<operation> القيمة B<SECCOMP_SET_MODE_FILTER>، ولكن برنامج "
1680 "المرشح الذي تشير إليه I<args> لم يكن صالحًا أو كان طول برنامج المرشح صفرًا أو "
1681 "تجاوز B<BPF_MAXINSNS> (4096) تعليمة."
1682
1683 #. type: TP
1684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1686 #, no-wrap
1687 msgid "B<ENOMEM>"
1688 msgstr "B<ENOMEM>"
1689
1690 #. type: Plain text
1691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1693 msgid "Out of memory."
1694 msgstr "نفدت الذاكرة."
1695
1696 #. ENOMEM in kernel/seccomp.c::seccomp_attach_filter() in Linux 3.18 sources
1697 #. type: Plain text
1698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1700 msgid ""
1701 "The total length of all filter programs attached to the calling thread would "
1702 "exceed B<MAX_INSNS_PER_PATH> (32768) instructions. Note that for the "
1703 "purposes of calculating this limit, each already existing filter program "
1704 "incurs an overhead penalty of 4 instructions."
1705 msgstr ""
1706 "تجاوز الطول الإجمالي لجميع برامج المرشحات الملحقة بخيط الاستدعاء الحد "
1707 "B<MAX_INSNS_PER_PATH> (32768) تعليمة. لاحظ أنه لأغراض حساب هذا الحد، يتحمل "
1708 "كل برنامج مرشح موجود مسبقًا عقوبة إضافية قدرها 4 تعليمات."
1709
1710 #. type: TP
1711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1713 #, no-wrap
1714 msgid "B<EOPNOTSUPP>"
1715 msgstr "B<EOPNOTSUPP>"
1716
1717 #. type: Plain text
1718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1720 msgid ""
1721 "I<operation> specified B<SECCOMP_GET_ACTION_AVAIL>, but the kernel does not "
1722 "support the filter return action specified by I<args>."
1723 msgstr ""
1724 "حددت العملية I<operation> القيمة B<SECCOMP_GET_ACTION_AVAIL>، ولكن النواة لا "
1725 "تدعم إجراء إرجاع المرشح المحدد بواسطة I<args>."
1726
1727 #. type: TP
1728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1730 #, no-wrap
1731 msgid "B<ESRCH>"
1732 msgstr "B<ESRCH>"
1733
1734 #. type: Plain text
1735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1737 msgid ""
1738 "Another thread caused a failure during thread sync, but its ID could not be "
1739 "determined."
1740 msgstr ""
1741 "تسبب خيط آخر في حدوث فشل أثناء مزامنة الخيوط، ولكن لم يمكن تحديد معرفه."
1742
1743 #. type: SH
1744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1746 #, no-wrap
1747 msgid "STANDARDS"
1748 msgstr "المعايير"
1749
1750 #. type: Plain text
1751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1753 msgid "Linux."
1754 msgstr "لينكس."
1755
1756 #. type: SH
1757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1759 #, no-wrap
1760 msgid "HISTORY"
1761 msgstr "التاريخ"
1762
1763 #. FIXME . Add glibc version
1764 #. type: Plain text
1765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1767 msgid "Linux 3.17."
1768 msgstr "لينكس 3.17."
1769
1770 #. type: SH
1771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1773 #, no-wrap
1774 msgid "NOTES"
1775 msgstr "ملاحظات"
1776
1777 #. type: Plain text
1778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1780 msgid ""
1781 "Rather than hand-coding seccomp filters as shown in the example below, you "
1782 "may prefer to employ the I<libseccomp> library, which provides a front-end "
1783 "for generating seccomp filters."
1784 msgstr ""
1785 "بدلاً من ترميز مرشحات seccomp يدويًا كما هو موضح في المثال أدناه، قد تفضل "
1786 "استخدام مكتبة I<libseccomp>، التي توفر واجهة برمجية لتوليد مرشحات seccomp."
1787
1788 #. type: Plain text
1789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1791 msgid ""
1792 "The I<Seccomp> field of the I</proc/>pidI</status> file provides a method of "
1793 "viewing the seccomp mode of a process; see B<proc>(5)."
1794 msgstr ""
1795 "يوفر الحقل I<Seccomp> في ملف I</proc/>pidI</status> طريقة لعرض وضع seccomp "
1796 "لعملية ما؛ انظر B<proc>(5)."
1797
1798 #. type: Plain text
1799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1801 msgid ""
1802 "B<seccomp>() provides a superset of the functionality provided by the "
1803 "B<prctl>(2) B<PR_SET_SECCOMP> operation (which does not support I<flags>)."
1804 msgstr ""
1805 "يوفر B<seccomp>() مجموعة موسعة من الوظائف التي توفرها عملية B<prctl>(2) "
1806 "B<PR_SET_SECCOMP> (التي لا تدعم الرايات I<flags>)."
1807
1808 #. type: Plain text
1809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1811 msgid ""
1812 "Since Linux 4.4, the B<ptrace>(2) B<PTRACE_SECCOMP_GET_FILTER> operation "
1813 "can be used to dump a process's seccomp filters."
1814 msgstr ""
1815 "منذ لينكس 4.4، يمكن استخدام عملية B<ptrace>(2) B<PTRACE_SECCOMP_GET_FILTER> "
1816 "لتفريغ مرشحات seccomp الخاصة بالعملية."
1817
1818 #. type: SS
1819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1821 #, no-wrap
1822 msgid "Architecture support for seccomp BPF"
1823 msgstr "دعم المعماريات لمرشح seccomp BPF"
1824
1825 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1826 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1827 #. kernel source. Last checked in Linux 4.16-rc source.
1828 #. type: Plain text
1829 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1830 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1831 #. kernel source. Last checked in Linux 4.16-rc source.
1832 #. type: Plain text
1833 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1834 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1835 #. kernel source. Last checked in Linux 4.16-rc source.
1836 #. type: Plain text
1837 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1838 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1839 #. kernel source. Last checked in Linux 4.16-rc source.
1840 #. type: Plain text
1841 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1842 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1843 #. kernel source. Last checked in Linux 4.16-rc source.
1844 #. type: Plain text
1845 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1846 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1847 #. kernel source. Last checked in Linux 4.16-rc source.
1848 #. type: Plain text
1849 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1850 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1851 #. kernel source. Last checked in Linux 4.16-rc source.
1852 #. type: Plain text
1853 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1854 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1855 #. kernel source. Last checked in Linux 4.16-rc source.
1856 #. type: Plain text
1857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1859 msgid ""
1860 "Architecture support for seccomp BPF filtering is available on the following "
1861 "architectures:"
1862 msgstr "يتوفر دعم المعمارية لترشيح seccomp BPF على المعماريات التالية:"
1863
1864 #. type: Plain text
1865 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1866 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1867 msgid "x86-64, i386, x32 (since Linux 3.5)"
1868 msgstr "x86-64, i386, x32 (منذ لينكس 3.5)"
1869
1870 #. type: Plain text
1871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1873 msgid "ARM (since Linux 3.8)"
1874 msgstr "ARM (منذ لينكس 3.8)"
1875
1876 #. type: Plain text
1877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1879 msgid "s390 (since Linux 3.8)"
1880 msgstr "s390 (منذ لينكس 3.8)"
1881
1882 #. type: Plain text
1883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1885 msgid "MIPS (since Linux 3.16)"
1886 msgstr "MIPS (منذ لينكس 3.16)"
1887
1888 #. type: Plain text
1889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1891 msgid "ARM-64 (since Linux 3.19)"
1892 msgstr "ARM-64 (منذ لينكس 3.19)"
1893
1894 #. type: Plain text
1895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1897 msgid "PowerPC (since Linux 4.3)"
1898 msgstr "PowerPC (منذ لينكس 4.3)"
1899
1900 #. type: Plain text
1901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1903 msgid "Tile (since Linux 4.3)"
1904 msgstr "Tile (منذ لينكس 4.3)"
1905
1906 #. User mode Linux since Linux 4.6
1907 #. type: Plain text
1908 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1909 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1910 msgid "PA-RISC (since Linux 4.6)"
1911 msgstr "PA-RISC (منذ لينكس 4.6)"
1912
1913 #. type: SS
1914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1916 #, no-wrap
1917 msgid "Caveats"
1918 msgstr "تحذيرات"
1919
1920 #. type: Plain text
1921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1923 msgid ""
1924 "There are various subtleties to consider when applying seccomp filters to a "
1925 "program, including the following:"
1926 msgstr ""
1927 "هناك تفاصيل دقيقة متنوعة يجب مراعاتها عند تطبيق مرشحات seccomp على برنامج، "
1928 "بما في ذلك ما يلي:"
1929
1930 #. type: Plain text
1931 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1932 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1933 msgid ""
1934 "Some traditional system calls have user-space implementations in the "
1935 "B<vdso>(7) on many architectures. Notable examples include "
1936 "B<clock_gettime>(2), B<gettimeofday>(2), and B<time>(2). On such "
1937 "architectures, seccomp filtering for these system calls will have no "
1938 "effect. (However, there are cases where the B<vdso>(7) implementations may "
1939 "fall back to invoking the true system call, in which case seccomp filters "
1940 "would see the system call.)"
1941 msgstr ""
1942 "بعض نداءات النظام التقليدية لها تطبيقات في مساحة المستخدم في B<vdso>(7) على "
1943 "العديد من المعماريات. تشمل الأمثلة البارزة B<clock_gettime>(2) و "
1944 "B<gettimeofday>(2) و B<time>(2). في مثل هذه المعماريات، لن يكون لترشيح "
1945 "seccomp لهذه النداءات أي تأثير. (ومع ذلك، هناك حالات قد تتراجع فيها تطبيقات "
1946 "B<vdso>(7) وتستدعي نداء النظام الحقيقي، وفي هذه الحالة سترى مرشحات seccomp "
1947 "نداء النظام)."
1948
1949 #. type: Plain text
1950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1952 msgid ""
1953 "Seccomp filtering is based on system call numbers. However, applications "
1954 "typically do not directly invoke system calls, but instead call wrapper "
1955 "functions in the C library which in turn invoke the system calls. "
1956 "Consequently, one must be aware of the following:"
1957 msgstr ""
1958 "يعتمد ترشيح Seccomp على أرقام نداءات النظام. ومع ذلك، لا تستدعي التطبيقات "
1959 "عادةً نداءات النظام مباشرة، بل تستدعي دوال غلاف في مكتبة C والتي بدورها "
1960 "تستدعي نداءات النظام. وبناءً على ذلك، يجب الانتباه لما يلي:"
1961
1962 #. type: Plain text
1963 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1964 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1965 msgid ""
1966 "The glibc wrappers for some traditional system calls may actually employ "
1967 "system calls with different names in the kernel. For example, the "
1968 "B<exit>(2) wrapper function actually employs the B<exit_group>(2) system "
1969 "call, and the B<fork>(2) wrapper function actually calls B<clone>(2)."
1970 msgstr ""
1971 "قد تستخدم أغلفة glibc لبعض نداءات النظام التقليدية في الواقع نداءات نظام "
1972 "بأسماء مختلفة في النواة. على سبيل المثال، تستخدم دالة الغلاف B<exit>(2) في "
1973 "الواقع نداء النظام B<exit_group>(2)، وتستدعي دالة الغلاف B<fork>(2) في "
1974 "الواقع B<clone>(2)."
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 "The behavior of wrapper functions may vary across architectures, according "
1981 "to the range of system calls provided on those architectures. In other "
1982 "words, the same wrapper function may invoke different system calls on "
1983 "different architectures."
1984 msgstr ""
1985 "قد يختلف سلوك دوال الغلاف عبر المعماريات، وفقًا لمجموعة نداءات النظام الموفرة "
1986 "على تلك المعماريات. بمعنى آخر، قد تستدعي نفس دالة الغلاف نداءات نظام مختلفة "
1987 "على معماريات مختلفة."
1988
1989 #. type: Plain text
1990 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1991 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1992 msgid ""
1993 "Finally, the behavior of wrapper functions can change across glibc "
1994 "versions. For example, in older versions, the glibc wrapper function for "
1995 "B<open>(2) invoked the system call of the same name, but starting in glibc "
1996 "2.26, the implementation switched to calling B<openat>(2) on all "
1997 "architectures."
1998 msgstr ""
1999 "أخيرًا، يمكن أن يتغير سلوك دوال الغلاف عبر إصدارات glibc. على سبيل المثال، في "
2000 "الإصدارات القديمة، كانت دالة غلاف glibc لـ B<open>(2) تستدعي نداء النظام "
2001 "الذي يحمل نفس الاسم، ولكن بدءًا من glibc 2.26، انتقل التطبيق إلى استدعاء "
2002 "B<openat>(2) على جميع المعماريات."
2003
2004 #. type: Plain text
2005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2007 msgid ""
2008 "The consequence of the above points is that it may be necessary to filter "
2009 "for a system call other than might be expected. Various manual pages in "
2010 "Section 2 provide helpful details about the differences between wrapper "
2011 "functions and the underlying system calls in subsections entitled I<C "
2012 "library/kernel differences>."
2013 msgstr ""
2014 "والنتيجة المترتبة على النقاط المذكورة أعلاه هي أنه قد يكون من الضروري "
2015 "الترشيح لنداء نظام آخر غير المتوقع. توفر صفحات الدليل المتنوعة في القسم 2 "
2016 "تفاصيل مفيدة حول الفروق بين دوال الغلاف ونداءات النظام الأساسية في الأقسام "
2017 "الفرعية المعنونة I<C library/kernel differences>."
2018
2019 #. type: Plain text
2020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2022 msgid ""
2023 "Furthermore, note that the application of seccomp filters even risks causing "
2024 "bugs in an application, when the filters cause unexpected failures for "
2025 "legitimate operations that the application might need to perform. Such bugs "
2026 "may not easily be discovered when testing the seccomp filters if the bugs "
2027 "occur in rarely used application code paths."
2028 msgstr ""
2029 "علاوة على ذلك، لاحظ أن تطبيق مرشحات seccomp قد يتسبب في حدوث علل (bugs) في "
2030 "التطبيق، عندما تتسبب المرشحات في إخفاقات غير متوقعة للعمليات المشروعة التي "
2031 "قد يحتاج التطبيق إلى تنفيذها. قد لا تُكتشف هذه العلل بسهولة عند اختبار مرشحات "
2032 "seccomp إذا حدثت في مسارات برمجية نادرة الاستخدام في التطبيق."
2033
2034 #. type: SS
2035 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2036 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2037 #, no-wrap
2038 msgid "Seccomp-specific BPF details"
2039 msgstr "تفاصيل BPF الخاصة بـ Seccomp"
2040
2041 #. type: Plain text
2042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2044 msgid "Note the following BPF details specific to seccomp filters:"
2045 msgstr "لاحظ تفاصيل BPF التالية الخاصة بمرشحات seccomp:"
2046
2047 #. type: Plain text
2048 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2049 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2050 msgid ""
2051 "The B<BPF_H> and B<BPF_B> size modifiers are not supported: all operations "
2052 "must load and store (4-byte) words (B<BPF_W>)."
2053 msgstr ""
2054 "معدلات الحجم B<BPF_H> و B<BPF_B> غير مدعومة: يجب أن تقوم جميع العمليات "
2055 "بتحميل وتخزين كلمات (4 بايت) (B<BPF_W>)."
2056
2057 #. type: Plain text
2058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2060 msgid ""
2061 "To access the contents of the I<seccomp_data> buffer, use the B<BPF_ABS> "
2062 "addressing mode modifier."
2063 msgstr ""
2064 "للوصول إلى محتويات مخزن I<seccomp_data> المؤقت، استخدم معدل وضع العنونة "
2065 "B<BPF_ABS>."
2066
2067 #. type: Plain text
2068 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2069 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2070 msgid ""
2071 "The B<BPF_LEN> addressing mode modifier yields an immediate mode operand "
2072 "whose value is the size of the I<seccomp_data> buffer."
2073 msgstr ""
2074 "ينتج عن معدل وضع العنونة B<BPF_LEN> معامل وضع فوري قيمته هي حجم مخزن "
2075 "I<seccomp_data> المؤقت."
2076
2077 #. type: SH
2078 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2079 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2080 #, no-wrap
2081 msgid "EXAMPLES"
2082 msgstr "أمثلة"
2083
2084 #. type: Plain text
2085 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2086 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2087 msgid ""
2088 "The program below accepts four or more arguments. The first three arguments "
2089 "are a system call number, a numeric architecture identifier, and an error "
2090 "number. The program uses these values to construct a BPF filter that is "
2091 "used at run time to perform the following checks:"
2092 msgstr ""
2093 "يقبل البرنامج أدناه أربعة وسائط أو أكثر. الوسائط الثلاثة الأولى هي رقم نداء "
2094 "نظام، ومعرف معمارية رقمي، ورقم خطأ. يستخدم البرنامج هذه القيم لإنشاء مرشح "
2095 "BPF يُستخدم في وقت التشغيل لإجراء الفحوصات التالية:"
2096
2097 #. type: Plain text
2098 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2099 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2100 msgid ""
2101 "If the program is not running on the specified architecture, the BPF filter "
2102 "causes system calls to fail with the error B<ENOSYS>."
2103 msgstr ""
2104 "إذا لم يكن البرنامج يعمل على المعمارية المحددة، فإن مرشح BPF يتسبب في فشل "
2105 "نداءات النظام مع الخطأ B<ENOSYS>."
2106
2107 #. type: Plain text
2108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2110 msgid ""
2111 "If the program attempts to execute the system call with the specified "
2112 "number, the BPF filter causes the system call to fail, with I<errno> being "
2113 "set to the specified error number."
2114 msgstr ""
2115 "إذا حاول البرنامج تنفيذ نداء النظام بالرقم المحدد، فإن مرشح BPF يتسبب في فشل "
2116 "نداء النظام، مع ضبط I<errno> على رقم الخطأ المحدد."
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 "The remaining command-line arguments specify the pathname and additional "
2123 "arguments of a program that the example program should attempt to execute "
2124 "using B<execv>(3) (a library function that employs the B<execve>(2) system "
2125 "call). Some example runs of the program are shown below."
2126 msgstr ""
2127 "تحدد وسائط سطر الأوامر المتبقية مسار ووسائط إضافية لبرنامج يجب على البرنامج "
2128 "المثال محاولة تنفيذه باستخدام B<execv>(3) (دالة مكتبية تستخدم نداء النظام "
2129 "B<execve>(2)). تظهر أدناه بعض عمليات تشغيل البرنامج كمثال."
2130
2131 #. type: Plain text
2132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2134 msgid ""
2135 "First, we display the architecture that we are running on (x86-64) and then "
2136 "construct a shell function that looks up system call numbers on this "
2137 "architecture:"
2138 msgstr ""
2139 "أولاً، نعرض المعمارية التي نعمل عليها (x86-64) ثم ننشئ دالة صدفة تبحث عن "
2140 "أرقام نداءات النظام في هذه المعمارية:"
2141
2142 #. type: Plain text
2143 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2144 #: opensuse-tumbleweed
2145 #, no-wrap
2146 msgid ""
2147 "$B< uname -m>;\n"
2148 "x86_64\n"
2149 "$ \\f[B]syscall_nr() {\n"
2150 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2151 " awk \\[aq]$2 != \\[dq]x32\\[dq] && $3 == \\[dq]\\[aq]$1\\[aq]\\[dq] {"
2152 " print $1 }\\[aq]\n"
2153 "}\\fR;\n"
2154 msgstr ""
2155 "$B< uname -m>;\n"
2156 "x86_64\n"
2157 "$ \\f[B]syscall_nr() {\n"
2158 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2159 " awk \\[aq]$2 != \\[dq]x32\\[dq] && $3 == \\[dq]\\[aq]$1\\[aq]\\[dq] {"
2160 " print $1 }\\[aq]\n"
2161 "}\\fR;\n"
2162
2163 #. type: Plain text
2164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2166 msgid ""
2167 "When the BPF filter rejects a system call (case [2] above), it causes the "
2168 "system call to fail with the error number specified on the command line. In "
2169 "the experiments shown here, we'll use error number 99:"
2170 msgstr ""
2171 "عندما يرفض مرشح BPF نداء نظام (الحالة [2] أعلاه)، فإنه يتسبب في فشل نداء "
2172 "النظام برقم الخطأ المحدد في سطر الأوامر. في التجارب الموضحة هنا، سنستخدم رقم "
2173 "الخطأ 99:"
2174
2175 #. type: Plain text
2176 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2177 #: opensuse-tumbleweed
2178 #, no-wrap
2179 msgid ""
2180 "$B< errno 99>;\n"
2181 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2182 msgstr ""
2183 "$B< errno 99>;\n"
2184 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2185
2186 #. type: Plain text
2187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2189 msgid ""
2190 "In the following example, we attempt to run the command B<whoami>(1), but "
2191 "the BPF filter rejects the B<execve>(2) system call, so that the command is "
2192 "not even executed:"
2193 msgstr ""
2194 "في المثال التالي، نحاول تشغيل الأمر B<whoami>(1)، لكن مرشح BPF يرفض نداء "
2195 "النظام B<execve>(2)، بحيث لا يُنفذ الأمر أبدًا:"
2196
2197 #. type: Plain text
2198 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2199 #: opensuse-tumbleweed
2200 #, no-wrap
2201 msgid ""
2202 "$B< syscall_nr execve>;\n"
2203 "59\n"
2204 "$B< ./a.out>;\n"
2205 "Usage: ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2206 ">progE<gt> [E<lt>argsE<gt>]\n"
2207 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2208 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2209 "$B< ./a.out 59 0xC000003E 99 /bin/whoami>;\n"
2210 "execv: Cannot assign requested address\n"
2211 msgstr ""
2212 "$B< syscall_nr execve>;\n"
2213 "59\n"
2214 "$B< ./a.out>;\n"
2215 "Usage: ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2216 ">progE<gt> [E<lt>argsE<gt>]\n"
2217 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2218 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2219 "$B< ./a.out 59 0xC000003E 99 /bin/whoami>;\n"
2220 "execv: Cannot assign requested address\n"
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 "In the next example, the BPF filter rejects the B<write>(2) system call, so "
2227 "that, although it is successfully started, the B<whoami>(1) command is not "
2228 "able to write output:"
2229 msgstr ""
2230 "في المثال التالي، يرفض مرشح BPF نداء النظام B<write>(2)، بحيث أنه على الرغم "
2231 "من تشغيل الأمر B<whoami>(1) بنجاح، إلا أنه لا يتمكن من كتابة أي مخرجات:"
2232
2233 #. type: Plain text
2234 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2235 #: opensuse-tumbleweed
2236 #, no-wrap
2237 msgid ""
2238 "$B< syscall_nr write>;\n"
2239 "1\n"
2240 "$B< ./a.out 1 0xC000003E 99 /bin/whoami>;\n"
2241 msgstr ""
2242 "$B< syscall_nr write>;\n"
2243 "1\n"
2244 "$B< ./a.out 1 0xC000003E 99 /bin/whoami>;\n"
2245
2246 #. type: Plain text
2247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2249 msgid ""
2250 "In the final example, the BPF filter rejects a system call that is not used "
2251 "by the B<whoami>(1) command, so it is able to successfully execute and "
2252 "produce output:"
2253 msgstr ""
2254 "في المثال الأخير، يرفض مرشح BPF نداء نظام لا يستخدمه الأمر B<whoami>(1)، لذا "
2255 "يتمكن من التنفيذ بنجاح وإخراج المخرجات:"
2256
2257 #. type: Plain text
2258 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2259 #: opensuse-tumbleweed
2260 #, no-wrap
2261 msgid ""
2262 "$B< syscall_nr preadv>;\n"
2263 "295\n"
2264 "$B< ./a.out 295 0xC000003E 99 /bin/whoami>;\n"
2265 "cecilia\n"
2266 msgstr ""
2267 "$B< syscall_nr preadv>;\n"
2268 "295\n"
2269 "$B< ./a.out 295 0xC000003E 99 /bin/whoami>;\n"
2270 "cecilia\n"
2271
2272 #. type: SS
2273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2275 #, no-wrap
2276 msgid "Program source"
2277 msgstr "مصدر البرنامج"
2278
2279 #. type: Plain text
2280 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2281 #: opensuse-tumbleweed
2282 #, no-wrap
2283 msgid ""
2284 "#include E<lt>linux/audit.hE<gt>\n"
2285 "#include E<lt>linux/filter.hE<gt>\n"
2286 "#include E<lt>linux/seccomp.hE<gt>\n"
2287 "#include E<lt>stdcountof.hE<gt>\n"
2288 "#include E<lt>stddef.hE<gt>\n"
2289 "#include E<lt>stdio.hE<gt>\n"
2290 "#include E<lt>stdlib.hE<gt>\n"
2291 "#include E<lt>sys/prctl.hE<gt>\n"
2292 "#include E<lt>sys/syscall.hE<gt>\n"
2293 "#include E<lt>unistd.hE<gt>\n"
2294 "\\&\n"
2295 "#define X32_SYSCALL_BIT 0x40000000\n"
2296 "\\&\n"
2297 "static int\n"
2298 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2299 "{\n"
2300 " unsigned int upper_nr_limit = 0xffffffff;\n"
2301 "\\&\n"
2302 " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2303 " (in the x32 ABI, all system calls have bit 30 set in the\n"
2304 " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT)."
2305 " */\n"
2306 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2307 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2308 "\\&\n"
2309 " struct sock_filter filter[] = {\n"
2310 " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2311 " accumulator. */\n"
2312 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2313 " (offsetof(struct seccomp_data, arch))),\n"
2314 "\\&\n"
2315 " /* [1] Jump forward 5 instructions if architecture does not\n"
2316 " match \\[aq]t_arch\\[aq]. */\n"
2317 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2318 "\\&\n"
2319 " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer"
2320 " into\n"
2321 " accumulator. */\n"
2322 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2323 " (offsetof(struct seccomp_data, nr))),\n"
2324 "\\&\n"
2325 " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2326 " cases. Use BPF_JGT instead of checking against the bit\n"
2327 " mask to avoid having to reload the syscall number. */\n"
2328 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2329 "\\&\n"
2330 " /* [4] Jump forward 1 instruction if system call number\n"
2331 " does not match \\[aq]syscall_nr\\[aq]. */\n"
2332 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2333 "\\&\n"
2334 " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2335 " the system call, and return \\[aq]f_errno\\[aq] in"
2336 " \\[aq]errno\\[aq]. */\n"
2337 " BPF_STMT(BPF_RET | BPF_K,\n"
2338 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2339 "\\&\n"
2340 " /* [6] Destination of system call number mismatch: allow other\n"
2341 " system calls. */\n"
2342 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2343 "\\&\n"
2344 " /* [7] Destination of architecture mismatch: kill process. */\n"
2345 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2346 " };\n"
2347 "\\&\n"
2348 " struct sock_fprog prog = {\n"
2349 " .len = countof(filter),\n"
2350 " .filter = filter,\n"
2351 " };\n"
2352 "\\&\n"
2353 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2354 " perror(\"seccomp\");\n"
2355 " return 1;\n"
2356 " }\n"
2357 "\\&\n"
2358 " return 0;\n"
2359 "}\n"
2360 "\\&\n"
2361 "int\n"
2362 "main(int argc, char *argv[])\n"
2363 "{\n"
2364 " if (argc E<lt> 5) {\n"
2365 " fprintf(stderr, \"Usage: \"\n"
2366 " \"%s E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2367 ">progE<gt> [E<lt>argsE<gt>]\\[rs]n\"\n"
2368 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2369 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2370 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2371 " exit(EXIT_FAILURE);\n"
2372 " }\n"
2373 "\\&\n"
2374 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2375 " perror(\"prctl\");\n"
2376 " exit(EXIT_FAILURE);\n"
2377 " }\n"
2378 "\\&\n"
2379 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2380 " strtoul(argv[2], NULL, 0),\n"
2381 " strtol(argv[3], NULL, 0)))\n"
2382 " exit(EXIT_FAILURE);\n"
2383 "\\&\n"
2384 " execv(argv[4], &argv[4]);\n"
2385 " perror(\"execv\");\n"
2386 " exit(EXIT_FAILURE);\n"
2387 "}\n"
2388 msgstr ""
2389 "#include E<lt>linux/audit.hE<gt>\n"
2390 "#include E<lt>linux/filter.hE<gt>\n"
2391 "#include E<lt>linux/seccomp.hE<gt>\n"
2392 "#include E<lt>stdcountof.hE<gt>\n"
2393 "#include E<lt>stddef.hE<gt>\n"
2394 "#include E<lt>stdio.hE<gt>\n"
2395 "#include E<lt>stdlib.hE<gt>\n"
2396 "#include E<lt>sys/prctl.hE<gt>\n"
2397 "#include E<lt>sys/syscall.hE<gt>\n"
2398 "#include E<lt>unistd.hE<gt>\n"
2399 "\\&\n"
2400 "#define X32_SYSCALL_BIT 0x40000000\n"
2401 "\\&\n"
2402 "static int\n"
2403 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2404 "{\n"
2405 " unsigned int upper_nr_limit = 0xffffffff;\n"
2406 "\\&\n"
2407 " /* نفترض أن AUDIT_ARCH_X86_64 تعني ABI x86-64 العادي\n"
2408 " (في ABI x32، تحتوي جميع نداءات النظام على بت 30 مضبوطًا في\n"
2409 " حقل \\[aq]nr\\[aq]، مما يعني أن الأرقام هي E<gt>= X32_SYSCALL_BIT). "
2410 " */\n"
2411 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2412 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2413 "\\&\n"
2414 " struct sock_filter filter[] = {\n"
2415 " /* [0] تحميل المعمارية من مخزن \\[aq]seccomp_data\\[aq] المؤقت إلى\n"
2416 " المركم. */\n"
2417 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2418 " (offsetof(struct seccomp_data, arch))),\n"
2419 "\\&\n"
2420 " /* [1] القفز للأمام 5 تعليمات إذا كانت المعمارية لا\n"
2421 " تطابق \\[aq]t_arch\\[aq]. */\n"
2422 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2423 "\\&\n"
2424 " /* [2] تحميل رقم نداء النظام من مخزن \\[aq]seccomp_data\\[aq] المؤقت"
2425 " إلى\n"
2426 " المركم. */\n"
2427 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2428 " (offsetof(struct seccomp_data, nr))),\n"
2429 "\\&\n"
2430 " /* [3] فحص ABI - مطلوب فقط لـ x86-64 في حالات استخدام\n"
2431 " قائمة الحظر. استخدم BPF_JGT بدلاً من الفحص ضد قناع\n"
2432 " البتات لتجنب الاضطرار لإعادة تحميل رقم نداء النظام. */\n"
2433 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2434 "\\&\n"
2435 " /* [4] القفز للأمام تعليمية واحدة إذا كان رقم نداء النظام\n"
2436 " لا يطابق \\[aq]syscall_nr\\[aq]. */\n"
2437 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2438 "\\&\n"
2439 " /* [5] تطابق المعمارية ونداء النظام: لا تنفذ\n"
2440 " نداء النظام، وأعد \\[aq]f_errno\\[aq] في \\[aq]errno\\[aq]. */\n"
2441 " BPF_STMT(BPF_RET | BPF_K,\n"
2442 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2443 "\\&\n"
2444 " /* [6] وجهة عدم تطابق رقم نداء النظام: السماح بنداءات\n"
2445 " النظام الأخرى. */\n"
2446 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2447 "\\&\n"
2448 " /* [7] وجهة عدم تطابق المعمارية: قتل العملية. */\n"
2449 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2450 " };\n"
2451 "\\&\n"
2452 " struct sock_fprog prog = {\n"
2453 " .len = countof(filter),\n"
2454 " .filter = filter,\n"
2455 " };\n"
2456 "\\&\n"
2457 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2458 " perror(\"seccomp\");\n"
2459 " return 1;\n"
2460 " }\n"
2461 "\\&\n"
2462 " return 0;\n"
2463 "}\n"
2464 "\\&\n"
2465 "int\n"
2466 "main(int argc, char *argv[])\n"
2467 "{\n"
2468 " if (argc E<lt> 5) {\n"
2469 " fprintf(stderr, \"Usage: \"\n"
2470 " \"%s E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2471 ">progE<gt> [E<lt>argsE<gt>]\\[rs]n\"\n"
2472 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2473 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2474 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2475 " exit(EXIT_FAILURE);\n"
2476 " }\n"
2477 "\\&\n"
2478 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2479 " perror(\"prctl\");\n"
2480 " exit(EXIT_FAILURE);\n"
2481 " }\n"
2482 "\\&\n"
2483 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2484 " strtoul(argv[2], NULL, 0),\n"
2485 " strtol(argv[3], NULL, 0)))\n"
2486 " exit(EXIT_FAILURE);\n"
2487 "\\&\n"
2488 " execv(argv[4], &argv[4]);\n"
2489 " perror(\"execv\");\n"
2490 " exit(EXIT_FAILURE);\n"
2491 "}\n"
2492
2493 #. SRC END
2494 #. type: SH
2495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2497 #, no-wrap
2498 msgid "SEE ALSO"
2499 msgstr "انظر أيضًا"
2500
2501 #. type: Plain text
2502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2504 msgid ""
2505 "B<bpfc>(1), B<strace>(1), B<bpf>(2), B<prctl>(2), B<ptrace>(2), "
2506 "B<seccomp_unotify>(2), B<sigaction>(2), B<proc>(5), B<signal>(7), "
2507 "B<socket>(7)"
2508 msgstr ""
2509 "B<bpfc>(1), B<strace>(1), B<bpf>(2), B<prctl>(2), B<ptrace>(2), "
2510 "B<seccomp_unotify>(2), B<sigaction>(2), B<proc>(5), B<signal>(7), "
2511 "B<socket>(7)"
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 "Various pages from the I<libseccomp> library, including: "
2518 "B<scmp_sys_resolver>(1), B<seccomp_export_bpf>(3), B<seccomp_init>(3), "
2519 "B<seccomp_load>(3), and B<seccomp_rule_add>(3)."
2520 msgstr ""
2521 "صفحات متنوعة من مكتبة I<libseccomp>، تشمل: B<scmp_sys_resolver>(1) و "
2522 "B<seccomp_export_bpf>(3) و B<seccomp_init>(3) و B<seccomp_load>(3) و "
2523 "B<seccomp_rule_add>(3)."
2524
2525 #. type: Plain text
2526 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2527 #: opensuse-tumbleweed
2528 msgid ""
2529 "The kernel source files I<Documentation/networking/filter.rst> and "
2530 "I<Documentation/userspace-api/seccomp_filter.rst>."
2531 msgstr ""
2532 "ملفات مصدر النواة I<Documentation/networking/filter.rst> و I<Documentation/"
2533 "userspace-api/seccomp_filter.rst>."
2534
2535 #. type: Plain text
2536 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2537 #: opensuse-tumbleweed
2538 msgid ""
2539 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2540 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2541 "Winter 1993 Conference E<.UR http:\\://www.tcpdump.org/papers/bpf-usenix93."
2542 "pdf> E<.UE>"
2543 msgstr ""
2544 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2545 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2546 "Winter 1993 Conference E<.UR http:\\://www.tcpdump.org/papers/bpf-usenix93."
2547 "pdf> E<.UE>"
2548
2549 #. type: Plain text
2550 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2551 #: opensuse-tumbleweed
2552 msgid ""
2553 "Terence Kelly and Edison Fuh (2025) Sandboxing: Foolproof Boundaries vs.\\& "
2554 "Unbounded Foolishness E<.UR https:\\://dl.acm.org/doi/pdf/10.1145/3733699> "
2555 "E<.UE>"
2556 msgstr ""
2557 "Terence Kelly and Edison Fuh (2025) Sandboxing: Foolproof Boundaries vs.\\& "
2558 "Unbounded Foolishness E<.UR https:\\://dl.acm.org/doi/pdf/10.1145/3733699> "
2559 "E<.UE>"
2560
2561 #. type: TH
2562 #: debian-trixie
2563 #, no-wrap
2564 msgid "2024-06-15"
2565 msgstr "15 يونيو 2024"
2566
2567 #. type: TH
2568 #: debian-trixie
2569 #, no-wrap
2570 msgid "Linux man-pages 6.9.1"
2571 msgstr "صفحات دليل لينكس 6.9.1"
2572
2573 #. type: Plain text
2574 #: debian-trixie
2575 msgid "Standard C library (I<libc>, I<-lc>)"
2576 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
2577
2578 #. type: Plain text
2579 #: debian-trixie fedora-44 fedora-rawhide
2580 #, no-wrap
2581 msgid ""
2582 "$ B<uname -m>\n"
2583 "x86_64\n"
2584 "$ B<syscall_nr() {\n"
2585 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2586 " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2587 "}>\n"
2588 msgstr ""
2589 "$ B<uname -m>\n"
2590 "x86_64\n"
2591 "$ B<syscall_nr() {\n"
2592 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2593 " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2594 "}>\n"
2595
2596 #. type: Plain text
2597 #: debian-trixie fedora-44 fedora-rawhide
2598 #, no-wrap
2599 msgid ""
2600 "$ B<errno 99>\n"
2601 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2602 msgstr ""
2603 "$ B<errno 99>\n"
2604 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2605
2606 #. type: Plain text
2607 #: debian-trixie fedora-44 fedora-rawhide
2608 #, no-wrap
2609 msgid ""
2610 "$ B<syscall_nr execve>\n"
2611 "59\n"
2612 "$ B<./a.out>\n"
2613 "Usage: ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2614 ">progE<gt> [E<lt>argsE<gt>]\n"
2615 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2616 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2617 "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2618 "execv: Cannot assign requested address\n"
2619 msgstr ""
2620 "$ B<syscall_nr execve>\n"
2621 "59\n"
2622 "$ B<./a.out>\n"
2623 "Usage: ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2624 ">progE<gt> [E<lt>argsE<gt>]\n"
2625 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2626 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2627 "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2628 "execv: Cannot assign requested address\n"
2629
2630 #. type: Plain text
2631 #: debian-trixie fedora-44 fedora-rawhide
2632 #, no-wrap
2633 msgid ""
2634 "$ B<syscall_nr write>\n"
2635 "1\n"
2636 "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2637 msgstr ""
2638 "$ B<syscall_nr write>\n"
2639 "1\n"
2640 "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2641
2642 #. type: Plain text
2643 #: debian-trixie fedora-44 fedora-rawhide
2644 #, no-wrap
2645 msgid ""
2646 "$ B<syscall_nr preadv>\n"
2647 "295\n"
2648 "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2649 "cecilia\n"
2650 msgstr ""
2651 "$ B<syscall_nr preadv>\n"
2652 "295\n"
2653 "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2654 "cecilia\n"
2655
2656 #. type: Plain text
2657 #: debian-trixie fedora-44 fedora-rawhide
2658 #, no-wrap
2659 msgid ""
2660 "#include E<lt>linux/audit.hE<gt>\n"
2661 "#include E<lt>linux/filter.hE<gt>\n"
2662 "#include E<lt>linux/seccomp.hE<gt>\n"
2663 "#include E<lt>stddef.hE<gt>\n"
2664 "#include E<lt>stdio.hE<gt>\n"
2665 "#include E<lt>stdlib.hE<gt>\n"
2666 "#include E<lt>sys/prctl.hE<gt>\n"
2667 "#include E<lt>sys/syscall.hE<gt>\n"
2668 "#include E<lt>unistd.hE<gt>\n"
2669 "\\&\n"
2670 "#define X32_SYSCALL_BIT 0x40000000\n"
2671 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
2672 "\\&\n"
2673 "static int\n"
2674 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2675 "{\n"
2676 " unsigned int upper_nr_limit = 0xffffffff;\n"
2677 "\\&\n"
2678 " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2679 " (in the x32 ABI, all system calls have bit 30 set in the\n"
2680 " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT)."
2681 " */\n"
2682 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2683 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2684 "\\&\n"
2685 " struct sock_filter filter[] = {\n"
2686 " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2687 " accumulator. */\n"
2688 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2689 " (offsetof(struct seccomp_data, arch))),\n"
2690 "\\&\n"
2691 " /* [1] Jump forward 5 instructions if architecture does not\n"
2692 " match \\[aq]t_arch\\[aq]. */\n"
2693 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2694 "\\&\n"
2695 " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer"
2696 " into\n"
2697 " accumulator. */\n"
2698 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2699 " (offsetof(struct seccomp_data, nr))),\n"
2700 "\\&\n"
2701 " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2702 " cases. Use BPF_JGT instead of checking against the bit\n"
2703 " mask to avoid having to reload the syscall number. */\n"
2704 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2705 "\\&\n"
2706 " /* [4] Jump forward 1 instruction if system call number\n"
2707 " does not match \\[aq]syscall_nr\\[aq]. */\n"
2708 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2709 "\\&\n"
2710 " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2711 " the system call, and return \\[aq]f_errno\\[aq] in"
2712 " \\[aq]errno\\[aq]. */\n"
2713 " BPF_STMT(BPF_RET | BPF_K,\n"
2714 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2715 "\\&\n"
2716 " /* [6] Destination of system call number mismatch: allow other\n"
2717 " system calls. */\n"
2718 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2719 "\\&\n"
2720 " /* [7] Destination of architecture mismatch: kill process. */\n"
2721 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2722 " };\n"
2723 "\\&\n"
2724 " struct sock_fprog prog = {\n"
2725 " .len = ARRAY_SIZE(filter),\n"
2726 " .filter = filter,\n"
2727 " };\n"
2728 "\\&\n"
2729 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2730 " perror(\"seccomp\");\n"
2731 " return 1;\n"
2732 " }\n"
2733 "\\&\n"
2734 " return 0;\n"
2735 "}\n"
2736 "\\&\n"
2737 "int\n"
2738 "main(int argc, char *argv[])\n"
2739 "{\n"
2740 " if (argc E<lt> 5) {\n"
2741 " fprintf(stderr, \"Usage: \"\n"
2742 " \"%s E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2743 ">progE<gt> [E<lt>argsE<gt>]\\[rs]n\"\n"
2744 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2745 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2746 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2747 " exit(EXIT_FAILURE);\n"
2748 " }\n"
2749 "\\&\n"
2750 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2751 " perror(\"prctl\");\n"
2752 " exit(EXIT_FAILURE);\n"
2753 " }\n"
2754 "\\&\n"
2755 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2756 " strtoul(argv[2], NULL, 0),\n"
2757 " strtol(argv[3], NULL, 0)))\n"
2758 " exit(EXIT_FAILURE);\n"
2759 "\\&\n"
2760 " execv(argv[4], &argv[4]);\n"
2761 " perror(\"execv\");\n"
2762 " exit(EXIT_FAILURE);\n"
2763 "}\n"
2764 msgstr ""
2765 "#include E<lt>linux/audit.hE<gt>\n"
2766 "#include E<lt>linux/filter.hE<gt>\n"
2767 "#include E<lt>linux/seccomp.hE<gt>\n"
2768 "#include E<lt>stddef.hE<gt>\n"
2769 "#include E<lt>stdio.hE<gt>\n"
2770 "#include E<lt>stdlib.hE<gt>\n"
2771 "#include E<lt>sys/prctl.hE<gt>\n"
2772 "#include E<lt>sys/syscall.hE<gt>\n"
2773 "#include E<lt>unistd.hE<gt>\n"
2774 "\\&\n"
2775 "#define X32_SYSCALL_BIT 0x40000000\n"
2776 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
2777 "\\&\n"
2778 "static int\n"
2779 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2780 "{\n"
2781 " unsigned int upper_nr_limit = 0xffffffff;\n"
2782 "\\&\n"
2783 " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2784 " (in the x32 ABI, all system calls have bit 30 set in the\n"
2785 " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT)."
2786 " */\n"
2787 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2788 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2789 "\\&\n"
2790 " struct sock_filter filter[] = {\n"
2791 " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2792 " accumulator. */\n"
2793 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2794 " (offsetof(struct seccomp_data, arch))),\n"
2795 "\\&\n"
2796 " /* [1] Jump forward 5 instructions if architecture does not\n"
2797 " match \\[aq]t_arch\\[aq]. */\n"
2798 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2799 "\\&\n"
2800 " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer"
2801 " into\n"
2802 " accumulator. */\n"
2803 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2804 " (offsetof(struct seccomp_data, nr))),\n"
2805 "\\&\n"
2806 " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2807 " cases. Use BPF_JGT instead of checking against the bit\n"
2808 " mask to avoid having to reload the syscall number. */\n"
2809 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2810 "\\&\n"
2811 " /* [4] Jump forward 1 instruction if system call number\n"
2812 " does not match \\[aq]syscall_nr\\[aq]. */\n"
2813 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2814 "\\&\n"
2815 " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2816 " the system call, and return \\[aq]f_errno\\[aq] in"
2817 " \\[aq]errno\\[aq]. */\n"
2818 " BPF_STMT(BPF_RET | BPF_K,\n"
2819 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2820 "\\&\n"
2821 " /* [6] Destination of system call number mismatch: allow other\n"
2822 " system calls. */\n"
2823 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2824 "\\&\n"
2825 " /* [7] Destination of architecture mismatch: kill process. */\n"
2826 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2827 " };\n"
2828 "\\&\n"
2829 " struct sock_fprog prog = {\n"
2830 " .len = ARRAY_SIZE(filter),\n"
2831 " .filter = filter,\n"
2832 " };\n"
2833 "\\&\n"
2834 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2835 " perror(\"seccomp\");\n"
2836 " return 1;\n"
2837 " }\n"
2838 "\\&\n"
2839 " return 0;\n"
2840 "}\n"
2841 "\\&\n"
2842 "int\n"
2843 "main(int argc, char *argv[])\n"
2844 "{\n"
2845 " if (argc E<lt> 5) {\n"
2846 " fprintf(stderr, \"Usage: \"\n"
2847 " \"%s E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt"
2848 ">progE<gt> [E<lt>argsE<gt>]\\[rs]n\"\n"
2849 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2850 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2851 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2852 " exit(EXIT_FAILURE);\n"
2853 " }\n"
2854 "\\&\n"
2855 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2856 " perror(\"prctl\");\n"
2857 " exit(EXIT_FAILURE);\n"
2858 " }\n"
2859 "\\&\n"
2860 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2861 " strtoul(argv[2], NULL, 0),\n"
2862 " strtol(argv[3], NULL, 0)))\n"
2863 " exit(EXIT_FAILURE);\n"
2864 "\\&\n"
2865 " execv(argv[4], &argv[4]);\n"
2866 " perror(\"execv\");\n"
2867 " exit(EXIT_FAILURE);\n"
2868 "}\n"
2869
2870 #. commit c061f33f35be0ccc80f4b8e0aea5dfd2ed7e01a3
2871 #. type: Plain text
2872 #: debian-trixie fedora-44 fedora-rawhide
2873 msgid ""
2874 "The kernel source files I<Documentation/networking/filter.txt> and "
2875 "I<Documentation/userspace-api/seccomp_filter.rst> (or I<Documentation/prctl/"
2876 "seccomp_filter.txt> before Linux 4.13)."
2877 msgstr ""
2878 "ملفات مصدر النواة I<Documentation/networking/filter.txt> و I<Documentation/"
2879 "userspace-api/seccomp_filter.rst> (أو I<Documentation/prctl/seccomp_filter."
2880 "txt> قبل لينكس 4.13)."
2881
2882 #. type: Plain text
2883 #: debian-trixie fedora-44 fedora-rawhide
2884 msgid ""
2885 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2886 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2887 "Winter 1993 Conference E<.UR http://www.tcpdump.org/papers/bpf-usenix93.pdf> "
2888 "E<.UE>"
2889 msgstr ""
2890 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2891 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2892 "Winter 1993 Conference E<.UR http://www.tcpdump.org/papers/bpf-usenix93.pdf> "
2893 "E<.UE>"
2894
2895 #. type: TH
2896 #: fedora-44 fedora-rawhide
2897 #, no-wrap
2898 msgid "2024-07-23"
2899 msgstr "23 يوليو 2024"
2900
2901 #. type: TH
2902 #: fedora-44 fedora-rawhide
2903 #, no-wrap
2904 msgid "Linux man-pages 6.13"
2905 msgstr "صفحات دليل لينكس 6.13"
2906
2907 #. type: TH
2908 #: mageia-cauldron
2909 #, no-wrap
2910 msgid "Linux man-pages 6.17"
2911 msgstr "صفحات دليل لينكس 6.17"
2912
2913 #. type: TH
2914 #: opensuse-leap-16-1 opensuse-tumbleweed
2915 #, no-wrap
2916 msgid "Linux man-pages (unreleased)"
2917 msgstr "صفحات دليل لينكس (لم تصدر بعد)"
2918