Debian Codegraph @

po/fr/man2/seccomp.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2013-2014.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Jean-Philippe MENGUAL <[email protected]>, 2021-2023.
19 # Jean-Pierre Giraud <[email protected]>, 2023-2024.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.22.0\n"
23 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
24 "PO-Revision-Date: 2024-06-02 11:09+0200\n"
25 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "seccomp"
39 msgstr "seccomp"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-10"
46 msgstr "10 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "seccomp - operate on Secure Computing state of the process"
65 msgstr ""
66 "seccomp - Agir sur l'état de calcul sécurisé (Secure Computing State) du "
67 "processus"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "LIBRARY"
74 msgstr "BIBLIOTHÈQUE"
75
76 #. type: Plain text
77 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
78 #: opensuse-leap-16-1 opensuse-tumbleweed
79 msgid "Standard C library (I<libc>,\\ I<-lc>)"
80 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
81
82 #. type: SH
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "SYNOPSIS"
87 msgstr "SYNOPSIS"
88
89 #. Kees Cook noted: Anything that uses SECCOMP_RET_TRACE returns will
90 #. need <sys/ptrace.h>
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<#include E<lt>linux/seccomp.hE<gt>> /* Definition of B<SECCOMP_*> constants */\n"
97 "B<#include E<lt>linux/filter.hE<gt>> /* Definition of B<struct sock_fprog> */\n"
98 "B<#include E<lt>linux/audit.hE<gt>> /* Definition of B<AUDIT_*> constants */\n"
99 "B<#include E<lt>linux/signal.hE<gt>> /* Definition of B<SIG*> constants */\n"
100 "B<#include E<lt>sys/ptrace.hE<gt>> /* Definition of B<PTRACE_*> constants */\n"
101 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103 msgstr ""
104 "B<#include E<lt>linux/seccomp.hE<gt>> /* Définition des constantes B<SECCOMP_*> */\n"
105 "B<#include E<lt>linux/filter.hE<gt>> /* Définition de B<struct sock_fprog> */\n"
106 "B<#include E<lt>linux/audit.hE<gt>> /* Définition des constantes B<AUDIT_*> */\n"
107 "B<#include E<lt>linux/signal.hE<gt>> /* Définition des constantes B<SIG*> */\n"
108 "B<#include E<lt>sys/ptrace.hE<gt>> /* Définition des constantes B<PTRACE_*> */\n"
109 "B<#include E<lt>sys/syscall.hE<gt>> /* Définition des constantes B<SYS_*> */\n"
110 "B<#include E<lt>unistd.hE<gt>>\n"
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid ""
117 "B<int syscall(SYS_seccomp, unsigned int >I<operation>B<, unsigned int >I<flags>B<,>\n"
118 "B< void *>I<args>B<);>\n"
119 msgstr ""
120 "B<int syscall(SYS_seccomp, unsigned int >I<opération>B<, unsigned int >I<flags>B<,>\n"
121 "B< void *>I<args>B<);>\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "I<Note>: glibc provides no wrapper for B<seccomp>(), necessitating the use "
128 "of B<syscall>(2)."
129 msgstr ""
130 "I<Remarque> : la glibc ne fournit pas d'enveloppe pour B<seccomp>(), "
131 "imposant l'utilisation de B<syscall>(2)."
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "DESCRIPTION"
138 msgstr "DESCRIPTION"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The B<seccomp>() system call operates on the Secure Computing (seccomp) "
145 "state of the calling process."
146 msgstr ""
147 "L'appel système B<seccomp>() agit sur l'état de calcul sécurisé (seccomp) du "
148 "processus appelant."
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid "Currently, Linux supports the following I<operation> values:"
154 msgstr "Actuellement, Linux gère les valeurs d'I<opération> suivantes :"
155
156 #. type: TP
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid "B<SECCOMP_SET_MODE_STRICT>"
161 msgstr "B<SECCOMP_SET_MODE_STRICT>"
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
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 "Les seuls appels système que le thread appelant est autorisé à faire sont "
176 "B<read>(2), B<write>(2), B<_exit>(2) (mais pas B<exit_group>(2)) et "
177 "B<sigreturn>(2). Les autres appels système aboutissent à la fin du thread "
178 "appelant ou à la fin du processus complet avec le signal B<SIGKILL> quand il "
179 "n'y a qu'un seul thread. Le mode de calcul sécurisé strict est utile pour "
180 "les applications de traitement de nombres qui peuvent avoir besoin "
181 "d'exécuter un code à octets non fiable, obtenu peut-être en lisant un tube "
182 "ou un socket."
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "Note that although the calling thread can no longer call B<sigprocmask>(2), "
189 "it can use B<sigreturn>(2) to block all signals apart from B<SIGKILL> and "
190 "B<SIGSTOP>. This means that B<alarm>(2) (for example) is not sufficient "
191 "for restricting the process's execution time. Instead, to reliably "
192 "terminate the process, B<SIGKILL> must be used. This can be done by using "
193 "B<timer_create>(2) with B<SIGEV_SIGNAL> and I<sigev_signo> set to "
194 "B<SIGKILL>, or by using B<setrlimit>(2) to set the hard limit for "
195 "B<RLIMIT_CPU>."
196 msgstr ""
197 "Remarquez que si le thread appelant ne peut plus appeler B<sigprocmask>(2), "
198 "il peut utiliser B<sigreturn>(2) pour bloquer tous les signaux, sauf ceux "
199 "provenant de B<SIGKILL> et de B<SIGSTOP>. Cela veut dire que B<alarm>(2) "
200 "(par exemple) n'est pas suffisant pour restreindre la durée d'exécution d'un "
201 "processus. Pour terminer de manière fiable un processus, B<SIGKILL> doit "
202 "être utilisé. On peut le faire en utilisant B<timer_create>(2) avec "
203 "B<SIGEV_SIGNAL> et I<sigev_signo> positionné à B<SIGKILL> ou en utilisant "
204 "B<setrlimit>(2) pour positionner la limite ferme de B<RLIMIT_CPU>."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "This operation is available only if the kernel is configured with "
211 "B<CONFIG_SECCOMP> enabled."
212 msgstr ""
213 "Cette fonctionnalité n'est disponible que si le noyau a été construit avec "
214 "l'option B<CONFIG_SECCOMP> activée."
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "The value of I<flags> must be 0, and I<args> must be NULL."
220 msgstr "La valeur de I<flags> doit être de B<0> et I<args> doit être NULL."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid "This operation is functionally identical to the call:"
226 msgstr "Cette opération est fonctionnellement identique à l'appel :"
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT);\n"
233 msgstr "prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT);\n"
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<SECCOMP_SET_MODE_FILTER>"
240 msgstr "B<SECCOMP_SET_MODE_FILTER>"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, fuzzy
246 #| msgid ""
247 #| "The system calls allowed are defined by a pointer to a Berkeley Packet "
248 #| "Filter (BPF) passed via I<args>. This argument is a pointer to a "
249 #| "I<struct\\ sock_fprog>; it can be designed to filter arbitrary system "
250 #| "calls and system call arguments. If the filter is invalid, B<seccomp>() "
251 #| "fails, returning B<EINVAL> in I<errno>."
252 msgid ""
253 "The system calls allowed are defined by a pointer to a Berkeley Packet "
254 "Filter (BPF) passed via I<args>. This argument is a pointer to a I<struct\\ "
255 "sock_fprog>; it can be designed to filter arbitrary system calls and system "
256 "call arguments. If the filter is invalid, B<seccomp>() fails, returning "
257 "B<EINVAL> in I<errno>."
258 msgstr ""
259 "Les appels système autorisés sont définis par un pointeur vers un filtre "
260 "Berkeley Packet (BPF) fourni à l'aide de I<args>. Ce paramètre est un "
261 "pointeur vers une I<struct\\ sock_fprog> ; il peut être conçu pour filtrer "
262 "des appels système de votre choix ainsi que des paramètres d'appel système. "
263 "Si le filtre n'est pas valable, B<seccomp>() échoue en renvoyant B<EINVAL> "
264 "dans I<errno>."
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "If B<fork>(2) or B<clone>(2) is allowed by the filter, any child processes "
271 "will be constrained to the same system call filters as the parent. If "
272 "B<execve>(2) is allowed, the existing filters will be preserved across a "
273 "call to B<execve>(2)."
274 msgstr ""
275 "Si B<fork>(2) ou B<clone>(2) est autorisé par le filtre, les processus "
276 "enfant seront contraints par les mêmes filtres d'appel système que leur "
277 "parent. Si B<execve>(2) est autorisé, les filtres existants seront préservés "
278 "lors d'un appel à B<execve>(2)."
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "In order to use the B<SECCOMP_SET_MODE_FILTER> operation, either the calling "
285 "thread must have the B<CAP_SYS_ADMIN> capability in its user namespace, or "
286 "the thread must already have the I<no_new_privs> bit set. If that bit was "
287 "not already set by an ancestor of this thread, the thread must make the "
288 "following call:"
289 msgstr ""
290 "Pour utiliser l'opération B<SECCOMP_SET_MODE_FILTER>, soit le thread "
291 "appelant doit avoir la capacité B<CAP_SYS_ADMIN> dans son espace de noms "
292 "utilisateur, soit il doit avoir déjà le bit I<no_new_privs> défini. Si ce "
293 "bit n'a pas déjà été positionné par un ascendant du thread, le thread doit "
294 "effectuer l'appel suivant :"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "prctl(PR_SET_NO_NEW_PRIVS, 1);\n"
301 msgstr "prctl(PR_SET_NO_NEW_PRIVS, 1);\n"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "Otherwise, the B<SECCOMP_SET_MODE_FILTER> operation fails and returns "
308 "B<EACCES> in I<errno>. This requirement ensures that an unprivileged "
309 "process cannot apply a malicious filter and then invoke a set-user-ID or "
310 "other privileged program using B<execve>(2), thus potentially compromising "
311 "that program. (Such a malicious filter might, for example, cause an attempt "
312 "to use B<setuid>(2) to set the caller's user IDs to nonzero values to "
313 "instead return 0 without actually making the system call. Thus, the program "
314 "might be tricked into retaining superuser privileges in circumstances where "
315 "it is possible to influence it to do dangerous things because it did not "
316 "actually drop privileges.)"
317 msgstr ""
318 "Sinon, l'opération B<SECCOMP_SET_MODE_FILTER> échoue et renvoie B<EACCES> "
319 "dans I<errno>. Cette exigence garantit qu'un processus non privilégié ne "
320 "peut pas appliquer un filtre malveillant et appeler un programme set-user-ID "
321 "ou avec d'autres privilèges en utilisant B<execve>(2), compromettant ainsi "
322 "le programme (un tel filtre malveillant pourrait, par exemple, conduire "
323 "B<setuid>(2) à essayer de définir les identifiants utilisateur de l'appelant "
324 "à des valeurs non nulles pour renvoyer plutôt B<0> sans faire d'appel "
325 "système. Ainsi, le programme pourrait être bidouillé pour garder les "
326 "privilèges du super-utilisateur à des moments où il est possible de "
327 "l'influencer pour faire des choses dangereuses vu qu'il n'a pas abandonné "
328 "ses privilèges)."
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "If B<prctl>(2) or B<seccomp>() is allowed by the attached filter, further "
335 "filters may be added. This will increase evaluation time, but allows for "
336 "further reduction of the attack surface during execution of a thread."
337 msgstr ""
338 "Si B<prctl>(2) ou B<seccomp>() est autorisé par le filtre rattaché, d'autres "
339 "filtres peuvent être ajoutés. Cela augmentera le temps d'évaluation mais "
340 "permet d'autres réductions de la surface d'attaque lors de l'exécution d'un "
341 "thread."
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "The B<SECCOMP_SET_MODE_FILTER> operation is available only if the kernel is "
348 "configured with B<CONFIG_SECCOMP_FILTER> enabled."
349 msgstr ""
350 "L'opération B<SECCOMP_SET_MODE_FILTER> n'est disponible que si le noyau a "
351 "été configuré avec B<CONFIG_SECCOMP_FILTER>."
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "When I<flags> is 0, this operation is functionally identical to the call:"
358 msgstr ""
359 "Quand I<flags> vaut B<0>, cette opération est fonctionnellement identique à "
360 "l'appel :"
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 #, no-wrap
366 msgid "prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, args);\n"
367 msgstr "prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, args);\n"
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid "The recognized I<flags> are:"
373 msgstr "Les paramètres reconnus de I<flags> sont :"
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<SECCOMP_FILTER_FLAG_LOG> (since Linux 4.14)"
380 msgstr "B<SECCOMP_FILTER_FLAG_LOG> (depuis Linux 4.14)"
381
382 #. commit e66a39977985b1e69e17c4042cb290768eca9b02
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "All filter return actions except B<SECCOMP_RET_ALLOW> should be logged. An "
388 "administrator may override this filter flag by preventing specific actions "
389 "from being logged via the I</proc/sys/kernel/seccomp/actions_logged> file."
390 msgstr ""
391 "Toutes les actions de renvoi des filtres, sauf B<SECCOMP_RET_ALLOW>, doivent "
392 "être journalisées. Un administrateur peut outrepasser cet attribut de filtre "
393 "en empêchant des actions spécifiques d'être journalisées à l'aide du fichier "
394 "I</proc/sys/kernel/seccomp/actions_logged>."
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> (since Linux 5.0)"
401 msgstr "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> (depuis Linux 5.0)"
402
403 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "After successfully installing the filter program, return a new user-space "
409 "notification file descriptor. (The close-on-exec flag is set for the file "
410 "descriptor.) When the filter returns B<SECCOMP_RET_USER_NOTIF> a "
411 "notification will be sent to this file descriptor."
412 msgstr ""
413 "Après une installation réussie du programme de filtrage, renvoyer un nouveau "
414 "descripteur de fichier de notification pour l'espace utilisateur. "
415 "(L'attribut close-on-exec est défini pour le descripteur de fichier.) Quand "
416 "le filtre renvoie B<SECCOMP_RET_USER_NOTIF>, une notification sera envoyée à "
417 "ce descripteur de fichier."
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "At most one seccomp filter using the B<SECCOMP_FILTER_FLAG_NEW_LISTENER> "
424 "flag can be installed for a thread."
425 msgstr ""
426 "Pour un thread, au maximum un seul filtre de seccomp utilisant l'attribut "
427 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> peut être installé."
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid "See B<seccomp_unotify>(2) for further details."
433 msgstr "Consultez B<seccomp_unotify>(2) pour plus de détails."
434
435 #. type: TP
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "B<SECCOMP_FILTER_FLAG_SPEC_ALLOW> (since Linux 4.17)"
440 msgstr "B<SECCOMP_FILTER_FLAG_SPEC_ALLOW> (depuis Linux 4.17)"
441
442 #. commit 00a02d0c502a06d15e07b857f8ff921e3e402675
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid "Disable Speculative Store Bypass mitigation."
447 msgstr "Désactiver la mitigation Speculative Store Bypass."
448
449 #. type: TP
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "B<SECCOMP_FILTER_FLAG_TSYNC>"
454 msgstr "B<SECCOMP_FILTER_FLAG_TSYNC>"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "When adding a new filter, synchronize all other threads of the calling "
461 "process to the same seccomp filter tree. A \"filter tree\" is the ordered "
462 "list of filters attached to a thread. (Attaching identical filters in "
463 "separate B<seccomp>() calls results in different filters from this "
464 "perspective.)"
465 msgstr ""
466 "Lors de l'ajout d'un filtre, synchroniser tous les autres threads du "
467 "processus appelant avec la même arborescence de filtres seccomp. Une "
468 "« arborescence de filtres » est une liste ordonnée de filtres rattachée à un "
469 "thread (le rattachement de filtres identiques dans des appels B<seccomp>() "
470 "distincts génère différents filtres depuis cette perspective)."
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "If any thread cannot synchronize to the same filter tree, the call will not "
477 "attach the new seccomp filter, and will fail, returning the first thread ID "
478 "found that cannot synchronize. Synchronization will fail if another thread "
479 "in the same process is in B<SECCOMP_MODE_STRICT> or if it has attached new "
480 "seccomp filters to itself, diverging from the calling thread's filter tree."
481 msgstr ""
482 "Si aucun thread ne peut pas se synchroniser avec l'arborescence de filtres, "
483 "l'appel ne rattachera pas le nouveau filtre seccomp et échouera en renvoyant "
484 "le premier identifiant de thread qui n'a pas pu se synchroniser. La "
485 "synchronisation échouera si un autre thread du même processus est en "
486 "B<SECCOMP_MODE_STRICT> ou si des nouveaux filtres seccomp lui sont rattachés "
487 "en propre, en décalage par rapport à l'arborescence de filtres du thread "
488 "appelant."
489
490 #. type: TP
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 #, no-wrap
494 msgid "B<SECCOMP_GET_ACTION_AVAIL> (since Linux 4.14)"
495 msgstr "B<SECCOMP_GET_ACTION_AVAIL> (depuis Linux 4.14)"
496
497 #. commit d612b1fd8010d0d67b5287fe146b8b55bcbb8655
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "Test to see if an action is supported by the kernel. This operation is "
503 "helpful to confirm that the kernel knows of a more recently added filter "
504 "return action since the kernel treats all unknown actions as "
505 "B<SECCOMP_RET_KILL_PROCESS>."
506 msgstr ""
507 "Tester pour savoir si une action est prise en charge par le noyau. Cette "
508 "opération peut aider à confirmer que le noyau connaît l'action de renvoi "
509 "d'un filtre récemment ajouté puisque le noyau traite toutes les actions "
510 "inconnues comme des B<SECCOMP_RET_KILL_PROCESS>."
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid ""
516 "The value of I<flags> must be 0, and I<args> must be a pointer to an "
517 "unsigned 32-bit filter return action."
518 msgstr ""
519 "La valeur de I<flags> doit être de B<0> et I<args> doit être un pointeur "
520 "vers une action de renvoi de filtre 32 bits non signé."
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<SECCOMP_GET_NOTIF_SIZES> (since Linux 5.0)"
527 msgstr "B<SECCOMP_GET_NOTIF_SIZES> (depuis Linux 5.O)"
528
529 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 msgid ""
534 "Get the sizes of the seccomp user-space notification structures. Since "
535 "these structures may evolve and grow over time, this command can be used to "
536 "determine how much memory to allocate for sending and receiving "
537 "notifications."
538 msgstr ""
539 "Obtenir la taille des structures de notification de l'espace utilisateur de "
540 "seccomp. Comme ces structures peuvent évoluer et croître avec le temps, "
541 "cette commande peut être utilisée pour déterminer quelle quantité de mémoire "
542 "allouer pour envoyer et recevoir des notifications."
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid ""
548 "The value of I<flags> must be 0, and I<args> must be a pointer to a I<struct "
549 "seccomp_notif_sizes>, which has the following form:"
550 msgstr ""
551 "La valeur de I<flags> doit être de B<0> et I<args> doit être un pointeur "
552 "vers un I<struct seccomp_notif_sizes> de la forme suivante :"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid ""
559 "struct seccomp_notif_sizes\n"
560 " __u16 seccomp_notif; /* Size of notification structure */\n"
561 " __u16 seccomp_notif_resp; /* Size of response structure */\n"
562 " __u16 seccomp_data; /* Size of \\[aq]struct seccomp_data\\[aq] */\n"
563 "};\n"
564 msgstr ""
565 "struct seccomp_notif_sizes\n"
566 " __u16 seccomp_notif; /* Taille de la structure de notification */\n"
567 " __u16 seccomp_notif_resp; /* Taille de la structure de réponse */\n"
568 " __u16 seccomp_data; /* Taille de \\[aq]struct seccomp_data\\[aq] */\n"
569 "};\n"
570
571 #. type: SS
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "Filters"
576 msgstr "Filtres"
577
578 #. type: Plain text
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "When adding filters via B<SECCOMP_SET_MODE_FILTER>, I<args> points to a "
583 "filter program:"
584 msgstr ""
585 "Lors de l'ajout d'un filtre à l'aide de B<SECCOMP_SET_MODE_FILTER>, I<args> "
586 "pointe vers un programme de filtrage :"
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid ""
593 "struct sock_fprog {\n"
594 " unsigned short len; /* Number of BPF instructions */\n"
595 " struct sock_filter *filter; /* Pointer to array of\n"
596 " BPF instructions */\n"
597 "};\n"
598 msgstr ""
599 "struct sock_fprog {\n"
600 " unsigned short len; /* Nombre d'instructions BPF */\n"
601 " struct sock_filter *filter; /* Pointeur vers le tableau\n"
602 " d'instructions BPF */\n"
603 "};\n"
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid "Each program must contain one or more BPF instructions:"
609 msgstr "Chaque programme doit contenir une ou plusieurs instructions BPF :"
610
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, no-wrap
615 msgid ""
616 "struct sock_filter { /* Filter block */\n"
617 " __u16 code; /* Actual filter code */\n"
618 " __u8 jt; /* Jump true */\n"
619 " __u8 jf; /* Jump false */\n"
620 " __u32 k; /* Generic multiuse field */\n"
621 "};\n"
622 msgstr ""
623 "struct sock_filter { /* Filter block */\n"
624 " __u16 code; /* Code du filtre réel */\n"
625 " __u8 jt; /* Jump true (sauter le vrai) */\n"
626 " __u8 jf; /* Jump false (sauter le faux) */\n"
627 " __u32 k; /* Champ générique multiusages */\n"
628 "};\n"
629
630 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
631 #. Quoting Kees Cook:
632 #. If BPF even allows changing the data, it's not copied back to
633 #. the syscall when it runs. Anything wanting to do things like
634 #. that would need to use ptrace to catch the call and directly
635 #. modify the registers before continuing with the call.
636 #. type: Plain text
637 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
638 #. Quoting Kees Cook:
639 #. If BPF even allows changing the data, it's not copied back to
640 #. the syscall when it runs. Anything wanting to do things like
641 #. that would need to use ptrace to catch the call and directly
642 #. modify the registers before continuing with the call.
643 #. type: Plain text
644 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
645 #. Quoting Kees Cook:
646 #. If BPF even allows changing the data, it's not copied back to
647 #. the syscall when it runs. Anything wanting to do things like
648 #. that would need to use ptrace to catch the call and directly
649 #. modify the registers before continuing with the call.
650 #. type: Plain text
651 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
652 #. Quoting Kees Cook:
653 #. If BPF even allows changing the data, it's not copied back to
654 #. the syscall when it runs. Anything wanting to do things like
655 #. that would need to use ptrace to catch the call and directly
656 #. modify the registers before continuing with the call.
657 #. type: Plain text
658 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
659 #. Quoting Kees Cook:
660 #. If BPF even allows changing the data, it's not copied back to
661 #. the syscall when it runs. Anything wanting to do things like
662 #. that would need to use ptrace to catch the call and directly
663 #. modify the registers before continuing with the call.
664 #. type: Plain text
665 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
666 #. Quoting Kees Cook:
667 #. If BPF even allows changing the data, it's not copied back to
668 #. the syscall when it runs. Anything wanting to do things like
669 #. that would need to use ptrace to catch the call and directly
670 #. modify the registers before continuing with the call.
671 #. type: Plain text
672 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
673 #. Quoting Kees Cook:
674 #. If BPF even allows changing the data, it's not copied back to
675 #. the syscall when it runs. Anything wanting to do things like
676 #. that would need to use ptrace to catch the call and directly
677 #. modify the registers before continuing with the call.
678 #. type: Plain text
679 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
680 #. Quoting Kees Cook:
681 #. If BPF even allows changing the data, it's not copied back to
682 #. the syscall when it runs. Anything wanting to do things like
683 #. that would need to use ptrace to catch the call and directly
684 #. modify the registers before continuing with the call.
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid ""
689 "When executing the instructions, the BPF program operates on the system call "
690 "information made available (i.e., use the B<BPF_ABS> addressing mode) as a "
691 "(read-only) buffer of the following form:"
692 msgstr ""
693 "Lors de l'exécution des instructions, le programme BPF agit sur les "
694 "informations de l'appel système qui sont rendues disponibles (c'est-à-dire "
695 "qu'il utilise le mode d'adressage B<BPF_ABS>) en tant que tampon (en lecture "
696 "seule) ayant la forme suivante :"
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid ""
703 "struct seccomp_data {\n"
704 " int nr; /* System call number */\n"
705 " __u32 arch; /* AUDIT_ARCH_* value\n"
706 " (see E<lt>linux/audit.hE<gt>) */\n"
707 " __u64 instruction_pointer; /* CPU instruction pointer */\n"
708 " __u64 args[6]; /* Up to 6 system call arguments */\n"
709 "};\n"
710 msgstr ""
711 "struct seccomp_data {\n"
712 " int nr; /* Numéro de l'appel système */\n"
713 " __u32 arch; /* Valeur AUDIT_ARCH_*\n"
714 " (voir E<lt>linux/audit.hE<gt>) */\n"
715 " __u64 instruction_pointer; /* pointeur vers l'instruction du processeur */\n"
716 " __u64 args[6]; /* Jusqu'à 6 paramètres de l'appel système */\n"
717 "};\n"
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 msgid ""
723 "Because numbering of system calls varies between architectures and some "
724 "architectures (e.g., x86-64) allow user-space code to use the calling "
725 "conventions of multiple architectures (and the convention being used may "
726 "vary over the life of a process that uses B<execve>(2) to execute binaries "
727 "that employ the different conventions), it is usually necessary to verify "
728 "the value of the I<arch> field."
729 msgstr ""
730 "Comme la numérotation des appels système varie entre les architectures et "
731 "comme certaines (comme x86-64) autorisent du code de l'espace utilisateur à "
732 "utiliser les conventions de l'appelant d'autres architectures (et comme "
733 "cette convention peut varier pendant la vie d'un processus qui utilise "
734 "B<execve>(2) pour exécuter des binaires qui utilisent différentes "
735 "conventions), il est généralement nécessaire de vérifier la valeur du champ "
736 "I<arch>."
737
738 #. type: Plain text
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 msgid ""
742 "It is strongly recommended to use an allow-list approach whenever possible "
743 "because such an approach is more robust and simple. A deny-list will have "
744 "to be updated whenever a potentially dangerous system call is added (or a "
745 "dangerous flag or option if those are deny-listed), and it is often possible "
746 "to alter the representation of a value without altering its meaning, leading "
747 "to a deny-list bypass. See also I<Caveats> below."
748 msgstr ""
749 "Il est fortement recommandé d'utiliser une approche par liste "
750 "d'autorisations autant que possible, parce qu'une telle approche est plus "
751 "robuste et plus simple. Une liste d'interdictions devra être mise à jour à "
752 "chaque fois qu'un appel système dangereux sera ajouté (ou un attribut ou une "
753 "option si elles font partie de la liste des interdictions) et il est souvent "
754 "possible de modifier la représentation d'une valeur sans changer sa "
755 "signification, conduisant à contourner la liste d'interdictions. Voir aussi "
756 "I<Mises en garde> ci-dessous."
757
758 #
759 #. As noted by Dave Drysdale in a note at the end of
760 #. https://lwn.net/Articles/604515/
761 #. One additional detail to point out for the x32 ABI case:
762 #. the syscall number gets a high bit set (__X32_SYSCALL_BIT),
763 #. to mark it as an x32 call.
764 #. If x32 support is included in the kernel, then __SYSCALL_MASK
765 #. will have a value that is not all-ones, and this will trigger
766 #. an extra instruction in system_call to mask off the extra bit,
767 #. so that the syscall table indexing still works.
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 msgid ""
772 "The I<arch> field is not unique for all calling conventions. The x86-64 ABI "
773 "and the x32 ABI both use B<AUDIT_ARCH_X86_64> as I<arch>, and they run on "
774 "the same processors. Instead, the mask B<__X32_SYSCALL_BIT> is used on the "
775 "system call number to tell the two ABIs apart."
776 msgstr ""
777 "Le champ I<arch> n'est pas unique pour toutes les conventions d'appelant. "
778 "Les ABI x86-64 et x32 utilisent B<AUDIT_ARCH_X86_64> en tant que I<arch> et "
779 "elles fonctionnent sur les mêmes processeurs. Au contraire, le masque "
780 "B<__X32_SYSCALL_BIT> est utilisé sur le numéro d'appel système pour parler "
781 "indépendamment aux deux ABI."
782
783 #. type: Plain text
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 msgid ""
787 "This means that a policy must either deny all syscalls with "
788 "B<__X32_SYSCALL_BIT> or it must recognize syscalls with and without "
789 "B<__X32_SYSCALL_BIT> set. A list of system calls to be denied based on "
790 "I<nr> that does not also contain I<nr> values with B<__X32_SYSCALL_BIT> set "
791 "can be bypassed by a malicious program that sets B<__X32_SYSCALL_BIT>."
792 msgstr ""
793 "Cela veut dire qu'une politique peut soit interdire tous les appels système "
794 "avec B<__X32_SYSCALL_BIT>, soit elle doit les reconnaître avec le "
795 "positionnement ou pas de B<__X32_SYSCALL_BIT>. Une liste des appels système "
796 "à interdire qui s'appuie sur I<nr> et qui ne contient pas de valeurs I<nr> "
797 "où B<__X32_SYSCALL_BIT> est positionné peut être contournée par un programme "
798 "malveillant qui positionne B<__X32_SYSCALL_BIT>."
799
800 #. commit 6365b842aae4490ebfafadfc6bb27a6d3cc54757
801 #. type: Plain text
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 msgid ""
805 "Additionally, kernels prior to Linux 5.4 incorrectly permitted I<nr> in the "
806 "ranges 512-547 as well as the corresponding non-x32 syscalls ORed with "
807 "B<__X32_SYSCALL_BIT>. For example, I<nr> == 521 and I<nr> == (101 | "
808 "B<__X32_SYSCALL_BIT>) would result in invocations of B<ptrace>(2) with "
809 "potentially confused x32-vs-x86_64 semantics in the kernel. Policies "
810 "intended to work on kernels before Linux 5.4 must ensure that they deny or "
811 "otherwise correctly handle these system calls. On Linux 5.4 and newer, such "
812 "system calls will fail with the error B<ENOSYS>, without doing anything."
813 msgstr ""
814 "En outre, les noyaux précédant Linux 5.4 autorisaient à tort I<nr> dans les "
815 "intervalles 512–547 ainsi que les appels système non x32 correspondants "
816 "reliés (opération OU) avec B<__X32_SYSCALL_BIT>. Par exemple, I<nr> == 521 "
817 "et I<nr> == (101 | B<__X32_SYSCALL_BIT>) créeraient des appels B<ptrace>(2) "
818 "avec une sémantique potentiellement confondue entre x32 et x86_64 dans le "
819 "noyau. Les politiques prévues pour fonctionner sur des noyaux antérieurs à "
820 "Linux 5.4 doivent garantir qu'elles interdisent ou qu'elles gèrent "
821 "correctement ces appels système. Sur Linux 5.4 et plus récents, de tels "
822 "appels système échoueront avec une erreur B<ENOSYS> sans rien faire."
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "The I<instruction_pointer> field provides the address of the machine-"
829 "language instruction that performed the system call. This might be useful "
830 "in conjunction with the use of I</proc/>pidI</maps> to perform checks based "
831 "on which region (mapping) of the program made the system call. (Probably, "
832 "it is wise to lock down the B<mmap>(2) and B<mprotect>(2) system calls to "
833 "prevent the program from subverting such checks.)"
834 msgstr ""
835 "Le champ I<instruction_pointer> fournit l'adresse de l'instruction en "
836 "langage machine qui a effectué l'appel système. Cela pourrait être utile "
837 "avec I</proc/>pidI</maps> pour effectuer des vérifications à partir de la "
838 "région (projection) du programme qui a fait l'appel système (il est "
839 "probablement raisonnable de verrouiller les appels système B<mmap>(2) et "
840 "B<mprotect>(2) pour empêcher le programme de contourner de telles "
841 "vérifications)."
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "When checking values from I<args>, keep in mind that arguments are often "
848 "silently truncated before being processed, but after the seccomp check. For "
849 "example, this happens if the i386 ABI is used on an x86-64 kernel: although "
850 "the kernel will normally not look beyond the 32 lowest bits of the "
851 "arguments, the values of the full 64-bit registers will be present in the "
852 "seccomp data. A less surprising example is that if the x86-64 ABI is used "
853 "to perform a system call that takes an argument of type I<int>, the more-"
854 "significant half of the argument register is ignored by the system call, but "
855 "visible in the seccomp data."
856 msgstr ""
857 "Lors de la vérification des valeurs de I<args>, gardez en tête que les "
858 "paramètres sont souvent tronqués silencieusement avant d'être traités mais "
859 "après la vérification seccomp. Cela arrive par exemple si l'ABI i386 est "
860 "utilisée sur un noyau x86-64 : bien que le noyau n'ira normalement pas "
861 "regarder au-delà des 32 bits les plus faibles des paramètres, les valeurs "
862 "des registres 64 bits complets seront présentes dans les données de seccomp. "
863 "Un exemple moins surprenant est que si l'ABI x86-64 est utilisée pour "
864 "effectuer un appel système prenant un paramètre de type I<int>, la moitié du "
865 "registre du paramètre la plus significative est ignorée par l'appel système "
866 "mais visible dans les données de seccomp."
867
868 #. type: Plain text
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 msgid ""
872 "A seccomp filter returns a 32-bit value consisting of two parts: the most "
873 "significant 16 bits (corresponding to the mask defined by the constant "
874 "B<SECCOMP_RET_ACTION_FULL>) contain one of the \"action\" values listed "
875 "below; the least significant 16-bits (defined by the constant "
876 "B<SECCOMP_RET_DATA>) are \"data\" to be associated with this return value."
877 msgstr ""
878 "Un filtre seccomp renvoie une valeur 32 bits en deux parties : la plus "
879 "significative, de 16 bits (correspondant au masque défini par la constante "
880 "B<SECCOMP_RET_ACTION_FULL>), contient une des valeurs « action » listée ci-"
881 "dessous ; la moins significative, de 16 bits (définie par la constante "
882 "B<SECCOMP_RET_DATA>), contient des « data » à associer à ce code de retour."
883
884 #
885 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
886 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
887 #. filters are applied even if one of the early filters returns
888 #. SECCOMP_RET_KILL:
889 #. It's just because it would be an optimization that would only speed up
890 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
891 #. benefit meaningfully from such a change (you need to kill the process
892 #. really quickly?). We would speed up killing a program at the (albeit
893 #. tiny) expense to all other filtered programs. Best to keep the filter
894 #. execution logic clear, simple, and as fast as possible for all
895 #. filters.
896 #. type: Plain text
897 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
898 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
899 #. filters are applied even if one of the early filters returns
900 #. SECCOMP_RET_KILL:
901 #. It's just because it would be an optimization that would only speed up
902 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
903 #. benefit meaningfully from such a change (you need to kill the process
904 #. really quickly?). We would speed up killing a program at the (albeit
905 #. tiny) expense to all other filtered programs. Best to keep the filter
906 #. execution logic clear, simple, and as fast as possible for all
907 #. filters.
908 #. type: Plain text
909 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
910 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
911 #. filters are applied even if one of the early filters returns
912 #. SECCOMP_RET_KILL:
913 #. It's just because it would be an optimization that would only speed up
914 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
915 #. benefit meaningfully from such a change (you need to kill the process
916 #. really quickly?). We would speed up killing a program at the (albeit
917 #. tiny) expense to all other filtered programs. Best to keep the filter
918 #. execution logic clear, simple, and as fast as possible for all
919 #. filters.
920 #. type: Plain text
921 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
922 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
923 #. filters are applied even if one of the early filters returns
924 #. SECCOMP_RET_KILL:
925 #. It's just because it would be an optimization that would only speed up
926 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
927 #. benefit meaningfully from such a change (you need to kill the process
928 #. really quickly?). We would speed up killing a program at the (albeit
929 #. tiny) expense to all other filtered programs. Best to keep the filter
930 #. execution logic clear, simple, and as fast as possible for all
931 #. filters.
932 #. type: Plain text
933 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
934 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
935 #. filters are applied even if one of the early filters returns
936 #. SECCOMP_RET_KILL:
937 #. It's just because it would be an optimization that would only speed up
938 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
939 #. benefit meaningfully from such a change (you need to kill the process
940 #. really quickly?). We would speed up killing a program at the (albeit
941 #. tiny) expense to all other filtered programs. Best to keep the filter
942 #. execution logic clear, simple, and as fast as possible for all
943 #. filters.
944 #. type: Plain text
945 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
946 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
947 #. filters are applied even if one of the early filters returns
948 #. SECCOMP_RET_KILL:
949 #. It's just because it would be an optimization that would only speed up
950 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
951 #. benefit meaningfully from such a change (you need to kill the process
952 #. really quickly?). We would speed up killing a program at the (albeit
953 #. tiny) expense to all other filtered programs. Best to keep the filter
954 #. execution logic clear, simple, and as fast as possible for all
955 #. filters.
956 #. type: Plain text
957 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
958 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
959 #. filters are applied even if one of the early filters returns
960 #. SECCOMP_RET_KILL:
961 #. It's just because it would be an optimization that would only speed up
962 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
963 #. benefit meaningfully from such a change (you need to kill the process
964 #. really quickly?). We would speed up killing a program at the (albeit
965 #. tiny) expense to all other filtered programs. Best to keep the filter
966 #. execution logic clear, simple, and as fast as possible for all
967 #. filters.
968 #. type: Plain text
969 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
970 #. From an Aug 2015 conversation with Kees Cook where I asked why *all*
971 #. filters are applied even if one of the early filters returns
972 #. SECCOMP_RET_KILL:
973 #. It's just because it would be an optimization that would only speed up
974 #. the RET_KILL case, but it's the uncommon one and the one that doesn't
975 #. benefit meaningfully from such a change (you need to kill the process
976 #. really quickly?). We would speed up killing a program at the (albeit
977 #. tiny) expense to all other filtered programs. Best to keep the filter
978 #. execution logic clear, simple, and as fast as possible for all
979 #. filters.
980 #. type: Plain text
981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
983 msgid ""
984 "If multiple filters exist, they are I<all> executed, in reverse order of "
985 "their addition to the filter tree\\[em]that is, the most recently installed "
986 "filter is executed first. (Note that all filters will be called even if one "
987 "of the earlier filters returns B<SECCOMP_RET_KILL>. This is done to "
988 "simplify the kernel code and to provide a tiny speed-up in the execution of "
989 "sets of filters by avoiding a check for this uncommon case.) The return "
990 "value for the evaluation of a given system call is the first-seen action "
991 "value of highest precedence (along with its accompanying data) returned by "
992 "execution of all of the filters."
993 msgstr ""
994 "Si plusieurs filtres existent, ils sont I<tous> exécutés dans l'ordre "
995 "inverse de leur apparition dans l'arbre des filtres – si bien que le filtre "
996 "le plus récemment installé est exécuté en premier) (remarquez que tous les "
997 "filtres seront appelés même si l'un des premiers appelés renvoie "
998 "B<SECCOMP_RET_KILL>, cela pour simplifier le code du noyau et pour fournir "
999 "une petite accélération d’exécution d’ensembles de filtres en évitant la "
1000 "vérification de ce cas rare). La valeur renvoyée de l'évaluation d'un appel "
1001 "système donné est la première valeur vue de l'action de plus haute priorité "
1002 "(ainsi que ses données associées) renvoyée par l'exécution de tous les "
1003 "filtres."
1004
1005 #. type: Plain text
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 msgid ""
1009 "In decreasing order of precedence, the action values that may be returned by "
1010 "a seccomp filter are:"
1011 msgstr ""
1012 "Dans l'ordre décroissant de priorité, les valeurs d'action qui peuvent être "
1013 "renvoyées par un filtre seccomp sont :"
1014
1015 #. type: TP
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 #, no-wrap
1019 msgid "B<SECCOMP_RET_KILL_PROCESS> (since Linux 4.14)"
1020 msgstr "B<SECCOMP_RET_KILL_PROCESS> (depuis Linux 4.14)"
1021
1022 #. commit 4d3b0b05aae9ee9ce0970dc4cc0fb3fad5e85945
1023 #. commit 0466bdb99e8744bc9befa8d62a317f0fd7fd7421
1024 #. type: Plain text
1025 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1026 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1027 msgid ""
1028 "This value results in immediate termination of the process, with a core "
1029 "dump. The system call is not executed. By contrast with "
1030 "B<SECCOMP_RET_KILL_THREAD> below, all threads in the thread group are "
1031 "terminated. (For a discussion of thread groups, see the description of the "
1032 "B<CLONE_THREAD> flag in B<clone>(2).)"
1033 msgstr ""
1034 "Cette valeur aboutit à la fin immédiate du processus, avec un vidage "
1035 "mémoire. L'appel système n'est pas exécuté. Contrairement à "
1036 "B<SECCOMP_RET_KILL_THREAD> ci-dessous, tous les threads du groupe de threads "
1037 "sont terminés (pour un point sur les groupes de thread, voir la description "
1038 "de l'attribut B<CLONE_THREAD> de B<clone>(2))."
1039
1040 #. type: Plain text
1041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1043 msgid ""
1044 "The process terminates I<as though> killed by a B<SIGSYS> signal. Even if a "
1045 "signal handler has been registered for B<SIGSYS>, the handler will be "
1046 "ignored in this case and the process always terminates. To a parent process "
1047 "that is waiting on this process (using B<waitpid>(2) or similar), the "
1048 "returned I<wstatus> will indicate that its child was terminated as though by "
1049 "a B<SIGSYS> signal."
1050 msgstr ""
1051 "Le processus se termine I<parce que> il a été tué par un signal B<SIGSYS>. "
1052 "Même si un gestionnaire de signal a été enregistré pour B<SIGSYS>, le "
1053 "gestionnaire sera ignoré dans ce cas et le processus se termine toujours. Le "
1054 "processus parent qui attend ce processus (en utilisant B<waitpid>(2) ou "
1055 "équivalent) reçoit I<wstatus> qui indique que son enfant s'est terminé suite "
1056 "à un signal B<SIGSYS>."
1057
1058 #. type: TP
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 #, no-wrap
1062 msgid "B<SECCOMP_RET_KILL_THREAD> (or B<SECCOMP_RET_KILL>)"
1063 msgstr "B<SECCOMP_RET_KILL_THREAD> (ou B<SECCOMP_RET_KILL>)"
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid ""
1069 "This value results in immediate termination of the thread that made the "
1070 "system call. The system call is not executed. Other threads in the same "
1071 "thread group will continue to execute."
1072 msgstr ""
1073 "Cette valeur provoque la fin immédiate du thread qui a effectué l'appel "
1074 "système. L'appel système n'est pas exécuté. Les autres threads du même "
1075 "groupe de threads continueront à s'exécuter."
1076
1077 #. type: Plain text
1078 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1079 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1080 msgid ""
1081 "The thread terminates I<as though> killed by a B<SIGSYS> signal. See "
1082 "B<SECCOMP_RET_KILL_PROCESS> above."
1083 msgstr ""
1084 "Le thread s'est terminé I<comme> tué par un signal B<SIGSYS>. Voir "
1085 "B<SECCOMP_RET_KILL_PROCESS> ci-dessus."
1086
1087 #. See these commits:
1088 #. seccomp: dump core when using SECCOMP_RET_KILL
1089 #. (b25e67161c295c98acda92123b2dd1e7d8642901)
1090 #. seccomp: Only dump core when single-threaded
1091 #. (d7276e321ff8a53106a59c85ca46d03e34288893)
1092 #. type: Plain text
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 msgid ""
1096 "Before Linux 4.11, any process terminated in this way would not trigger a "
1097 "coredump (even though B<SIGSYS> is documented in B<signal>(7) as having a "
1098 "default action of termination with a core dump). Since Linux 4.11, a single-"
1099 "threaded process will dump core if terminated in this way."
1100 msgstr ""
1101 "Avant Linux 4.11, tout processus qui se terminait de cette manière ne "
1102 "générait pas de vidage mémoire (bien que B<SIGSYS> soit documenté dans "
1103 "B<signal>(7) pour avoir comme action par défaut celle de terminer avec un "
1104 "vidage mémoire). Depuis Linux 4.11, un processus d'un seul thread créera un "
1105 "vidage mémoire s'il se termine dans ce cadre."
1106
1107 #. type: Plain text
1108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1110 msgid ""
1111 "With the addition of B<SECCOMP_RET_KILL_PROCESS> in Linux 4.14, "
1112 "B<SECCOMP_RET_KILL_THREAD> was added as a synonym for B<SECCOMP_RET_KILL>, "
1113 "in order to more clearly distinguish the two actions."
1114 msgstr ""
1115 "Avec l'apparition de B<SECCOMP_RET_KILL_PROCESS> dans Linux 4.14, "
1116 "B<SECCOMP_RET_KILL_THREAD> a été ajouté comme synonyme de "
1117 "B<SECCOMP_RET_KILL>, afin de distinguer plus clairement les deux actions."
1118
1119 #. type: Plain text
1120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1122 msgid ""
1123 "B<Note>: the use of B<SECCOMP_RET_KILL_THREAD> to kill a single thread in a "
1124 "multithreaded process is likely to leave the process in a permanently "
1125 "inconsistent and possibly corrupt state."
1126 msgstr ""
1127 "B<Remarque :> l'utilisation de B<SECCOMP_RET_KILL_THREAD> pour tuer un "
1128 "thread unique d'un processus de plusieurs threads va probablement mettre le "
1129 "processus dans un état incohérent et corrompre pour toujours son état."
1130
1131 #. type: TP
1132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1134 #, no-wrap
1135 msgid "B<SECCOMP_RET_TRAP>"
1136 msgstr "B<SECCOMP_RET_TRAP>"
1137
1138 #. type: Plain text
1139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1141 msgid ""
1142 "This value results in the kernel sending a thread-directed B<SIGSYS> signal "
1143 "to the triggering thread. (The system call is not executed.) Various "
1144 "fields will be set in the I<siginfo_t> structure (see B<sigaction>(2)) "
1145 "associated with signal:"
1146 msgstr ""
1147 "Cette valeur fait envoyer par le noyau un signal B<SIGSYS> adressé au thread "
1148 "déclencheur (l'appel système n'est pas exécuté). Divers champs seront "
1149 "positionnés dans la structure I<siginfo_t> (voir B<sigaction>(2)) associée "
1150 "au signal :"
1151
1152 #. type: IP
1153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1155 #, no-wrap
1156 msgid "\\[bu]"
1157 msgstr "-"
1158
1159 #. type: Plain text
1160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1162 msgid "I<si_signo> will contain B<SIGSYS>."
1163 msgstr "I<si_signo> contiendra B<SIGSYS>."
1164
1165 #. type: Plain text
1166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1168 msgid "I<si_call_addr> will show the address of the system call instruction."
1169 msgstr ""
1170 "I<si_call_addr> affichera l'adresse de l'instruction de l'appel système."
1171
1172 #. type: Plain text
1173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1175 msgid ""
1176 "I<si_syscall> and I<si_arch> will indicate which system call was attempted."
1177 msgstr ""
1178 "I<si_syscall> et I<si_arch> indiqueront l'appel système qui a été tenté."
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 "I<si_code> will contain B<SYS_SECCOMP>."
1184 msgstr "I<si_code> contiendra B<SYS_SECCOMP>."
1185
1186 #. type: Plain text
1187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1189 msgid ""
1190 "I<si_errno> will contain the B<SECCOMP_RET_DATA> portion of the filter "
1191 "return value."
1192 msgstr ""
1193 "I<si_errno> contiendra la partie B<SECCOMP_RET_DATA> du code de retour du "
1194 "filtre."
1195
1196 #. type: Plain text
1197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1199 msgid ""
1200 "The program counter will be as though the system call happened (i.e., the "
1201 "program counter will not point to the system call instruction). The return "
1202 "value register will contain an architecture-dependent value; if resuming "
1203 "execution, set it to something appropriate for the system call. (The "
1204 "architecture dependency is because replacing it with B<ENOSYS> could "
1205 "overwrite some useful information.)"
1206 msgstr ""
1207 "Le compteur du programme sera arrêté comme si l'appel système a été fait "
1208 "(c'est-à-dire que le compteur du programme ne pointera pas vers "
1209 "l'instruction de l'appel système). Le registre du code de retour contiendra "
1210 "une valeur dépendante de l'architecture ; en cas de relance de l'exécution, "
1211 "positionnez-la sur quelque chose adapté à l'appel système (la dépendance de "
1212 "l'architecture provient du fait que son remplacement par B<ENOSYS> "
1213 "écraserait des informations utiles)."
1214
1215 #. type: TP
1216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1218 #, no-wrap
1219 msgid "B<SECCOMP_RET_ERRNO>"
1220 msgstr "B<SECCOMP_RET_ERRNO>"
1221
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 msgid ""
1226 "This value results in the B<SECCOMP_RET_DATA> portion of the filter's return "
1227 "value being passed to user space as the I<errno> value without executing the "
1228 "system call."
1229 msgstr ""
1230 "Cette valeur fait passer la partie B<SECCOMP_RET_DATA> du code de retour du "
1231 "filtre à l'espace utilisateur en tant que valeur I<errno> sans exécuter "
1232 "l'appel système."
1233
1234 #. type: TP
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 #, no-wrap
1238 msgid "B<SECCOMP_RET_USER_NOTIF> (since Linux 5.0)"
1239 msgstr "B<SECCOMP_RET_USER_NOTIF> (depuis Linux 5.0)"
1240
1241 #. commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
1242 #. type: Plain text
1243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1245 msgid ""
1246 "Forward the system call to an attached user-space supervisor process to "
1247 "allow that process to decide what to do with the system call. If there is "
1248 "no attached supervisor (either because the filter was not installed with the "
1249 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> flag or because the file descriptor was "
1250 "closed), the filter returns B<ENOSYS> (similar to what happens when a filter "
1251 "returns B<SECCOMP_RET_TRACE> and there is no tracer). See "
1252 "B<seccomp_unotify>(2) for further details."
1253 msgstr ""
1254 "Faire suivre l'appel système à un processus de superviseur attaché de "
1255 "l'espace utilisateur attaché pour permettre à ce processus de décider quoi "
1256 "faire de l'appel système. Si il n'y a pas de superviseur attaché (soit parce "
1257 "que le filtre n'a pas été installé avec l'attribut "
1258 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> ou parce que le descripteur de fichier "
1259 "était fermé), le filtre renvoie B<ENOSYS> (c'est similaire à ce qui se "
1260 "produit quand un filtre renvoie B<SECCOMP_RET_TRACE> et qu'il n'y a pas "
1261 "d'observateur). Consultez B<seccomp_unotify>(2) pour plus de détails."
1262
1263 #. type: Plain text
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 msgid ""
1267 "Note that the supervisor process will not be notified if another filter "
1268 "returns an action value with a precedence greater than "
1269 "B<SECCOMP_RET_USER_NOTIF>."
1270 msgstr ""
1271 "Remarquez que le processus de superviseur ne sera pas notifié si un autre "
1272 "filtre renvoie une valeur d'action ayant une priorité supérieure à "
1273 "B<SECCOMP_RET_USER_NOTIF>."
1274
1275 #. type: TP
1276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1278 #, no-wrap
1279 msgid "B<SECCOMP_RET_TRACE>"
1280 msgstr "B<SECCOMP_RET_TRACE>"
1281
1282 #. type: Plain text
1283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1285 msgid ""
1286 "When returned, this value will cause the kernel to attempt to notify a "
1287 "B<ptrace>(2)-based tracer prior to executing the system call. If there is "
1288 "no tracer present, the system call is not executed and returns a failure "
1289 "status with I<errno> set to B<ENOSYS>."
1290 msgstr ""
1291 "Quand cette valeur est renvoyée, le noyau essaiera de notifier à un "
1292 "observateur basé sur B<ptrace>(2) avant d'exécuter l'appel système. Si aucun "
1293 "observateur n'est présent, l'appel système n'est pas exécuté et renvoie un "
1294 "échec en positionnant I<errno> sur B<ENOSYS>."
1295
1296 #. type: Plain text
1297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1299 msgid ""
1300 "A tracer will be notified if it requests B<PTRACE_O_TRACESECCOMP> using "
1301 "I<ptrace(PTRACE_SETOPTIONS)>. The tracer will be notified of a "
1302 "B<PTRACE_EVENT_SECCOMP> and the B<SECCOMP_RET_DATA> portion of the filter's "
1303 "return value will be available to the tracer via B<PTRACE_GETEVENTMSG>."
1304 msgstr ""
1305 "Un observateur sera notifié s'il demande B<PTRACE_O_TRACESECCOMP> en "
1306 "utilisant I<ptrace(PTRACE_SETOPTIONS)>. Il sera notifié d'un "
1307 "B<PTRACE_EVENT_SECCOMP> et la partie B<SECCOMP_RET_DATA> du code de retour "
1308 "du filtre sera mise à la disposition de l'observateur à l'aide de "
1309 "B<PTRACE_GETEVENTMSG>."
1310
1311 #. type: Plain text
1312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1314 msgid ""
1315 "The tracer can skip the system call by changing the system call number to "
1316 "-1. Alternatively, the tracer can change the system call requested by "
1317 "changing the system call to a valid system call number. If the tracer asks "
1318 "to skip the system call, then the system call will appear to return the "
1319 "value that the tracer puts in the return value register."
1320 msgstr ""
1321 "L'observateur peut ignorer l'appel système en modifiant le numéro de l'appel "
1322 "système à B<-1>. Autrement, l'observateur peut modifier l'appel système "
1323 "demandé en le passant à un numéro d'appel système valable. Si l'observateur "
1324 "demande à ignorer l'appel système, ce dernier renverra la valeur que "
1325 "l'observateur place dans le registre du code de retour."
1326
1327 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1328 #. This was changed in ce6526e8afa4.
1329 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1330 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1331 #. 0f3912fd934c for ARM.
1332 #. type: Plain text
1333 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1334 #. This was changed in ce6526e8afa4.
1335 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1336 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1337 #. 0f3912fd934c for ARM.
1338 #. type: Plain text
1339 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1340 #. This was changed in ce6526e8afa4.
1341 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1342 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1343 #. 0f3912fd934c for ARM.
1344 #. type: Plain text
1345 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1346 #. This was changed in ce6526e8afa4.
1347 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1348 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1349 #. 0f3912fd934c for ARM.
1350 #. type: Plain text
1351 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1352 #. This was changed in ce6526e8afa4.
1353 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1354 #. changed in arch-specific commits, e.g. 93e35efb8de4 for X86 and
1355 #. 0f3912fd934c for ARM.
1356 #. type: Plain text
1357 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1358 #. This was changed in ce6526e8afa4.
1359 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1360 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1361 #. 0f3912fd934c for ARM.
1362 #. type: Plain text
1363 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1364 #. This was changed in ce6526e8afa4.
1365 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1366 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1367 #. 0f3912fd934c for ARM.
1368 #. type: Plain text
1369 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1370 #. This was changed in ce6526e8afa4.
1371 #. A related hole, using PTRACE_SYSCALL instead of SECCOMP_RET_TRACE, was
1372 #. changed in arch-specific commits, e.g., 93e35efb8de4 for X86 and
1373 #. 0f3912fd934c for ARM.
1374 #. type: Plain text
1375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1377 msgid ""
1378 "Before Linux 4.8, the seccomp check will not be run again after the tracer "
1379 "is notified. (This means that, on older kernels, seccomp-based sandboxes "
1380 "B<must not> allow use of B<ptrace>(2)\\[em]even of other sandboxed "
1381 "processes\\[em]without extreme care; ptracers can use this mechanism to "
1382 "escape from the seccomp sandbox.)"
1383 msgstr ""
1384 "Avant Linux 4.8, la vérification seccomp ne sera pas refaite après que "
1385 "l'observateur ait reçu une notification (cela signifie que sur les anciens "
1386 "noyaux, les conteneurs basés sur seccomp B<ne doivent pas> autoriser "
1387 "l'utilisation de B<ptrace>(2) – même sur d'autres processus encapsulés – "
1388 "sans une prudence extrême ; les ptracers peuvent utiliser ce mécanisme pour "
1389 "sortir d'un conteneur seccomp)."
1390
1391 #. type: Plain text
1392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1394 msgid ""
1395 "Note that a tracer process will not be notified if another filter returns an "
1396 "action value with a precedence greater than B<SECCOMP_RET_TRACE>."
1397 msgstr ""
1398 "Remarquez que le processus d'un observateur ne sera pas notifié si un autre "
1399 "filtre renvoie une valeur d'action ayant une priorité supérieure à "
1400 "B<SECCOMP_RET_TRACE>."
1401
1402 #. type: TP
1403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1405 #, no-wrap
1406 msgid "B<SECCOMP_RET_LOG> (since Linux 4.14)"
1407 msgstr "B<SECCOMP_RET_LOG> (depuis Linux 4.14)"
1408
1409 #. commit 59f5cf44a38284eb9e76270c786fb6cc62ef8ac4
1410 #. type: Plain text
1411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1413 msgid ""
1414 "This value results in the system call being executed after the filter return "
1415 "action is logged. An administrator may override the logging of this action "
1416 "via the I</proc/sys/kernel/seccomp/actions_logged> file."
1417 msgstr ""
1418 "Cette valeur fait exécuter l'appel système après l'enregistrement de "
1419 "l'action de retour du filtre. Un administrateur peut supplanter la "
1420 "journalisation de cette action à l'aide du fichier I</proc/sys/kernel/"
1421 "seccomp/actions_logged>."
1422
1423 #. type: TP
1424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1426 #, no-wrap
1427 msgid "B<SECCOMP_RET_ALLOW>"
1428 msgstr "B<SECCOMP_RET_ALLOW>"
1429
1430 #. type: Plain text
1431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1433 msgid "This value results in the system call being executed."
1434 msgstr "Cette valeur provoque l'exécution de l'appel système."
1435
1436 #. commit 4d3b0b05aae9ee9ce0970dc4cc0fb3fad5e85945
1437 #. type: Plain text
1438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1440 msgid ""
1441 "If an action value other than one of the above is specified, then the filter "
1442 "action is treated as either B<SECCOMP_RET_KILL_PROCESS> (since Linux 4.14) "
1443 "or B<SECCOMP_RET_KILL_THREAD> (in Linux 4.13 and earlier)."
1444 msgstr ""
1445 "Si on indique un code d'action différent de ceux ci-dessus, l'action de "
1446 "filtre est traitée soit comme un B<SECCOMP_RET_KILL_PROCESS> (depuis "
1447 "Linux 4.14), soit comme un B<SECCOMP_RET_KILL_THREAD> (dans Linux 4.13 et "
1448 "antérieurs)."
1449
1450 #. type: SS
1451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1453 #, no-wrap
1454 msgid "/proc interfaces"
1455 msgstr "/proc interfaces"
1456
1457 #. type: Plain text
1458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1460 msgid ""
1461 "The files in the directory I</proc/sys/kernel/seccomp> provide additional "
1462 "seccomp information and configuration:"
1463 msgstr ""
1464 "Les fichiers du répertoire I</proc/sys/kernel/seccomp> offrent des "
1465 "informations et des configurations seccomp supplémentaires :"
1466
1467 #. type: TP
1468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1470 #, no-wrap
1471 msgid "I<actions_avail> (since Linux 4.14)"
1472 msgstr "I<actions_avail> (depuis Linux 4.14)"
1473
1474 #. commit 8e5f1ad116df6b0de65eac458d5e7c318d1c05af
1475 #. type: Plain text
1476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1478 msgid ""
1479 "A read-only ordered list of seccomp filter return actions in string form. "
1480 "The ordering, from left-to-right, is in decreasing order of precedence. The "
1481 "list represents the set of seccomp filter return actions supported by the "
1482 "kernel."
1483 msgstr ""
1484 "Une liste ordonnée en lecture seule d'actions de renvoi de filtre seccomp "
1485 "sous la forme d'une chaîne. L'ordre, de gauche à droite, est décroissant "
1486 "pour la priorité. La liste représente l'ensemble des actions de renvoi de "
1487 "filtre seccomp gérées par le noyau."
1488
1489 #. type: TP
1490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1492 #, no-wrap
1493 msgid "I<actions_logged> (since Linux 4.14)"
1494 msgstr "I<actions_logged> (depuis Linux 4.14)"
1495
1496 #. commit 0ddec0fc8900201c0897b87b762b7c420436662f
1497 #. type: Plain text
1498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1500 msgid ""
1501 "A read-write ordered list of seccomp filter return actions that are allowed "
1502 "to be logged. Writes to the file do not need to be in ordered form but "
1503 "reads from the file will be ordered in the same way as the I<actions_avail> "
1504 "file."
1505 msgstr ""
1506 "Une liste ordonnée en lecture-écriture d'actions de renvoi de filtre seccomp "
1507 "autorisées pour la journalisation. Les écritures dans le fichier n'ont pas "
1508 "besoin d'être ordonnées, mais les lectures se feront dans le même ordre que "
1509 "pour I<actions_avail>."
1510
1511 #. type: Plain text
1512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1514 msgid ""
1515 "It is important to note that the value of I<actions_logged> does not prevent "
1516 "certain filter return actions from being logged when the audit subsystem is "
1517 "configured to audit a task. If the action is not found in the "
1518 "I<actions_logged> file, the final decision on whether to audit the action "
1519 "for that task is ultimately left up to the audit subsystem to decide for all "
1520 "filter return actions other than B<SECCOMP_RET_ALLOW>."
1521 msgstr ""
1522 "Il est important de remarquer que la valeur de I<actions_logged> n'empêche "
1523 "pas certaines actions de renvoi de filtre d'être enregistrées quand le sous-"
1524 "système d'audit est configuré pour auditer une tâche. Si l'action n'est pas "
1525 "retrouvée dans le fichier I<actions_logged>, la décision finale d'auditer "
1526 "l'action de cette tâche revient au sous-système d'audit pour toutes les "
1527 "actions de renvoi de filtre autres que B<SECCOMP_RET_ALLOW>."
1528
1529 #. type: Plain text
1530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1532 msgid ""
1533 "The \"allow\" string is not accepted in the I<actions_logged> file as it is "
1534 "not possible to log B<SECCOMP_RET_ALLOW> actions. Attempting to write "
1535 "\"allow\" to the file will fail with the error B<EINVAL>."
1536 msgstr ""
1537 "La chaîne « allow » n'est pas acceptée dans le fichier I<actions_logged> car "
1538 "il n'est pas possible d'enregistrer les actions B<SECCOMP_RET_ALLOW>. "
1539 "Essayer d'écrire « allow » dans le fichier échouera avec l'erreur B<EINVAL>."
1540
1541 #. type: SS
1542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1544 #, no-wrap
1545 msgid "Audit logging of seccomp actions"
1546 msgstr "Enregistrement d'audit des actions seccomp"
1547
1548 #. commit 59f5cf44a38284eb9e76270c786fb6cc62ef8ac4
1549 #. or auditing could be enabled via the netlink API (AUDIT_SET)
1550 #. type: Plain text
1551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1553 msgid ""
1554 "Since Linux 4.14, the kernel provides the facility to log the actions "
1555 "returned by seccomp filters in the audit log. The kernel makes the decision "
1556 "to log an action based on the action type, whether or not the action is "
1557 "present in the I<actions_logged> file, and whether kernel auditing is "
1558 "enabled (e.g., via the kernel boot option I<audit=1>). The rules are as "
1559 "follows:"
1560 msgstr ""
1561 "Depuis Linux 4.14, le noyau offre la possibilité d'enregistrer les actions "
1562 "renvoyées par des filtres seccomp dans le compte-rendu d'audit. Le noyau "
1563 "prend la décision d'enregistrer une action à partir du type d'action, de sa "
1564 "présence dans le fichier I<actions_logged> et de l'activation de l'audit du "
1565 "noyau (par exemple avec l'option d'amorçage du noyau I<audit=1>). Les règles "
1566 "sont les suivantes :"
1567
1568 #. type: Plain text
1569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1571 msgid "If the action is B<SECCOMP_RET_ALLOW>, the action is not logged."
1572 msgstr "Si l'action est B<SECCOMP_RET_ALLOW>, l'action n'est pas enregistrée."
1573
1574 #. type: Plain text
1575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1577 msgid ""
1578 "Otherwise, if the action is either B<SECCOMP_RET_KILL_PROCESS> or "
1579 "B<SECCOMP_RET_KILL_THREAD>, and that action appears in the I<actions_logged> "
1580 "file, the action is logged."
1581 msgstr ""
1582 "Sinon, si l'action est B<SECCOMP_RET_KILL_PROCESS> ou "
1583 "B<SECCOMP_RET_KILL_THREAD> et si elle apparaît dans le fichier "
1584 "I<actions_logged>, l'action est enregistrée."
1585
1586 #. type: Plain text
1587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1589 msgid ""
1590 "Otherwise, if the filter has requested logging (the "
1591 "B<SECCOMP_FILTER_FLAG_LOG> flag) and the action appears in the "
1592 "I<actions_logged> file, the action is logged."
1593 msgstr ""
1594 "Sinon, si le filtre a demandé l'enregistrement (l'attribut "
1595 "B<SECCOMP_FILTER_FLAG_LOG>) et si elle apparaît dans le fichier "
1596 "I<actions_logged>, l'action est enregistrée."
1597
1598 #. type: Plain text
1599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1601 msgid ""
1602 "Otherwise, if kernel auditing is enabled and the process is being audited "
1603 "(B<autrace>(8)), the action is logged."
1604 msgstr ""
1605 "Sinon, si l'audit du noyau est activé et si le processus doit être audité "
1606 "(B<autrace>(8)), l'action est enregistrée."
1607
1608 #. type: Plain text
1609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1611 msgid "Otherwise, the action is not logged."
1612 msgstr "Sinon, l'action n'est pas enregistrée."
1613
1614 #. type: SH
1615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1617 #, no-wrap
1618 msgid "RETURN VALUE"
1619 msgstr "VALEUR RENVOYÉE"
1620
1621 #. type: Plain text
1622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1624 msgid ""
1625 "On success, B<seccomp>() returns 0. On error, if "
1626 "B<SECCOMP_FILTER_FLAG_TSYNC> was used, the return value is the ID of the "
1627 "thread that caused the synchronization failure. (This ID is a kernel thread "
1628 "ID of the type returned by B<clone>(2) and B<gettid>(2).) On other errors, "
1629 "-1 is returned, and I<errno> is set to indicate the error."
1630 msgstr ""
1631 "En cas de succès, B<seccomp>() renvoie B<0>. En cas d'erreur, si "
1632 "B<SECCOMP_FILTER_FLAG_TSYNC> a été utilisé, le code de retour est "
1633 "l'identifiant du thread à l'origine de l'échec de la synchronisation (cet "
1634 "identifiant est un identifiant de thread du noyau du type renvoyé par "
1635 "B<clone>(2) et B<gettid>(2)). Si une autre erreur arrive, B<-1> est renvoyé "
1636 "et I<errno> est positionné pour indiquer l'erreur."
1637
1638 #. type: SH
1639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1641 #, no-wrap
1642 msgid "ERRORS"
1643 msgstr "ERREURS"
1644
1645 #. type: Plain text
1646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1648 msgid "B<seccomp>() can fail for the following reasons:"
1649 msgstr "B<seccomp>() peut échouer pour les raisons suivantes :"
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<EACCES>"
1656 msgstr "B<EACCES>"
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 "The caller did not have the B<CAP_SYS_ADMIN> capability in its user "
1663 "namespace, or had not set I<no_new_privs> before using "
1664 "B<SECCOMP_SET_MODE_FILTER>."
1665 msgstr ""
1666 "L'appelant n'avait pas la capacité B<CAP_SYS_ADMIN> dans son espace de noms "
1667 "utilisateur ou n'avait pas positionné I<no_new_privs> avant d'utiliser "
1668 "B<SECCOMP_SET_MODE_FILTER>."
1669
1670 #. type: TP
1671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1673 #, no-wrap
1674 msgid "B<EBUSY>"
1675 msgstr "B<EBUSY>"
1676
1677 #. type: Plain text
1678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1680 msgid ""
1681 "While installing a new filter, the B<SECCOMP_FILTER_FLAG_NEW_LISTENER> flag "
1682 "was specified, but a previous filter had already been installed with that "
1683 "flag."
1684 msgstr ""
1685 "Pendant l'installation d'un nouveau filtre, l'attribut "
1686 "B<SECCOMP_FILTER_FLAG_NEW_LISTENER> a été indiqué, mais un filtre précédent "
1687 "a déjà été installé avec cet attribut."
1688
1689 #. type: TP
1690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1692 #, no-wrap
1693 msgid "B<EFAULT>"
1694 msgstr "B<EFAULT>"
1695
1696 #. type: Plain text
1697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1699 msgid "I<args> was not a valid address."
1700 msgstr "I<args> n'était pas une adresse valable."
1701
1702 #. type: TP
1703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1705 #, no-wrap
1706 msgid "B<EINVAL>"
1707 msgstr "B<EINVAL>"
1708
1709 #. type: Plain text
1710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1712 msgid ""
1713 "I<operation> is unknown or is not supported by this kernel version or "
1714 "configuration."
1715 msgstr ""
1716 "L'I<opération> est inconnue ou n'est pas prise en charge par cette version "
1717 "ou cette configuration du noyau."
1718
1719 #. type: Plain text
1720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1722 msgid "The specified I<flags> are invalid for the given I<operation>."
1723 msgstr ""
1724 "Les I<flags> spécifiés ne sont pas valables pour l'I<opération> donnée."
1725
1726 #. type: Plain text
1727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1729 #, fuzzy
1730 #| msgid ""
1731 #| "I<operation> included B<BPF_ABS>, but the specified offset was not "
1732 #| "aligned to a 32-bit boundary or exceeded I<sizeof(struct\\ seccomp_data)>."
1733 msgid ""
1734 "I<operation> included B<BPF_ABS>, but the specified offset was not aligned "
1735 "to a 32-bit boundary or exceeded I<sizeof(struct\\ seccomp_data)>."
1736 msgstr ""
1737 "L'I<opération> comprenait B<BPF_ABS>, mais la position indiquée n'était pas "
1738 "alignée sur une limite 32 bits ou elle dépassait I<sizeof(struct\\ "
1739 "seccomp_data)>."
1740
1741 #. See kernel/seccomp.c::seccomp_may_assign_mode() in Linux 3.18 sources
1742 #. type: Plain text
1743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1745 msgid ""
1746 "A secure computing mode has already been set, and I<operation> differs from "
1747 "the existing setting."
1748 msgstr ""
1749 "Un mode de calcul sécurisé a déjà été défini et l'I<opération> diffère du "
1750 "paramétrage existant."
1751
1752 #. type: Plain text
1753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1755 msgid ""
1756 "I<operation> specified B<SECCOMP_SET_MODE_FILTER>, but the filter program "
1757 "pointed to by I<args> was not valid or the length of the filter program was "
1758 "zero or exceeded B<BPF_MAXINSNS> (4096) instructions."
1759 msgstr ""
1760 "I<opération> indiquait B<SECCOMP_SET_MODE_FILTER> mais le programme de "
1761 "filtre vers lequel pointait I<args> n'était pas valable ou sa longueur était "
1762 "de zéro ou dépassait B<BPF_MAXINSNS> instructions (4096)."
1763
1764 #. type: TP
1765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1767 #, no-wrap
1768 msgid "B<ENOMEM>"
1769 msgstr "B<ENOMEM>"
1770
1771 #. type: Plain text
1772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1774 msgid "Out of memory."
1775 msgstr "Plus assez de mémoire."
1776
1777 #. ENOMEM in kernel/seccomp.c::seccomp_attach_filter() in Linux 3.18 sources
1778 #. type: Plain text
1779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1781 msgid ""
1782 "The total length of all filter programs attached to the calling thread would "
1783 "exceed B<MAX_INSNS_PER_PATH> (32768) instructions. Note that for the "
1784 "purposes of calculating this limit, each already existing filter program "
1785 "incurs an overhead penalty of 4 instructions."
1786 msgstr ""
1787 "La taille totale de tous les programmes de filtre rattachés au thread "
1788 "appelant dépasserait B<MAX_INSNS_PER_PATH> instructions (32768). Remarquez "
1789 "qu'afin de calculer cette limite, chaque programme de filtre déjà existant "
1790 "intègre une pénalité de dépassement de B<4> instructions."
1791
1792 #. type: TP
1793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1795 #, no-wrap
1796 msgid "B<EOPNOTSUPP>"
1797 msgstr "B<EOPNOTSUPP>"
1798
1799 #. type: Plain text
1800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1802 msgid ""
1803 "I<operation> specified B<SECCOMP_GET_ACTION_AVAIL>, but the kernel does not "
1804 "support the filter return action specified by I<args>."
1805 msgstr ""
1806 "I<opération> indiquait B<SECCOMP_GET_ACTION_AVAIL> mais le noyau ne gère pas "
1807 "l'action de renvoi de filtre indiquée par I<args>."
1808
1809 #. type: TP
1810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1812 #, no-wrap
1813 msgid "B<ESRCH>"
1814 msgstr "B<ESRCH>"
1815
1816 #. type: Plain text
1817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1819 msgid ""
1820 "Another thread caused a failure during thread sync, but its ID could not be "
1821 "determined."
1822 msgstr ""
1823 "Un autre thread a provoqué un échec pendant la synchronisation, mais son "
1824 "identifiant n'a pas pu être déterminé."
1825
1826 #. type: SH
1827 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1828 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1829 #, no-wrap
1830 msgid "STANDARDS"
1831 msgstr "NORMES"
1832
1833 #. type: Plain text
1834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1836 msgid "Linux."
1837 msgstr "Linux."
1838
1839 #. type: SH
1840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1842 #, no-wrap
1843 msgid "HISTORY"
1844 msgstr "HISTORIQUE"
1845
1846 #. FIXME . Add glibc version
1847 #. type: Plain text
1848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1850 msgid "Linux 3.17."
1851 msgstr "Linux 3.17."
1852
1853 #. type: SH
1854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1856 #, no-wrap
1857 msgid "NOTES"
1858 msgstr "NOTES"
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 "Rather than hand-coding seccomp filters as shown in the example below, you "
1865 "may prefer to employ the I<libseccomp> library, which provides a front-end "
1866 "for generating seccomp filters."
1867 msgstr ""
1868 "Au lieu de coder à la main des filtres seccomp comme démontré dans l'exemple "
1869 "ci-dessous, vous pourriez préférer utiliser la bibliothèque I<libseccomp> "
1870 "qui fournit une interface de génération de filtres seccomp."
1871
1872 #. type: Plain text
1873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1875 msgid ""
1876 "The I<Seccomp> field of the I</proc/>pidI</status> file provides a method of "
1877 "viewing the seccomp mode of a process; see B<proc>(5)."
1878 msgstr ""
1879 "Le champ I<Seccomp> du fichier I</proc/>pidI</status> offre une méthode de "
1880 "visualisation du mode seccomp du processus ; voir B<proc>(5)."
1881
1882 #. type: Plain text
1883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1885 msgid ""
1886 "B<seccomp>() provides a superset of the functionality provided by the "
1887 "B<prctl>(2) B<PR_SET_SECCOMP> operation (which does not support I<flags>)."
1888 msgstr ""
1889 "B<seccomp>() fournit un sur-ensemble de fonctionnalités de l'opération "
1890 "B<PR_SET_SECCOMP> de B<prctl>(2) (qui ne prend pas en charge les I<flags>)."
1891
1892 #. type: Plain text
1893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1895 msgid ""
1896 "Since Linux 4.4, the B<ptrace>(2) B<PTRACE_SECCOMP_GET_FILTER> operation "
1897 "can be used to dump a process's seccomp filters."
1898 msgstr ""
1899 "Depuis Linux 4.4, l'opération B<PTRACE_SECCOMP_GET_FILTER> de B<ptrace>(2) "
1900 "peut être utilisée pour obtenir les filtres seccomp d'un processus."
1901
1902 #. type: SS
1903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1905 #, no-wrap
1906 msgid "Architecture support for seccomp BPF"
1907 msgstr "Gestion d'architecture pour le BPF seccomp"
1908
1909 #. #-#-#-#-# archlinux: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1910 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1911 #. kernel source. Last checked in Linux 4.16-rc source.
1912 #. type: Plain text
1913 #. #-#-#-#-# debian-trixie: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1914 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1915 #. kernel source. Last checked in Linux 4.16-rc source.
1916 #. type: Plain text
1917 #. #-#-#-#-# debian-unstable: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1918 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1919 #. kernel source. Last checked in Linux 4.16-rc source.
1920 #. type: Plain text
1921 #. #-#-#-#-# fedora-44: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1922 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1923 #. kernel source. Last checked in Linux 4.16-rc source.
1924 #. type: Plain text
1925 #. #-#-#-#-# fedora-rawhide: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1926 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1927 #. kernel source. Last checked in Linux 4.16-rc source.
1928 #. type: Plain text
1929 #. #-#-#-#-# mageia-cauldron: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1930 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1931 #. kernel source. Last checked in Linux 4.16-rc source.
1932 #. type: Plain text
1933 #. #-#-#-#-# opensuse-leap-16-1: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1934 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1935 #. kernel source. Last checked in Linux 4.16-rc source.
1936 #. type: Plain text
1937 #. #-#-#-#-# opensuse-tumbleweed: seccomp.2.pot (PACKAGE VERSION) #-#-#-#-#
1938 #. Check by grepping for HAVE_ARCH_SECCOMP_FILTER in Kconfig files in
1939 #. kernel source. Last checked in Linux 4.16-rc source.
1940 #. type: Plain text
1941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1943 msgid ""
1944 "Architecture support for seccomp BPF filtering is available on the following "
1945 "architectures:"
1946 msgstr ""
1947 "La gestion d'architecture pour le filtrage de BPF seccomp est disponible sur "
1948 "les architectures suivantes :"
1949
1950 #. type: Plain text
1951 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1952 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1953 msgid "x86-64, i386, x32 (since Linux 3.5)"
1954 msgstr "x86-64, i386, x32 (depuis Linux 3.5)"
1955
1956 #. type: Plain text
1957 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1958 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1959 msgid "ARM (since Linux 3.8)"
1960 msgstr "ARM (depuis Linux 3.8)"
1961
1962 #. type: Plain text
1963 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1964 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1965 msgid "s390 (since Linux 3.8)"
1966 msgstr "s390 (depuis Linux 3.8)"
1967
1968 #. type: Plain text
1969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1971 msgid "MIPS (since Linux 3.16)"
1972 msgstr "MIPS (depuis Linux 3.16)"
1973
1974 #. type: Plain text
1975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1977 msgid "ARM-64 (since Linux 3.19)"
1978 msgstr "ARM-64 (depuis Linux 3.19)"
1979
1980 #. type: Plain text
1981 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1982 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1983 msgid "PowerPC (since Linux 4.3)"
1984 msgstr "PowerPC (depuis Linux 4.3)"
1985
1986 #. type: Plain text
1987 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1988 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1989 msgid "Tile (since Linux 4.3)"
1990 msgstr "Tile (depuis Linux 4.3)"
1991
1992 #. User mode Linux since Linux 4.6
1993 #. type: Plain text
1994 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1995 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1996 msgid "PA-RISC (since Linux 4.6)"
1997 msgstr "PA-RISC (depuis Linux 4.6)"
1998
1999 #. type: SS
2000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2002 #, no-wrap
2003 msgid "Caveats"
2004 msgstr "Avertissements"
2005
2006 #. type: Plain text
2007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2009 msgid ""
2010 "There are various subtleties to consider when applying seccomp filters to a "
2011 "program, including the following:"
2012 msgstr ""
2013 "Il y a beaucoup de subtilités à prendre en compte lorsqu'on applique des "
2014 "filtres seccomp à un programme, notamment :"
2015
2016 #. type: Plain text
2017 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2018 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2019 msgid ""
2020 "Some traditional system calls have user-space implementations in the "
2021 "B<vdso>(7) on many architectures. Notable examples include "
2022 "B<clock_gettime>(2), B<gettimeofday>(2), and B<time>(2). On such "
2023 "architectures, seccomp filtering for these system calls will have no "
2024 "effect. (However, there are cases where the B<vdso>(7) implementations may "
2025 "fall back to invoking the true system call, in which case seccomp filters "
2026 "would see the system call.)"
2027 msgstr ""
2028 "Certains appels système traditionnels ont des implémentations dans l'espace "
2029 "utilisateur dans le B<vdso>(7) de nombreuses architectures. Parmi les "
2030 "exemples remarquables, se trouvent B<clock_gettime>(2), B<gettimeofday>(2) "
2031 "et B<time>(2). Sur de telles architectures, le filtrage seccomp de ces "
2032 "appels système sera sans effet (il y a cependant des cas où les "
2033 "implémentations B<vdso>(7) se rabattent sur le véritable appel système, "
2034 "alors les filtres seccomp verraient l'appel système)."
2035
2036 #. type: Plain text
2037 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2038 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2039 msgid ""
2040 "Seccomp filtering is based on system call numbers. However, applications "
2041 "typically do not directly invoke system calls, but instead call wrapper "
2042 "functions in the C library which in turn invoke the system calls. "
2043 "Consequently, one must be aware of the following:"
2044 msgstr ""
2045 "Le filtrage seccomp s'appuie sur les numéros d'appel système. Cependant, les "
2046 "applications n'appellent généralement pas directement les appels système, "
2047 "mais plutôt les fonctions enveloppe de la bibliothèque C qui appellent à "
2048 "leur tour les appels système. Par conséquent, vous devez garder en tête ce "
2049 "qui suit :"
2050
2051 #. type: Plain text
2052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2054 msgid ""
2055 "The glibc wrappers for some traditional system calls may actually employ "
2056 "system calls with different names in the kernel. For example, the "
2057 "B<exit>(2) wrapper function actually employs the B<exit_group>(2) system "
2058 "call, and the B<fork>(2) wrapper function actually calls B<clone>(2)."
2059 msgstr ""
2060 "Les enveloppes de la glibc pour certains appels système traditionnels "
2061 "peuvent utiliser des appels système ayant des noms différents dans le noyau. "
2062 "Par exemple, la fonction enveloppe B<exit>(2) utilise en fait l'appel "
2063 "système B<exit_group>(2) et la fonction B<fork>(2) utilise en réalité les "
2064 "appels B<clone>(2)."
2065
2066 #. type: Plain text
2067 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2068 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2069 msgid ""
2070 "The behavior of wrapper functions may vary across architectures, according "
2071 "to the range of system calls provided on those architectures. In other "
2072 "words, the same wrapper function may invoke different system calls on "
2073 "different architectures."
2074 msgstr ""
2075 "Le comportement des fonctions enveloppe peut changer en fonction des "
2076 "architectures, selon la plage d'appels système fournie sur ces "
2077 "architectures. Autrement dit, la même fonction enveloppe peut appeler "
2078 "différents appels système selon les architectures."
2079
2080 #. type: Plain text
2081 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2082 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2083 msgid ""
2084 "Finally, the behavior of wrapper functions can change across glibc "
2085 "versions. For example, in older versions, the glibc wrapper function for "
2086 "B<open>(2) invoked the system call of the same name, but starting in glibc "
2087 "2.26, the implementation switched to calling B<openat>(2) on all "
2088 "architectures."
2089 msgstr ""
2090 "Enfin, le comportement des fonctions enveloppe peut changer selon les "
2091 "versions de la glibc. Par exemple, dans d'anciennes versions, la fonction "
2092 "enveloppe de la glibc de B<open>(2) appelait l'appel système du même nom, "
2093 "mais à partir de la 2.26, l'implémentation est passée à l'appel B<openat>(2) "
2094 "sur toutes les architectures."
2095
2096 #. type: Plain text
2097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2099 msgid ""
2100 "The consequence of the above points is that it may be necessary to filter "
2101 "for a system call other than might be expected. Various manual pages in "
2102 "Section 2 provide helpful details about the differences between wrapper "
2103 "functions and the underlying system calls in subsections entitled I<C "
2104 "library/kernel differences>."
2105 msgstr ""
2106 "La conséquence des points ci-dessus est qu'il pourrait être nécessaire de "
2107 "filtrer un appel système autre que celui prévu. Plusieurs pages de manuel de "
2108 "la section 2 donnent des détails utiles sur les différences entre les "
2109 "fonctions enveloppe et les appels système sous-jacents dans les sous-"
2110 "sections intitulées I<Différences entre le noyau et la bibliothèque C>."
2111
2112 #. type: Plain text
2113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2115 msgid ""
2116 "Furthermore, note that the application of seccomp filters even risks causing "
2117 "bugs in an application, when the filters cause unexpected failures for "
2118 "legitimate operations that the application might need to perform. Such bugs "
2119 "may not easily be discovered when testing the seccomp filters if the bugs "
2120 "occur in rarely used application code paths."
2121 msgstr ""
2122 "En outre, remarquez que l'application de filtres seccomp risque même de "
2123 "provoquer des bogues dans une application, quand les filtres provoquent des "
2124 "échecs inattendus d'opérations légitimes que l'application a besoin "
2125 "d'effectuer. De tels bogues pourraient ne pas être facilement identifiés "
2126 "lors d'un test des filtres seccomp s'ils se produisent à des endroits du "
2127 "code rarement utilisés."
2128
2129 #. type: SS
2130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2132 #, no-wrap
2133 msgid "Seccomp-specific BPF details"
2134 msgstr "Détails BPF spécifiques à seccomp"
2135
2136 #. type: Plain text
2137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2139 msgid "Note the following BPF details specific to seccomp filters:"
2140 msgstr ""
2141 "Remarquez que les détails BPF suivants sont spécifiques aux filtres seccomp :"
2142
2143 #. type: Plain text
2144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2146 msgid ""
2147 "The B<BPF_H> and B<BPF_B> size modifiers are not supported: all operations "
2148 "must load and store (4-byte) words (B<BPF_W>)."
2149 msgstr ""
2150 "Les modificateurs de taille B<BPF_H> et B<BPF_B> ne sont pas pris en "
2151 "charge : toutes les opérations doivent charger et stocker des mots "
2152 "(4 octets) (B<BPF_W>)."
2153
2154 #. type: Plain text
2155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2157 msgid ""
2158 "To access the contents of the I<seccomp_data> buffer, use the B<BPF_ABS> "
2159 "addressing mode modifier."
2160 msgstr ""
2161 "Pour accéder au contenu du tampon I<seccomp_data>, utilisez le modificateur "
2162 "du mode d'adressage B<BPF_ABS>."
2163
2164 #. type: Plain text
2165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2167 msgid ""
2168 "The B<BPF_LEN> addressing mode modifier yields an immediate mode operand "
2169 "whose value is the size of the I<seccomp_data> buffer."
2170 msgstr ""
2171 "Le modificateur du mode d'adressage B<BPF_LEN> produit un opérande de mode "
2172 "immédiatement dont la valeur est la taille du tampon I<seccomp_data>."
2173
2174 #. type: SH
2175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2177 #, no-wrap
2178 msgid "EXAMPLES"
2179 msgstr "EXEMPLES"
2180
2181 #. type: Plain text
2182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2184 msgid ""
2185 "The program below accepts four or more arguments. The first three arguments "
2186 "are a system call number, a numeric architecture identifier, and an error "
2187 "number. The program uses these values to construct a BPF filter that is "
2188 "used at run time to perform the following checks:"
2189 msgstr ""
2190 "Le programme ci-dessous accepte quatre paramètres ou plus. Les trois "
2191 "premiers sont un numéro d'appel système, un identifiant numérique "
2192 "d'architecture et un numéro d'erreur. Le programme utilise ces valeurs pour "
2193 "construire un filtre BPF utilisé lors de l'exécution pour effectuer les "
2194 "vérifications suivantes :"
2195
2196 #. type: Plain text
2197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2199 msgid ""
2200 "If the program is not running on the specified architecture, the BPF filter "
2201 "causes system calls to fail with the error B<ENOSYS>."
2202 msgstr ""
2203 "Si le programme ne tourne pas sur l'architecture indiquée, le filtre BPF "
2204 "fait échouer les appels système avec l'erreur B<ENOSYS>."
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 "If the program attempts to execute the system call with the specified "
2211 "number, the BPF filter causes the system call to fail, with I<errno> being "
2212 "set to the specified error number."
2213 msgstr ""
2214 "Si le programme essaie d'exécuter l'appel système ayant le numéro indiqué, "
2215 "le filtre BPF fait échouer l'appel système en positionnant I<errno> sur le "
2216 "numéro d'erreur indiqué."
2217
2218 #. type: Plain text
2219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2221 msgid ""
2222 "The remaining command-line arguments specify the pathname and additional "
2223 "arguments of a program that the example program should attempt to execute "
2224 "using B<execv>(3) (a library function that employs the B<execve>(2) system "
2225 "call). Some example runs of the program are shown below."
2226 msgstr ""
2227 "Les autres paramètres de la ligne de commande indiquent le chemin et les "
2228 "paramètres supplémentaires d'un programme que notre exemple doit essayer "
2229 "d'exécuter en utilisant B<execv>(3) (une fonction de bibliothèque qui "
2230 "utilise l'appel système B<execve>(2)). Certains exemples d’exécution du "
2231 "programme sont présentés ci-dessous."
2232
2233 #. type: Plain text
2234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2236 msgid ""
2237 "First, we display the architecture that we are running on (x86-64) and then "
2238 "construct a shell function that looks up system call numbers on this "
2239 "architecture:"
2240 msgstr ""
2241 "Tout d'abord, on affiche l'architecture sur laquelle on est (x86-64) puis on "
2242 "construit une fonction d’interpréteur qui cherche les numéros d'appels "
2243 "système sur cette architecture :"
2244
2245 #. type: Plain text
2246 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2247 #: opensuse-tumbleweed
2248 #, fuzzy, no-wrap
2249 #| msgid ""
2250 #| "$ B<uname -m>\n"
2251 #| "x86_64\n"
2252 #| "$ B<syscall_nr() {\n"
2253 #| " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2254 #| " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2255 #| "}>\n"
2256 msgid ""
2257 "$B< uname -m>;\n"
2258 "x86_64\n"
2259 "$ \\f[B]syscall_nr() {\n"
2260 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2261 " awk \\[aq]$2 != \\[dq]x32\\[dq] && $3 == \\[dq]\\[aq]$1\\[aq]\\[dq] { print $1 }\\[aq]\n"
2262 "}\\fR;\n"
2263 msgstr ""
2264 "$ B<uname -m>\n"
2265 "x86_64\n"
2266 "$ B<syscall_nr() {\n"
2267 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2268 " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2269 "}>\n"
2270
2271 #. type: Plain text
2272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2274 msgid ""
2275 "When the BPF filter rejects a system call (case [2] above), it causes the "
2276 "system call to fail with the error number specified on the command line. In "
2277 "the experiments shown here, we'll use error number 99:"
2278 msgstr ""
2279 "Quand le filtre BPF rejette un appel système (cas n° 2 ci-dessus), il fait "
2280 "échouer l'appel système avec le numéro d'erreur indiqué sur la ligne de "
2281 "commande. Dans les exemples présentés ici, nous utiliserons le numéro "
2282 "d'erreur 99 :"
2283
2284 #. type: Plain text
2285 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2286 #: opensuse-tumbleweed
2287 #, fuzzy, no-wrap
2288 #| msgid ""
2289 #| "$ B<errno 99>\n"
2290 #| "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2291 msgid ""
2292 "$B< errno 99>;\n"
2293 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2294 msgstr ""
2295 "$ B<errno 99>\n"
2296 "EADDRNOTAVAIL 99 Ne peut pas affecter l'adresse demandée\n"
2297
2298 #. type: Plain text
2299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2301 msgid ""
2302 "In the following example, we attempt to run the command B<whoami>(1), but "
2303 "the BPF filter rejects the B<execve>(2) system call, so that the command is "
2304 "not even executed:"
2305 msgstr ""
2306 "Dans l'exemple suivant, on essaie d'exécuter la commande B<whoami>(1), mais "
2307 "le filtre BPF rejette l'appel système B<execve>(2), donc la commande n'est "
2308 "même pas exécutée :"
2309
2310 #. type: Plain text
2311 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2312 #: opensuse-tumbleweed
2313 #, fuzzy, no-wrap
2314 #| msgid ""
2315 #| "$ B<syscall_nr execve>\n"
2316 #| "59\n"
2317 #| "$ B<./a.out>\n"
2318 #| "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"
2319 #| "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2320 #| " AUDIT_ARCH_X86_64: 0xC000003E\n"
2321 #| "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2322 #| "execv: Cannot assign requested address\n"
2323 msgid ""
2324 "$B< syscall_nr execve>;\n"
2325 "59\n"
2326 "$B< ./a.out>;\n"
2327 "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"
2328 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2329 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2330 "$B< ./a.out 59 0xC000003E 99 /bin/whoami>;\n"
2331 "execv: Cannot assign requested address\n"
2332 msgstr ""
2333 "$ B<syscall_nr execve>\n"
2334 "59\n"
2335 "$ B<./a.out>\n"
2336 "Utilisation : ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt>progE<gt> [E<lt>argsE<gt>]\n"
2337 "Astuce pour E<lt>archE<gt> : AUDIT_ARCH_I386: 0x40000003\n"
2338 " AUDIT_ARCH_X86_64 : 0xC000003E\n"
2339 "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2340 "execv : Ne peut pas affecter l'adresse demandée\n"
2341
2342 #. type: Plain text
2343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2345 msgid ""
2346 "In the next example, the BPF filter rejects the B<write>(2) system call, so "
2347 "that, although it is successfully started, the B<whoami>(1) command is not "
2348 "able to write output:"
2349 msgstr ""
2350 "Dans le prochain exemple, le filtre BPF rejette l'appel système B<write>(2) "
2351 "pour que, même si elle a pu démarrer, la commande B<whoami>(1) ne puisse pas "
2352 "écrire de sortie :"
2353
2354 #. type: Plain text
2355 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2356 #: opensuse-tumbleweed
2357 #, fuzzy, no-wrap
2358 #| msgid ""
2359 #| "$ B<syscall_nr write>\n"
2360 #| "1\n"
2361 #| "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2362 msgid ""
2363 "$B< syscall_nr write>;\n"
2364 "1\n"
2365 "$B< ./a.out 1 0xC000003E 99 /bin/whoami>;\n"
2366 msgstr ""
2367 "$ B<syscall_nr write>\n"
2368 "1\n"
2369 "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2370
2371 #. type: Plain text
2372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2374 msgid ""
2375 "In the final example, the BPF filter rejects a system call that is not used "
2376 "by the B<whoami>(1) command, so it is able to successfully execute and "
2377 "produce output:"
2378 msgstr ""
2379 "Dans le dernier exemple, le filtre BPF rejette un appel système qui n'est "
2380 "pas utilisé par la commande B<whoami>(1), elle peut donc s'exécuter et "
2381 "produire une sortie :"
2382
2383 #. type: Plain text
2384 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2385 #: opensuse-tumbleweed
2386 #, fuzzy, no-wrap
2387 #| msgid ""
2388 #| "$ B<syscall_nr preadv>\n"
2389 #| "295\n"
2390 #| "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2391 #| "cecilia\n"
2392 msgid ""
2393 "$B< syscall_nr preadv>;\n"
2394 "295\n"
2395 "$B< ./a.out 295 0xC000003E 99 /bin/whoami>;\n"
2396 "cecilia\n"
2397 msgstr ""
2398 "$ B<syscall_nr preadv>\n"
2399 "295\n"
2400 "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2401 "cecilia\n"
2402
2403 #. type: SS
2404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2406 #, no-wrap
2407 msgid "Program source"
2408 msgstr "Source du programme"
2409
2410 #. type: Plain text
2411 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2412 #: opensuse-tumbleweed
2413 #, fuzzy, no-wrap
2414 #| msgid ""
2415 #| "#include E<lt>linux/audit.hE<gt>\n"
2416 #| "#include E<lt>linux/filter.hE<gt>\n"
2417 #| "#include E<lt>linux/seccomp.hE<gt>\n"
2418 #| "#include E<lt>stddef.hE<gt>\n"
2419 #| "#include E<lt>stdio.hE<gt>\n"
2420 #| "#include E<lt>stdlib.hE<gt>\n"
2421 #| "#include E<lt>sys/prctl.hE<gt>\n"
2422 #| "#include E<lt>sys/syscall.hE<gt>\n"
2423 #| "#include E<lt>unistd.hE<gt>\n"
2424 #| "\\&\n"
2425 #| "#define X32_SYSCALL_BIT 0x40000000\n"
2426 #| "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
2427 #| "\\&\n"
2428 #| "static int\n"
2429 #| "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2430 #| "{\n"
2431 #| " unsigned int upper_nr_limit = 0xffffffff;\n"
2432 #| "\\&\n"
2433 #| " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2434 #| " (in the x32 ABI, all system calls have bit 30 set in the\n"
2435 #| " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT). */\n"
2436 #| " if (t_arch == AUDIT_ARCH_X86_64)\n"
2437 #| " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2438 #| "\\&\n"
2439 #| " struct sock_filter filter[] = {\n"
2440 #| " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2441 #| " accumulator. */\n"
2442 #| " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2443 #| " (offsetof(struct seccomp_data, arch))),\n"
2444 #| "\\&\n"
2445 #| " /* [1] Jump forward 5 instructions if architecture does not\n"
2446 #| " match \\[aq]t_arch\\[aq]. */\n"
2447 #| " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2448 #| "\\&\n"
2449 #| " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer into\n"
2450 #| " accumulator. */\n"
2451 #| " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2452 #| " (offsetof(struct seccomp_data, nr))),\n"
2453 #| "\\&\n"
2454 #| " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2455 #| " cases. Use BPF_JGT instead of checking against the bit\n"
2456 #| " mask to avoid having to reload the syscall number. */\n"
2457 #| " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2458 #| "\\&\n"
2459 #| " /* [4] Jump forward 1 instruction if system call number\n"
2460 #| " does not match \\[aq]syscall_nr\\[aq]. */\n"
2461 #| " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2462 #| "\\&\n"
2463 #| " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2464 #| " the system call, and return \\[aq]f_errno\\[aq] in \\[aq]errno\\[aq]. */\n"
2465 #| " BPF_STMT(BPF_RET | BPF_K,\n"
2466 #| " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2467 #| "\\&\n"
2468 #| " /* [6] Destination of system call number mismatch: allow other\n"
2469 #| " system calls. */\n"
2470 #| " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2471 #| "\\&\n"
2472 #| " /* [7] Destination of architecture mismatch: kill process. */\n"
2473 #| " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2474 #| " };\n"
2475 #| "\\&\n"
2476 #| " struct sock_fprog prog = {\n"
2477 #| " .len = ARRAY_SIZE(filter),\n"
2478 #| " .filter = filter,\n"
2479 #| " };\n"
2480 #| "\\&\n"
2481 #| " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2482 #| " perror(\"seccomp\");\n"
2483 #| " return 1;\n"
2484 #| " }\n"
2485 #| "\\&\n"
2486 #| " return 0;\n"
2487 #| "}\n"
2488 #| "\\&\n"
2489 #| "int\n"
2490 #| "main(int argc, char *argv[])\n"
2491 #| "{\n"
2492 #| " if (argc E<lt> 5) {\n"
2493 #| " fprintf(stderr, \"Usage: \"\n"
2494 #| " \"%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"
2495 #| " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2496 #| " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2497 #| " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2498 #| " exit(EXIT_FAILURE);\n"
2499 #| " }\n"
2500 #| "\\&\n"
2501 #| " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2502 #| " perror(\"prctl\");\n"
2503 #| " exit(EXIT_FAILURE);\n"
2504 #| " }\n"
2505 #| "\\&\n"
2506 #| " if (install_filter(strtol(argv[1], NULL, 0),\n"
2507 #| " strtoul(argv[2], NULL, 0),\n"
2508 #| " strtol(argv[3], NULL, 0)))\n"
2509 #| " exit(EXIT_FAILURE);\n"
2510 #| "\\&\n"
2511 #| " execv(argv[4], &argv[4]);\n"
2512 #| " perror(\"execv\");\n"
2513 #| " exit(EXIT_FAILURE);\n"
2514 #| "}\n"
2515 msgid ""
2516 "#include E<lt>linux/audit.hE<gt>\n"
2517 "#include E<lt>linux/filter.hE<gt>\n"
2518 "#include E<lt>linux/seccomp.hE<gt>\n"
2519 "#include E<lt>stdcountof.hE<gt>\n"
2520 "#include E<lt>stddef.hE<gt>\n"
2521 "#include E<lt>stdio.hE<gt>\n"
2522 "#include E<lt>stdlib.hE<gt>\n"
2523 "#include E<lt>sys/prctl.hE<gt>\n"
2524 "#include E<lt>sys/syscall.hE<gt>\n"
2525 "#include E<lt>unistd.hE<gt>\n"
2526 "\\&\n"
2527 "#define X32_SYSCALL_BIT 0x40000000\n"
2528 "\\&\n"
2529 "static int\n"
2530 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2531 "{\n"
2532 " unsigned int upper_nr_limit = 0xffffffff;\n"
2533 "\\&\n"
2534 " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2535 " (in the x32 ABI, all system calls have bit 30 set in the\n"
2536 " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT). */\n"
2537 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2538 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2539 "\\&\n"
2540 " struct sock_filter filter[] = {\n"
2541 " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2542 " accumulator. */\n"
2543 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2544 " (offsetof(struct seccomp_data, arch))),\n"
2545 "\\&\n"
2546 " /* [1] Jump forward 5 instructions if architecture does not\n"
2547 " match \\[aq]t_arch\\[aq]. */\n"
2548 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2549 "\\&\n"
2550 " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer into\n"
2551 " accumulator. */\n"
2552 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2553 " (offsetof(struct seccomp_data, nr))),\n"
2554 "\\&\n"
2555 " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2556 " cases. Use BPF_JGT instead of checking against the bit\n"
2557 " mask to avoid having to reload the syscall number. */\n"
2558 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2559 "\\&\n"
2560 " /* [4] Jump forward 1 instruction if system call number\n"
2561 " does not match \\[aq]syscall_nr\\[aq]. */\n"
2562 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2563 "\\&\n"
2564 " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2565 " the system call, and return \\[aq]f_errno\\[aq] in \\[aq]errno\\[aq]. */\n"
2566 " BPF_STMT(BPF_RET | BPF_K,\n"
2567 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2568 "\\&\n"
2569 " /* [6] Destination of system call number mismatch: allow other\n"
2570 " system calls. */\n"
2571 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2572 "\\&\n"
2573 " /* [7] Destination of architecture mismatch: kill process. */\n"
2574 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2575 " };\n"
2576 "\\&\n"
2577 " struct sock_fprog prog = {\n"
2578 " .len = countof(filter),\n"
2579 " .filter = filter,\n"
2580 " };\n"
2581 "\\&\n"
2582 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2583 " perror(\"seccomp\");\n"
2584 " return 1;\n"
2585 " }\n"
2586 "\\&\n"
2587 " return 0;\n"
2588 "}\n"
2589 "\\&\n"
2590 "int\n"
2591 "main(int argc, char *argv[])\n"
2592 "{\n"
2593 " if (argc E<lt> 5) {\n"
2594 " fprintf(stderr, \"Usage: \"\n"
2595 " \"%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"
2596 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2597 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2598 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2599 " exit(EXIT_FAILURE);\n"
2600 " }\n"
2601 "\\&\n"
2602 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2603 " perror(\"prctl\");\n"
2604 " exit(EXIT_FAILURE);\n"
2605 " }\n"
2606 "\\&\n"
2607 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2608 " strtoul(argv[2], NULL, 0),\n"
2609 " strtol(argv[3], NULL, 0)))\n"
2610 " exit(EXIT_FAILURE);\n"
2611 "\\&\n"
2612 " execv(argv[4], &argv[4]);\n"
2613 " perror(\"execv\");\n"
2614 " exit(EXIT_FAILURE);\n"
2615 "}\n"
2616 msgstr ""
2617 "#include E<lt>linux/audit.hE<gt>\n"
2618 "#include E<lt>linux/filter.hE<gt>\n"
2619 "#include E<lt>linux/seccomp.hE<gt>\n"
2620 "#include E<lt>stddef.hE<gt>\n"
2621 "#include E<lt>stdio.hE<gt>\n"
2622 "#include E<lt>stdlib.hE<gt>\n"
2623 "#include E<lt>sys/prctl.hE<gt>\n"
2624 "#include E<lt>sys/syscall.hE<gt>\n"
2625 "#include E<lt>unistd.hE<gt>\n"
2626 "\\&\n"
2627 "#define X32_SYSCALL_BIT 0x40000000\n"
2628 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
2629 "\\&\n"
2630 "static int\n"
2631 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2632 "{\n"
2633 " unsigned int upper_nr_limit = 0xffffffff;\n"
2634 "\\&\n"
2635 " /* On suppose que AUDIT_ARCH_X86_64 renvoie à l'ABI x86-64 normale\n"
2636 " (dans l'ABI x32, tous les appels système ont le bit 30 positionné\n"
2637 " dans le champ \\[aq]nr\\[aq], donc les numéros sont\n"
2638 " E<gt>= X32_SYSCALL_BIT). */\n"
2639 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2640 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2641 "\\&\n"
2642 " struct sock_filter filter[] = {\n"
2643 " /* [0] Charger l'architecture depuis le tampon \\[aq]seccomp_data\\[aq]\n"
2644 " dans l'accumulateur. */\n"
2645 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2646 " (offsetof(struct seccomp_data, arch))),\n"
2647 "\\&\n"
2648 " /* [1] Avancer de 5 instructions si l'architecture ne \n"
2649 " correspond pas à \\[aq]t_arch\\[aq]. */\n"
2650 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2651 "\\&\n"
2652 " /* [2] Charger le numéro d'appel système depuis le tampon\n"
2653 " \\[aq]seccomp_data\\[aq] dans l'accumulateur. */\n"
2654 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2655 " (offsetof(struct seccomp_data, nr))),\n"
2656 "\\&\n"
2657 " /* [3] Vérifier l'ABI - nécessaire seulement pour x86-64 si on\n"
2658 " utilise une liste d'interdictions. Utiliser BPF_JGT au lieu de\n"
2659 " vérifier par rapport au masque de bits pour ne pas devoir\n"
2660 " recharger le numéro d'appel système. */\n"
2661 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2662 "\\&\n"
2663 " /* [4] Avancer d'une instruction si le numéro d'appel système\n"
2664 " ne correspond pas à \\[aq]syscall_nr\\[aq]. */\n"
2665 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2666 "\\&\n"
2667 " /* [5] Architecture et appel système correspondants : ne pas\n"
2668 " exécuter l'appel système et renvoyer \\[aq]f_errno\\[aq] dans\n"
2669 " \\[aq]errno\\[aq]. */\n"
2670 " BPF_STMT(BPF_RET | BPF_K,\n"
2671 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2672 "\\&\n"
2673 " /* [6] Cible du numéro d’appel système inadéquate :\n"
2674 " autoriser d'autres appels système. */\n"
2675 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2676 "\\&\n"
2677 " /* [7] Cible de l’architecture inadéquate : tuer le processus. */\n"
2678 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2679 " };\n"
2680 "\\&\n"
2681 " struct sock_fprog prog = {\n"
2682 " .len = ARRAY_SIZE(filter),\n"
2683 " .filter = filter,\n"
2684 " };\n"
2685 "\\&\n"
2686 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2687 " perror(\"seccomp\");\n"
2688 " return 1;\n"
2689 " }\n"
2690 "\\&\n"
2691 " return 0;\n"
2692 "}\n"
2693 "\\&\n"
2694 "int\n"
2695 "main(int argc, char *argv[])\n"
2696 "{\n"
2697 " if (argc E<lt> 5) {\n"
2698 " fprintf(stderr, \"Utilisation : \"\n"
2699 " \"%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"
2700 " \"Astuce pour E<lt>archE<gt> : AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2701 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2702 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2703 " exit(EXIT_FAILURE);\n"
2704 " }\n"
2705 "\\&\n"
2706 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2707 " perror(\"prctl\");\n"
2708 " exit(EXIT_FAILURE);\n"
2709 " }\n"
2710 "\\&\n"
2711 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2712 " strtoul(argv[2], NULL, 0),\n"
2713 " strtol(argv[3], NULL, 0)))\n"
2714 " exit(EXIT_FAILURE);\n"
2715 "\\&\n"
2716 " execv(argv[4], &argv[4]);\n"
2717 " perror(\"execv\");\n"
2718 " exit(EXIT_FAILURE);\n"
2719 "}\n"
2720
2721 #. SRC END
2722 #. type: SH
2723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2725 #, no-wrap
2726 msgid "SEE ALSO"
2727 msgstr "VOIR AUSSI"
2728
2729 #. type: Plain text
2730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2732 msgid ""
2733 "B<bpfc>(1), B<strace>(1), B<bpf>(2), B<prctl>(2), B<ptrace>(2), "
2734 "B<seccomp_unotify>(2), B<sigaction>(2), B<proc>(5), B<signal>(7), "
2735 "B<socket>(7)"
2736 msgstr ""
2737 "B<bpfc>(1), B<strace>(1), B<bpf>(2), B<prctl>(2), B<ptrace>(2), "
2738 "B<seccomp_unotify>(2), B<sigaction>(2), B<proc>(5), B<signal>(7), "
2739 "B<socket>(7)"
2740
2741 #. type: Plain text
2742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2744 msgid ""
2745 "Various pages from the I<libseccomp> library, including: "
2746 "B<scmp_sys_resolver>(1), B<seccomp_export_bpf>(3), B<seccomp_init>(3), "
2747 "B<seccomp_load>(3), and B<seccomp_rule_add>(3)."
2748 msgstr ""
2749 "Plusieurs pages de la bibliothèque I<libseccomp>, dont : "
2750 "B<scmp_sys_resolver>(1), B<seccomp_export_bpf>(3), B<seccomp_init>(3), "
2751 "B<seccomp_load>(3) et B<seccomp_rule_add>(3)."
2752
2753 #. type: Plain text
2754 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2755 #: opensuse-tumbleweed
2756 #, fuzzy
2757 #| msgid ""
2758 #| "The kernel source files I<Documentation/networking/filter.txt> and "
2759 #| "I<Documentation/userspace-api/seccomp_filter.rst> (or I<Documentation/"
2760 #| "prctl/seccomp_filter.txt> before Linux 4.13)."
2761 msgid ""
2762 "The kernel source files I<Documentation/networking/filter.rst> and "
2763 "I<Documentation/userspace-api/seccomp_filter.rst>."
2764 msgstr ""
2765 "Les fichiers I<Documentation/networking/filter.txt> et I<Documentation/"
2766 "userspace-api/seccomp_filter.rst> des sources du noyau (ou I<Documentation/"
2767 "prctl/seccomp_filter.txt> avant Linux 4.13)."
2768
2769 #. type: Plain text
2770 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2771 #: opensuse-tumbleweed
2772 #, fuzzy
2773 #| msgid ""
2774 #| "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2775 #| "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2776 #| "Winter 1993 Conference E<.UR http://www.tcpdump.org/papers/bpf-"
2777 #| "usenix93.pdf> E<.UE>"
2778 msgid ""
2779 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
2780 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
2781 "Winter 1993 Conference E<.UR http:\\://www.tcpdump.org/papers/bpf-"
2782 "usenix93.pdf> E<.UE>"
2783 msgstr ""
2784 "McCanne, S.\\& et Jacobson, V.\\& (1992) I<The BSD Packet Filter : une "
2785 "nouvelle architecture de captation de paquets au niveau utilisateur>, "
2786 "colloque de la conférence USENIX à l'hiver 1993 E<.UR http://www.tcpdump.org/"
2787 "papers/bpf-usenix93.pdf> E<.UE>"
2788
2789 #. type: Plain text
2790 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2791 #: opensuse-tumbleweed
2792 msgid ""
2793 "Terence Kelly and Edison Fuh (2025) Sandboxing: Foolproof Boundaries vs.\\& "
2794 "Unbounded Foolishness E<.UR https:\\://dl.acm.org/doi/pdf/10.1145/3733699> "
2795 "E<.UE>"
2796 msgstr ""
2797
2798 #. type: TH
2799 #: debian-trixie
2800 #, no-wrap
2801 msgid "2024-06-15"
2802 msgstr "15 juin 2024"
2803
2804 #. type: TH
2805 #: debian-trixie
2806 #, no-wrap
2807 msgid "Linux man-pages 6.9.1"
2808 msgstr "Pages du manuel de Linux 6.9.1"
2809
2810 #. type: Plain text
2811 #: debian-trixie
2812 msgid "Standard C library (I<libc>, I<-lc>)"
2813 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
2814
2815 #. type: Plain text
2816 #: debian-trixie fedora-44 fedora-rawhide
2817 #, no-wrap
2818 msgid ""
2819 "$ B<uname -m>\n"
2820 "x86_64\n"
2821 "$ B<syscall_nr() {\n"
2822 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2823 " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2824 "}>\n"
2825 msgstr ""
2826 "$ B<uname -m>\n"
2827 "x86_64\n"
2828 "$ B<syscall_nr() {\n"
2829 " cat /usr/src/linux/arch/x86/syscalls/syscall_64.tbl | \\[rs]\n"
2830 " awk \\[aq]$2 != \"x32\" && $3 == \"\\[aq]$1\\[aq]\" { print $1 }\\[aq]\n"
2831 "}>\n"
2832
2833 #. type: Plain text
2834 #: debian-trixie fedora-44 fedora-rawhide
2835 #, no-wrap
2836 msgid ""
2837 "$ B<errno 99>\n"
2838 "EADDRNOTAVAIL 99 Cannot assign requested address\n"
2839 msgstr ""
2840 "$ B<errno 99>\n"
2841 "EADDRNOTAVAIL 99 Ne peut pas affecter l'adresse demandée\n"
2842
2843 #. type: Plain text
2844 #: debian-trixie fedora-44 fedora-rawhide
2845 #, no-wrap
2846 msgid ""
2847 "$ B<syscall_nr execve>\n"
2848 "59\n"
2849 "$ B<./a.out>\n"
2850 "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"
2851 "Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x40000003\n"
2852 " AUDIT_ARCH_X86_64: 0xC000003E\n"
2853 "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2854 "execv: Cannot assign requested address\n"
2855 msgstr ""
2856 "$ B<syscall_nr execve>\n"
2857 "59\n"
2858 "$ B<./a.out>\n"
2859 "Utilisation : ./a.out E<lt>syscall_nrE<gt> E<lt>archE<gt> E<lt>errnoE<gt> E<lt>progE<gt> [E<lt>argsE<gt>]\n"
2860 "Astuce pour E<lt>archE<gt> : AUDIT_ARCH_I386: 0x40000003\n"
2861 " AUDIT_ARCH_X86_64 : 0xC000003E\n"
2862 "$ B<./a.out 59 0xC000003E 99 /bin/whoami>\n"
2863 "execv : Ne peut pas affecter l'adresse demandée\n"
2864
2865 #. type: Plain text
2866 #: debian-trixie fedora-44 fedora-rawhide
2867 #, no-wrap
2868 msgid ""
2869 "$ B<syscall_nr write>\n"
2870 "1\n"
2871 "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2872 msgstr ""
2873 "$ B<syscall_nr write>\n"
2874 "1\n"
2875 "$ B<./a.out 1 0xC000003E 99 /bin/whoami>\n"
2876
2877 #. type: Plain text
2878 #: debian-trixie fedora-44 fedora-rawhide
2879 #, no-wrap
2880 msgid ""
2881 "$ B<syscall_nr preadv>\n"
2882 "295\n"
2883 "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2884 "cecilia\n"
2885 msgstr ""
2886 "$ B<syscall_nr preadv>\n"
2887 "295\n"
2888 "$ B<./a.out 295 0xC000003E 99 /bin/whoami>\n"
2889 "cecilia\n"
2890
2891 #. type: Plain text
2892 #: debian-trixie fedora-44 fedora-rawhide
2893 #, no-wrap
2894 msgid ""
2895 "#include E<lt>linux/audit.hE<gt>\n"
2896 "#include E<lt>linux/filter.hE<gt>\n"
2897 "#include E<lt>linux/seccomp.hE<gt>\n"
2898 "#include E<lt>stddef.hE<gt>\n"
2899 "#include E<lt>stdio.hE<gt>\n"
2900 "#include E<lt>stdlib.hE<gt>\n"
2901 "#include E<lt>sys/prctl.hE<gt>\n"
2902 "#include E<lt>sys/syscall.hE<gt>\n"
2903 "#include E<lt>unistd.hE<gt>\n"
2904 "\\&\n"
2905 "#define X32_SYSCALL_BIT 0x40000000\n"
2906 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
2907 "\\&\n"
2908 "static int\n"
2909 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
2910 "{\n"
2911 " unsigned int upper_nr_limit = 0xffffffff;\n"
2912 "\\&\n"
2913 " /* Assume that AUDIT_ARCH_X86_64 means the normal x86-64 ABI\n"
2914 " (in the x32 ABI, all system calls have bit 30 set in the\n"
2915 " \\[aq]nr\\[aq] field, meaning the numbers are E<gt>= X32_SYSCALL_BIT). */\n"
2916 " if (t_arch == AUDIT_ARCH_X86_64)\n"
2917 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
2918 "\\&\n"
2919 " struct sock_filter filter[] = {\n"
2920 " /* [0] Load architecture from \\[aq]seccomp_data\\[aq] buffer into\n"
2921 " accumulator. */\n"
2922 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2923 " (offsetof(struct seccomp_data, arch))),\n"
2924 "\\&\n"
2925 " /* [1] Jump forward 5 instructions if architecture does not\n"
2926 " match \\[aq]t_arch\\[aq]. */\n"
2927 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
2928 "\\&\n"
2929 " /* [2] Load system call number from \\[aq]seccomp_data\\[aq] buffer into\n"
2930 " accumulator. */\n"
2931 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
2932 " (offsetof(struct seccomp_data, nr))),\n"
2933 "\\&\n"
2934 " /* [3] Check ABI - only needed for x86-64 in deny-list use\n"
2935 " cases. Use BPF_JGT instead of checking against the bit\n"
2936 " mask to avoid having to reload the syscall number. */\n"
2937 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
2938 "\\&\n"
2939 " /* [4] Jump forward 1 instruction if system call number\n"
2940 " does not match \\[aq]syscall_nr\\[aq]. */\n"
2941 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
2942 "\\&\n"
2943 " /* [5] Matching architecture and system call: don\\[aq]t execute\n"
2944 " the system call, and return \\[aq]f_errno\\[aq] in \\[aq]errno\\[aq]. */\n"
2945 " BPF_STMT(BPF_RET | BPF_K,\n"
2946 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
2947 "\\&\n"
2948 " /* [6] Destination of system call number mismatch: allow other\n"
2949 " system calls. */\n"
2950 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
2951 "\\&\n"
2952 " /* [7] Destination of architecture mismatch: kill process. */\n"
2953 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
2954 " };\n"
2955 "\\&\n"
2956 " struct sock_fprog prog = {\n"
2957 " .len = ARRAY_SIZE(filter),\n"
2958 " .filter = filter,\n"
2959 " };\n"
2960 "\\&\n"
2961 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
2962 " perror(\"seccomp\");\n"
2963 " return 1;\n"
2964 " }\n"
2965 "\\&\n"
2966 " return 0;\n"
2967 "}\n"
2968 "\\&\n"
2969 "int\n"
2970 "main(int argc, char *argv[])\n"
2971 "{\n"
2972 " if (argc E<lt> 5) {\n"
2973 " fprintf(stderr, \"Usage: \"\n"
2974 " \"%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"
2975 " \"Hint for E<lt>archE<gt>: AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
2976 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
2977 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
2978 " exit(EXIT_FAILURE);\n"
2979 " }\n"
2980 "\\&\n"
2981 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
2982 " perror(\"prctl\");\n"
2983 " exit(EXIT_FAILURE);\n"
2984 " }\n"
2985 "\\&\n"
2986 " if (install_filter(strtol(argv[1], NULL, 0),\n"
2987 " strtoul(argv[2], NULL, 0),\n"
2988 " strtol(argv[3], NULL, 0)))\n"
2989 " exit(EXIT_FAILURE);\n"
2990 "\\&\n"
2991 " execv(argv[4], &argv[4]);\n"
2992 " perror(\"execv\");\n"
2993 " exit(EXIT_FAILURE);\n"
2994 "}\n"
2995 msgstr ""
2996 "#include E<lt>linux/audit.hE<gt>\n"
2997 "#include E<lt>linux/filter.hE<gt>\n"
2998 "#include E<lt>linux/seccomp.hE<gt>\n"
2999 "#include E<lt>stddef.hE<gt>\n"
3000 "#include E<lt>stdio.hE<gt>\n"
3001 "#include E<lt>stdlib.hE<gt>\n"
3002 "#include E<lt>sys/prctl.hE<gt>\n"
3003 "#include E<lt>sys/syscall.hE<gt>\n"
3004 "#include E<lt>unistd.hE<gt>\n"
3005 "\\&\n"
3006 "#define X32_SYSCALL_BIT 0x40000000\n"
3007 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
3008 "\\&\n"
3009 "static int\n"
3010 "install_filter(int syscall_nr, unsigned int t_arch, int f_errno)\n"
3011 "{\n"
3012 " unsigned int upper_nr_limit = 0xffffffff;\n"
3013 "\\&\n"
3014 " /* On suppose que AUDIT_ARCH_X86_64 renvoie à l'ABI x86-64 normale\n"
3015 " (dans l'ABI x32, tous les appels système ont le bit 30 positionné\n"
3016 " dans le champ \\[aq]nr\\[aq], donc les numéros sont\n"
3017 " E<gt>= X32_SYSCALL_BIT). */\n"
3018 " if (t_arch == AUDIT_ARCH_X86_64)\n"
3019 " upper_nr_limit = X32_SYSCALL_BIT - 1;\n"
3020 "\\&\n"
3021 " struct sock_filter filter[] = {\n"
3022 " /* [0] Charger l'architecture depuis le tampon \\[aq]seccomp_data\\[aq]\n"
3023 " dans l'accumulateur. */\n"
3024 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
3025 " (offsetof(struct seccomp_data, arch))),\n"
3026 "\\&\n"
3027 " /* [1] Avancer de 5 instructions si l'architecture ne \n"
3028 " correspond pas à \\[aq]t_arch\\[aq]. */\n"
3029 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, t_arch, 0, 5),\n"
3030 "\\&\n"
3031 " /* [2] Charger le numéro d'appel système depuis le tampon\n"
3032 " \\[aq]seccomp_data\\[aq] dans l'accumulateur. */\n"
3033 " BPF_STMT(BPF_LD | BPF_W | BPF_ABS,\n"
3034 " (offsetof(struct seccomp_data, nr))),\n"
3035 "\\&\n"
3036 " /* [3] Vérifier l'ABI - nécessaire seulement pour x86-64 si on\n"
3037 " utilise une liste d'interdictions. Utiliser BPF_JGT au lieu de\n"
3038 " vérifier par rapport au masque de bits pour ne pas devoir\n"
3039 " recharger le numéro d'appel système. */\n"
3040 " BPF_JUMP(BPF_JMP | BPF_JGT | BPF_K, upper_nr_limit, 3, 0),\n"
3041 "\\&\n"
3042 " /* [4] Avancer d'une instruction si le numéro d'appel système\n"
3043 " ne correspond pas à \\[aq]syscall_nr\\[aq]. */\n"
3044 " BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, syscall_nr, 0, 1),\n"
3045 "\\&\n"
3046 " /* [5] Architecture et appel système correspondants : ne pas\n"
3047 " exécuter l'appel système et renvoyer \\[aq]f_errno\\[aq] dans\n"
3048 " \\[aq]errno\\[aq]. */\n"
3049 " BPF_STMT(BPF_RET | BPF_K,\n"
3050 " SECCOMP_RET_ERRNO | (f_errno & SECCOMP_RET_DATA)),\n"
3051 "\\&\n"
3052 " /* [6] Cible du numéro d’appel système inadéquate :\n"
3053 " autoriser d'autres appels système. */\n"
3054 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_ALLOW),\n"
3055 "\\&\n"
3056 " /* [7] Cible de l’architecture inadéquate : tuer le processus. */\n"
3057 " BPF_STMT(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS),\n"
3058 " };\n"
3059 "\\&\n"
3060 " struct sock_fprog prog = {\n"
3061 " .len = ARRAY_SIZE(filter),\n"
3062 " .filter = filter,\n"
3063 " };\n"
3064 "\\&\n"
3065 " if (syscall(SYS_seccomp, SECCOMP_SET_MODE_FILTER, 0, &prog)) {\n"
3066 " perror(\"seccomp\");\n"
3067 " return 1;\n"
3068 " }\n"
3069 "\\&\n"
3070 " return 0;\n"
3071 "}\n"
3072 "\\&\n"
3073 "int\n"
3074 "main(int argc, char *argv[])\n"
3075 "{\n"
3076 " if (argc E<lt> 5) {\n"
3077 " fprintf(stderr, \"Utilisation : \"\n"
3078 " \"%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"
3079 " \"Astuce pour E<lt>archE<gt> : AUDIT_ARCH_I386: 0x%X\\[rs]n\"\n"
3080 " \" AUDIT_ARCH_X86_64: 0x%X\\[rs]n\"\n"
3081 " \"\\[rs]n\", argv[0], AUDIT_ARCH_I386, AUDIT_ARCH_X86_64);\n"
3082 " exit(EXIT_FAILURE);\n"
3083 " }\n"
3084 "\\&\n"
3085 " if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n"
3086 " perror(\"prctl\");\n"
3087 " exit(EXIT_FAILURE);\n"
3088 " }\n"
3089 "\\&\n"
3090 " if (install_filter(strtol(argv[1], NULL, 0),\n"
3091 " strtoul(argv[2], NULL, 0),\n"
3092 " strtol(argv[3], NULL, 0)))\n"
3093 " exit(EXIT_FAILURE);\n"
3094 "\\&\n"
3095 " execv(argv[4], &argv[4]);\n"
3096 " perror(\"execv\");\n"
3097 " exit(EXIT_FAILURE);\n"
3098 "}\n"
3099
3100 #. commit c061f33f35be0ccc80f4b8e0aea5dfd2ed7e01a3
3101 #. type: Plain text
3102 #: debian-trixie fedora-44 fedora-rawhide
3103 msgid ""
3104 "The kernel source files I<Documentation/networking/filter.txt> and "
3105 "I<Documentation/userspace-api/seccomp_filter.rst> (or I<Documentation/prctl/"
3106 "seccomp_filter.txt> before Linux 4.13)."
3107 msgstr ""
3108 "Les fichiers I<Documentation/networking/filter.txt> et I<Documentation/"
3109 "userspace-api/seccomp_filter.rst> des sources du noyau (ou I<Documentation/"
3110 "prctl/seccomp_filter.txt> avant Linux 4.13)."
3111
3112 #. type: Plain text
3113 #: debian-trixie fedora-44 fedora-rawhide
3114 msgid ""
3115 "McCanne, S.\\& and Jacobson, V.\\& (1992) I<The BSD Packet Filter: A New "
3116 "Architecture for User-level Packet Capture>, Proceedings of the USENIX "
3117 "Winter 1993 Conference E<.UR http://www.tcpdump.org/papers/bpf-usenix93.pdf> "
3118 "E<.UE>"
3119 msgstr ""
3120 "McCanne, S.\\& et Jacobson, V.\\& (1992) I<The BSD Packet Filter : une "
3121 "nouvelle architecture de captation de paquets au niveau utilisateur>, "
3122 "colloque de la conférence USENIX à l'hiver 1993 E<.UR http://www.tcpdump.org/"
3123 "papers/bpf-usenix93.pdf> E<.UE>"
3124
3125 #. type: TH
3126 #: fedora-44 fedora-rawhide
3127 #, no-wrap
3128 msgid "2024-07-23"
3129 msgstr "23 juillet 2024"
3130
3131 #. type: TH
3132 #: fedora-44 fedora-rawhide
3133 #, no-wrap
3134 msgid "Linux man-pages 6.13"
3135 msgstr "Pages du manuel de Linux 6.13"
3136
3137 #. type: TH
3138 #: mageia-cauldron
3139 #, no-wrap
3140 msgid "Linux man-pages 6.17"
3141 msgstr "Pages du manuel de Linux 6.17"
3142
3143 #. type: TH
3144 #: opensuse-leap-16-1 opensuse-tumbleweed
3145 #, no-wrap
3146 msgid "Linux man-pages (unreleased)"
3147 msgstr "Pages du manuel de Linux (non publiées)"