Debian Codegraph @

po/fr/man2/mprotect.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, 2012-2014.
16 # Denis Barbier <[email protected]>, 2006,2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Jean-Philippe MENGUAL <[email protected]>, 2020-2024.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.21.0\n"
22 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
23 "PO-Revision-Date: 2024-03-13 12:31+0100\n"
24 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "mprotect"
38 msgstr "mprotect"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-11"
45 msgstr "11 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "mprotect, pkey_mprotect - set protection on a region of memory"
64 msgstr ""
65 "mprotect, pkey_mprotect - Définir la protection d'une partie de la mémoire"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
92 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, fuzzy, no-wrap
98 #| msgid "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
99 msgid ""
100 "B<int mprotect(>size_t size;\n"
101 "B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
102 msgstr "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
110 "B<#include E<lt>sys/mman.hE<gt>>\n"
111 msgstr ""
112 "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n"
113 "B<#include E<lt>sys/mman.hE<gt>>\n"
114
115 #. type: Plain text
116 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
117 #: opensuse-tumbleweed
118 #, fuzzy, no-wrap
119 #| msgid "B<int pkey_mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
120 msgid ""
121 "B<int pkey_mprotect(>size_t size;\n"
122 "B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
123 msgstr "B<int pkey_mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "DESCRIPTION"
130 msgstr "DESCRIPTION"
131
132 #. type: Plain text
133 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
134 #: opensuse-tumbleweed
135 #, fuzzy
136 #| msgid ""
137 #| "B<mprotect>() changes the access protections for the calling process's "
138 #| "memory pages containing any part of the address range in the interval "
139 #| "[I<addr>,\\ I<addr>+I<size>-1]. I<addr> must be aligned to a page "
140 #| "boundary."
141 msgid ""
142 "B<mprotect>() changes the access protections for the calling process's "
143 "memory pages containing any part of the address range in the interval "
144 "[I<addr>, I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary."
145 msgstr ""
146 "B<mprotect>() change les protections d'accès pour la (les) page(s) de "
147 "mémoire du processus appelant contenant tout ou une partie de l'intervalle "
148 "[I<addr>,\\ I<addr>+I<size>-1]. I<addr> doit être aligné sur une limite de "
149 "page."
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "If the calling process tries to access memory in a manner that violates the "
156 "protections, then the kernel generates a B<SIGSEGV> signal for the process."
157 msgstr ""
158 "Si le processus appelant essaie d'accéder à la mémoire en violant la "
159 "protection, le noyau génère un signal B<SIGSEGV> pour ce processus."
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "I<prot> is a combination of the following access flags: B<PROT_NONE> or a "
166 "bitwise OR of the other values in the following list:"
167 msgstr ""
168 "I<prot> est une combinaison des attributs d'accès suivants : B<PROT_NONE> ou "
169 "le résultat d’une opération OU bit à bit parmi les autres valeurs de la "
170 "liste suivante :"
171
172 #. type: TP
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "B<PROT_NONE>"
177 msgstr "B<PROT_NONE>"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid "The memory cannot be accessed at all."
183 msgstr "On ne peut pas accéder du tout à la zone de mémoire."
184
185 #. type: TP
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "B<PROT_READ>"
190 msgstr "B<PROT_READ>"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "The memory can be read."
196 msgstr "On peut lire la zone de mémoire."
197
198 #. type: TP
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "B<PROT_WRITE>"
203 msgstr "B<PROT_WRITE>"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid "The memory can be modified."
209 msgstr "On peut modifier la zone de mémoire."
210
211 #. type: TP
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "B<PROT_EXEC>"
216 msgstr "B<PROT_EXEC>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid "The memory can be executed."
222 msgstr "La zone de mémoire peut contenir du code exécutable."
223
224 #. type: TP
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "B<PROT_SEM> (since Linux 2.5.7)"
229 msgstr "B<PROT_SEM> (depuis Linux 2.5.7)"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "The memory can be used for atomic operations. This flag was introduced as "
236 "part of the B<futex>(2) implementation (in order to guarantee the ability "
237 "to perform atomic operations required by commands such as B<FUTEX_WAIT>), "
238 "but is not currently used in on any architecture."
239 msgstr ""
240 "La mémoire peut être utilisée pour des opérations atomiques. Cet attribut a "
241 "été introduit dans l'implémentation de B<futex>(2) (afin de garantir la "
242 "possibilité d'effectuer des opérations atomiques exigées par des commandes "
243 "comme B<FUTEX_WAIT>), mais il n'est actuellement utilisé sur aucune "
244 "architecture."
245
246 #. type: TP
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "B<PROT_SAO> (since Linux 2.6.26)"
251 msgstr "B<PROT_SAO> (depuis Linux 2.6.26)"
252
253 #. commit aba46c5027cb59d98052231b36efcbbde9c77a1d
254 #. commit ef3d3246a0d06be622867d21af25f997aeeb105f
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "The memory should have strong access ordering. This feature is specific to "
260 "the PowerPC architecture (version 2.06 of the architecture specification "
261 "adds the SAO CPU feature, and it is available on POWER 7 or PowerPC A2, for "
262 "example)."
263 msgstr ""
264 "La mémoire devrait avoir une forte organisation de son accès. Cette "
265 "fonctionnalité est spécifique à l'architecture PowerPC (la version 2.06 de "
266 "la spécification de l'architecture ajoute la fonction SAO du processeur, "
267 "disponible par exemple sur POWER 7 ou PowerPC A2)."
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "Additionally (since Linux 2.6.0), I<prot> can have one of the following "
274 "flags set:"
275 msgstr ""
276 "En outre (depuis Linux 2.6.0), il est possible de positionner les attributs "
277 "suivants sur I<prot> :"
278
279 #. mm/mmap.c:
280 #. vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) |
281 #. mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
282 #. And calc_vm_flag_bits converts only GROWSDOWN/DENYWRITE/LOCKED.
283 #. type: TP
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "B<PROT_GROWSUP>"
288 msgstr "B<PROT_GROWSUP>"
289
290 #. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
291 #. The VMA is one that was marked with VM_GROWSUP by the kernel
292 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
293 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
294 #. creating a VMA that is marked VM_GROWSUP.
295 #. type: Plain text
296 #. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
297 #. The VMA is one that was marked with VM_GROWSUP by the kernel
298 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
299 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
300 #. creating a VMA that is marked VM_GROWSUP.
301 #. type: Plain text
302 #. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
303 #. The VMA is one that was marked with VM_GROWSUP by the kernel
304 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
305 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
306 #. creating a VMA that is marked VM_GROWSUP.
307 #. type: Plain text
308 #. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
309 #. The VMA is one that was marked with VM_GROWSUP by the kernel
310 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
311 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
312 #. creating a VMA that is marked VM_GROWSUP.
313 #. type: Plain text
314 #. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
315 #. The VMA is one that was marked with VM_GROWSUP by the kernel
316 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
317 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
318 #. creating a VMA that is marked VM_GROWSUP.
319 #. type: Plain text
320 #. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
321 #. The VMA is one that was marked with VM_GROWSUP by the kernel
322 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
323 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
324 #. creating a VMA that is marked VM_GROWSUP.
325 #. type: Plain text
326 #. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
327 #. The VMA is one that was marked with VM_GROWSUP by the kernel
328 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
329 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
330 #. creating a VMA that is marked VM_GROWSUP.
331 #. type: Plain text
332 #. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
333 #. The VMA is one that was marked with VM_GROWSUP by the kernel
334 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
335 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
336 #. creating a VMA that is marked VM_GROWSUP.
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "Apply the protection mode up to the end of a mapping that grows upwards. "
342 "(Such mappings are created for the stack area on architectures\\[em]for "
343 "example, HP-PARISC\\[em]that have an upwardly growing stack.)"
344 msgstr ""
345 "Appliquer le mode de protection jusqu'à la fin d'une projection qui grandit "
346 "vers le haut (de telles projections sont créées pour la zone de la pile sur "
347 "une architecture — par exemple HP-PARISC — dont la pile a tendance à "
348 "s'accroître vers le haut)."
349
350 #. type: TP
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<PROT_GROWSDOWN>"
355 msgstr "B<PROT_GROWSDOWN>"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "Apply the protection mode down to the beginning of a mapping that grows "
362 "downward (which should be a stack segment or a segment mapped with the "
363 "B<MAP_GROWSDOWN> flag set)."
364 msgstr ""
365 "Appliquer le mode de protection vers le bas jusqu'au début d'une projection "
366 "qui grandit vers le bas (il pourrait s'agir d'un segment de pile ou d'un "
367 "segment projeté avec un drapeau B<MAP_GROWSDOWN> positionné)."
368
369 #. type: Plain text
370 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
371 #: opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages "
374 "specified by I<addr> and I<size>. The I<pkey> argument specifies the "
375 "protection key (see B<pkeys>(7)) to assign to the memory. The protection "
376 "key must be allocated with B<pkey_alloc>(2) before it is passed to "
377 "B<pkey_mprotect>(). For an example of the use of this system call, see "
378 "B<pkeys>(7)."
379 msgstr ""
380 "Comme B<mprotect>(), B<pkey_mprotect>() modifie la protection des pages "
381 "indiquées par I<addr> et I<size>. Le paramètre I<pkey> indique la clé de "
382 "protection (voir B<pkeys>(7))) à assigner à la mémoire. La clé de protection "
383 "doit être allouée avec B<pkey_alloc>(2) avant d'être passée à "
384 "B<pkey_mprotect>(). Pour un exemple d'utilisation de cet appel système, voir "
385 "B<pkeys>(7)."
386
387 #. type: SH
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "RETURN VALUE"
392 msgstr "VALEUR RENVOYÉE"
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "On success, B<mprotect>() and B<pkey_mprotect>() return zero. On error, "
399 "these system calls return -1, and I<errno> is set to indicate the error."
400 msgstr ""
401 "B<mprotect>() et B<pkey_mprotect>() renvoient B<0> s'ils réussissent. En cas "
402 "d'erreur, ces appels système renvoient B<-1> et I<errno> est défini pour "
403 "indiquer l'erreur."
404
405 #. type: SH
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "ERRORS"
410 msgstr "ERREURS"
411
412 #. type: TP
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<EACCES>"
417 msgstr "B<EACCES>"
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 "The memory cannot be given the specified access. This can happen, for "
424 "example, if you B<mmap>(2) a file to which you have read-only access, then "
425 "ask B<mprotect>() to mark it B<PROT_WRITE>."
426 msgstr ""
427 "L'accès spécifié n'est pas possible sur ce type de mémoire. Cela se produit "
428 "par exemple si vous utilisez B<mmap>(2) pour représenter un fichier en "
429 "lecture seule en mémoire, et puis demandez de marquer cette zone avec "
430 "B<PROT_WRITE>."
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<EINVAL>"
437 msgstr "B<EINVAL>"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid ""
443 "I<addr> is not a valid pointer, or not a multiple of the system page size."
444 msgstr ""
445 "I<addr> n'est pas un pointeur valable, ou ce n'est pas un multiple de la "
446 "taille de page du système."
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "(B<pkey_mprotect>()) I<pkey> has not been allocated with B<pkey_alloc>(2)"
453 msgstr "(B<pkey_mprotect>()) I<pkey> n'a pas été alloué avec B<pkey_alloc>(2)"
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid "Both B<PROT_GROWSUP> and B<PROT_GROWSDOWN> were specified in I<prot>."
459 msgstr ""
460 "B<PROT_GROWSUP> et B<PROT_GROWSDOWN> étaient indiqués tous les deux dans "
461 "I<prot>."
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid "Invalid flags specified in I<prot>."
467 msgstr "Drapeaux non valables indiqués dans I<prot>."
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "(PowerPC architecture) B<PROT_SAO> was specified in I<prot>, but SAO "
474 "hardware feature is not available."
475 msgstr ""
476 "(Architecture PowerPC) B<PROT_SAO> était indiqué dans I<prot>, mais la "
477 "fonctionnalité matérielle SAO n'est pas disponible."
478
479 #. type: TP
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "B<ENOMEM>"
484 msgstr "B<ENOMEM>"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid "Internal kernel structures could not be allocated."
490 msgstr "Impossible d'allouer des structures internes au noyau."
491
492 #. type: Plain text
493 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
494 #: opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "Addresses in the range [I<addr>, I<addr>+I<size>-1] are invalid for the "
497 "address space of the process, or specify one or more pages that are not "
498 "mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced "
499 "for these cases.)"
500 msgstr ""
501 "Les adresses dans l'intervalle [I<addr>, I<addr>+I<size>-1] ne sont pas "
502 "valables dans l'espace d'adressage du processus, ou l'intervalle s'étend sur "
503 "des pages non projetées (avant Linux 2.4.19, l'erreur B<EFAULT> était "
504 "produite à tort dans ce cas)."
505
506 #. I.e., the number of VMAs would exceed the 64 kB maximum
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "Changing the protection of a memory region would result in the total number "
512 "of mappings with distinct attributes (e.g., read versus read/write "
513 "protection) exceeding the allowed maximum. (For example, making the "
514 "protection of a range B<PROT_READ> in the middle of a region currently "
515 "protected as B<PROT_READ|PROT_WRITE> would result in three mappings: two "
516 "read/write mappings at each end and a read-only mapping in the middle.)"
517 msgstr ""
518 "La modification de la protection d'une zone de la mémoire ferait dépasser le "
519 "nombre maximal autorisé de projections avec des attributs différents (comme "
520 "la protection en lecture vs lecture/écriture) (par exemple, positionner une "
521 "protection d'une plage B<PROT_READ> au milieu d'une zone protégée par "
522 "B<PROT_READ|PROT_WRITE> donnerait trois projections : deux en lecture/"
523 "écriture aux extrémités et une en lecture seule au milieu)."
524
525 #. type: SH
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "VERSIONS"
530 msgstr "VERSIONS"
531
532 #. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
533 #. SVr4 defines an additional error
534 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
535 #. type: Plain text
536 #. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
537 #. SVr4 defines an additional error
538 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
539 #. type: Plain text
540 #. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
541 #. SVr4 defines an additional error
542 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
543 #. type: Plain text
544 #. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
545 #. SVr4 defines an additional error
546 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
547 #. type: Plain text
548 #. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
549 #. SVr4 defines an additional error
550 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
551 #. type: Plain text
552 #. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
553 #. SVr4 defines an additional error
554 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
555 #. type: Plain text
556 #. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
557 #. SVr4 defines an additional error
558 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
559 #. type: Plain text
560 #. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
561 #. SVr4 defines an additional error
562 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 msgid ""
567 "POSIX says that the behavior of B<mprotect>() is unspecified if it is "
568 "applied to a region of memory that was not obtained via B<mmap>(2)."
569 msgstr ""
570 "POSIX indique que le comportement de B<mprotect>() n'est pas spécifié s'il "
571 "s'applique à une zone de mémoire non obtenue à l'aide de B<mmap>(2)."
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "On Linux, it is always permissible to call B<mprotect>() on any address in "
578 "a process's address space (except for the kernel vsyscall area). In "
579 "particular, it can be used to change existing code mappings to be writable."
580 msgstr ""
581 "Sous Linux, il est toujours autorisé d'appeler B<mprotect>() sur une adresse "
582 "de l'espace d'adressage du processus (excepté pour la zone vsyscall du "
583 "noyau). En particulier, il peut être utilisé pour rendre une projection de "
584 "code existante accessible en écriture."
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 msgid ""
590 "Whether B<PROT_EXEC> has any effect different from B<PROT_READ> depends on "
591 "processor architecture, kernel version, and process state. If "
592 "B<READ_IMPLIES_EXEC> is set in the process's personality flags (see "
593 "B<personality>(2)), specifying B<PROT_READ> will implicitly add B<PROT_EXEC>."
594 msgstr ""
595 "La différence entre B<PROT_EXEC> et B<PROT_READ> dépend de l'architecture, "
596 "de la version du noyau et de l'état du processus. Sur certaines, si "
597 "B<READ_IMPLIES_EXEC> est positionné dans les drapeaux de la personnalité "
598 "d'un processus (voir B<personality>(2)), le fait d'indiquer B<PROT_READ> "
599 "ajoutera implicitement B<PROT_EXEC>."
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ""
605 "On some hardware architectures (e.g., i386), B<PROT_WRITE> implies "
606 "B<PROT_READ>."
607 msgstr ""
608 "Sur certaines architectures matérielles (comme i386), B<PROT_WRITE> implique "
609 "B<PROT_READ>."
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 msgid ""
615 "POSIX.1 says that an implementation may permit access other than that "
616 "specified in I<prot>, but at a minimum can allow write access only if "
617 "B<PROT_WRITE> has been set, and must not allow any access if B<PROT_NONE> "
618 "has been set."
619 msgstr ""
620 "POSIX.1 indique qu'une implémentation peut autoriser un accès autre que "
621 "celui donné dans I<prot>, mais doit au minimum autoriser l'accès en écriture "
622 "si B<PROT_WRITE> était passé, et ne doit autoriser aucun accès si "
623 "B<PROT_NONE> était passé."
624
625 #. type: Plain text
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 msgid ""
629 "Applications should be careful when mixing use of B<mprotect>() and "
630 "B<pkey_mprotect>(). On x86, when B<mprotect>() is used with I<prot> set to "
631 "B<PROT_EXEC> a pkey may be allocated and set on the memory implicitly by the "
632 "kernel, but only when the pkey was 0 previously."
633 msgstr ""
634 "Les applications devraient faire attention quand elles mélangent "
635 "l'utilisation de B<mprotect>() et de B<pkey_mprotect>(). Sur x86, quand "
636 "B<mprotect>() est utilisé avec I<prot> positionné sur B<PROT_EXEC>, une pkey "
637 "peut être allouée et positionnée implicitement sur la mémoire par le noyau, "
638 "mais uniquement quand la pkey était de B<0> précédemment."
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid ""
644 "On systems that do not support protection keys in hardware, "
645 "B<pkey_mprotect>() may still be used, but I<pkey> must be set to -1. When "
646 "called this way, the operation of B<pkey_mprotect>() is equivalent to "
647 "B<mprotect>()."
648 msgstr ""
649 "Sur les systèmes qui ne gèrent pas les clés de protection dans le matériel, "
650 "B<pkey_mprotect>() peut toujours être utilisé, mais I<pkey> doit être "
651 "positionné sur B<-1>. Si elle est appelée ainsi, l'opération "
652 "B<pkey_mprotect>() est équivalente à B<mprotect>()."
653
654 #. type: SH
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "STANDARDS"
659 msgstr "NORMES"
660
661 #. type: TP
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "B<mprotect>()"
666 msgstr "B<mproject>()"
667
668 #. type: Plain text
669 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
670 #: opensuse-tumbleweed
671 msgid "POSIX.1-2024."
672 msgstr "POSIX.1-2024."
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "B<pkey_mprotect>()"
679 msgstr "B<pkey_mprotect>()"
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid "Linux."
685 msgstr "Linux."
686
687 #. type: SH
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "HISTORY"
692 msgstr "HISTORIQUE"
693
694 #. type: Plain text
695 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
696 #: opensuse-tumbleweed
697 #, fuzzy
698 #| msgid "SVr4, SUSv1, POSIX.1-2001 XSI."
699 msgid "SVr4, SUSv1, POSIX.1-1996."
700 msgstr "SVr4, SUSv1, POSIX.1-2001 XSI."
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid "Linux 4.9, glibc 2.27."
706 msgstr "Linux 4.9, glibc 2.27."
707
708 #. type: SH
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 #, no-wrap
712 msgid "NOTES"
713 msgstr "NOTES"
714
715 #. type: SH
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid "EXAMPLES"
720 msgstr "EXEMPLES"
721
722 #. sigaction.2 refers to this example
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 msgid ""
727 "The program below demonstrates the use of B<mprotect>(). The program "
728 "allocates four pages of memory, makes the third of these pages read-only, "
729 "and then executes a loop that walks upward through the allocated region "
730 "modifying bytes."
731 msgstr ""
732 "Le programme ci-dessous montre l'utilisation de B<mprotect>(). Il alloue "
733 "quatre pages de mémoire, rend la troisième accessible en lecture seule, puis "
734 "exécute une boucle qui se déplace en avançant dans la région allouée et en "
735 "modifiant son contenu."
736
737 #. type: Plain text
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 msgid ""
741 "An example of what we might see when running the program is the following:"
742 msgstr "Voici un exemple d'exécution de ce programme\\ :"
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid ""
749 "$B< ./a.out>\n"
750 "Start of region: 0x804c000\n"
751 "Got SIGSEGV at address: 0x804e000\n"
752 msgstr ""
753 "$B< ./a.out>\n"
754 "Début de la région\\ : 0x804c000\n"
755 "Reçu SIGSEGV à l'adresse\\ : 0x804e000\n"
756
757 #. type: SS
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "Program source"
762 msgstr "Source du programme"
763
764 #. type: Plain text
765 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
766 #: opensuse-tumbleweed
767 #, fuzzy, no-wrap
768 #| msgid ""
769 #| "#include E<lt>malloc.hE<gt>\n"
770 #| "#include E<lt>signal.hE<gt>\n"
771 #| "#include E<lt>stdio.hE<gt>\n"
772 #| "#include E<lt>stdlib.hE<gt>\n"
773 #| "#include E<lt>sys/mman.hE<gt>\n"
774 #| "#include E<lt>unistd.hE<gt>\n"
775 #| "\\&\n"
776 #| "#define handle_error(msg) \\[rs]\n"
777 #| " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
778 #| "\\&\n"
779 #| "static char *buffer;\n"
780 #| "\\&\n"
781 #| "static void\n"
782 #| "handler(int sig, siginfo_t *si, void *unused)\n"
783 #| "{\n"
784 #| " /* Note: calling printf() from a signal handler is not safe\n"
785 #| " (and should not be done in production programs), since\n"
786 #| " printf() is not async-signal-safe; see signal-safety(7).\n"
787 #| " Nevertheless, we use printf() here as a simple way of\n"
788 #| " showing that the handler was called. */\n"
789 #| "\\&\n"
790 #| " printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n"
791 #| " exit(EXIT_FAILURE);\n"
792 #| "}\n"
793 #| "\\&\n"
794 #| "int\n"
795 #| "main(void)\n"
796 #| "{\n"
797 #| " int pagesize;\n"
798 #| " struct sigaction sa;\n"
799 #| "\\&\n"
800 #| " sa.sa_flags = SA_SIGINFO;\n"
801 #| " sigemptyset(&sa.sa_mask);\n"
802 #| " sa.sa_sigaction = handler;\n"
803 #| " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
804 #| " handle_error(\"sigaction\");\n"
805 #| "\\&\n"
806 #| " pagesize = sysconf(_SC_PAGE_SIZE);\n"
807 #| " if (pagesize == -1)\n"
808 #| " handle_error(\"sysconf\");\n"
809 #| "\\&\n"
810 #| " /* Allocate a buffer aligned on a page boundary;\n"
811 #| " initial protection is PROT_READ | PROT_WRITE. */\n"
812 #| "\\&\n"
813 #| " buffer = memalign(pagesize, 4 * pagesize);\n"
814 #| " if (buffer == NULL)\n"
815 #| " handle_error(\"memalign\");\n"
816 #| "\\&\n"
817 #| " printf(\"Start of region: %p\\[rs]n\", buffer);\n"
818 #| "\\&\n"
819 #| " if (mprotect(buffer + pagesize * 2, pagesize,\n"
820 #| " PROT_READ) == -1)\n"
821 #| " handle_error(\"mprotect\");\n"
822 #| "\\&\n"
823 #| " for (char *p = buffer ; ; )\n"
824 #| " *(p++) = \\[aq]a\\[aq];\n"
825 #| "\\&\n"
826 #| " printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n"
827 #| " exit(EXIT_SUCCESS);\n"
828 #| "}\n"
829 msgid ""
830 "#include E<lt>err.hE<gt>\n"
831 "#include E<lt>malloc.hE<gt>\n"
832 "#include E<lt>signal.hE<gt>\n"
833 "#include E<lt>stdio.hE<gt>\n"
834 "#include E<lt>stdlib.hE<gt>\n"
835 "#include E<lt>sys/mman.hE<gt>\n"
836 "#include E<lt>unistd.hE<gt>\n"
837 "\\&\n"
838 "static char *buffer;\n"
839 "\\&\n"
840 "static void\n"
841 "handler(int sig, siginfo_t *si, void *unused)\n"
842 "{\n"
843 " /* Note: calling printf() from a signal handler is not safe\n"
844 " (and should not be done in production programs), since\n"
845 " printf() is not async-signal-safe; see signal-safety(7).\n"
846 " Nevertheless, we use printf() here as a simple way of\n"
847 " showing that the handler was called. */\n"
848 "\\&\n"
849 " printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n"
850 " exit(EXIT_FAILURE);\n"
851 "}\n"
852 "\\&\n"
853 "int\n"
854 "main(void)\n"
855 "{\n"
856 " int pagesize;\n"
857 " struct sigaction sa;\n"
858 "\\&\n"
859 " sa.sa_flags = SA_SIGINFO;\n"
860 " sigemptyset(&sa.sa_mask);\n"
861 " sa.sa_sigaction = handler;\n"
862 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
863 " err(EXIT_FAILURE, \"sigaction\");\n"
864 "\\&\n"
865 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
866 " if (pagesize == -1)\n"
867 " err(EXIT_FAILURE, \"sysconf\");\n"
868 "\\&\n"
869 " /* Allocate a buffer aligned on a page boundary;\n"
870 " initial protection is PROT_READ | PROT_WRITE. */\n"
871 "\\&\n"
872 " buffer = memalign(pagesize, 4 * pagesize);\n"
873 " if (buffer == NULL)\n"
874 " err(EXIT_FAILURE, \"memalign\");\n"
875 "\\&\n"
876 " printf(\"Start of region: %p\\[rs]n\", buffer);\n"
877 "\\&\n"
878 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
879 " PROT_READ) == -1)\n"
880 " err(EXIT_FAILURE, \"mprotect\");\n"
881 "\\&\n"
882 " for (char *p = buffer ; ; )\n"
883 " *(p++) = \\[aq]a\\[aq];\n"
884 "\\&\n"
885 " printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n"
886 " exit(EXIT_SUCCESS);\n"
887 "}\n"
888 msgstr ""
889 "#include E<lt>malloc.hE<gt>\n"
890 "#include E<lt>signal.hE<gt>\n"
891 "#include E<lt>stdio.hE<gt>\n"
892 "#include E<lt>stdlib.hE<gt>\n"
893 "#include E<lt>sys/mman.hE<gt>\n"
894 "#include E<lt>unistd.hE<gt>\n"
895 "\\&\n"
896 "#define handle_error(msg) \\[rs]\n"
897 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
898 "\\&\n"
899 "static char *buffer;\n"
900 "\\&\n"
901 "static void\n"
902 "handler(int sig, siginfo_t *si, void *unused)\n"
903 "{\n"
904 " /* Remarque : appeler printf() à partir d'un gestionnaire de signal \n"
905 " n'est pas sûr (vous ne devriez pas le faire dans des programmes en \n"
906 " production) car printf() n'est pas async-signal-safe ; voir \n"
907 " signal-safety(7). Cependant, nous utilisons printf() ici comme \n"
908 " façon simple de montrer que le gestionnaire a été appelé. */\n"
909 "\\&\n"
910 " printf(\"Reçu SIGSEGV à l'adresse\\ : %p\\[rs]n\", si-E<gt>si_addr);\n"
911 " exit(EXIT_FAILURE);\n"
912 "}\n"
913 "\\&\n"
914 "int\n"
915 "main(void)\n"
916 "{\n"
917 " int pagesize;\n"
918 " struct sigaction sa;\n"
919 "\\&\n"
920 " sa.sa_flags = SA_SIGINFO;\n"
921 " sigemptyset(&sa.sa_mask);\n"
922 " sa.sa_sigaction = handler;\n"
923 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
924 " handle_error(\"sigaction\");\n"
925 "\\&\n"
926 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
927 " if (pagesize == -1)\n"
928 " handle_error(\"sysconf\");\n"
929 "\\&\n"
930 " /* Allouer un tampon aligné sur une limite de page ;\n"
931 " la protection initiale est PROT_READ | PROT_WRITE. */\n"
932 "\\&\n"
933 " buffer = memalign(pagesize, 4 * pagesize);\n"
934 " if (buffer == NULL)\n"
935 " handle_error(\"memalign\");\n"
936 "\\&\n"
937 " printf(\"Début de la région\\ : %p\\[rs]n\", buffer);\n"
938 "\\&\n"
939 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
940 " PROT_READ) == -1)\n"
941 " handle_error(\"mprotect\");\n"
942 "\\&\n"
943 " for (char *p = buffer ; ; )\n"
944 " *(p++) = \\[aq]a\\[aq];\n"
945 "\\&\n"
946 " printf(\"Boucle terminée\\[rs]n\"); /* Ne devrait jamais arriver */\n"
947 " exit(EXIT_SUCCESS);\n"
948 "}\n"
949
950 #. SRC END
951 #. type: SH
952 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
953 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
954 #, no-wrap
955 msgid "SEE ALSO"
956 msgstr "VOIR AUSSI"
957
958 #. type: Plain text
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 msgid "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)"
962 msgstr "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)"
963
964 #. type: TH
965 #: debian-trixie
966 #, no-wrap
967 msgid "2024-06-15"
968 msgstr "15 juin 2024"
969
970 #. type: TH
971 #: debian-trixie
972 #, no-wrap
973 msgid "Linux man-pages 6.9.1"
974 msgstr "Pages du manuel de Linux 6.9.1"
975
976 #. type: Plain text
977 #: debian-trixie
978 msgid "Standard C library (I<libc>, I<-lc>)"
979 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
980
981 #. type: Plain text
982 #: debian-trixie
983 #, no-wrap
984 msgid "B<int mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<);>\n"
985 msgstr "B<int mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<);>\n"
986
987 #. type: Plain text
988 #: debian-trixie
989 #, no-wrap
990 msgid "B<int pkey_mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
991 msgstr "B<int pkey_mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
992
993 #. type: Plain text
994 #: debian-trixie
995 msgid ""
996 "B<mprotect>() changes the access protections for the calling process's "
997 "memory pages containing any part of the address range in the interval "
998 "[I<addr>,\\ I<addr>+I<len>-1]. I<addr> must be aligned to a page boundary."
999 msgstr ""
1000 "B<mprotect>() change les protections d'accès pour la (les) page(s) de "
1001 "mémoire du processus appelant contenant tout ou une partie de l'intervalle "
1002 "[I<addr>,\\ I<addr>+I<len>-1]. I<addr> doit être aligné sur une limite de "
1003 "page."
1004
1005 #. type: Plain text
1006 #: debian-trixie
1007 msgid ""
1008 "Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages "
1009 "specified by I<addr> and I<len>. The I<pkey> argument specifies the "
1010 "protection key (see B<pkeys>(7)) to assign to the memory. The protection "
1011 "key must be allocated with B<pkey_alloc>(2) before it is passed to "
1012 "B<pkey_mprotect>(). For an example of the use of this system call, see "
1013 "B<pkeys>(7)."
1014 msgstr ""
1015 "Comme B<mprotect>(), B<pkey_mprotect>() modifie la protection des pages "
1016 "indiquées par I<addr> et I<len>. Le paramètre I<pkey> indique la clé de "
1017 "protection (voir B<pkeys>(7))) à assigner à la mémoire. La clé de protection "
1018 "doit être allouée avec B<pkey_alloc>(2) avant d'être passée à "
1019 "B<pkey_mprotect>(). Pour un exemple d'utilisation de cet appel système, voir "
1020 "B<pkeys>(7)."
1021
1022 #. type: Plain text
1023 #: debian-trixie
1024 msgid ""
1025 "Addresses in the range [I<addr>, I<addr>+I<len>-1] are invalid for the "
1026 "address space of the process, or specify one or more pages that are not "
1027 "mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced "
1028 "for these cases.)"
1029 msgstr ""
1030 "Les adresses dans l'intervalle [I<addr>, I<addr>+I<len>-1] ne sont pas "
1031 "valables dans l'espace d'adressage du processus, ou l'intervalle s'étend sur "
1032 "des pages non projetées (avant Linux 2.4.19, l'erreur B<EFAULT> était "
1033 "produite à tort dans ce cas)."
1034
1035 #. type: Plain text
1036 #: debian-trixie fedora-44 fedora-rawhide
1037 msgid "POSIX.1-2008."
1038 msgstr "POSIX.1-2008."
1039
1040 #. type: Plain text
1041 #: debian-trixie fedora-44 fedora-rawhide
1042 msgid "POSIX.1-2001, SVr4."
1043 msgstr "POSIX.1-2001, SVr4."
1044
1045 #. type: Plain text
1046 #: debian-trixie fedora-44 fedora-rawhide
1047 #, no-wrap
1048 msgid ""
1049 "#include E<lt>malloc.hE<gt>\n"
1050 "#include E<lt>signal.hE<gt>\n"
1051 "#include E<lt>stdio.hE<gt>\n"
1052 "#include E<lt>stdlib.hE<gt>\n"
1053 "#include E<lt>sys/mman.hE<gt>\n"
1054 "#include E<lt>unistd.hE<gt>\n"
1055 "\\&\n"
1056 "#define handle_error(msg) \\[rs]\n"
1057 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
1058 "\\&\n"
1059 "static char *buffer;\n"
1060 "\\&\n"
1061 "static void\n"
1062 "handler(int sig, siginfo_t *si, void *unused)\n"
1063 "{\n"
1064 " /* Note: calling printf() from a signal handler is not safe\n"
1065 " (and should not be done in production programs), since\n"
1066 " printf() is not async-signal-safe; see signal-safety(7).\n"
1067 " Nevertheless, we use printf() here as a simple way of\n"
1068 " showing that the handler was called. */\n"
1069 "\\&\n"
1070 " printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n"
1071 " exit(EXIT_FAILURE);\n"
1072 "}\n"
1073 "\\&\n"
1074 "int\n"
1075 "main(void)\n"
1076 "{\n"
1077 " int pagesize;\n"
1078 " struct sigaction sa;\n"
1079 "\\&\n"
1080 " sa.sa_flags = SA_SIGINFO;\n"
1081 " sigemptyset(&sa.sa_mask);\n"
1082 " sa.sa_sigaction = handler;\n"
1083 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
1084 " handle_error(\"sigaction\");\n"
1085 "\\&\n"
1086 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
1087 " if (pagesize == -1)\n"
1088 " handle_error(\"sysconf\");\n"
1089 "\\&\n"
1090 " /* Allocate a buffer aligned on a page boundary;\n"
1091 " initial protection is PROT_READ | PROT_WRITE. */\n"
1092 "\\&\n"
1093 " buffer = memalign(pagesize, 4 * pagesize);\n"
1094 " if (buffer == NULL)\n"
1095 " handle_error(\"memalign\");\n"
1096 "\\&\n"
1097 " printf(\"Start of region: %p\\[rs]n\", buffer);\n"
1098 "\\&\n"
1099 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
1100 " PROT_READ) == -1)\n"
1101 " handle_error(\"mprotect\");\n"
1102 "\\&\n"
1103 " for (char *p = buffer ; ; )\n"
1104 " *(p++) = \\[aq]a\\[aq];\n"
1105 "\\&\n"
1106 " printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n"
1107 " exit(EXIT_SUCCESS);\n"
1108 "}\n"
1109 msgstr ""
1110 "#include E<lt>malloc.hE<gt>\n"
1111 "#include E<lt>signal.hE<gt>\n"
1112 "#include E<lt>stdio.hE<gt>\n"
1113 "#include E<lt>stdlib.hE<gt>\n"
1114 "#include E<lt>sys/mman.hE<gt>\n"
1115 "#include E<lt>unistd.hE<gt>\n"
1116 "\\&\n"
1117 "#define handle_error(msg) \\[rs]\n"
1118 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
1119 "\\&\n"
1120 "static char *buffer;\n"
1121 "\\&\n"
1122 "static void\n"
1123 "handler(int sig, siginfo_t *si, void *unused)\n"
1124 "{\n"
1125 " /* Remarque : appeler printf() à partir d'un gestionnaire de signal \n"
1126 " n'est pas sûr (vous ne devriez pas le faire dans des programmes en \n"
1127 " production) car printf() n'est pas async-signal-safe ; voir \n"
1128 " signal-safety(7). Cependant, nous utilisons printf() ici comme \n"
1129 " façon simple de montrer que le gestionnaire a été appelé. */\n"
1130 "\\&\n"
1131 " printf(\"Reçu SIGSEGV à l'adresse\\ : %p\\[rs]n\", si-E<gt>si_addr);\n"
1132 " exit(EXIT_FAILURE);\n"
1133 "}\n"
1134 "\\&\n"
1135 "int\n"
1136 "main(void)\n"
1137 "{\n"
1138 " int pagesize;\n"
1139 " struct sigaction sa;\n"
1140 "\\&\n"
1141 " sa.sa_flags = SA_SIGINFO;\n"
1142 " sigemptyset(&sa.sa_mask);\n"
1143 " sa.sa_sigaction = handler;\n"
1144 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
1145 " handle_error(\"sigaction\");\n"
1146 "\\&\n"
1147 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
1148 " if (pagesize == -1)\n"
1149 " handle_error(\"sysconf\");\n"
1150 "\\&\n"
1151 " /* Allouer un tampon aligné sur une limite de page ;\n"
1152 " la protection initiale est PROT_READ | PROT_WRITE. */\n"
1153 "\\&\n"
1154 " buffer = memalign(pagesize, 4 * pagesize);\n"
1155 " if (buffer == NULL)\n"
1156 " handle_error(\"memalign\");\n"
1157 "\\&\n"
1158 " printf(\"Début de la région\\ : %p\\[rs]n\", buffer);\n"
1159 "\\&\n"
1160 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
1161 " PROT_READ) == -1)\n"
1162 " handle_error(\"mprotect\");\n"
1163 "\\&\n"
1164 " for (char *p = buffer ; ; )\n"
1165 " *(p++) = \\[aq]a\\[aq];\n"
1166 "\\&\n"
1167 " printf(\"Boucle terminée\\[rs]n\"); /* Ne devrait jamais arriver */\n"
1168 " exit(EXIT_SUCCESS);\n"
1169 "}\n"
1170
1171 #. type: TH
1172 #: fedora-44 fedora-rawhide
1173 #, no-wrap
1174 msgid "2024-11-17"
1175 msgstr "17 novembre 2024"
1176
1177 #. type: TH
1178 #: fedora-44 fedora-rawhide
1179 #, no-wrap
1180 msgid "Linux man-pages 6.13"
1181 msgstr "Pages du manuel de Linux 6.13"
1182
1183 #. type: Plain text
1184 #: fedora-44 fedora-rawhide
1185 #, no-wrap
1186 msgid "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
1187 msgstr "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
1188
1189 #. type: Plain text
1190 #: fedora-44 fedora-rawhide
1191 #, no-wrap
1192 msgid "B<int pkey_mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
1193 msgstr "B<int pkey_mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
1194
1195 #. type: Plain text
1196 #: fedora-44 fedora-rawhide
1197 msgid ""
1198 "B<mprotect>() changes the access protections for the calling process's "
1199 "memory pages containing any part of the address range in the interval "
1200 "[I<addr>,\\ I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary."
1201 msgstr ""
1202 "B<mprotect>() change les protections d'accès pour la (les) page(s) de "
1203 "mémoire du processus appelant contenant tout ou une partie de l'intervalle "
1204 "[I<addr>,\\ I<addr>+I<size>-1]. I<addr> doit être aligné sur une limite de "
1205 "page."
1206
1207 #. type: TH
1208 #: mageia-cauldron
1209 #, no-wrap
1210 msgid "Linux man-pages 6.17"
1211 msgstr "Pages du manuel de Linux 6.17"
1212
1213 #. type: TH
1214 #: opensuse-leap-16-1 opensuse-tumbleweed
1215 #, no-wrap
1216 msgid "Linux man-pages (unreleased)"
1217 msgstr "Pages du manuel de Linux (non publiées)"