| 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. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012. |
| 18 |
# Jean-Paul Guillonneau <[email protected]>, 2021, 2023. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages.fr\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:35+0200\n" |
| 23 |
"PO-Revision-Date: 2023-08-28 10:54+0200\n" |
| 24 |
"Last-Translator: Jean-Paul Guillonneau <[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: vim\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 "pkeys" |
| 38 |
msgstr "pkeys" |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 42 |
#: opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "2026-02-08" |
| 45 |
msgstr "8 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 "pkeys - overview of Memory Protection Keys" |
| 64 |
msgstr "pkeys – Aperçu des clés de protection de la mémoire" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "DESCRIPTION" |
| 71 |
msgstr "DESCRIPTION" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
msgid "" |
| 77 |
"Memory Protection Keys (pkeys) are an extension to existing page-based " |
| 78 |
"memory permissions. Normal page permissions using page tables require " |
| 79 |
"expensive system calls and TLB invalidations when changing permissions. " |
| 80 |
"Memory Protection Keys provide a mechanism for changing protections without " |
| 81 |
"requiring modification of the page tables on every permission change." |
| 82 |
msgstr "" |
| 83 |
"Les clés de protection de la mémoire (Memory Protection Keys — pkeys) sont " |
| 84 |
"une extension des permissions de la mémoire basées sur les pages. Les " |
| 85 |
"permissions normales de page nécessitent des appels système coûteux et des " |
| 86 |
"invalidations du TLB (Translation Lookaside Buffer) lors de modifications de " |
| 87 |
"permission. Les clés de protection de la mémoire fournissent un mécanisme " |
| 88 |
"pour changer les protections sans avoir besoin de modifier la table des " |
| 89 |
"pages lors de chaque modification de permission." |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
msgid "" |
| 95 |
"To use pkeys, software must first \"tag\" a page in the page tables with a " |
| 96 |
"pkey. After this tag is in place, an application only has to change the " |
| 97 |
"contents of a register in order to remove write access, or all access to a " |
| 98 |
"tagged page." |
| 99 |
msgstr "" |
| 100 |
"Pour utiliser B<pkeys>, le logiciel doit d’abord « étiqueter » une page dans " |
| 101 |
"la table des pages avec une pkey. Une fois cette étiquette posée, une " |
| 102 |
"application a seulement à changer le contenu d’un registre pour retirer " |
| 103 |
"l’accès en écriture ou tous les accès à une page étiquetée." |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "" |
| 109 |
"Protection keys work in conjunction with the existing B<PROT_READ>, " |
| 110 |
"B<PROT_WRITE>, and B<PROT_EXEC> permissions passed to system calls such as " |
| 111 |
"B<mprotect>(2) and B<mmap>(2), but always act to further restrict these " |
| 112 |
"traditional permission mechanisms." |
| 113 |
msgstr "" |
| 114 |
"Les clés de protection de la mémoire fonctionnent en conjonction avec les " |
| 115 |
"permissions B<PROT_READ>, B<PROT_WRITE> et B<PROT_EXEC> existantes passées " |
| 116 |
"aux appels système tels que B<mprotect>(2) et B<mmap>(2), mais agissent " |
| 117 |
"toujours pour restreindre encore plus ces mécanismes de permission " |
| 118 |
"traditionnels." |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
msgid "" |
| 124 |
"If a process performs an access that violates pkey restrictions, it receives " |
| 125 |
"a B<SIGSEGV> signal. See B<sigaction>(2) for details of the information " |
| 126 |
"available with that signal." |
| 127 |
msgstr "" |
| 128 |
"Si un processus réalise un accès qui enfreint les restrictions de pkey, il " |
| 129 |
"reçoit un signal B<SIGSEGV>. Consultez B<sigaction>(2) pour des détails sur " |
| 130 |
"l’information disponible avec ce signal." |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
msgid "" |
| 136 |
"To use the pkeys feature, the processor must support it, and the kernel must " |
| 137 |
"contain support for the feature on a given processor. As of early 2016 only " |
| 138 |
"future Intel x86 processors are supported, and this hardware supports 16 " |
| 139 |
"protection keys in each process. However, pkey 0 is used as the default " |
| 140 |
"key, so a maximum of 15 are available for actual application use. The " |
| 141 |
"default key is assigned to any memory region for which a pkey has not been " |
| 142 |
"explicitly assigned via B<pkey_mprotect>(2)." |
| 143 |
msgstr "" |
| 144 |
"Pour utiliser la fonctionnalité de B<pkeys>, le processeur doit la prendre " |
| 145 |
"en charge et le noyau doit contenir une prise en charge pour la " |
| 146 |
"fonctionnalité d’un processeur donné. Au tout début de 2016, seuls les " |
| 147 |
"processeurs x86 d’Intel à venir étaient pris en charge et ceux-ci géraient " |
| 148 |
"16 clés de protection de la mémoire pour chaque processus. Cependant, la " |
| 149 |
"pkey 0 est utilisée comme clé par défaut, donc un maximum de 15 sont " |
| 150 |
"disponibles pour une utilisation effective d’application. La clé par défaut " |
| 151 |
"est affectée à n’importe quelle région de la mémoire pour laquelle une pkey " |
| 152 |
"n’a pas été assignée explicitement à l’aide de B<pkey_mprotect>(2)." |
| 153 |
|
| 154 |
#. type: Plain text |
| 155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 156 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
msgid "" |
| 158 |
"Protection keys have the potential to add a layer of security and " |
| 159 |
"reliability to applications. But they have not been primarily designed as a " |
| 160 |
"security feature. For instance, WRPKRU is a completely unprivileged " |
| 161 |
"instruction, so pkeys are useless in any case that an attacker controls the " |
| 162 |
"PKRU register or can execute arbitrary instructions." |
| 163 |
msgstr "" |
| 164 |
"Les clés de protection ont la capacité d’ajouter une couche de sécurité et " |
| 165 |
"de fiabilité aux applications, mais elles n’ont pas été conçues " |
| 166 |
"principalement pour une fonctionnalité de sécurité. Par exemple, WRPKRU est " |
| 167 |
"une instruction entièrement non privilégiée, aussi les pkeys sont inutiles " |
| 168 |
"dans tous les cas où un attaquant contrôle le registre PKRU ou peut exécuter " |
| 169 |
"des instructions arbitraires." |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"Applications should be very careful to ensure that they do not \"leak\" " |
| 176 |
"protection keys. For instance, before calling B<pkey_free>(2), the " |
| 177 |
"application should be sure that no memory has that pkey assigned. If the " |
| 178 |
"application left the freed pkey assigned, a future user of that pkey might " |
| 179 |
"inadvertently change the permissions of an unrelated data structure, which " |
| 180 |
"could impact security or stability. The kernel currently allows in-use " |
| 181 |
"pkeys to have B<pkey_free>(2) called on them because it would have " |
| 182 |
"processor or memory performance implications to perform the additional " |
| 183 |
"checks needed to disallow it. Implementation of the necessary checks is " |
| 184 |
"left up to applications. Applications may implement these checks by " |
| 185 |
"searching the I</proc/>pidI</smaps> file for memory regions with the pkey " |
| 186 |
"assigned. Further details can be found in B<proc>(5)." |
| 187 |
msgstr "" |
| 188 |
"Les applications doivent être très précautionneuses pour assurer de ne pas " |
| 189 |
"faire « fuiter » leurs clés de protection. Par exemple, avant d’appeler " |
| 190 |
"B<pkey_free>(2), l’application doit être sûre qu’aucune mémoire a cette pkey " |
| 191 |
"assignée. Si l’application laisse la pkey libérée assignée, un prochain " |
| 192 |
"utilisateur de cette pkey peut par inadvertance modifier les permissions " |
| 193 |
"d’une structure de données étrangère, pouvant impacter la sécurité ou la " |
| 194 |
"stabilité. Le noyau permet actuellement aux pkeys en cours d’avoir " |
| 195 |
"B<pkey_free>(2) appelée sur elles, car cela pourrait avoir des implications " |
| 196 |
"de performance de processeur ou de mémoire pour réaliser des vérifications " |
| 197 |
"supplémentaires nécessaires pour désactiver cet appel. L’implémentation des " |
| 198 |
"vérifications nécessaires est laissée aux applications. Celles-ci peuvent " |
| 199 |
"mettre en œuvre ces vérifications en parcourant le fichier I</proc/>pidI</" |
| 200 |
"smaps> pour des régions de la mémoire ayant la pkey assignée. Plus de " |
| 201 |
"détails sont fournis dans B<proc>(5)." |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 205 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
msgid "" |
| 207 |
"Any application wanting to use protection keys needs to be able to function " |
| 208 |
"without them. They might be unavailable because the hardware that the " |
| 209 |
"application runs on does not support them, the kernel code does not contain " |
| 210 |
"support, the kernel support has been disabled, or because the keys have all " |
| 211 |
"been allocated, perhaps by a library the application is using. It is " |
| 212 |
"recommended that applications wanting to use protection keys should simply " |
| 213 |
"call B<pkey_alloc>(2) and test whether the call succeeds, instead of " |
| 214 |
"attempting to detect support for the feature in any other way." |
| 215 |
msgstr "" |
| 216 |
"Toute application voulant utiliser les clés de protection doivent être " |
| 217 |
"capables de fonctionner sans elles. Elles peuvent être indisponibles parce " |
| 218 |
"que le matériel exécutant cette application ne les prennent pas en charge, " |
| 219 |
"le code du noyau ne fournit aucune prise en charge ou cette prise en charge " |
| 220 |
"a été désactivée, ou parce que les clés ont été allouées, peut être par une " |
| 221 |
"bibliothèque utilisée par l’application. Il est recommandé aux applications " |
| 222 |
"voulant utiliser les clés de protection de simplement appeler " |
| 223 |
"B<pkey_alloc>(2) et de tester si l’appel réussit au lieu d’essayer de " |
| 224 |
"détecter une prise en charge de la fonctionnalité par tout autre moyen." |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "" |
| 230 |
"Although unnecessary, hardware support for protection keys may be enumerated " |
| 231 |
"with the I<cpuid> instruction. Details of how to do this can be found in " |
| 232 |
"the Intel Software Developers Manual. The kernel performs this enumeration " |
| 233 |
"and exposes the information in I</proc/cpuinfo> under the \"flags\" field. " |
| 234 |
"The string \"pku\" in this field indicates hardware support for protection " |
| 235 |
"keys and the string \"ospke\" indicates that the kernel contains and has " |
| 236 |
"enabled protection keys support." |
| 237 |
msgstr "" |
| 238 |
"Quoique non nécessaire, la prise en charge matérielle des clés de protection " |
| 239 |
"peut être déterminée à l’aide de l’instruction I<cpuid>. La manière de " |
| 240 |
"réaliser cela est décrite dans le manuel pour les développeurs de logiciels " |
| 241 |
"pour Intel. Le noyau réalise ce dénombrement et expose cette information " |
| 242 |
"dans le champ « flags » de I</proc/cpuinfo>. La chaîne « pku » dans ce champ " |
| 243 |
"indique la prise en charge matérielle des clés de protection et la chaîne " |
| 244 |
"« ospke » indique que le noyau gère et active la prise en charge des clés de " |
| 245 |
"protection." |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"Applications using threads and protection keys should be especially " |
| 252 |
"careful. Threads inherit the protection key rights of the parent at the " |
| 253 |
"time of the B<clone>(2), system call. Applications should either ensure " |
| 254 |
"that their own permissions are appropriate for child threads at the time " |
| 255 |
"when B<clone>(2) is called, or ensure that each child thread can perform " |
| 256 |
"its own initialization of protection key rights." |
| 257 |
msgstr "" |
| 258 |
"Les applications utilisant les threads et les clés de protection doivent " |
| 259 |
"être particulièrement attentives. Les threads héritent des droits des clés " |
| 260 |
"de protection de leur parent au moment de l’appel système B<clone>(2). Les " |
| 261 |
"applications doivent aussi s’assurer que leurs propres permissions sont " |
| 262 |
"appropriées pour les threads enfant au moment de l’appel B<clone>(2) ou de " |
| 263 |
"s’assurer que chaque thread enfant peut réaliser sa propre initialisation " |
| 264 |
"des droits de clés de protection." |
| 265 |
|
| 266 |
#. type: SS |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
#, no-wrap |
| 270 |
msgid "Signal Handler Behavior" |
| 271 |
msgstr "Comportement du gestionnaire de signal" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"Each time a signal handler is invoked (including nested signals), the thread " |
| 278 |
"is temporarily given a new, default set of protection key rights that " |
| 279 |
"override the rights from the interrupted context. This means that " |
| 280 |
"applications must re-establish their desired protection key rights upon " |
| 281 |
"entering a signal handler if the desired rights differ from the defaults. " |
| 282 |
"The rights of any interrupted context are restored when the signal handler " |
| 283 |
"returns." |
| 284 |
msgstr "" |
| 285 |
"Chaque fois qu’un gestionnaire de signal est invoqué (y compris pour les " |
| 286 |
"signaux imbriqués), le thread obtient temporairement un nouvel ensemble par " |
| 287 |
"défaut de droits de clés de protection qui outrepasse les droits du contexte " |
| 288 |
"interrompu. Cela signifie que les applications doivent rétablir les droits " |
| 289 |
"désirés des clés de protection lors de l’utilisation d’un gestionnaire de " |
| 290 |
"signal si ces droits différent de ceux par défaut. Les droits de n’importe " |
| 291 |
"quel contexte sont restaurés lors du renvoi du gestionnaire de signal." |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
msgid "" |
| 297 |
"This signal behavior is unusual and is due to the fact that the x86 PKRU " |
| 298 |
"register (which stores protection key access rights) is managed with the " |
| 299 |
"same hardware mechanism (XSAVE) that manages floating-point registers. The " |
| 300 |
"signal behavior is the same as that of floating-point registers." |
| 301 |
msgstr "" |
| 302 |
"Ce comportement de signal est inhabituel et est dû au fait que le registre " |
| 303 |
"PKRU x86 (qui stocke les droits d’accès des clés de protection) est géré " |
| 304 |
"avec le même mécanisme matériel (XSAVE) qui gère les registres de virgule " |
| 305 |
"flottante. Le comportement du signal est le même que celui des registres de " |
| 306 |
"virgule flottante." |
| 307 |
|
| 308 |
#. type: SS |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "Protection Keys system calls" |
| 313 |
msgstr "Appels système des clés de protection" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"The Linux kernel implements the following pkey-related system calls: " |
| 320 |
"B<pkey_mprotect>(2), B<pkey_alloc>(2), and B<pkey_free>(2)." |
| 321 |
msgstr "" |
| 322 |
"Le noyau Linux met en œuvre les appels système suivants relatifs aux clés de " |
| 323 |
"protection : B<pkey_mprotect>(2), B<pkey_alloc>(2) et B<pkey_free>(2)." |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "" |
| 329 |
"The Linux pkey system calls are available only if the kernel was configured " |
| 330 |
"and built with the B<CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS> option." |
| 331 |
msgstr "" |
| 332 |
"Les appels système de Linux pour pkey sont disponibles uniquement si le " |
| 333 |
"noyau a été configuré et construit avec l’option " |
| 334 |
"B<CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS>." |
| 335 |
|
| 336 |
#. type: SH |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
#, no-wrap |
| 340 |
msgid "EXAMPLES" |
| 341 |
msgstr "EXEMPLES" |
| 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 program below allocates a page of memory with read and write " |
| 348 |
"permissions. It then writes some data to the memory and successfully reads " |
| 349 |
"it back. After that, it attempts to allocate a protection key and disallows " |
| 350 |
"access to the page by using the WRPKRU instruction. It then tries to access " |
| 351 |
"the page, which we now expect to cause a fatal signal to the application." |
| 352 |
msgstr "" |
| 353 |
"Le programme ci-dessous alloue une page de mémoire avec les permissions en " |
| 354 |
"lecture et écriture. Puis il écrit quelques données dans la mémoire et les " |
| 355 |
"relit avec succès. Après cela, il essaie d’allouer une clé de protection et " |
| 356 |
"désactive l’accès à la page en utilisant l’instruction WRPKRU. Il essaie " |
| 357 |
"alors d’accéder à la page qui est supposée provoquer un signal fatal pour " |
| 358 |
"l’application." |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "" |
| 365 |
"$B< ./a.out>\n" |
| 366 |
"buffer contains: 73\n" |
| 367 |
"about to read buffer again...\n" |
| 368 |
"Segmentation fault (core dumped)\n" |
| 369 |
msgstr "" |
| 370 |
"$B< ./a.out>\n" |
| 371 |
"le buffer contient : 73\n" |
| 372 |
"sur le point de lire le buffer de nouveau...\n" |
| 373 |
"Segmentation fault (core dumped)\n" |
| 374 |
|
| 375 |
#. type: SS |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
#, no-wrap |
| 379 |
msgid "Program source" |
| 380 |
msgstr "Source du programme" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "" |
| 387 |
"#define _GNU_SOURCE\n" |
| 388 |
"#include E<lt>err.hE<gt>\n" |
| 389 |
"#include E<lt>unistd.hE<gt>\n" |
| 390 |
"#include E<lt>stdio.hE<gt>\n" |
| 391 |
"#include E<lt>stdlib.hE<gt>\n" |
| 392 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 393 |
"\\&\n" |
| 394 |
"int\n" |
| 395 |
"main(void)\n" |
| 396 |
"{\n" |
| 397 |
" int status;\n" |
| 398 |
" int pkey;\n" |
| 399 |
" int *buffer;\n" |
| 400 |
"\\&\n" |
| 401 |
" /*\n" |
| 402 |
" * Allocate one page of memory.\n" |
| 403 |
" */\n" |
| 404 |
" buffer = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,\n" |
| 405 |
" MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);\n" |
| 406 |
" if (buffer == MAP_FAILED)\n" |
| 407 |
" err(EXIT_FAILURE, \"mmap\");\n" |
| 408 |
"\\&\n" |
| 409 |
" /*\n" |
| 410 |
" * Put some random data into the page (still OK to touch).\n" |
| 411 |
" */\n" |
| 412 |
" *buffer = __LINE__;\n" |
| 413 |
" printf(\"buffer contains: %d\\[rs]n\", *buffer);\n" |
| 414 |
"\\&\n" |
| 415 |
" /*\n" |
| 416 |
" * Allocate a protection key:\n" |
| 417 |
" */\n" |
| 418 |
" pkey = pkey_alloc(0, 0);\n" |
| 419 |
" if (pkey == -1)\n" |
| 420 |
" err(EXIT_FAILURE, \"pkey_alloc\");\n" |
| 421 |
"\\&\n" |
| 422 |
" /*\n" |
| 423 |
" * Disable access to any memory with \"pkey\" set,\n" |
| 424 |
" * even though there is none right now.\n" |
| 425 |
" */\n" |
| 426 |
" status = pkey_set(pkey, PKEY_DISABLE_ACCESS);\n" |
| 427 |
" if (status)\n" |
| 428 |
" err(EXIT_FAILURE, \"pkey_set\");\n" |
| 429 |
"\\&\n" |
| 430 |
" /*\n" |
| 431 |
" * Set the protection key on \"buffer\".\n" |
| 432 |
" * Note that it is still read/write as far as mprotect() is\n" |
| 433 |
" * concerned and the previous pkey_set() overrides it.\n" |
| 434 |
" */\n" |
| 435 |
" status = pkey_mprotect(buffer, getpagesize(),\n" |
| 436 |
" PROT_READ | PROT_WRITE, pkey);\n" |
| 437 |
" if (status == -1)\n" |
| 438 |
" err(EXIT_FAILURE, \"pkey_mprotect\");\n" |
| 439 |
"\\&\n" |
| 440 |
" printf(\"about to read buffer again...\\[rs]n\");\n" |
| 441 |
"\\&\n" |
| 442 |
" /*\n" |
| 443 |
" * This will crash, because we have disallowed access.\n" |
| 444 |
" */\n" |
| 445 |
" printf(\"buffer contains: %d\\[rs]n\", *buffer);\n" |
| 446 |
"\\&\n" |
| 447 |
" status = pkey_free(pkey);\n" |
| 448 |
" if (status == -1)\n" |
| 449 |
" err(EXIT_FAILURE, \"pkey_free\");\n" |
| 450 |
"\\&\n" |
| 451 |
" exit(EXIT_SUCCESS);\n" |
| 452 |
"}\n" |
| 453 |
msgstr "" |
| 454 |
"#define _GNU_SOURCE\n" |
| 455 |
"#include E<lt>err.hE<gt>\n" |
| 456 |
"#include E<lt>unistd.hE<gt>\n" |
| 457 |
"#include E<lt>stdio.hE<gt>\n" |
| 458 |
"#include E<lt>stdlib.hE<gt>\n" |
| 459 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 460 |
"\\&\n" |
| 461 |
"int\n" |
| 462 |
"main(void)\n" |
| 463 |
"{\n" |
| 464 |
" int status;\n" |
| 465 |
" int pkey;\n" |
| 466 |
" int *buffer;\n" |
| 467 |
"\\&\n" |
| 468 |
" /*\n" |
| 469 |
" * Allocation d’une page de mémoire.\n" |
| 470 |
" */\n" |
| 471 |
" buffer = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,\n" |
| 472 |
" MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);\n" |
| 473 |
" if (buffer == MAP_FAILED)\n" |
| 474 |
" err(EXIT_FAILURE, \"mmap\");\n" |
| 475 |
"\\&\n" |
| 476 |
" /*\n" |
| 477 |
" * Mise de données aléatoires dans la page (toujours OK à affecter).\n" |
| 478 |
" */\n" |
| 479 |
" *buffer = __LINE__;\n" |
| 480 |
" printf(\"le buffer contient : %d\\en\", *buffer);\n" |
| 481 |
"\\&\n" |
| 482 |
" /*\n" |
| 483 |
" * Allocation d’une clé de protection :\n" |
| 484 |
" */\n" |
| 485 |
" pkey = pkey_alloc(0, 0);\n" |
| 486 |
" if (pkey == -1)\n" |
| 487 |
" err(EXIT_FAILURE, \"pkey_alloc\");\n" |
| 488 |
"\\&\n" |
| 489 |
" /*\n" |
| 490 |
" * Désactivation de l’accès à toute mémoire avec l’ensemble\n" |
| 491 |
" * « pkey », même si aucun droit n’existe à ce moment.\n" |
| 492 |
" */\n" |
| 493 |
" status = pkey_set(pkey, PKEY_DISABLE_ACCESS);\n" |
| 494 |
" if (status)\n" |
| 495 |
" err(EXIT_FAILURE, \"pkey_set\");\n" |
| 496 |
"\\&\n" |
| 497 |
" /*\n" |
| 498 |
" * Mettre la clé de protection dans « buffer ».\n" |
| 499 |
" * Noter que c’est toujours lect./écrit. aussi longtemps que mprotect()\n" |
| 500 |
" * est concerné et que le pkey_set() précédent l’écrase.\n" |
| 501 |
" */\n" |
| 502 |
" status = pkey_mprotect(buffer, getpagesize(),\n" |
| 503 |
" PROT_READ | PROT_WRITE, pkey);\n" |
| 504 |
" if (status == -1)\n" |
| 505 |
" err(EXIT_FAILURE, \"pkey_mprotect\");\n" |
| 506 |
"\\&\n" |
| 507 |
" printf(\"sur le point de lire le buffer de nouveau...\\en\");\n" |
| 508 |
"\\&\n" |
| 509 |
" /*\n" |
| 510 |
" * Cela va planter car l’accès a été désactivé.\n" |
| 511 |
" */\n" |
| 512 |
" printf(\"le buffer contient : %d\\[rs]n\", *buffer);\n" |
| 513 |
"\\&\n" |
| 514 |
" status = pkey_free(pkey);\n" |
| 515 |
" if (status == -1)\n" |
| 516 |
" err(EXIT_FAILURE, \"pkey_free\");\n" |
| 517 |
"\\&\n" |
| 518 |
" exit(EXIT_SUCCESS);\n" |
| 519 |
"}\n" |
| 520 |
|
| 521 |
#. type: SH |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
#, no-wrap |
| 525 |
msgid "SEE ALSO" |
| 526 |
msgstr "VOIR AUSSI" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 531 |
msgid "B<pkey_alloc>(2), B<pkey_free>(2), B<pkey_mprotect>(2), B<sigaction>(2)" |
| 532 |
msgstr "" |
| 533 |
"B<pkey_alloc>(2), B<pkey_free>(2), B<pkey_mprotect>(2), B<sigaction>(2)" |
| 534 |
|
| 535 |
#. type: TH |
| 536 |
#: debian-trixie fedora-44 fedora-rawhide |
| 537 |
#, no-wrap |
| 538 |
msgid "2024-06-15" |
| 539 |
msgstr "15 juin 2024" |
| 540 |
|
| 541 |
#. type: TH |
| 542 |
#: debian-trixie |
| 543 |
#, no-wrap |
| 544 |
msgid "Linux man-pages 6.9.1" |
| 545 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 546 |
|
| 547 |
#. type: TH |
| 548 |
#: fedora-44 fedora-rawhide |
| 549 |
#, no-wrap |
| 550 |
msgid "Linux man-pages 6.13" |
| 551 |
msgstr "Pages du manuel de Linux 6.13" |
| 552 |
|
| 553 |
#. type: TH |
| 554 |
#: mageia-cauldron |
| 555 |
#, no-wrap |
| 556 |
msgid "Linux man-pages 6.17" |
| 557 |
msgstr "Pages du manuel de Linux 6.17" |
| 558 |
|
| 559 |
#. type: TH |
| 560 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "Linux man-pages (unreleased)" |
| 563 |
msgstr "Pages du manuel de Linux (non publiées)" |