Debian Codegraph @

po/ru/man2/seccomp.2.po

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