| 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, 2011. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012-2014. |
| 18 |
# Jean-Philippe MENGUAL <[email protected]>, 2020-2024. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.22.0\n" |
| 22 |
"POT-Creation-Date: 2025-08-10 07:53+0200\n" |
| 23 |
"PO-Revision-Date: 2024-04-17 17:24+0200\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 |
#: mageia-cauldron |
| 35 |
#, no-wrap |
| 36 |
msgid "ioctl_ns" |
| 37 |
msgstr "ioctl_ns" |
| 38 |
|
| 39 |
#. type: TH |
| 40 |
#: mageia-cauldron |
| 41 |
#, no-wrap |
| 42 |
msgid "2023-10-31" |
| 43 |
msgstr "31 octobre 2023" |
| 44 |
|
| 45 |
#. type: TH |
| 46 |
#: mageia-cauldron |
| 47 |
#, no-wrap |
| 48 |
msgid "Linux man-pages 6.06" |
| 49 |
msgstr "Pages du manuel de Linux 6.06" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: mageia-cauldron |
| 53 |
#, no-wrap |
| 54 |
msgid "NAME" |
| 55 |
msgstr "NOM" |
| 56 |
|
| 57 |
#. type: Plain text |
| 58 |
#: mageia-cauldron |
| 59 |
msgid "ioctl_ns - ioctl() operations for Linux namespaces" |
| 60 |
msgstr "ioctl_ns - opérations ioctl() pour les espaces de noms Linux" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: mageia-cauldron |
| 64 |
#, no-wrap |
| 65 |
msgid "DESCRIPTION" |
| 66 |
msgstr "DESCRIPTION" |
| 67 |
|
| 68 |
#. ============================================================ |
| 69 |
#. type: SS |
| 70 |
#: mageia-cauldron |
| 71 |
#, no-wrap |
| 72 |
msgid "Discovering namespace relationships" |
| 73 |
msgstr "Recherche des relations entre les espaces de noms" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: mageia-cauldron |
| 77 |
msgid "" |
| 78 |
"The following B<ioctl>(2) operations are provided to allow discovery of " |
| 79 |
"namespace relationships (see B<user_namespaces>(7) and " |
| 80 |
"B<pid_namespaces>(7)). The form of the calls is:" |
| 81 |
msgstr "" |
| 82 |
"Les opérations B<ioctl>(2) suivantes sont fournies pour permettre la " |
| 83 |
"recherche de relations entre espaces de noms (voir B<user_namespaces>(7) et " |
| 84 |
"B<pid_namespaces>(7)). La forme des appels est :" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: mageia-cauldron |
| 88 |
#, no-wrap |
| 89 |
msgid "new_fd = ioctl(fd, request);\n" |
| 90 |
msgstr "new_fd = ioctl(fd, request);\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: mageia-cauldron |
| 94 |
msgid "" |
| 95 |
"In each case, I<fd> refers to a I</proc/>pidI</ns/*> file. Both operations " |
| 96 |
"return a new file descriptor on success." |
| 97 |
msgstr "" |
| 98 |
"Dans tous les cas, I<fd> renvoie au fichier I</proc/>pidI</ns/*>. Les deux " |
| 99 |
"opérations renvoient un nouveau descripteur de fichier en cas de succès." |
| 100 |
|
| 101 |
#. type: TP |
| 102 |
#: mageia-cauldron |
| 103 |
#, no-wrap |
| 104 |
msgid "B<NS_GET_USERNS> (since Linux 4.9)" |
| 105 |
msgstr "B<NS_GET_USERNS> (depuis Linux 4.9)" |
| 106 |
|
| 107 |
#. commit bcac25a58bfc6bd79191ac5d7afb49bea96da8c9 |
| 108 |
#. commit 6786741dbf99e44fb0c0ed85a37582b8a26f1c3b |
| 109 |
#. type: Plain text |
| 110 |
#: mageia-cauldron |
| 111 |
msgid "" |
| 112 |
"Returns a file descriptor that refers to the owning user namespace for the " |
| 113 |
"namespace referred to by I<fd>." |
| 114 |
msgstr "" |
| 115 |
"Renvoie un descripteur de fichier qui se rapporte à l'espace de noms de " |
| 116 |
"l'utilisateur propriétaire pour l'espace de noms auquel renvoie I<fd>." |
| 117 |
|
| 118 |
#. type: TP |
| 119 |
#: mageia-cauldron |
| 120 |
#, no-wrap |
| 121 |
msgid "B<NS_GET_PARENT> (since Linux 4.9)" |
| 122 |
msgstr "B<NS_GET_PARENT> (depuis Linux 4.9)" |
| 123 |
|
| 124 |
#. commit a7306ed8d94af729ecef8b6e37506a1c6fc14788 |
| 125 |
#. type: Plain text |
| 126 |
#: mageia-cauldron |
| 127 |
msgid "" |
| 128 |
"Returns a file descriptor that refers to the parent namespace of the " |
| 129 |
"namespace referred to by I<fd>. This operation is valid only for " |
| 130 |
"hierarchical namespaces (i.e., PID and user namespaces). For user " |
| 131 |
"namespaces, B<NS_GET_PARENT> is synonymous with B<NS_GET_USERNS>." |
| 132 |
msgstr "" |
| 133 |
"Renvoie un descripteur de fichier qui se rapporte à l'espace de noms parent " |
| 134 |
"de l'espace auquel renvoie I<fd>. Cette opération n'est valable que pour des " |
| 135 |
"espaces de noms hiérarchiques (à savoir les espaces de noms de PID et " |
| 136 |
"d'utilisateur). Pour les espaces de noms utilisateur, B<NS_GET_PARENT> est " |
| 137 |
"synonyme de B<NS_GET_USERNS>." |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: mageia-cauldron |
| 141 |
msgid "" |
| 142 |
"The new file descriptor returned by these operations is opened with the " |
| 143 |
"B<O_RDONLY> and B<O_CLOEXEC> (close-on-exec; see B<fcntl>(2)) flags." |
| 144 |
msgstr "" |
| 145 |
"Le nouveau descripteur de fichier renvoyé par ces opérations est ouvert avec " |
| 146 |
"les attributs B<O_RDONLY> et B<O_CLOEXEC> (close-on-exec ; voir B<fcntl>(2))." |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: mageia-cauldron |
| 150 |
msgid "" |
| 151 |
"By applying B<fstat>(2) to the returned file descriptor, one obtains a " |
| 152 |
"I<stat> structure whose I<st_dev> (resident device) and I<st_ino> (inode " |
| 153 |
"number) fields together identify the owning/parent namespace. This inode " |
| 154 |
"number can be matched with the inode number of another I</proc/>pidI</ns/" |
| 155 |
">{I<pid>,I<user>} file to determine whether that is the owning/parent " |
| 156 |
"namespace." |
| 157 |
msgstr "" |
| 158 |
"En appliquant B<fstat>(2) au descripteur de fichier renvoyé, vous obtenez " |
| 159 |
"une structure I<stat> où les champs I<st_dev> (le périphérique résident) et " |
| 160 |
"I<st_ino> (le numéro d'inœud) identifient à la fois l'espace de noms du " |
| 161 |
"propriétaire et du parent. Ce numéro d'inœud peut être mis en correspondance " |
| 162 |
"avec le numéro d'inœud d'un autre fichier I</proc/>pidI</ns/" |
| 163 |
">{I<pid>,I<user>} pour savoir s'il s'agit de l'espace de noms du " |
| 164 |
"propriétaire ou du parent." |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: mageia-cauldron |
| 168 |
msgid "" |
| 169 |
"Either of these B<ioctl>(2) operations can fail with the following errors:" |
| 170 |
msgstr "" |
| 171 |
"Chacune de ces opérations B<ioctl>(2) peut échouer avec les erreurs " |
| 172 |
"suivantes :" |
| 173 |
|
| 174 |
#. type: TP |
| 175 |
#: mageia-cauldron |
| 176 |
#, no-wrap |
| 177 |
msgid "B<EPERM>" |
| 178 |
msgstr "B<EPERM>" |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: mageia-cauldron |
| 182 |
msgid "" |
| 183 |
"The requested namespace is outside of the caller's namespace scope. This " |
| 184 |
"error can occur if, for example, the owning user namespace is an ancestor of " |
| 185 |
"the caller's current user namespace. It can also occur on attempts to " |
| 186 |
"obtain the parent of the initial user or PID namespace." |
| 187 |
msgstr "" |
| 188 |
"L'espace de noms demandé va au-delà de la cible de l'espace de noms de " |
| 189 |
"l'appelant. Cette erreur peut arriver si, par exemple, l'espace de noms du " |
| 190 |
"propriétaire est un ancêtre de l'espace de noms de l'utilisateur actuel de " |
| 191 |
"l'appelant. Elle peut aussi survenir en cas de tentative d'obtenir le parent " |
| 192 |
"de l'espace de noms de l'utilisateur initial ou du PID." |
| 193 |
|
| 194 |
#. type: TP |
| 195 |
#: mageia-cauldron |
| 196 |
#, no-wrap |
| 197 |
msgid "B<ENOTTY>" |
| 198 |
msgstr "B<ENOTTY>" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: mageia-cauldron |
| 202 |
msgid "The operation is not supported by this kernel version." |
| 203 |
msgstr "L'opération n'est pas prise en charge par cette version du noyau." |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: mageia-cauldron |
| 207 |
msgid "" |
| 208 |
"Additionally, the B<NS_GET_PARENT> operation can fail with the following " |
| 209 |
"error:" |
| 210 |
msgstr "" |
| 211 |
"De plus, l'opération B<NS_GET_PARENT> peut échouer avec l'erreur suivante :" |
| 212 |
|
| 213 |
#. type: TP |
| 214 |
#: mageia-cauldron |
| 215 |
#, no-wrap |
| 216 |
msgid "B<EINVAL>" |
| 217 |
msgstr "B<EINVAL>" |
| 218 |
|
| 219 |
#. type: Plain text |
| 220 |
#: mageia-cauldron |
| 221 |
msgid "I<fd> refers to a nonhierarchical namespace." |
| 222 |
msgstr "I<fd> se rapporte à un espace de noms non hiérarchique." |
| 223 |
|
| 224 |
#. ============================================================ |
| 225 |
#. type: Plain text |
| 226 |
#: mageia-cauldron |
| 227 |
msgid "See the EXAMPLES section for an example of the use of these operations." |
| 228 |
msgstr "" |
| 229 |
"Voir la section EXEMPLE pour un exemple d'utilisation de ces opérations." |
| 230 |
|
| 231 |
#. type: SS |
| 232 |
#: mageia-cauldron |
| 233 |
#, no-wrap |
| 234 |
msgid "Discovering the namespace type" |
| 235 |
msgstr "Recherche du type d'espace de noms" |
| 236 |
|
| 237 |
#. commit e5ff5ce6e20ee22511398bb31fb912466cf82a36 |
| 238 |
#. type: Plain text |
| 239 |
#: mageia-cauldron |
| 240 |
msgid "" |
| 241 |
"The B<NS_GET_NSTYPE> operation (available since Linux 4.11) can be used to " |
| 242 |
"discover the type of namespace referred to by the file descriptor I<fd>:" |
| 243 |
msgstr "" |
| 244 |
"L'opération B<NS_GET_NSTYPE> (disponible depuis Linux 4.11) peut être " |
| 245 |
"utilisée pour rechercher le type d'espace de noms auquel se rapporte le " |
| 246 |
"descripteur de fichier I<fd> :" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: mageia-cauldron |
| 250 |
#, no-wrap |
| 251 |
msgid "nstype = ioctl(fd, NS_GET_NSTYPE);\n" |
| 252 |
msgstr "nstype = ioctl(fd, NS_GET_NSTYPE);\n" |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: mageia-cauldron |
| 256 |
msgid "I<fd> refers to a I</proc/>pidI</ns/*> file." |
| 257 |
msgstr "I<fd> renvoie à un fichier I</proc/>pidI</ns/*>." |
| 258 |
|
| 259 |
#. ============================================================ |
| 260 |
#. type: Plain text |
| 261 |
#: mageia-cauldron |
| 262 |
msgid "" |
| 263 |
"The return value is one of the B<CLONE_NEW*> values that can be specified to " |
| 264 |
"B<clone>(2) or B<unshare>(2) in order to create a namespace." |
| 265 |
msgstr "" |
| 266 |
"La valeur de renvoi est une des valeurs de B<CLONE_NEW*>, qui peut être " |
| 267 |
"indiquée à B<clone>(2) ou à B<unshare>(2) afin de créer un espace de noms." |
| 268 |
|
| 269 |
#. type: SS |
| 270 |
#: mageia-cauldron |
| 271 |
#, no-wrap |
| 272 |
msgid "Discovering the owner of a user namespace" |
| 273 |
msgstr "Rechercher le propriétaire d'un espace de noms utilisateur" |
| 274 |
|
| 275 |
#. commit 015bb305b8ebe8d601a238ab70ebdc394c7a19ba |
| 276 |
#. type: Plain text |
| 277 |
#: mageia-cauldron |
| 278 |
msgid "" |
| 279 |
"The B<NS_GET_OWNER_UID> operation (available since Linux 4.11) can be used " |
| 280 |
"to discover the owner user ID of a user namespace (i.e., the effective user " |
| 281 |
"ID of the process that created the user namespace). The form of the call is:" |
| 282 |
msgstr "" |
| 283 |
"L'opération B<NS_GET_OWNER_UID> (disponible depuis Linux 4.11) peut être " |
| 284 |
"utilisée pour rechercher l'identifiant de l'utilisateur propriétaire d'un " |
| 285 |
"espace de noms utilisateur (c'est-à-dire l'identifiant de l'utilisateur réel " |
| 286 |
"du processus qui a créé l'espace de noms utilisateur). La forme de l'appel " |
| 287 |
"est :" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: mageia-cauldron |
| 291 |
#, no-wrap |
| 292 |
msgid "" |
| 293 |
"uid_t uid;\n" |
| 294 |
"ioctl(fd, NS_GET_OWNER_UID, &uid);\n" |
| 295 |
msgstr "" |
| 296 |
"uid_t uid;\n" |
| 297 |
"ioctl(fd, NS_GET_OWNER_UID, &uid);\n" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: mageia-cauldron |
| 301 |
msgid "I<fd> refers to a I</proc/>pidI</ns/user> file." |
| 302 |
msgstr "I<fd> renvoie à un fichier I</proc/>pidI</ns/user>." |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: mageia-cauldron |
| 306 |
msgid "" |
| 307 |
"The owner user ID is returned in the I<uid_t> pointed to by the third " |
| 308 |
"argument." |
| 309 |
msgstr "" |
| 310 |
"L'identifiant de l'utilisateur propriétaire est renvoyé dans l'I<uid_t> vers " |
| 311 |
"lequel pointe le troisième paramètre." |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: mageia-cauldron |
| 315 |
msgid "This operation can fail with the following error:" |
| 316 |
msgstr "Cette opération peut échouer avec l'erreur suivante :" |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: mageia-cauldron |
| 320 |
msgid "I<fd> does not refer to a user namespace." |
| 321 |
msgstr "I<fd> ne se rapporte pas à un espace de noms utilisateur." |
| 322 |
|
| 323 |
#. type: SH |
| 324 |
#: mageia-cauldron |
| 325 |
#, no-wrap |
| 326 |
msgid "ERRORS" |
| 327 |
msgstr "ERREURS" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: mageia-cauldron |
| 331 |
msgid "" |
| 332 |
"Any of the above B<ioctl>() operations can return the following errors:" |
| 333 |
msgstr "" |
| 334 |
"Chacune des opérations B<ioctl>() ci-dessus peut renvoyer les erreurs " |
| 335 |
"suivantes :" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: mageia-cauldron |
| 339 |
msgid "I<fd> does not refer to a I</proc/>pidI</ns/>* file." |
| 340 |
msgstr "I<fd> ne renvoie pas à un fichier I</proc/>pidI</ns/>*." |
| 341 |
|
| 342 |
#. type: SH |
| 343 |
#: mageia-cauldron |
| 344 |
#, no-wrap |
| 345 |
msgid "STANDARDS" |
| 346 |
msgstr "STANDARDS" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: mageia-cauldron |
| 350 |
msgid "Linux." |
| 351 |
msgstr "Linux." |
| 352 |
|
| 353 |
#. type: SH |
| 354 |
#: mageia-cauldron |
| 355 |
#, no-wrap |
| 356 |
msgid "EXAMPLES" |
| 357 |
msgstr "EXEMPLES" |
| 358 |
|
| 359 |
#. type: Plain text |
| 360 |
#: mageia-cauldron |
| 361 |
msgid "" |
| 362 |
"The example shown below uses the B<ioctl>(2) operations described above to " |
| 363 |
"perform simple discovery of namespace relationships. The following shell " |
| 364 |
"sessions show various examples of the use of this program." |
| 365 |
msgstr "" |
| 366 |
"L'exemple présenté ci-dessous utilise les opérations B<ioctl>(2) décrites ci-" |
| 367 |
"dessus pour effectuer une simple recherche de relations entre espaces de " |
| 368 |
"noms. Les sessions d'interpréteur de commandes suivantes montrent divers " |
| 369 |
"exemples de l'utilisation de ce programme." |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: mageia-cauldron |
| 373 |
msgid "" |
| 374 |
"Trying to get the parent of the initial user namespace fails, since it has " |
| 375 |
"no parent:" |
| 376 |
msgstr "" |
| 377 |
"L'essai pour obtenir le parent de l'espace de noms utilisateur initial " |
| 378 |
"échoue, car il n'a pas de parent :" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: mageia-cauldron |
| 382 |
#, no-wrap |
| 383 |
msgid "" |
| 384 |
"$ B<./ns_show /proc/self/ns/user p>\n" |
| 385 |
"The parent namespace is outside your namespace scope\n" |
| 386 |
msgstr "" |
| 387 |
"$ B<./ns_show /proc/self/ns/user p>\n" |
| 388 |
"L'espace de noms du parent dépasse la cible de votre espace utilisateur\n" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: mageia-cauldron |
| 392 |
msgid "" |
| 393 |
"Create a process running B<sleep>(1) that resides in new user and UTS " |
| 394 |
"namespaces, and show that the new UTS namespace is associated with the new " |
| 395 |
"user namespace:" |
| 396 |
msgstr "" |
| 397 |
"Créer un processus qui exécute B<sleep>(1) dans les nouveaux espaces de noms " |
| 398 |
"de l'utilisateur et UTS, et indiquer que le nouvel espace de noms UTS est " |
| 399 |
"associé au nouvel espace de noms de l'utilisateur :" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: mageia-cauldron |
| 403 |
#, no-wrap |
| 404 |
msgid "" |
| 405 |
"$ B<unshare -Uu sleep 1000 &>\n" |
| 406 |
"[1] 23235\n" |
| 407 |
"$ B<./ns_show /proc/23235/ns/uts u>\n" |
| 408 |
"Device/Inode of owning user namespace is: [0,3] / 4026532448\n" |
| 409 |
"$ B<readlink /proc/23235/ns/user>\n" |
| 410 |
"user:[4026532448]\n" |
| 411 |
msgstr "" |
| 412 |
"$ B<unshare -Uu sleep 1000 &>\n" |
| 413 |
"[1] 23235\n" |
| 414 |
"$ B<./ns_show /proc/23235/ns/uts u>\n" |
| 415 |
"Le périphérique/inœud de l'espace de noms de l'utilisateur propriétaire\n" |
| 416 |
"est : [0,3] / 4026532448\n" |
| 417 |
"$ B<readlink /proc/23235/ns/user>\n" |
| 418 |
"utilisateur :[4026532448]\n" |
| 419 |
|
| 420 |
#. type: Plain text |
| 421 |
#: mageia-cauldron |
| 422 |
msgid "" |
| 423 |
"Then show that the parent of the new user namespace in the preceding example " |
| 424 |
"is the initial user namespace:" |
| 425 |
msgstr "" |
| 426 |
"Puis indiquer que le parent du nouvel espace de noms utilisateur de " |
| 427 |
"l'exemple précédent est dans l'espace de noms de l'utilisateur initial :" |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: mageia-cauldron |
| 431 |
#, no-wrap |
| 432 |
msgid "" |
| 433 |
"$ B<readlink /proc/self/ns/user>\n" |
| 434 |
"user:[4026531837]\n" |
| 435 |
"$ B<./ns_show /proc/23235/ns/user p>\n" |
| 436 |
"Device/Inode of parent namespace is: [0,3] / 4026531837\n" |
| 437 |
msgstr "" |
| 438 |
"$ B<readlink /proc/self/ns/user>\n" |
| 439 |
"utilisateur:[4026531837]\n" |
| 440 |
"$ B<./ns_show /proc/23235/ns/user p>\n" |
| 441 |
"Le périphérique/inœud de l'espace de noms parent est : [0,3] / 4026531837\n" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: mageia-cauldron |
| 445 |
msgid "" |
| 446 |
"Start a shell in a new user namespace, and show that from within this shell, " |
| 447 |
"the parent user namespace can't be discovered. Similarly, the UTS namespace " |
| 448 |
"(which is associated with the initial user namespace) can't be discovered." |
| 449 |
msgstr "" |
| 450 |
"Démarrer un interpréteur de commandes dans un nouvel espace de noms " |
| 451 |
"utilisateur et indiquer que depuis cet interpréteur, l'espace de noms parent " |
| 452 |
"de l'utilisateur n'a pas pu être trouvé. De même, l'espace de nom UTS (qui " |
| 453 |
"est associé à l'espace de noms utilisateur initial) n'a pas pu être trouvé." |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: mageia-cauldron |
| 457 |
#, no-wrap |
| 458 |
msgid "" |
| 459 |
"$ B<PS1=\"sh2$ \" unshare -U bash>\n" |
| 460 |
"sh2$ B<./ns_show /proc/self/ns/user p>\n" |
| 461 |
"The parent namespace is outside your namespace scope\n" |
| 462 |
"sh2$ B<./ns_show /proc/self/ns/uts u>\n" |
| 463 |
"The owning user namespace is outside your namespace scope\n" |
| 464 |
msgstr "" |
| 465 |
"$ B<PS1=\"sh2$ \" unshare -U bash>\n" |
| 466 |
"sh2$ B<./ns_show /proc/self/ns/user p>\n" |
| 467 |
"L'espace de noms parent dépasse la cible de votre espace de noms\n" |
| 468 |
"sh2$ B<./ns_show /proc/self/ns/uts u>\n" |
| 469 |
"L'espace de noms de l'utilisateur propriétaire dépasse la cible de votre espace de noms\n" |
| 470 |
|
| 471 |
#. type: SS |
| 472 |
#: mageia-cauldron |
| 473 |
#, no-wrap |
| 474 |
msgid "Program source" |
| 475 |
msgstr "Source du programme" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: mageia-cauldron |
| 479 |
#, no-wrap |
| 480 |
msgid "" |
| 481 |
"/* ns_show.c\n" |
| 482 |
"\\&\n" |
| 483 |
" Licensed under the GNU General Public License v2 or later.\n" |
| 484 |
"*/\n" |
| 485 |
"#include E<lt>errno.hE<gt>\n" |
| 486 |
"#include E<lt>fcntl.hE<gt>\n" |
| 487 |
"#include E<lt>linux/nsfs.hE<gt>\n" |
| 488 |
"#include E<lt>stdint.hE<gt>\n" |
| 489 |
"#include E<lt>stdio.hE<gt>\n" |
| 490 |
"#include E<lt>stdlib.hE<gt>\n" |
| 491 |
"#include E<lt>string.hE<gt>\n" |
| 492 |
"#include E<lt>sys/ioctl.hE<gt>\n" |
| 493 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 494 |
"#include E<lt>sys/sysmacros.hE<gt>\n" |
| 495 |
"#include E<lt>unistd.hE<gt>\n" |
| 496 |
"\\&\n" |
| 497 |
"int\n" |
| 498 |
"main(int argc, char *argv[])\n" |
| 499 |
"{\n" |
| 500 |
" int fd, userns_fd, parent_fd;\n" |
| 501 |
" struct stat sb;\n" |
| 502 |
"\\&\n" |
| 503 |
" if (argc E<lt> 2) {\n" |
| 504 |
" fprintf(stderr, \"Usage: %s /proc/[pid]/ns/[file] [p|u]\\en\",\n" |
| 505 |
" argv[0]);\n" |
| 506 |
" fprintf(stderr, \"\\enDisplay the result of one or both \"\n" |
| 507 |
" \"of NS_GET_USERNS (u) or NS_GET_PARENT (p)\\en\"\n" |
| 508 |
" \"for the specified /proc/[pid]/ns/[file]. If neither \"\n" |
| 509 |
" \"\\[aq]p\\[aq] nor \\[aq]u\\[aq] is specified,\\en\"\n" |
| 510 |
" \"NS_GET_USERNS is the default.\\en\");\n" |
| 511 |
" exit(EXIT_FAILURE);\n" |
| 512 |
" }\n" |
| 513 |
"\\&\n" |
| 514 |
" /* Obtain a file descriptor for the \\[aq]ns\\[aq] file specified\n" |
| 515 |
" in argv[1]. */\n" |
| 516 |
"\\&\n" |
| 517 |
" fd = open(argv[1], O_RDONLY);\n" |
| 518 |
" if (fd == -1) {\n" |
| 519 |
" perror(\"open\");\n" |
| 520 |
" exit(EXIT_FAILURE);\n" |
| 521 |
" }\n" |
| 522 |
"\\&\n" |
| 523 |
" /* Obtain a file descriptor for the owning user namespace and\n" |
| 524 |
" then obtain and display the inode number of that namespace. */\n" |
| 525 |
"\\&\n" |
| 526 |
" if (argc E<lt> 3 || strchr(argv[2], \\[aq]u\\[aq])) {\n" |
| 527 |
" userns_fd = ioctl(fd, NS_GET_USERNS);\n" |
| 528 |
"\\&\n" |
| 529 |
" if (userns_fd == -1) {\n" |
| 530 |
" if (errno == EPERM)\n" |
| 531 |
" printf(\"The owning user namespace is outside \"\n" |
| 532 |
" \"your namespace scope\\en\");\n" |
| 533 |
" else\n" |
| 534 |
" perror(\"ioctl-NS_GET_USERNS\");\n" |
| 535 |
" exit(EXIT_FAILURE);\n" |
| 536 |
" }\n" |
| 537 |
"\\&\n" |
| 538 |
" if (fstat(userns_fd, &sb) == -1) {\n" |
| 539 |
" perror(\"fstat-userns\");\n" |
| 540 |
" exit(EXIT_FAILURE);\n" |
| 541 |
" }\n" |
| 542 |
" printf(\"Device/Inode of owning user namespace is: \"\n" |
| 543 |
" \"[%x,%x] / %ju\\en\",\n" |
| 544 |
" major(sb.st_dev),\n" |
| 545 |
" minor(sb.st_dev),\n" |
| 546 |
" (uintmax_t) sb.st_ino);\n" |
| 547 |
"\\&\n" |
| 548 |
" close(userns_fd);\n" |
| 549 |
" }\n" |
| 550 |
"\\&\n" |
| 551 |
" /* Obtain a file descriptor for the parent namespace and\n" |
| 552 |
" then obtain and display the inode number of that namespace. */\n" |
| 553 |
"\\&\n" |
| 554 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq])) {\n" |
| 555 |
" parent_fd = ioctl(fd, NS_GET_PARENT);\n" |
| 556 |
"\\&\n" |
| 557 |
" if (parent_fd == -1) {\n" |
| 558 |
" if (errno == EINVAL)\n" |
| 559 |
" printf(\"Can\\[aq] get parent namespace of a \"\n" |
| 560 |
" \"nonhierarchical namespace\\en\");\n" |
| 561 |
" else if (errno == EPERM)\n" |
| 562 |
" printf(\"The parent namespace is outside \"\n" |
| 563 |
" \"your namespace scope\\en\");\n" |
| 564 |
" else\n" |
| 565 |
" perror(\"ioctl-NS_GET_PARENT\");\n" |
| 566 |
" exit(EXIT_FAILURE);\n" |
| 567 |
" }\n" |
| 568 |
"\\&\n" |
| 569 |
" if (fstat(parent_fd, &sb) == -1) {\n" |
| 570 |
" perror(\"fstat-parentns\");\n" |
| 571 |
" exit(EXIT_FAILURE);\n" |
| 572 |
" }\n" |
| 573 |
" printf(\"Device/Inode of parent namespace is: [%x,%x] / %ju\\en\",\n" |
| 574 |
" major(sb.st_dev),\n" |
| 575 |
" minor(sb.st_dev),\n" |
| 576 |
" (uintmax_t) sb.st_ino);\n" |
| 577 |
"\\&\n" |
| 578 |
" close(parent_fd);\n" |
| 579 |
" }\n" |
| 580 |
"\\&\n" |
| 581 |
" exit(EXIT_SUCCESS);\n" |
| 582 |
"}\n" |
| 583 |
msgstr "" |
| 584 |
"/* ns_show.c\n" |
| 585 |
"\\&\n" |
| 586 |
" Sous licence GNU General Public v2 ou supérieure.\n" |
| 587 |
"*/\n" |
| 588 |
"#include E<lt>errno.hE<gt>\n" |
| 589 |
"#include E<lt>fcntl.hE<gt>\n" |
| 590 |
"#include E<lt>linux/nsfs.hE<gt>\n" |
| 591 |
"#include E<lt>stdint.hE<gt>\n" |
| 592 |
"#include E<lt>stdio.hE<gt>\n" |
| 593 |
"#include E<lt>stdlib.hE<gt>\n" |
| 594 |
"#include E<lt>string.hE<gt>\n" |
| 595 |
"#include E<lt>sys/ioctl.hE<gt>\n" |
| 596 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 597 |
"#include E<lt>sys/sysmacros.hE<gt>\n" |
| 598 |
"#include E<lt>unistd.hE<gt>\n" |
| 599 |
"\\&\n" |
| 600 |
"int\n" |
| 601 |
"main(int argc, char *argv[])\n" |
| 602 |
"{\n" |
| 603 |
" int fd, userns_fd, parent_fd;\n" |
| 604 |
" struct stat sb;\n" |
| 605 |
"\\&\n" |
| 606 |
" if (argc E<lt> 2) {\n" |
| 607 |
" fprintf(stderr, \"Usage: %s /proc/[pid]/ns/[file] [p|u]\\en\",\n" |
| 608 |
" argv[0]);\n" |
| 609 |
" fprintf(stderr, \"\\enAfficher le résultat d'un ou plusieurs des \"\n" |
| 610 |
" \"NS_GET_USERNS (u) ou NS_GET_PARENT (p)\\en\"\n" |
| 611 |
" \"pour le /proc/[pid]/ns/[file] indiqué. Si ni \"\n" |
| 612 |
" \"\\[aq]p\\[aq] ni \\[aq]u\\[aq] ne sont indiqués,\\en\"\n" |
| 613 |
" \"NS_GET_USERNS l'est par défaut.\\en\");\n" |
| 614 |
" exit(EXIT_FAILURE);\n" |
| 615 |
" }\n" |
| 616 |
"\\&\n" |
| 617 |
" /* Obtenir un descripteur de fichier pour le fichier \\[aq]ns\\[aq] indiqué\n" |
| 618 |
" dans argv[1]. */\n" |
| 619 |
" in argv[1]. */\n" |
| 620 |
"\\&\n" |
| 621 |
" fd = open(argv[1], O_RDONLY);\n" |
| 622 |
" if (fd == -1) {\n" |
| 623 |
" perror(\"open\");\n" |
| 624 |
" exit(EXIT_FAILURE);\n" |
| 625 |
" }\n" |
| 626 |
"\\&\n" |
| 627 |
" /* Obtenir un descripteur de fichier pour l'espace de noms de l'utilisateur\n" |
| 628 |
" propriétaire et obtenir et afficher le numéro d'inœud de cet espace de\n" |
| 629 |
" noms. */\n" |
| 630 |
"\\&\n" |
| 631 |
" if (argc E<lt> 3 || strchr(argv[2], \\[aq]u\\[aq])) {\n" |
| 632 |
" userns_fd = ioctl(fd, NS_GET_USERNS);\n" |
| 633 |
"\\&\n" |
| 634 |
" if (userns_fd == -1) {\n" |
| 635 |
" if (errno == EPERM)\n" |
| 636 |
" printf(\"L'espace de noms de l'utilisateur propriétaire dépasse \"\n" |
| 637 |
" \"la cible de votre espace de noms\\en\");\n" |
| 638 |
" else\n" |
| 639 |
" perror(\"ioctl-NS_GET_USERNS\");\n" |
| 640 |
" exit(EXIT_FAILURE);\n" |
| 641 |
" }\n" |
| 642 |
"\\&\n" |
| 643 |
" if (fstat(userns_fd, &sb) == -1) {\n" |
| 644 |
" perror(\"fstat-userns\");\n" |
| 645 |
" exit(EXIT_FAILURE);\n" |
| 646 |
" }\n" |
| 647 |
" printf(\"Le périphérique/inœud de l'espace de noms de l'utilisateur propriétaire est : \"\n" |
| 648 |
" \"[%x,%x] / %ju\\en\",\n" |
| 649 |
" major(sb.st_dev),\n" |
| 650 |
" minor(sb.st_dev),\n" |
| 651 |
" (uintmax_t) sb.st_ino);\n" |
| 652 |
"\\&\n" |
| 653 |
" close(userns_fd);\n" |
| 654 |
" }\n" |
| 655 |
"\\&\n" |
| 656 |
" /* Obtenir un descripteur de fichier pour l'espace de noms parent et\n" |
| 657 |
" obtenir et afficher le numéro d'inœud de cet espace de noms. */\n" |
| 658 |
"\\&\n" |
| 659 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq])) {\n" |
| 660 |
" parent_fd = ioctl(fd, NS_GET_PARENT);\n" |
| 661 |
"\\&\n" |
| 662 |
" if (parent_fd == -1) {\n" |
| 663 |
" if (errno == EINVAL)\n" |
| 664 |
" printf(\"Ne peut pas obtenir l'espace de noms parent d'un \"\n" |
| 665 |
" \"espace de noms non hiérarchique\\en\");\n" |
| 666 |
" else if (errno == EPERM)\n" |
| 667 |
" printf(\"L'espace de noms parent dépasse \"\n" |
| 668 |
" \"la cible de votre espace de noms\\en\");\n" |
| 669 |
" else\n" |
| 670 |
" perror(\"ioctl-NS_GET_PARENT\");\n" |
| 671 |
" exit(EXIT_FAILURE);\n" |
| 672 |
" }\n" |
| 673 |
"\\&\n" |
| 674 |
" if (fstat(parent_fd, &sb) == -1) {\n" |
| 675 |
" perror(\"fstat-parentns\");\n" |
| 676 |
" exit(EXIT_FAILURE);\n" |
| 677 |
" }\n" |
| 678 |
" printf(\"Le périphérique/inœud de l'espace de noms parent est : [%x,%x] / %ju\\en\",\n" |
| 679 |
" major(sb.st_dev),\n" |
| 680 |
" minor(sb.st_dev),\n" |
| 681 |
" (uintmax_t) sb.st_ino);\n" |
| 682 |
"\\&\n" |
| 683 |
" close(parent_fd);\n" |
| 684 |
" }\n" |
| 685 |
"\\&\n" |
| 686 |
" exit(EXIT_SUCCESS);\n" |
| 687 |
"}\n" |
| 688 |
|
| 689 |
#. SRC END |
| 690 |
#. type: SH |
| 691 |
#: mageia-cauldron |
| 692 |
#, no-wrap |
| 693 |
msgid "SEE ALSO" |
| 694 |
msgstr "VOIR AUSSI" |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: mageia-cauldron |
| 698 |
msgid "B<fstat>(2), B<ioctl>(2), B<proc>(5), B<namespaces>(7)" |
| 699 |
msgstr "B<fstat>(2), B<ioctl>(2), B<proc>(5), B<namespaces>(7)" |