# French translation of manpages
# This file is distributed under the same license as the manpages-l10n package.
# Copyright © of this file:
# Christophe Blaess , 1996-2003.
# Stéphan Rafin , 2002.
# Thierry Vignaud , 1999, 2002.
# François Micaux, 2002.
# Alain Portal , 2003-2008.
# Jean-Philippe Guérard , 2005-2006.
# Jean-Luc Coulon (f5ibh) , 2006-2007.
# Julien Cristau , 2006-2007.
# Thomas Huriaux , 2006-2008.
# Nicolas François , 2006-2008.
# Florentin Duneau , 2006-2010.
# Simon Paillard , 2006.
# Denis Barbier , 2006, 2010.
# David Prévot , 2010, 2012.
# Jean-Philippe MENGUAL , 2020-2024.
msgid ""
msgstr ""
"Project-Id-Version: manpages-l10n 4.22.0\n"
"POT-Creation-Date: 2026-06-05 06:29+0200\n"
"PO-Revision-Date: 2025-01-15 19:04+0100\n"
"Last-Translator: Jean-Philippe MENGUAL \n"
"Language-Team: French \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Lokalize 22.12.3\n"
#. type: TH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "keyctl"
msgstr "keyctl"
#. type: TH
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
#: opensuse-tumbleweed
#, no-wrap
msgid "2026-02-08"
msgstr "8 février 2026"
#. type: TH
#: archlinux debian-unstable
#, no-wrap
msgid "Linux man-pages 6.18"
msgstr "Pages du manuel de Linux 6.18"
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "NAME"
msgstr "NOM"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "keyctl - manipulate the kernel's key management facility"
msgstr "keyctl - Manipuler la gestion des clés du noyau"
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "LIBRARY"
msgstr "BIBLIOTHÈQUE"
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
msgid "Standard C library (I,\\ I<-lc>)"
msgstr "Bibliothèque C standard (I,\\ I<-lc>)"
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "SYNOPSIS"
msgstr "SYNOPSIS"
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid ""
"B<#include Elinux/keyctl.hE> /* Definition of B constants */\n"
"B<#include Esys/syscall.hE> /* Definition of B constants */\n"
"B<#include Eunistd.hE>\n"
msgstr ""
"B<#include Elinux/keyctl.hE> /* Définition des constantes B */\n"
"B<#include Esys/syscall.hE> /* Définition des constantes B */\n"
"B<#include Eunistd.hE>\n"
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "BIB<, ...);>\n"
msgstr "BIB<, ...);>\n"
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "DESCRIPTION"
msgstr "DESCRIPTION"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "B() allows user-space programs to perform key manipulation."
msgstr ""
"B() permet aux programmes de l'espace utilisateur de manipuler des "
"clés."
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The operation performed by B() is determined by the value of the "
"I argument. Each of these operations is wrapped by the I "
"library (provided by the I package) into individual functions (see "
"B(3)) to permit the compiler to check types."
msgstr ""
"L'opération qu'effectue B() dépend de la valeur du paramètre I. "
"Chacune de ces opérations fait partie de l'enveloppe de la bibliothèque "
"I (fournie par le paquet I) en tant que fonctions "
"individuelles (voir B(3)) pour permettre au compilateur de vérifier "
"les types."
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
msgid "The permitted values for I are:"
msgstr "Les valeurs autorisées pour I sont :"
#. type: TP
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: TQ
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B(2const)"
msgstr "B(2const)"
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "RETURN VALUE"
msgstr "VALEUR RENVOYÉE"
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
msgid "For a successful call, the return value depends on the operation."
msgstr "Pour qu'un appel réussisse, le code de retour dépend de l'opération."
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "On error, -1 is returned, and I is set to indicate the error."
msgstr ""
"En cas d'erreur, la valeur de retour est B<-1> et I est définie pour "
"préciser l'erreur."
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "ERRORS"
msgstr "ERREURS"
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "The requested operation wasn't permitted."
msgstr "L'opération demandée n'était pas autorisée."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The key quota for the caller's user would be exceeded by creating a key or "
"linking it to the keyring."
msgstr ""
"Le quota de clés de l'utilisateur appelant serait dépassé si la clé était "
"créée ou ajoutée au trousseau."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"size of the string (including the terminating null byte) specified in "
"I (the key type) or I (the key description) exceeded the limit "
"(32 bytes and 4096 bytes respectively)."
msgstr ""
"la taille de la chaîne (y compris l'octet NULL final) indiquée dans I "
"(le type de clé) ou dans I (la description de la clé) dépassait les "
"limites (respectivement 32 et 4096 octets)."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "An expired key was found or specified."
msgstr "Une clé expirée a été trouvée ou spécifiée."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "A rejected key was found or specified."
msgstr "Une clé rejetée a été trouvée ou spécifiée."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "A revoked key was found or specified."
msgstr "Une clé révoquée a été trouvée ou spécifiée."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "No matching key was found or an invalid key was specified."
msgstr ""
"Aucune clé correspondante n'a été trouvée, ou une clé non valable a été "
"spécifiée."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"One of kernel memory allocation routines failed during the execution of the "
"syscall."
msgstr ""
"Une des routines de l'allocation mémoire du noyau a échoué lors de "
"l'exécution de l'appel système."
#. type: TP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "B"
msgstr "B"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"A key of keyring type was expected but the ID of a key with a different type "
"was provided."
msgstr ""
"Une clé de type trousseau était attendue mais l'identifiant d'une clé de "
"type différent a été fourni."
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "VERSIONS"
msgstr "VERSIONS"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"A wrapper is provided in the I library. (The accompanying "
"package provides the Ikeyutils.hE> header file.) However, rather "
"than using this system call directly, you probably want to use the various "
"library functions mentioned in the descriptions of individual operations "
"above."
msgstr ""
"Une enveloppe est fournie dans la bibliothèque I. (Le paquet "
"accompagnant fournit le fichier d'en-tête Ikeyutils.hE>.) "
"Cependant, plutôt que d'utiliser cet appel système directement, vous voudrez "
"probablement utiliser les fonctions de la bibliothèque mentionnées dans les "
"descriptions des opérations individuelles ci-dessus."
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "STANDARDS"
msgstr "NORMES"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "Linux."
msgstr "Linux."
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "HISTORY"
msgstr "HISTORIQUE"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid "Linux 2.6.10."
msgstr "Linux 2.6.10."
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "EXAMPLES"
msgstr "EXEMPLES"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The program below provide subset of the functionality of the B(8) program provided by the I package. For informational "
"purposes, the program records various information in a log file."
msgstr ""
"Le programme ci-dessous fournit un sous-ensemble de fonctions du programme "
"B(8) fourni par le paquet I. Pour information, le "
"programme enregistre diverses informations dans un fichier journal."
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"As described in B(2), the B(8) program is invoked "
"with command-line arguments that describe a key that is to be instantiated. "
"The example program fetches and logs these arguments. The program assumes "
"authority to instantiate the requested key, and then instantiates that key."
msgstr ""
"Comme indiqué dans B(2), le programme B(8) est "
"appelé avec les paramètres de la ligne de commande qui décrivent une clé à "
"instancier. Le programme exemple récupère et enregistre ces arguments. Le "
"programme endosse l'autorité d'instancier la clé demandée, puis il instancie "
"cette clé."
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The following shell session demonstrates the use of this program. In the "
"session, we compile the program and then use it to temporarily replace the "
"standard B(8) program. (Note that temporarily disabling the "
"standard B(8) program may not be safe on some systems.) While "
"our example program is installed, we use the example program shown in "
"B(2) to request a key."
msgstr ""
"La session d'interpréteur suivante montre l'utilisation de ce programme. "
"Dans la session, nous compilons le programme, puis nous l'utilisons pour "
"remplacer temporairement le programme B(8) standard (remarquez "
"que la désactivation temporaire du programme standard B(8) peut "
"ne pas être sure sur certains systèmes). Tant que notre programme exemple "
"est installé, nous utilisons le programme exemple présent dans "
"B(2) pour demander une clé."
#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
#: opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid ""
#| "$ B\n"
#| "$ B\n"
#| "$ B\n"
#| "$ B<./t_request_key user mykey somepayloaddata>\n"
#| "Key ID is 20d035bf\n"
#| "$ B\n"
msgid ""
"$B< cc -o key_instantiate key_instantiate.c -lkeyutils>;\n"
"$B< sudo mv /sbin/request-key /sbin/request-key.backup>;\n"
"$B< sudo cp key_instantiate /sbin/request-key>;\n"
"$B< ./t_request_key user mykey somepayloaddata>;\n"
"Key ID is 20d035bf\n"
"$B< sudo mv /sbin/request-key.backup /sbin/request-key>;\n"
msgstr ""
"$ B\n"
"$ B\n"
"$ B\n"
"$ B<./t_request_key user mykey somepayloaddata>\n"
"L'identifiant de clé est 20d035bf\n"
"$ B\n"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"Looking at the log file created by this program, we can see the command-line "
"arguments supplied to our example program:"
msgstr ""
"En regardant le fichier journal créé par ce programme, on peut voir les "
"paramètres de la ligne de commande fournis à notre programme exemple :"
#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
#: opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid ""
#| "$ B\n"
#| "Time: Mon Nov 7 13:06:47 2016\n"
#| "\\&\n"
#| "Command line arguments:\n"
#| " argv[0]: /sbin/request-key\n"
#| " operation: create\n"
#| " key_to_instantiate: 20d035bf\n"
#| " UID: 1000\n"
#| " GID: 1000\n"
#| " thread_keyring: 0\n"
#| " process_keyring: 0\n"
#| " session_keyring: 256e6a6\n"
#| "\\&\n"
#| "Key description: user;1000;1000;3f010000;mykey\n"
#| "Auth key payload: somepayloaddata\n"
#| "Destination keyring: 256e6a6\n"
#| "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
msgid ""
"$B< cat /tmp/key_instantiate.log>;\n"
"Time: Mon Nov 7 13:06:47 2016\n"
"\\&\n"
"Command line arguments:\n"
" argv[0]: /sbin/request-key\n"
" operation: create\n"
" key_to_instantiate: 20d035bf\n"
" UID: 1000\n"
" GID: 1000\n"
" thread_keyring: 0\n"
" process_keyring: 0\n"
" session_keyring: 256e6a6\n"
"\\&\n"
"Key description: user;1000;1000;3f010000;mykey\n"
"Auth key payload: somepayloaddata\n"
"Destination keyring: 256e6a6\n"
"Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
msgstr ""
"$ B\n"
"Time: Mon Nov 7 13:06:47 2016\n"
"\\&\n"
"Command line arguments:\n"
" argv[0]: /sbin/request-key\n"
" operation: create\n"
" key_to_instantiate: 20d035bf\n"
" UID: 1000\n"
" GID: 1000\n"
" thread_keyring: 0\n"
" process_keyring: 0\n"
" session_keyring: 256e6a6\n"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The last few lines of the above output show that the example program was "
"able to fetch:"
msgstr ""
"Les dernières lignes de la sortie ci-dessus montrent que le programme "
"exemple a pu récupérer :"
#. type: IP
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "\\[bu]"
msgstr "-"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"the description of the key to be instantiated, which included the name of "
"the key (I);"
msgstr ""
"la description de la clé à instanciée, qui incluait le nom de la clé "
"(I) ;"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"the payload of the authorization key, which consisted of the data "
"(I) passed to B(2);"
msgstr ""
"la charge utile de la clé d'autorisation, qui consistait dans des données "
"(I) passées à B(2) ;"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"the destination keyring that was specified in the call to B(2); "
"and"
msgstr "le trousseau de destination indiqué dans l'appel à B(2) ;"
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"the description of the authorization key, where we can see that the name of "
"the authorization key matches the ID of the key that is to be instantiated "
"(I<20d035bf>)."
msgstr ""
"la description de la clé d'autorisation où on peut voir que le nom de la clé "
"correspond à l'identifiant de celle à instancier (I<20d035bf>)."
#. type: Plain text
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"The example program in B(2) specified the destination keyring "
"as B. By examining the contents of I, "
"we can see that this was translated to the ID of the destination keyring "
"(I<0256e6a6>) shown in the log output above; we can also see the newly "
"created key with the name I and ID I<20d035bf>."
msgstr ""
"Le programme exemple dans B(2) indiquait le trousseau de "
"destination en tant que B. En examinant le contenu "
"de I, on peut voir que cela a été transcrit dans l'identifiant "
"du trousseau de destination (I<0256e6a6>) affiché dans le fichier journal ci-"
"dessus ; on peut aussi voir la clé nouvellement créée dont le nom est "
"I et l'identifiant est I<20d035bf>."
#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
#: opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid ""
#| "$ B\n"
#| "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
#| "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
msgid ""
"$B< cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>;\n"
"0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
"20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
msgstr ""
"$ B\n"
"0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
"20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
#. type: SS
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "Program source"
msgstr "Source du programme"
#. type: Plain text
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
#: opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid ""
#| "/* key_instantiate.c */\n"
#| "\\&\n"
#| "#include Eerrno.hE\n"
#| "#include Ekeyutils.hE\n"
#| "#include Estdint.hE\n"
#| "#include Estdio.hE\n"
#| "#include Estdlib.hE\n"
#| "#include Estring.hE\n"
#| "#include Esys/types.hE\n"
#| "#include Etime.hE\n"
#| "\\&\n"
#| "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
#| "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
#| "#endif\n"
#| "\\&\n"
#| "int\n"
#| "main(int argc, char *argv[])\n"
#| "{\n"
#| " int akp_size; /* Size of auth_key_payload */\n"
#| " int auth_key;\n"
#| " char dbuf[256];\n"
#| " char auth_key_payload[256];\n"
#| " char *operation;\n"
#| " FILE *fp;\n"
#| " gid_t gid;\n"
#| " uid_t uid;\n"
#| " time_t t;\n"
#| " key_serial_t key_to_instantiate, dest_keyring;\n"
#| " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
#| "\\&\n"
#| " if (argc != 8) {\n"
#| " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
#| " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
#| " if (fp == NULL)\n"
#| " exit(EXIT_FAILURE);\n"
#| "\\&\n"
#| " setbuf(fp, NULL);\n"
#| "\\&\n"
#| " t = time(NULL);\n"
#| " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
#| "\\&\n"
#| " /*\n"
#| " * The kernel passes a fixed set of arguments to the program\n"
#| " * that it execs; fetch them.\n"
#| " */\n"
#| " operation = argv[1];\n"
#| " key_to_instantiate = atoi(argv[2]);\n"
#| " uid = atoi(argv[3]);\n"
#| " gid = atoi(argv[4]);\n"
#| " thread_keyring = atoi(argv[5]);\n"
#| " process_keyring = atoi(argv[6]);\n"
#| " session_keyring = atoi(argv[7]);\n"
#| "\\&\n"
#| " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
#| " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
#| " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
#| " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
#| " (uintmax_t) key_to_instantiate);\n"
#| " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
#| " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
#| " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
#| " (uintmax_t) thread_keyring);\n"
#| " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
#| " (uintmax_t) process_keyring);\n"
#| " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
#| " (uintmax_t) session_keyring);\n"
#| " fprintf(fp, \"\\[rs]n\");\n"
#| "\\&\n"
#| " /*\n"
#| " * Assume the authority to instantiate the key named in argv[2].\n"
#| " */\n"
#| " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
#| " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
#| " strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " /*\n"
#| " * Fetch the description of the key that is to be instantiated.\n"
#| " */\n"
#| " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
#| " dbuf, sizeof(dbuf)) == -1) {\n"
#| " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
#| "\\&\n"
#| " /*\n"
#| " * Fetch the payload of the authorization key, which is\n"
#| " * actually the callout data given to request_key().\n"
#| " */\n"
#| " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
#| " auth_key_payload, sizeof(auth_key_payload));\n"
#| " if (akp_size == -1) {\n"
#| " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
#| " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
#| "\\&\n"
#| " /*\n"
#| " * For interest, get the ID of the authorization key and\n"
#| " * display it.\n"
#| " */\n"
#| " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
#| " KEY_SPEC_REQKEY_AUTH_KEY);\n"
#| " if (auth_key == -1) {\n"
#| " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
#| " strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
#| "\\&\n"
#| " /*\n"
#| " * Fetch key ID for the request_key(2) destination keyring.\n"
#| " */\n"
#| " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
#| " KEY_SPEC_REQUESTOR_KEYRING);\n"
#| " if (dest_keyring == -1) {\n"
#| " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
#| " strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
#| "\\&\n"
#| " /*\n"
#| " * Fetch the description of the authorization key. This\n"
#| " * allows us to see the key type, UID, GID, permissions,\n"
#| " * and description (name) of the key. Among other things,\n"
#| " * we will see that the name of the key is a hexadecimal\n"
#| " * string representing the ID of the key to be instantiated.\n"
#| " */\n"
#| " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
#| " dbuf, sizeof(dbuf)) == -1)\n"
#| " {\n"
#| " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
#| "\\&\n"
#| " /*\n"
#| " * Instantiate the key using the callout data that was supplied\n"
#| " * in the payload of the authorization key.\n"
#| " */\n"
#| " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
#| " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
#| " {\n"
#| " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
#| " strerror(errno));\n"
#| " exit(EXIT_FAILURE);\n"
#| " }\n"
#| "\\&\n"
#| " exit(EXIT_SUCCESS);\n"
#| "}\n"
msgid ""
"/* key_instantiate.c */\n"
"\\&\n"
"#include Eerrno.hE\n"
"#include Ekeyutils.hE\n"
"#include Estdint.hE\n"
"#include Estdio.hE\n"
"#include Estdlib.hE\n"
"#include Estring.hE\n"
"#include Esys/types.hE\n"
"#include Etime.hE\n"
"\\&\n"
"#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
"#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
"#endif\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
" int akp_size; /* Size of auth_key_payload */\n"
" int auth_key;\n"
" char dbuf[256];\n"
" char auth_key_payload[256];\n"
" char *operation;\n"
" FILE *fp;\n"
" gid_t gid;\n"
" uid_t uid;\n"
" time_t t;\n"
" key_serial_t key_to_instantiate, dest_keyring;\n"
" key_serial_t thread_keyring, process_keyring, session_keyring;\n"
"\\&\n"
" if (argc != 8) {\n"
" fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
" \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
" if (fp == NULL)\n"
" exit(EXIT_FAILURE);\n"
"\\&\n"
" setbuf(fp, NULL);\n"
"\\&\n"
" t = time(NULL);\n"
" fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
"\\&\n"
" /*\n"
" * The kernel passes a fixed set of arguments to the program\n"
" * that it execs; fetch them.\n"
" */\n"
" operation = argv[1];\n"
" key_to_instantiate = atoi(argv[2]);\n"
" uid = atoi(argv[3]);\n"
" gid = atoi(argv[4]);\n"
" thread_keyring = atoi(argv[5]);\n"
" process_keyring = atoi(argv[6]);\n"
" session_keyring = atoi(argv[7]);\n"
"\\&\n"
" fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
" fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
" fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
" fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
" (uintmax_t) key_to_instantiate);\n"
" fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
" fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
" fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) thread_keyring);\n"
" fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) process_keyring);\n"
" fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) session_keyring);\n"
" fprintf(fp, \"\\[rs]n\");\n"
"\\&\n"
" /*\n"
" * Assume the authority to instantiate the key named in argv[2].\n"
" */\n"
" if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
" fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" /*\n"
" * Fetch the description of the key that is to be instantiated.\n"
" */\n"
" if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
" dbuf, sizeof(dbuf)) == -1) {\n"
" fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
"\\&\n"
" /*\n"
" * Fetch the payload of the authorization key, which is\n"
" * actually the callout data given to request_key().\n"
" */\n"
" akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
" auth_key_payload, sizeof(auth_key_payload));\n"
" if (akp_size == -1) {\n"
" fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
" fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
"\\&\n"
" /*\n"
" * For interest, get the ID of the authorization key and\n"
" * display it.\n"
" */\n"
" auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
" KEY_SPEC_REQKEY_AUTH_KEY);\n"
" if (auth_key == -1) {\n"
" fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
"\\&\n"
" /*\n"
" * Fetch key ID for the request_key(2) destination keyring.\n"
" */\n"
" dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
" KEY_SPEC_REQUESTOR_KEYRING);\n"
" if (dest_keyring == -1) {\n"
" fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
"\\&\n"
" /*\n"
" * Fetch the description of the authorization key. This\n"
" * allows us to see the key type, UID, GID, permissions,\n"
" * and description (name) of the key. Among other things,\n"
" * we will see that the name of the key is a hexadecimal\n"
" * string representing the ID of the key to be instantiated.\n"
" */\n"
" if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
" dbuf, sizeof(dbuf)) == -1)\n"
" {\n"
" fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
"\\&\n"
" /*\n"
" * Instantiate the key using the callout data that was supplied\n"
" * in the payload of the authorization key.\n"
" */\n"
" if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
" auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
" {\n"
" fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""
"/* key_instantiate.c */\n"
"\\&\n"
"#include Eerrno.hE\n"
"#include Ekeyutils.hE\n"
"#include Estdint.hE\n"
"#include Estdio.hE\n"
"#include Estdlib.hE\n"
"#include Estring.hE\n"
"#include Esys/types.hE\n"
"#include Etime.hE\n"
"\\&\n"
"#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
"#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
"#endif\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
" int akp_size; /* Taille de auth_key_payload */\n"
" int auth_key;\n"
" char dbuf[256];\n"
" char auth_key_payload[256];\n"
" char *operation;\n"
" FILE *fp;\n"
" gid_t gid;\n"
" uid_t uid;\n"
" time_t t;\n"
" key_serial_t key_to_instantiate, dest_keyring;\n"
" key_serial_t thread_keyring, process_keyring, session_keyring;\n"
"\\&\n"
" if (argc != 8) {\n"
" fprintf(stderr, \"Usage : %s op key uid gid thread_keyring \"\n"
" \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
" if (fp == NULL)\n"
" exit(EXIT_FAILURE);\n"
"\\&\n"
" setbuf(fp, NULL);\n"
"\\&\n"
" t = time(NULL);\n"
" fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
"\\&\n"
" /*\n"
" * Le noyau passe un ensemble fixe de paramètres au programme\n"
" * qu'il exécute ; les récupérer.\n"
" */\n"
" operation = argv[1];\n"
" key_to_instantiate = atoi(argv[2]);\n"
" uid = atoi(argv[3]);\n"
" gid = atoi(argv[4]);\n"
" thread_keyring = atoi(argv[5]);\n"
" process_keyring = atoi(argv[6]);\n"
" session_keyring = atoi(argv[7]);\n"
"\\&\n"
" fprintf(fp, \"Paramètres de la ligne de commande :\\[rs]n\");\n"
" fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
" fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
" fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
" (uintmax_t) key_to_instantiate);\n"
" fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
" fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
" fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) thread_keyring);\n"
" fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) process_keyring);\n"
" fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
" (uintmax_t) session_keyring);\n"
" fprintf(fp, \"\\[rs]n\");\n"
"\\&\n"
" /*\n"
" * Assumer l'autorité pour instancier la clé nommée dans argv[2].\n"
" */\n"
" if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
" fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY a échoué : %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" /*\n"
" * Récupérer la description de la clé à instancier.\n"
" */\n"
" if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
" dbuf, sizeof(dbuf)) == -1) {\n"
" fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Description de clé : %s\\[rs]n\", dbuf);\n"
"\\&\n"
" /*\n"
" * Récupérer la charge utile de la clé d'autorisation, qui est en fait\n"
" * les données d'appel (callout) données à request_key().\n"
" */\n"
" akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
" auth_key_payload, sizeof(auth_key_payload));\n"
" if (akp_size == -1) {\n"
" fprintf(fp, \"KEYCTL_READ a échoué : %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" auth_key_payload[akp_size] = \\[aq]\\e0\\[aq];\n"
" fprintf(fp, \"Charge utile de la clé d'auth : %s\\[rs]n\", auth_key_payload);\n"
"\\&\n"
" /*\n"
" * Par intérêt, récupérer l'identifiant de la clé d'autorisation et\n"
" * l'afficher.\n"
" */\n"
" auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
" KEY_SPEC_REQKEY_AUTH_KEY);\n"
" if (auth_key == -1) {\n"
" fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Identifiant de la clé d'auth : %jx\\[rs]n\", (uintmax_t) auth_key);\n"
"\\&\n"
" /*\n"
" * Récupérer l'identifiant de clé pour le trousseau de destination \n"
" * request_key(2).\n"
" */\n"
" dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
" KEY_SPEC_REQUESTOR_KEYRING);\n"
" if (dest_keyring == -1) {\n"
" fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Trousseau de destination : %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
"\\&\n"
" /*\n"
" * Récupérer la description de la clé d'autorisation. Cela nous permet\n"
" * de voir le type de clé, l'identifiant utilisateur et de groupe, les\n"
" * droits et la description (nom) de la clé. Entre autres choses,\n"
" * on verra que le nom de la clé est une chaîne hexadécimale représentant\n"
" * l'identifiant de la clé à instancier.\n"
" */\n"
" if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
" dbuf, sizeof(dbuf)) == -1)\n"
" {\n"
" fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" fprintf(fp, \"Description de la clé d'auth : %s\\[rs]n\", dbuf);\n"
"\\&\n"
" /*\n"
" * Instancier la clé en utilisant les données de l'appel (callout)\n"
" * fournies dans la charge utile de la clé d'autorisation.\n"
" */\n"
" if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
" auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
" {\n"
" fprintf(fp, \"KEYCTL_INSTANTIATE a échoué : %s\\[rs]n\",\n"
" strerror(errno));\n"
" exit(EXIT_FAILURE);\n"
" }\n"
"\\&\n"
" exit(EXIT_SUCCESS);\n"
"}\n"
#. SRC END
#. type: SH
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
msgstr "VOIR AUSSI"
#. .BR find_key_by_type_and_name (3)
#. There is a man page, but this function seems not to exist
#. type: Plain text
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
#: opensuse-leap-16-1 opensuse-tumbleweed
msgid ""
"B(1), B(2), B(2), B(3), "
"B(3), B(3), "
"B(7), B(7), B(7), B(7), "
"B(7), B(7), B(7), "
"B(7), B(7), B(7), B(7), B(8)"
msgstr ""
"B(1), B(2), B(2), B(3), "
"B(3), B(3), "
"B(7), B(7), B(7), B(7), "
"B(7), B(7), B(7), "
"B(7), B(7), B(7), B(7), B