Debian Codegraph @

po/fr/man2/keyctl.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012.
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: 2026-06-05 06:29+0200\n"
23 "PO-Revision-Date: 2025-01-15 19:04+0100\n"
24 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "keyctl"
38 msgstr "keyctl"
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 "keyctl - manipulate the kernel's key management facility"
64 msgstr "keyctl - Manipuler la gestion des clés du noyau"
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 "LIBRARY"
71 msgstr "BIBLIOTHÈQUE"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "SYNOPSIS"
85
86 #. type: Plain text
87 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
88 #: opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#include E<lt>linux/keyctl.hE<gt>> /* Definition of B<KEY*> constants */\n"
92 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
93 "B<#include E<lt>unistd.hE<gt>>\n"
94 msgstr ""
95 "B<#include E<lt>linux/keyctl.hE<gt>> /* Définition des constantes B<KEY*> */\n"
96 "B<#include E<lt>sys/syscall.hE<gt>> /* Définition des constantes B<SYS_*> */\n"
97 "B<#include E<lt>unistd.hE<gt>>\n"
98
99 #. type: Plain text
100 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
101 #: opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "B<long syscall(SYS_keyctl, int >I<op>B<, ...);>\n"
104 msgstr "B<long syscall(SYS_keyctl, int >I<op>B<, ...);>\n"
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr "DESCRIPTION"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid "B<keyctl>() allows user-space programs to perform key manipulation."
117 msgstr ""
118 "B<keyctl>() permet aux programmes de l'espace utilisateur de manipuler des "
119 "clés."
120
121 #. type: Plain text
122 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
123 #: opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "The operation performed by B<keyctl>() is determined by the value of the "
126 "I<op> argument. Each of these operations is wrapped by the I<libkeyutils> "
127 "library (provided by the I<keyutils> package) into individual functions (see "
128 "B<keyctl>(3)) to permit the compiler to check types."
129 msgstr ""
130 "L'opération qu'effectue B<keyctl>() dépend de la valeur du paramètre I<op>. "
131 "Chacune de ces opérations fait partie de l'enveloppe de la bibliothèque "
132 "I<libkeyutils> (fournie par le paquet I<keyutils>) en tant que fonctions "
133 "individuelles (voir B<keyctl>(3)) pour permettre au compilateur de vérifier "
134 "les types."
135
136 #. type: Plain text
137 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
138 #: opensuse-leap-16-1 opensuse-tumbleweed
139 msgid "The permitted values for I<op> are:"
140 msgstr "Les valeurs autorisées pour I<op> sont :"
141
142 #. type: TP
143 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
144 #: opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "B<KEYCTL_GET_KEYRING_ID>(2const)"
147 msgstr "B<KEYCTL_GET_KEYRING_ID>(2const)"
148
149 #. type: TQ
150 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
151 #: opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>(2const)"
154 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING>(2const)"
155
156 #. type: TQ
157 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
158 #: opensuse-leap-16-1 opensuse-tumbleweed
159 #, no-wrap
160 msgid "B<KEYCTL_UPDATE>(2const)"
161 msgstr "B<KEYCTL_UPDATE>(2const)"
162
163 #. type: TQ
164 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
165 #: opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "B<KEYCTL_REVOKE>(2const)"
168 msgstr "B<KEYCTL_REVOKE>(2const)"
169
170 #. type: TQ
171 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
172 #: opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "B<KEYCTL_CHOWN>(2const)"
175 msgstr "B<KEYCTL_CHOWN>(2const)"
176
177 #. type: TQ
178 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
179 #: opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<KEYCTL_SETPERM>(2const)"
182 msgstr "B<KEYCTL_SETPERM>(2const)"
183
184 #. type: TQ
185 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
186 #: opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "B<KEYCTL_DESCRIBE>(2const)"
189 msgstr "B<KEYCTL_DESCRIBE>(2const)"
190
191 #. type: TQ
192 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
193 #: opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid "B<KEYCTL_CLEAR>(2const)"
196 msgstr "B<KEYCTL_CLEAR>(2const)"
197
198 #. type: TQ
199 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
200 #: opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "B<KEYCTL_LINK>(2const)"
203 msgstr "B<KEYCTL_LINK>(2const)"
204
205 #. type: TQ
206 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
207 #: opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "B<KEYCTL_UNLINK>(2const)"
210 msgstr "B<KEYCTL_UNLINK>(2const)"
211
212 #. type: TQ
213 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
214 #: opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "B<KEYCTL_SEARCH>(2const)"
217 msgstr "B<KEYCTL_SEARCH>(2const)"
218
219 #. type: TQ
220 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
221 #: opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "B<KEYCTL_READ>(2const)"
224 msgstr "B<KEYCTL_READ>(2const)"
225
226 #. type: TQ
227 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
228 #: opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "B<KEYCTL_INSTANTIATE>(2const)"
231 msgstr "B<KEYCTL_INSTANTIATE>(2const)"
232
233 #. type: TQ
234 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
235 #: opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "B<KEYCTL_INSTANTIATE_IOV>(2const)"
238 msgstr "B<KEYCTL_INSTANTIATE_IOV>(2const)"
239
240 #. type: TQ
241 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
242 #: opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "B<KEYCTL_NEGATE>(2const)"
245 msgstr "B<KEYCTL_NEGATE>(2const)"
246
247 #. type: TQ
248 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
249 #: opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<KEYCTL_REJECT>(2const)"
252 msgstr "B<KEYCTL_REJECT>(2const)"
253
254 #. type: TQ
255 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
256 #: opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<KEYCTL_SET_REQKEY_KEYRING>(2const)"
259 msgstr "B<KEYCTL_SET_REQKEY_KEYRING>(2const)"
260
261 #. type: TQ
262 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
263 #: opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<KEYCTL_SET_TIMEOUT>(2const)"
266 msgstr "B<KEYCTL_SET_TIMEOUT>(2const)"
267
268 #. type: TQ
269 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
270 #: opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "B<KEYCTL_ASSUME_AUTHORITY>(2const)"
273 msgstr "B<KEYCTL_ASSUME_AUTHORITY>(2const)"
274
275 #. type: TQ
276 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
277 #: opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<KEYCTL_GET_SECURITY>(2const)"
280 msgstr "B<KEYCTL_GET_SECURITY>(2const)"
281
282 #. type: TQ
283 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
284 #: opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "B<KEYCTL_SESSION_TO_PARENT>(2const)"
287 msgstr "B<KEYCTL_SESSION_TO_PARENT>(2const)"
288
289 #. type: TQ
290 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
291 #: opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<KEYCTL_INVALIDATE>(2const)"
294 msgstr "B<KEYCTL_INVALIDATE>(2const)"
295
296 #. type: TQ
297 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
298 #: opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<KEYCTL_GET_PERSISTENT>(2const)"
301 msgstr "B<KEYCTL_GET_PERSISTENT>(2const)"
302
303 #. type: TQ
304 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
305 #: opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<KEYCTL_DH_COMPUTE>(2const)"
308 msgstr "B<KEYCTL_DH_COMPUTE>(2const)"
309
310 #. type: TQ
311 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
312 #: opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<KEYCTL_RESTRICT_KEYRING>(2const)"
315 msgstr "B<KEYCTL_RESTRICT_KEYRING>(2const)"
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "RETURN VALUE"
322 msgstr "VALEUR RENVOYÉE"
323
324 #. type: Plain text
325 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
326 #: opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "For a successful call, the return value depends on the operation."
328 msgstr "Pour qu'un appel réussisse, le code de retour dépend de l'opération."
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
334 msgstr ""
335 "En cas d'erreur, la valeur de retour est B<-1> et I<errno> est définie pour "
336 "préciser l'erreur."
337
338 #. type: SH
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "ERRORS"
343 msgstr "ERREURS"
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<EACCES>"
350 msgstr "B<EACCES>"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid "The requested operation wasn't permitted."
356 msgstr "L'opération demandée n'était pas autorisée."
357
358 #. type: TP
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<EDQUOT>"
363 msgstr "B<EDQUOT>"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "The key quota for the caller's user would be exceeded by creating a key or "
370 "linking it to the keyring."
371 msgstr ""
372 "Le quota de clés de l'utilisateur appelant serait dépassé si la clé était "
373 "créée ou ajoutée au trousseau."
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "B<EINVAL>"
380 msgstr "B<EINVAL>"
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 msgid ""
386 "size of the string (including the terminating null byte) specified in "
387 "I<arg3> (the key type) or I<arg4> (the key description) exceeded the limit "
388 "(32 bytes and 4096 bytes respectively)."
389 msgstr ""
390 "la taille de la chaîne (y compris l'octet NULL final) indiquée dans I<arg3> "
391 "(le type de clé) ou dans I<arg4> (la description de la clé) dépassait les "
392 "limites (respectivement 32 et 4096 octets)."
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<EKEYEXPIRED>"
399 msgstr "B<EKEYEXPIRED>"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid "An expired key was found or specified."
405 msgstr "Une clé expirée a été trouvée ou spécifiée."
406
407 #. type: TP
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "B<EKEYREJECTED>"
412 msgstr "B<EKEYREJECTED>"
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid "A rejected key was found or specified."
418 msgstr "Une clé rejetée a été trouvée ou spécifiée."
419
420 #. type: TP
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "B<EKEYREVOKED>"
425 msgstr "B<EKEYREVOKED>"
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid "A revoked key was found or specified."
431 msgstr "Une clé révoquée a été trouvée ou spécifiée."
432
433 #. type: TP
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "B<ENOKEY>"
438 msgstr "B<ENOKEY>"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid "No matching key was found or an invalid key was specified."
444 msgstr ""
445 "Aucune clé correspondante n'a été trouvée, ou une clé non valable a été "
446 "spécifiée."
447
448 #. type: TP
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid "B<ENOMEM>"
453 msgstr "B<ENOMEM>"
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid ""
459 "One of kernel memory allocation routines failed during the execution of the "
460 "syscall."
461 msgstr ""
462 "Une des routines de l'allocation mémoire du noyau a échoué lors de "
463 "l'exécution de l'appel système."
464
465 #. type: TP
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "B<ENOTDIR>"
470 msgstr "B<ENOTDIR>"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "A key of keyring type was expected but the ID of a key with a different type "
477 "was provided."
478 msgstr ""
479 "Une clé de type trousseau était attendue mais l'identifiant d'une clé de "
480 "type différent a été fourni."
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "VERSIONS"
487 msgstr "VERSIONS"
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "A wrapper is provided in the I<libkeyutils> library. (The accompanying "
494 "package provides the I<E<lt>keyutils.hE<gt>> header file.) However, rather "
495 "than using this system call directly, you probably want to use the various "
496 "library functions mentioned in the descriptions of individual operations "
497 "above."
498 msgstr ""
499 "Une enveloppe est fournie dans la bibliothèque I<libkeyutils>. (Le paquet "
500 "accompagnant fournit le fichier d'en-tête I<E<lt>keyutils.hE<gt>>.) "
501 "Cependant, plutôt que d'utiliser cet appel système directement, vous voudrez "
502 "probablement utiliser les fonctions de la bibliothèque mentionnées dans les "
503 "descriptions des opérations individuelles ci-dessus."
504
505 #. type: SH
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "STANDARDS"
510 msgstr "NORMES"
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "Linux."
516 msgstr "Linux."
517
518 #. type: SH
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "HISTORY"
523 msgstr "HISTORIQUE"
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid "Linux 2.6.10."
529 msgstr "Linux 2.6.10."
530
531 #. type: SH
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "EXAMPLES"
536 msgstr "EXEMPLES"
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "The program below provide subset of the functionality of the B<request-"
543 "key>(8) program provided by the I<keyutils> package. For informational "
544 "purposes, the program records various information in a log file."
545 msgstr ""
546 "Le programme ci-dessous fournit un sous-ensemble de fonctions du programme "
547 "B<request-key>(8) fourni par le paquet I<keyutils>. Pour information, le "
548 "programme enregistre diverses informations dans un fichier journal."
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "As described in B<request_key>(2), the B<request-key>(8) program is invoked "
555 "with command-line arguments that describe a key that is to be instantiated. "
556 "The example program fetches and logs these arguments. The program assumes "
557 "authority to instantiate the requested key, and then instantiates that key."
558 msgstr ""
559 "Comme indiqué dans B<request_key>(2), le programme B<request-key>(8) est "
560 "appelé avec les paramètres de la ligne de commande qui décrivent une clé à "
561 "instancier. Le programme exemple récupère et enregistre ces arguments. Le "
562 "programme endosse l'autorité d'instancier la clé demandée, puis il instancie "
563 "cette clé."
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 msgid ""
569 "The following shell session demonstrates the use of this program. In the "
570 "session, we compile the program and then use it to temporarily replace the "
571 "standard B<request-key>(8) program. (Note that temporarily disabling the "
572 "standard B<request-key>(8) program may not be safe on some systems.) While "
573 "our example program is installed, we use the example program shown in "
574 "B<request_key>(2) to request a key."
575 msgstr ""
576 "La session d'interpréteur suivante montre l'utilisation de ce programme. "
577 "Dans la session, nous compilons le programme, puis nous l'utilisons pour "
578 "remplacer temporairement le programme B<request-key>(8) standard (remarquez "
579 "que la désactivation temporaire du programme standard B<request-key>(8) peut "
580 "ne pas être sure sur certains systèmes). Tant que notre programme exemple "
581 "est installé, nous utilisons le programme exemple présent dans "
582 "B<request_key>(2) pour demander une clé."
583
584 #. type: Plain text
585 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
586 #: opensuse-tumbleweed
587 #, fuzzy, no-wrap
588 #| msgid ""
589 #| "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
590 #| "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
591 #| "$ B<sudo cp key_instantiate /sbin/request-key>\n"
592 #| "$ B<./t_request_key user mykey somepayloaddata>\n"
593 #| "Key ID is 20d035bf\n"
594 #| "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
595 msgid ""
596 "$B< cc -o key_instantiate key_instantiate.c -lkeyutils>;\n"
597 "$B< sudo mv /sbin/request-key /sbin/request-key.backup>;\n"
598 "$B< sudo cp key_instantiate /sbin/request-key>;\n"
599 "$B< ./t_request_key user mykey somepayloaddata>;\n"
600 "Key ID is 20d035bf\n"
601 "$B< sudo mv /sbin/request-key.backup /sbin/request-key>;\n"
602 msgstr ""
603 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
604 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
605 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
606 "$ B<./t_request_key user mykey somepayloaddata>\n"
607 "L'identifiant de clé est 20d035bf\n"
608 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "Looking at the log file created by this program, we can see the command-line "
615 "arguments supplied to our example program:"
616 msgstr ""
617 "En regardant le fichier journal créé par ce programme, on peut voir les "
618 "paramètres de la ligne de commande fournis à notre programme exemple :"
619
620 #. type: Plain text
621 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
622 #: opensuse-tumbleweed
623 #, fuzzy, no-wrap
624 #| msgid ""
625 #| "$ B<cat /tmp/key_instantiate.log>\n"
626 #| "Time: Mon Nov 7 13:06:47 2016\n"
627 #| "\\&\n"
628 #| "Command line arguments:\n"
629 #| " argv[0]: /sbin/request-key\n"
630 #| " operation: create\n"
631 #| " key_to_instantiate: 20d035bf\n"
632 #| " UID: 1000\n"
633 #| " GID: 1000\n"
634 #| " thread_keyring: 0\n"
635 #| " process_keyring: 0\n"
636 #| " session_keyring: 256e6a6\n"
637 #| "\\&\n"
638 #| "Key description: user;1000;1000;3f010000;mykey\n"
639 #| "Auth key payload: somepayloaddata\n"
640 #| "Destination keyring: 256e6a6\n"
641 #| "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
642 msgid ""
643 "$B< cat /tmp/key_instantiate.log>;\n"
644 "Time: Mon Nov 7 13:06:47 2016\n"
645 "\\&\n"
646 "Command line arguments:\n"
647 " argv[0]: /sbin/request-key\n"
648 " operation: create\n"
649 " key_to_instantiate: 20d035bf\n"
650 " UID: 1000\n"
651 " GID: 1000\n"
652 " thread_keyring: 0\n"
653 " process_keyring: 0\n"
654 " session_keyring: 256e6a6\n"
655 "\\&\n"
656 "Key description: user;1000;1000;3f010000;mykey\n"
657 "Auth key payload: somepayloaddata\n"
658 "Destination keyring: 256e6a6\n"
659 "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
660 msgstr ""
661 "$ B<cat /tmp/key_instantiate.log>\n"
662 "Time: Mon Nov 7 13:06:47 2016\n"
663 "\\&\n"
664 "Command line arguments:\n"
665 " argv[0]: /sbin/request-key\n"
666 " operation: create\n"
667 " key_to_instantiate: 20d035bf\n"
668 " UID: 1000\n"
669 " GID: 1000\n"
670 " thread_keyring: 0\n"
671 " process_keyring: 0\n"
672 " session_keyring: 256e6a6\n"
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 msgid ""
678 "The last few lines of the above output show that the example program was "
679 "able to fetch:"
680 msgstr ""
681 "Les dernières lignes de la sortie ci-dessus montrent que le programme "
682 "exemple a pu récupérer :"
683
684 #. type: IP
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "\\[bu]"
689 msgstr "-"
690
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 msgid ""
695 "the description of the key to be instantiated, which included the name of "
696 "the key (I<mykey>);"
697 msgstr ""
698 "la description de la clé à instanciée, qui incluait le nom de la clé "
699 "(I<mykey>) ;"
700
701 #. type: Plain text
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 msgid ""
705 "the payload of the authorization key, which consisted of the data "
706 "(I<somepayloaddata>) passed to B<request_key>(2);"
707 msgstr ""
708 "la charge utile de la clé d'autorisation, qui consistait dans des données "
709 "(I<somepayloaddata>) passées à B<request_key>(2) ;"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "the destination keyring that was specified in the call to B<request_key>(2); "
716 "and"
717 msgstr "le trousseau de destination indiqué dans l'appel à B<request_key>(2) ;"
718
719 #. type: Plain text
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 msgid ""
723 "the description of the authorization key, where we can see that the name of "
724 "the authorization key matches the ID of the key that is to be instantiated "
725 "(I<20d035bf>)."
726 msgstr ""
727 "la description de la clé d'autorisation où on peut voir que le nom de la clé "
728 "correspond à l'identifiant de celle à instancier (I<20d035bf>)."
729
730 #. type: Plain text
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 msgid ""
734 "The example program in B<request_key>(2) specified the destination keyring "
735 "as B<KEY_SPEC_SESSION_KEYRING>. By examining the contents of I</proc/keys>, "
736 "we can see that this was translated to the ID of the destination keyring "
737 "(I<0256e6a6>) shown in the log output above; we can also see the newly "
738 "created key with the name I<mykey> and ID I<20d035bf>."
739 msgstr ""
740 "Le programme exemple dans B<request_key>(2) indiquait le trousseau de "
741 "destination en tant que B<KEY_SPEC_SESSION_KEYRING>. En examinant le contenu "
742 "de I</proc/keys>, on peut voir que cela a été transcrit dans l'identifiant "
743 "du trousseau de destination (I<0256e6a6>) affiché dans le fichier journal ci-"
744 "dessus ; on peut aussi voir la clé nouvellement créée dont le nom est "
745 "I<mykey> et l'identifiant est I<20d035bf>."
746
747 #. type: Plain text
748 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
749 #: opensuse-tumbleweed
750 #, fuzzy, no-wrap
751 #| msgid ""
752 #| "$ B<cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>\n"
753 #| "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
754 #| "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
755 msgid ""
756 "$B< cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>;\n"
757 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
758 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
759 msgstr ""
760 "$ B<cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>\n"
761 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
762 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
763
764 #. type: SS
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, no-wrap
768 msgid "Program source"
769 msgstr "Source du programme"
770
771 #. type: Plain text
772 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
773 #: opensuse-tumbleweed
774 #, fuzzy, no-wrap
775 #| msgid ""
776 #| "/* key_instantiate.c */\n"
777 #| "\\&\n"
778 #| "#include E<lt>errno.hE<gt>\n"
779 #| "#include E<lt>keyutils.hE<gt>\n"
780 #| "#include E<lt>stdint.hE<gt>\n"
781 #| "#include E<lt>stdio.hE<gt>\n"
782 #| "#include E<lt>stdlib.hE<gt>\n"
783 #| "#include E<lt>string.hE<gt>\n"
784 #| "#include E<lt>sys/types.hE<gt>\n"
785 #| "#include E<lt>time.hE<gt>\n"
786 #| "\\&\n"
787 #| "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
788 #| "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
789 #| "#endif\n"
790 #| "\\&\n"
791 #| "int\n"
792 #| "main(int argc, char *argv[])\n"
793 #| "{\n"
794 #| " int akp_size; /* Size of auth_key_payload */\n"
795 #| " int auth_key;\n"
796 #| " char dbuf[256];\n"
797 #| " char auth_key_payload[256];\n"
798 #| " char *operation;\n"
799 #| " FILE *fp;\n"
800 #| " gid_t gid;\n"
801 #| " uid_t uid;\n"
802 #| " time_t t;\n"
803 #| " key_serial_t key_to_instantiate, dest_keyring;\n"
804 #| " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
805 #| "\\&\n"
806 #| " if (argc != 8) {\n"
807 #| " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
808 #| " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
809 #| " exit(EXIT_FAILURE);\n"
810 #| " }\n"
811 #| "\\&\n"
812 #| " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
813 #| " if (fp == NULL)\n"
814 #| " exit(EXIT_FAILURE);\n"
815 #| "\\&\n"
816 #| " setbuf(fp, NULL);\n"
817 #| "\\&\n"
818 #| " t = time(NULL);\n"
819 #| " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
820 #| "\\&\n"
821 #| " /*\n"
822 #| " * The kernel passes a fixed set of arguments to the program\n"
823 #| " * that it execs; fetch them.\n"
824 #| " */\n"
825 #| " operation = argv[1];\n"
826 #| " key_to_instantiate = atoi(argv[2]);\n"
827 #| " uid = atoi(argv[3]);\n"
828 #| " gid = atoi(argv[4]);\n"
829 #| " thread_keyring = atoi(argv[5]);\n"
830 #| " process_keyring = atoi(argv[6]);\n"
831 #| " session_keyring = atoi(argv[7]);\n"
832 #| "\\&\n"
833 #| " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
834 #| " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
835 #| " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
836 #| " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
837 #| " (uintmax_t) key_to_instantiate);\n"
838 #| " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
839 #| " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
840 #| " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
841 #| " (uintmax_t) thread_keyring);\n"
842 #| " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
843 #| " (uintmax_t) process_keyring);\n"
844 #| " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
845 #| " (uintmax_t) session_keyring);\n"
846 #| " fprintf(fp, \"\\[rs]n\");\n"
847 #| "\\&\n"
848 #| " /*\n"
849 #| " * Assume the authority to instantiate the key named in argv[2].\n"
850 #| " */\n"
851 #| " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
852 #| " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
853 #| " strerror(errno));\n"
854 #| " exit(EXIT_FAILURE);\n"
855 #| " }\n"
856 #| "\\&\n"
857 #| " /*\n"
858 #| " * Fetch the description of the key that is to be instantiated.\n"
859 #| " */\n"
860 #| " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
861 #| " dbuf, sizeof(dbuf)) == -1) {\n"
862 #| " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
863 #| " exit(EXIT_FAILURE);\n"
864 #| " }\n"
865 #| "\\&\n"
866 #| " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
867 #| "\\&\n"
868 #| " /*\n"
869 #| " * Fetch the payload of the authorization key, which is\n"
870 #| " * actually the callout data given to request_key().\n"
871 #| " */\n"
872 #| " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
873 #| " auth_key_payload, sizeof(auth_key_payload));\n"
874 #| " if (akp_size == -1) {\n"
875 #| " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
876 #| " exit(EXIT_FAILURE);\n"
877 #| " }\n"
878 #| "\\&\n"
879 #| " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
880 #| " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
881 #| "\\&\n"
882 #| " /*\n"
883 #| " * For interest, get the ID of the authorization key and\n"
884 #| " * display it.\n"
885 #| " */\n"
886 #| " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
887 #| " KEY_SPEC_REQKEY_AUTH_KEY);\n"
888 #| " if (auth_key == -1) {\n"
889 #| " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
890 #| " strerror(errno));\n"
891 #| " exit(EXIT_FAILURE);\n"
892 #| " }\n"
893 #| "\\&\n"
894 #| " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
895 #| "\\&\n"
896 #| " /*\n"
897 #| " * Fetch key ID for the request_key(2) destination keyring.\n"
898 #| " */\n"
899 #| " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
900 #| " KEY_SPEC_REQUESTOR_KEYRING);\n"
901 #| " if (dest_keyring == -1) {\n"
902 #| " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
903 #| " strerror(errno));\n"
904 #| " exit(EXIT_FAILURE);\n"
905 #| " }\n"
906 #| "\\&\n"
907 #| " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
908 #| "\\&\n"
909 #| " /*\n"
910 #| " * Fetch the description of the authorization key. This\n"
911 #| " * allows us to see the key type, UID, GID, permissions,\n"
912 #| " * and description (name) of the key. Among other things,\n"
913 #| " * we will see that the name of the key is a hexadecimal\n"
914 #| " * string representing the ID of the key to be instantiated.\n"
915 #| " */\n"
916 #| " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
917 #| " dbuf, sizeof(dbuf)) == -1)\n"
918 #| " {\n"
919 #| " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
920 #| " exit(EXIT_FAILURE);\n"
921 #| " }\n"
922 #| "\\&\n"
923 #| " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
924 #| "\\&\n"
925 #| " /*\n"
926 #| " * Instantiate the key using the callout data that was supplied\n"
927 #| " * in the payload of the authorization key.\n"
928 #| " */\n"
929 #| " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
930 #| " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
931 #| " {\n"
932 #| " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
933 #| " strerror(errno));\n"
934 #| " exit(EXIT_FAILURE);\n"
935 #| " }\n"
936 #| "\\&\n"
937 #| " exit(EXIT_SUCCESS);\n"
938 #| "}\n"
939 msgid ""
940 "/* key_instantiate.c */\n"
941 "\\&\n"
942 "#include E<lt>errno.hE<gt>\n"
943 "#include E<lt>keyutils.hE<gt>\n"
944 "#include E<lt>stdint.hE<gt>\n"
945 "#include E<lt>stdio.hE<gt>\n"
946 "#include E<lt>stdlib.hE<gt>\n"
947 "#include E<lt>string.hE<gt>\n"
948 "#include E<lt>sys/types.hE<gt>\n"
949 "#include E<lt>time.hE<gt>\n"
950 "\\&\n"
951 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
952 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
953 "#endif\n"
954 "\\&\n"
955 "int\n"
956 "main(int argc, char *argv[])\n"
957 "{\n"
958 " int akp_size; /* Size of auth_key_payload */\n"
959 " int auth_key;\n"
960 " char dbuf[256];\n"
961 " char auth_key_payload[256];\n"
962 " char *operation;\n"
963 " FILE *fp;\n"
964 " gid_t gid;\n"
965 " uid_t uid;\n"
966 " time_t t;\n"
967 " key_serial_t key_to_instantiate, dest_keyring;\n"
968 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
969 "\\&\n"
970 " if (argc != 8) {\n"
971 " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
972 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
973 " exit(EXIT_FAILURE);\n"
974 " }\n"
975 "\\&\n"
976 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
977 " if (fp == NULL)\n"
978 " exit(EXIT_FAILURE);\n"
979 "\\&\n"
980 " setbuf(fp, NULL);\n"
981 "\\&\n"
982 " t = time(NULL);\n"
983 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
984 "\\&\n"
985 " /*\n"
986 " * The kernel passes a fixed set of arguments to the program\n"
987 " * that it execs; fetch them.\n"
988 " */\n"
989 " operation = argv[1];\n"
990 " key_to_instantiate = atoi(argv[2]);\n"
991 " uid = atoi(argv[3]);\n"
992 " gid = atoi(argv[4]);\n"
993 " thread_keyring = atoi(argv[5]);\n"
994 " process_keyring = atoi(argv[6]);\n"
995 " session_keyring = atoi(argv[7]);\n"
996 "\\&\n"
997 " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
998 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
999 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
1000 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
1001 " (uintmax_t) key_to_instantiate);\n"
1002 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
1003 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
1004 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
1005 " (uintmax_t) thread_keyring);\n"
1006 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
1007 " (uintmax_t) process_keyring);\n"
1008 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
1009 " (uintmax_t) session_keyring);\n"
1010 " fprintf(fp, \"\\[rs]n\");\n"
1011 "\\&\n"
1012 " /*\n"
1013 " * Assume the authority to instantiate the key named in argv[2].\n"
1014 " */\n"
1015 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
1016 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
1017 " strerror(errno));\n"
1018 " exit(EXIT_FAILURE);\n"
1019 " }\n"
1020 "\\&\n"
1021 " /*\n"
1022 " * Fetch the description of the key that is to be instantiated.\n"
1023 " */\n"
1024 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
1025 " dbuf, sizeof(dbuf)) == -1) {\n"
1026 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
1027 " exit(EXIT_FAILURE);\n"
1028 " }\n"
1029 "\\&\n"
1030 " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
1031 "\\&\n"
1032 " /*\n"
1033 " * Fetch the payload of the authorization key, which is\n"
1034 " * actually the callout data given to request_key().\n"
1035 " */\n"
1036 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
1037 " auth_key_payload, sizeof(auth_key_payload));\n"
1038 " if (akp_size == -1) {\n"
1039 " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
1040 " exit(EXIT_FAILURE);\n"
1041 " }\n"
1042 "\\&\n"
1043 " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
1044 " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
1045 "\\&\n"
1046 " /*\n"
1047 " * For interest, get the ID of the authorization key and\n"
1048 " * display it.\n"
1049 " */\n"
1050 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
1051 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
1052 " if (auth_key == -1) {\n"
1053 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
1054 " strerror(errno));\n"
1055 " exit(EXIT_FAILURE);\n"
1056 " }\n"
1057 "\\&\n"
1058 " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
1059 "\\&\n"
1060 " /*\n"
1061 " * Fetch key ID for the request_key(2) destination keyring.\n"
1062 " */\n"
1063 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
1064 " KEY_SPEC_REQUESTOR_KEYRING);\n"
1065 " if (dest_keyring == -1) {\n"
1066 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
1067 " strerror(errno));\n"
1068 " exit(EXIT_FAILURE);\n"
1069 " }\n"
1070 "\\&\n"
1071 " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
1072 "\\&\n"
1073 " /*\n"
1074 " * Fetch the description of the authorization key. This\n"
1075 " * allows us to see the key type, UID, GID, permissions,\n"
1076 " * and description (name) of the key. Among other things,\n"
1077 " * we will see that the name of the key is a hexadecimal\n"
1078 " * string representing the ID of the key to be instantiated.\n"
1079 " */\n"
1080 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
1081 " dbuf, sizeof(dbuf)) == -1)\n"
1082 " {\n"
1083 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
1084 " exit(EXIT_FAILURE);\n"
1085 " }\n"
1086 "\\&\n"
1087 " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
1088 "\\&\n"
1089 " /*\n"
1090 " * Instantiate the key using the callout data that was supplied\n"
1091 " * in the payload of the authorization key.\n"
1092 " */\n"
1093 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
1094 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
1095 " {\n"
1096 " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
1097 " strerror(errno));\n"
1098 " exit(EXIT_FAILURE);\n"
1099 " }\n"
1100 "\\&\n"
1101 " exit(EXIT_SUCCESS);\n"
1102 "}\n"
1103 msgstr ""
1104 "/* key_instantiate.c */\n"
1105 "\\&\n"
1106 "#include E<lt>errno.hE<gt>\n"
1107 "#include E<lt>keyutils.hE<gt>\n"
1108 "#include E<lt>stdint.hE<gt>\n"
1109 "#include E<lt>stdio.hE<gt>\n"
1110 "#include E<lt>stdlib.hE<gt>\n"
1111 "#include E<lt>string.hE<gt>\n"
1112 "#include E<lt>sys/types.hE<gt>\n"
1113 "#include E<lt>time.hE<gt>\n"
1114 "\\&\n"
1115 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
1116 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
1117 "#endif\n"
1118 "\\&\n"
1119 "int\n"
1120 "main(int argc, char *argv[])\n"
1121 "{\n"
1122 " int akp_size; /* Taille de auth_key_payload */\n"
1123 " int auth_key;\n"
1124 " char dbuf[256];\n"
1125 " char auth_key_payload[256];\n"
1126 " char *operation;\n"
1127 " FILE *fp;\n"
1128 " gid_t gid;\n"
1129 " uid_t uid;\n"
1130 " time_t t;\n"
1131 " key_serial_t key_to_instantiate, dest_keyring;\n"
1132 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
1133 "\\&\n"
1134 " if (argc != 8) {\n"
1135 " fprintf(stderr, \"Usage : %s op key uid gid thread_keyring \"\n"
1136 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
1137 " exit(EXIT_FAILURE);\n"
1138 " }\n"
1139 "\\&\n"
1140 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
1141 " if (fp == NULL)\n"
1142 " exit(EXIT_FAILURE);\n"
1143 "\\&\n"
1144 " setbuf(fp, NULL);\n"
1145 "\\&\n"
1146 " t = time(NULL);\n"
1147 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
1148 "\\&\n"
1149 " /*\n"
1150 " * Le noyau passe un ensemble fixe de paramètres au programme\n"
1151 " * qu'il exécute ; les récupérer.\n"
1152 " */\n"
1153 " operation = argv[1];\n"
1154 " key_to_instantiate = atoi(argv[2]);\n"
1155 " uid = atoi(argv[3]);\n"
1156 " gid = atoi(argv[4]);\n"
1157 " thread_keyring = atoi(argv[5]);\n"
1158 " process_keyring = atoi(argv[6]);\n"
1159 " session_keyring = atoi(argv[7]);\n"
1160 "\\&\n"
1161 " fprintf(fp, \"Paramètres de la ligne de commande :\\[rs]n\");\n"
1162 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
1163 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
1164 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
1165 " (uintmax_t) key_to_instantiate);\n"
1166 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
1167 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
1168 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
1169 " (uintmax_t) thread_keyring);\n"
1170 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
1171 " (uintmax_t) process_keyring);\n"
1172 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
1173 " (uintmax_t) session_keyring);\n"
1174 " fprintf(fp, \"\\[rs]n\");\n"
1175 "\\&\n"
1176 " /*\n"
1177 " * Assumer l'autorité pour instancier la clé nommée dans argv[2].\n"
1178 " */\n"
1179 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
1180 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY a échoué : %s\\[rs]n\",\n"
1181 " strerror(errno));\n"
1182 " exit(EXIT_FAILURE);\n"
1183 " }\n"
1184 "\\&\n"
1185 " /*\n"
1186 " * Récupérer la description de la clé à instancier.\n"
1187 " */\n"
1188 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
1189 " dbuf, sizeof(dbuf)) == -1) {\n"
1190 " fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
1191 " exit(EXIT_FAILURE);\n"
1192 " }\n"
1193 "\\&\n"
1194 " fprintf(fp, \"Description de clé : %s\\[rs]n\", dbuf);\n"
1195 "\\&\n"
1196 " /*\n"
1197 " * Récupérer la charge utile de la clé d'autorisation, qui est en fait\n"
1198 " * les données d'appel (callout) données à request_key().\n"
1199 " */\n"
1200 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
1201 " auth_key_payload, sizeof(auth_key_payload));\n"
1202 " if (akp_size == -1) {\n"
1203 " fprintf(fp, \"KEYCTL_READ a échoué : %s\\[rs]n\", strerror(errno));\n"
1204 " exit(EXIT_FAILURE);\n"
1205 " }\n"
1206 "\\&\n"
1207 " auth_key_payload[akp_size] = \\[aq]\\e0\\[aq];\n"
1208 " fprintf(fp, \"Charge utile de la clé d'auth : %s\\[rs]n\", auth_key_payload);\n"
1209 "\\&\n"
1210 " /*\n"
1211 " * Par intérêt, récupérer l'identifiant de la clé d'autorisation et\n"
1212 " * l'afficher.\n"
1213 " */\n"
1214 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
1215 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
1216 " if (auth_key == -1) {\n"
1217 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
1218 " strerror(errno));\n"
1219 " exit(EXIT_FAILURE);\n"
1220 " }\n"
1221 "\\&\n"
1222 " fprintf(fp, \"Identifiant de la clé d'auth : %jx\\[rs]n\", (uintmax_t) auth_key);\n"
1223 "\\&\n"
1224 " /*\n"
1225 " * Récupérer l'identifiant de clé pour le trousseau de destination \n"
1226 " * request_key(2).\n"
1227 " */\n"
1228 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
1229 " KEY_SPEC_REQUESTOR_KEYRING);\n"
1230 " if (dest_keyring == -1) {\n"
1231 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
1232 " strerror(errno));\n"
1233 " exit(EXIT_FAILURE);\n"
1234 " }\n"
1235 "\\&\n"
1236 " fprintf(fp, \"Trousseau de destination : %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
1237 "\\&\n"
1238 " /*\n"
1239 " * Récupérer la description de la clé d'autorisation. Cela nous permet\n"
1240 " * de voir le type de clé, l'identifiant utilisateur et de groupe, les\n"
1241 " * droits et la description (nom) de la clé. Entre autres choses,\n"
1242 " * on verra que le nom de la clé est une chaîne hexadécimale représentant\n"
1243 " * l'identifiant de la clé à instancier.\n"
1244 " */\n"
1245 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
1246 " dbuf, sizeof(dbuf)) == -1)\n"
1247 " {\n"
1248 " fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
1249 " exit(EXIT_FAILURE);\n"
1250 " }\n"
1251 "\\&\n"
1252 " fprintf(fp, \"Description de la clé d'auth : %s\\[rs]n\", dbuf);\n"
1253 "\\&\n"
1254 " /*\n"
1255 " * Instancier la clé en utilisant les données de l'appel (callout)\n"
1256 " * fournies dans la charge utile de la clé d'autorisation.\n"
1257 " */\n"
1258 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
1259 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
1260 " {\n"
1261 " fprintf(fp, \"KEYCTL_INSTANTIATE a échoué : %s\\[rs]n\",\n"
1262 " strerror(errno));\n"
1263 " exit(EXIT_FAILURE);\n"
1264 " }\n"
1265 "\\&\n"
1266 " exit(EXIT_SUCCESS);\n"
1267 "}\n"
1268
1269 #. SRC END
1270 #. type: SH
1271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1273 #, no-wrap
1274 msgid "SEE ALSO"
1275 msgstr "VOIR AUSSI"
1276
1277 #. .BR find_key_by_type_and_name (3)
1278 #. There is a man page, but this function seems not to exist
1279 #. type: Plain text
1280 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1281 #: opensuse-leap-16-1 opensuse-tumbleweed
1282 msgid ""
1283 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
1284 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
1285 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
1286 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
1287 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
1288 "session-keyring>(7), B<request-key>(8)"
1289 msgstr ""
1290 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
1291 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
1292 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
1293 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
1294 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
1295 "session-keyring>(7), B<request-key>(8)"
1296
1297 #. type: Plain text
1298 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1299 #: opensuse-tumbleweed
1300 #, fuzzy
1301 #| msgid "The kernel source file I<Documentation/networking/ip-sysctl.rst>."
1302 msgid "The kernel source files under I<Documentation/security/keys/>."
1303 msgstr "Le fichier source du noyau I<Documentation/networking/ip-sysctl.rst>."
1304
1305 #. type: TH
1306 #: debian-trixie
1307 #, no-wrap
1308 msgid "2024-06-15"
1309 msgstr "15 juin 2024"
1310
1311 #. type: TH
1312 #: debian-trixie
1313 #, no-wrap
1314 msgid "Linux man-pages 6.9.1"
1315 msgstr "Pages du manuel de Linux 6.9.1"
1316
1317 #. type: Plain text
1318 #: debian-trixie
1319 msgid "Standard C library (I<libc>, I<-lc>)"
1320 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
1321
1322 #. type: Plain text
1323 #: debian-trixie
1324 msgid ""
1325 "Alternatively, Linux Key Management Utilities (I<libkeyutils>, I<-"
1326 "lkeyutils>); see VERSIONS."
1327 msgstr ""
1328 "Sinon, les utilitaires de gestion de clefs Linux (I<libkeyutils>, I<-"
1329 "lkeyutils>); consultez VERSIONS."
1330
1331 #. type: Plain text
1332 #: debian-trixie
1333 #, no-wrap
1334 msgid ""
1335 "B<#include E<lt>linux/keyctl.hE<gt>> /* Definition of B<KEY*> constants */\n"
1336 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
1337 "B<#include E<lt>unistd.hE<gt>>\n"
1338 msgstr ""
1339 "B<#include E<lt>linux/keyctl.hE<gt>> /* Définition des constantes B<KEY*> */\n"
1340 "B<#include E<lt>sys/syscall.hE<gt>> /* Définition des constantes B<SYS_*> */\n"
1341 "B<#include E<lt>unistd.hE<gt>>\n"
1342
1343 #. type: Plain text
1344 #: debian-trixie
1345 #, no-wrap
1346 msgid ""
1347 "B<long syscall(SYS_keyctl, int >I<operation>B<, unsigned long >I<arg2>B<,>\n"
1348 "B< unsigned long >I<arg3>B<, unsigned long >I<arg4>B<,>\n"
1349 "B< unsigned long >I<arg5>B<);>\n"
1350 msgstr ""
1351 "B<long syscall(SYS_keyctl, int >I<operation>B<, unsigned long >I<arg2>B<,>\n"
1352 "B< unsigned long >I<arg3>B<, unsigned long >I<arg4>B<,>\n"
1353 "B< unsigned long >I<arg5>B<);>\n"
1354
1355 #. type: Plain text
1356 #: debian-trixie
1357 msgid ""
1358 "I<Note>: glibc provides no wrapper for B<keyctl>(), necessitating the use of "
1359 "B<syscall>(2)."
1360 msgstr ""
1361 "I<Note> : la glibc ne fournit pas d'enveloppe pour B<keyctl>(), nécessitant "
1362 "l'utilisation de B<syscall>(2)."
1363
1364 #. type: Plain text
1365 #: debian-trixie
1366 msgid ""
1367 "The operation performed by B<keyctl>() is determined by the value of the "
1368 "I<operation> argument. Each of these operations is wrapped by the "
1369 "I<libkeyutils> library (provided by the I<keyutils> package) into individual "
1370 "functions (noted below) to permit the compiler to check types."
1371 msgstr ""
1372 "L'opération qu'effectue B<keyctl>() dépend de la valeur du paramètre "
1373 "I<operation>. Chacune de ces opérations fait partie de l'enveloppe de la "
1374 "bibliothèque I<libkeyutils> (fournie par le paquet I<keyutils>) en tant que "
1375 "fonctions individuelles (indiquées ci-dessous) pour permettre au compilateur "
1376 "de vérifier les types."
1377
1378 #. type: Plain text
1379 #: debian-trixie
1380 msgid "The permitted values for I<operation> are:"
1381 msgstr "Les valeurs autorisées pour I<operation> sont :"
1382
1383 #. type: TP
1384 #: debian-trixie
1385 #, no-wrap
1386 msgid "B<KEYCTL_GET_KEYRING_ID> (since Linux 2.6.10)"
1387 msgstr "B<KEYCTL_GET_KEYRING_ID> (depuis Linux 2.6.10)"
1388
1389 #. type: Plain text
1390 #: debian-trixie
1391 msgid "Map a special key ID to a real key ID for this process."
1392 msgstr ""
1393 "Associer l'identifiant d'une clé spéciale à celui d'une clé réelle pour ce "
1394 "processus."
1395
1396 #. type: Plain text
1397 #: debian-trixie
1398 msgid ""
1399 "This operation looks up the special key whose ID is provided in I<arg2> "
1400 "(cast to I<key_serial_t>). If the special key is found, the ID of the "
1401 "corresponding real key is returned as the function result. The following "
1402 "values may be specified in I<arg2>:"
1403 msgstr ""
1404 "Cette opération recherche la clé spéciale dont l'identifiant est fourni dans "
1405 "I<arg2> (transmis à I<key_serial_t>). Si la clé spéciale est trouvée, "
1406 "l'identifiant de la clé réelle correspondante est renvoyé en tant que "
1407 "résultat de la fonction. Les valeurs suivantes peuvent être indiquées dans "
1408 "I<arg2> :"
1409
1410 #. type: TP
1411 #: debian-trixie
1412 #, no-wrap
1413 msgid "B<KEY_SPEC_THREAD_KEYRING>"
1414 msgstr "B<KEY_SPEC_THREAD_KEYRING>"
1415
1416 #. type: Plain text
1417 #: debian-trixie
1418 msgid ""
1419 "This specifies the calling thread's thread-specific keyring. See B<thread-"
1420 "keyring>(7)."
1421 msgstr ""
1422 "Pour indiquer le trousseau spécifique au thread du thread appelant. Voir "
1423 "B<thread-keyring>(7)."
1424
1425 #. type: TP
1426 #: debian-trixie
1427 #, no-wrap
1428 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
1429 msgstr "B<KEY_SPEC_PROCESS_KEYRING>"
1430
1431 #. type: Plain text
1432 #: debian-trixie
1433 msgid ""
1434 "This specifies the caller's process-specific keyring. See B<process-"
1435 "keyring>(7)."
1436 msgstr ""
1437 "Pour indiquer le trousseau spécifique au processus de l'appelant. Voir "
1438 "B<process-keyring>(7)."
1439
1440 #. type: TP
1441 #: debian-trixie
1442 #, no-wrap
1443 msgid "B<KEY_SPEC_SESSION_KEYRING>"
1444 msgstr "B<KEY_SPEC_SESSION_KEYRING>"
1445
1446 #. type: Plain text
1447 #: debian-trixie
1448 msgid ""
1449 "This specifies the caller's session-specific keyring. See B<session-"
1450 "keyring>(7)."
1451 msgstr ""
1452 "Pour indiquer le trousseau spécifique à la session de l'appelant. Voir "
1453 "B<session-keyring>(7)."
1454
1455 #. type: TP
1456 #: debian-trixie
1457 #, no-wrap
1458 msgid "B<KEY_SPEC_USER_KEYRING>"
1459 msgstr "B<KEY_SPEC_USER_KEYRING>"
1460
1461 #. type: Plain text
1462 #: debian-trixie
1463 msgid ""
1464 "This specifies the caller's UID-specific keyring. See B<user-keyring>(7)."
1465 msgstr ""
1466 "Pour indiquer le trousseau spécifique à l'UID de l'appelant. Voir B<user-"
1467 "keyring>(7)."
1468
1469 #. type: TP
1470 #: debian-trixie
1471 #, no-wrap
1472 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
1473 msgstr "B<KEY_SPEC_USER_SESSION_KEYRING>"
1474
1475 #. type: Plain text
1476 #: debian-trixie
1477 msgid ""
1478 "This specifies the caller's UID-session keyring. See B<user-session-"
1479 "keyring>(7)."
1480 msgstr ""
1481 "Pour indiquer le trousseau spécifique à la session de l'UID de l'appelant. "
1482 "Voir B<user-session-keyring>(7)."
1483
1484 #. type: TP
1485 #: debian-trixie
1486 #, no-wrap
1487 msgid "B<KEY_SPEC_REQKEY_AUTH_KEY> (since Linux 2.6.16)"
1488 msgstr "B<KEY_SPEC_REQKEY_AUTH_KEY> (depuis Linux 2.6.16)"
1489
1490 #. commit b5f545c880a2a47947ba2118b2509644ab7a2969
1491 #. type: Plain text
1492 #: debian-trixie
1493 msgid ""
1494 "This specifies the authorization key created by B<request_key>(2) and "
1495 "passed to the process it spawns to generate a key. This key is available "
1496 "only in a B<request-key>(8)-style program that was passed an authorization "
1497 "key by the kernel and ceases to be available once the requested key has been "
1498 "instantiated; see B<request_key>(2)."
1499 msgstr ""
1500 "Cela indique la clé d'autorisation créée par B<request_key>(2) et passée au "
1501 "processus qu'il produit pour générer une clé. Cette clé n'est disponible que "
1502 "dans un programme à la manière de B<request-key>(8) où une clé "
1503 "d'autorisation a été passée par le noyau et cesse d’être disponible lorsque "
1504 "la clé demandée a été instanciée ; voir B<request_key>(2)."
1505
1506 #. type: TP
1507 #: debian-trixie
1508 #, no-wrap
1509 msgid "B<KEY_SPEC_REQUESTOR_KEYRING> (since Linux 2.6.29)"
1510 msgstr "B<KEY_SPEC_REQUESTOR_KEYRING> (depuis Linux 2.6.29)"
1511
1512 #. commit 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
1513 #. type: Plain text
1514 #: debian-trixie
1515 msgid ""
1516 "This specifies the key ID for the B<request_key>(2) destination keyring. "
1517 "This keyring is available only in a B<request-key>(8)-style program that was "
1518 "passed an authorization key by the kernel and ceases to be available once "
1519 "the requested key has been instantiated; see B<request_key>(2)."
1520 msgstr ""
1521 "Cela indique l'identifiant de la clé pour le trousseau de destination "
1522 "B<request_key>(2). Ce trousseau n'est disponible que dans un programme dans "
1523 "le style de B<request-key>(8) où une clé d'autorisation a été passée par le "
1524 "noyau et cesse d’être disponible une fois que la clé demandée a été "
1525 "instanciée ; voir B<request_key>(2)."
1526
1527 #. The keyctl_get_keyring_ID.3 page says that a new key
1528 #. "will be created *if it is appropriate to do so**. What is the
1529 #. determiner for appropriate?
1530 #. David Howells: Some special keys such as KEY_SPEC_REQKEY_AUTH_KEY
1531 #. wouldn't get created but user/user-session/session keyring would
1532 #. be created.
1533 #. type: Plain text
1534 #: debian-trixie
1535 msgid ""
1536 "The behavior if the key specified in I<arg2> does not exist depends on the "
1537 "value of I<arg3> (cast to I<int>). If I<arg3> contains a nonzero value, "
1538 "then\\[em]if it is appropriate to do so (e.g., when looking up the user, "
1539 "user-session, or session key)\\[em]a new key is created and its real key ID "
1540 "returned as the function result. Otherwise, the operation fails with the "
1541 "error B<ENOKEY>."
1542 msgstr ""
1543 "Si la clé indiquée dans I<arg2> n'existe pas, le comportement dépend de la "
1544 "valeur de I<arg3> (diffusée dans I<int>). Si I<arg3> contient une valeur non "
1545 "nulle — et s'il est utile de le faire (comme pour rechercher un utilisateur, "
1546 "une session utilisateur ou une clé de session) —, une nouvelle clé est créée "
1547 "et son identifiant de clé réelle est renvoyé en tant que résultat de la "
1548 "fonction. Sinon, l'opération échoue avec l'erreur B<ENOKEY>."
1549
1550 #. type: Plain text
1551 #: debian-trixie
1552 msgid ""
1553 "If a valid key ID is specified in I<arg2>, and the key exists, then this "
1554 "operation simply returns the key ID. If the key does not exist, the call "
1555 "fails with error B<ENOKEY>."
1556 msgstr ""
1557 "Si un identifiant de clé valable est indiqué dans I<arg2> et si la clé "
1558 "existe, cette opération renvoie simplement l'identifiant de la clé. Si la "
1559 "clé n'existe pas, l'appel échoue avec l'erreur B<ENOKEY>."
1560
1561 #. type: Plain text
1562 #: debian-trixie
1563 msgid ""
1564 "The caller must have I<search> permission on a keyring in order for it to be "
1565 "found."
1566 msgstr ""
1567 "L'appelant doit avoir le droit I<search> sur un trousseau pour qu’il soit "
1568 "trouvable."
1569
1570 #. type: Plain text
1571 #: debian-trixie
1572 msgid "The arguments I<arg4> and I<arg5> are ignored."
1573 msgstr "Les paramètres I<arg4> et I<arg5> sont ignorés."
1574
1575 #. type: Plain text
1576 #: debian-trixie
1577 msgid ""
1578 "This operation is exposed by I<libkeyutils> via the function "
1579 "B<keyctl_get_keyring_ID>(3)."
1580 msgstr ""
1581 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
1582 "fonction B<keyctl_get_keyring_ID>(3)."
1583
1584 #. type: TP
1585 #: debian-trixie
1586 #, no-wrap
1587 msgid "B<KEYCTL_JOIN_SESSION_KEYRING> (since Linux 2.6.10)"
1588 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING> (depuis Linux 2.6.10)"
1589
1590 #. This may be useful in conjunction with some sort of
1591 #. session management framework that is employed by the application.
1592 #. type: Plain text
1593 #: debian-trixie
1594 msgid ""
1595 "Replace the session keyring this process subscribes to with a new session "
1596 "keyring."
1597 msgstr ""
1598 "Remplacer le trousseau de la session à laquelle le processus est rattaché "
1599 "par un nouveau trousseau de session."
1600
1601 #. type: Plain text
1602 #: debian-trixie
1603 msgid ""
1604 "If I<arg2> is NULL, an anonymous keyring with the description \"_ses\" is "
1605 "created and the process is subscribed to that keyring as its session "
1606 "keyring, displacing the previous session keyring."
1607 msgstr ""
1608 "Si I<arg2> vaut NULL, un trousseau anonyme dont la description est « _ses » "
1609 "est créé et le processus est inscrit à ce trousseau en tant que trousseau de "
1610 "sa session, remplaçant le trousseau de la session précédente."
1611
1612 #. type: Plain text
1613 #: debian-trixie
1614 msgid ""
1615 "Otherwise, I<arg2> (cast to I<char\\ *>) is treated as the description "
1616 "(name) of a keyring, and the behavior is as follows:"
1617 msgstr ""
1618 "Sinon, I<arg2> (diffusé dans I<char *>) est traité comme la description (le "
1619 "nom) d'un trousseau et le comportement est ainsi :"
1620
1621 #. type: Plain text
1622 #: debian-trixie
1623 msgid ""
1624 "If a keyring with a matching description exists, the process will attempt to "
1625 "subscribe to that keyring as its session keyring if possible; if that is not "
1626 "possible, an error is returned. In order to subscribe to the keyring, the "
1627 "caller must have I<search> permission on the keyring."
1628 msgstr ""
1629 "Si un trousseau ayant une description correspondante existe, le processus "
1630 "tentera de s'inscrire à ce trousseau en tant que trousseau de session si "
1631 "c'est possible ; sans quoi une erreur est renvoyée. Pour s'inscrire au "
1632 "trousseau, l'appelant doit avoir le droit I<search> sur le trousseau."
1633
1634 #. type: Plain text
1635 #: debian-trixie
1636 msgid ""
1637 "If a keyring with a matching description does not exist, then a new keyring "
1638 "with the specified description is created, and the process is subscribed to "
1639 "that keyring as its session keyring."
1640 msgstr ""
1641 "Si un trousseau avec une description correspondante n'existe pas, un nouveau "
1642 "trousseau ayant la description indiquée est créé et le processus est inscrit "
1643 "à ce trousseau en tant que trousseau de session."
1644
1645 #. type: Plain text
1646 #: debian-trixie
1647 msgid "The arguments I<arg3>, I<arg4>, and I<arg5> are ignored."
1648 msgstr "Les paramètres I<arg3>, I<arg4> et I<arg5> sont ignorés."
1649
1650 #. type: Plain text
1651 #: debian-trixie
1652 msgid ""
1653 "This operation is exposed by I<libkeyutils> via the function "
1654 "B<keyctl_join_session_keyring>(3)."
1655 msgstr ""
1656 "Cette opération est mise à disposition par I<libkeyutils> par la fonction "
1657 "B<keyctl_join_session_keyring>(3)."
1658
1659 #. type: TP
1660 #: debian-trixie
1661 #, no-wrap
1662 msgid "B<KEYCTL_UPDATE> (since Linux 2.6.10)"
1663 msgstr "B<KEYCTL_UPDATE> (depuis Linux 2.6.10)"
1664
1665 #. type: Plain text
1666 #: debian-trixie
1667 msgid "Update a key's data payload."
1668 msgstr "Mettre à jour la charge utile des données d'une clé."
1669
1670 #. type: Plain text
1671 #: debian-trixie
1672 msgid ""
1673 "The I<arg2> argument (cast to I<key_serial_t>) specifies the ID of the key "
1674 "to be updated. The I<arg3> argument (cast to I<void\\ *>) points to the "
1675 "new payload and I<arg4> (cast to I<size_t>) contains the new payload size "
1676 "in bytes."
1677 msgstr ""
1678 "Le paramètre I<arg2> (diffusé sur I<key_serial_t>) indique l'identifiant de "
1679 "la clé à mettre à jour. Le paramètre I<arg3> (diffusé sur I<void\\ *>) "
1680 "pointe vers la nouvelle charge utile et I<arg4> (diffusé sur I<size_t>) "
1681 "contient la taille de la nouvelle charge utile (en octets)."
1682
1683 #. type: Plain text
1684 #: debian-trixie
1685 msgid ""
1686 "The caller must have I<write> permission on the key specified and the key "
1687 "type must support updating."
1688 msgstr ""
1689 "L'appelant doit avoir les droits I<write> sur la clé indiquée et le type de "
1690 "clé doit gérer les mises à jour."
1691
1692 #. type: Plain text
1693 #: debian-trixie
1694 msgid ""
1695 "A negatively instantiated key (see the description of B<KEYCTL_REJECT>) can "
1696 "be positively instantiated with this operation."
1697 msgstr ""
1698 "Une clé instanciée négativement (voir la description de B<KEYCTL_REJECT>) "
1699 "peut être instanciée positivement avec cette opération."
1700
1701 #. type: Plain text
1702 #: debian-trixie
1703 msgid "The I<arg5> argument is ignored."
1704 msgstr "Le paramètre I<arg5> est ignoré."
1705
1706 #. type: Plain text
1707 #: debian-trixie
1708 msgid ""
1709 "This operation is exposed by I<libkeyutils> via the function "
1710 "B<keyctl_update>(3)."
1711 msgstr ""
1712 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
1713 "fonction B<keyctl_update>(3)."
1714
1715 #. type: TP
1716 #: debian-trixie
1717 #, no-wrap
1718 msgid "B<KEYCTL_REVOKE> (since Linux 2.6.10)"
1719 msgstr "B<KEYCTL_REVOKE> (depuis Linux 2.6.10)"
1720
1721 #. type: Plain text
1722 #: debian-trixie
1723 msgid ""
1724 "Revoke the key with the ID provided in I<arg2> (cast to I<key_serial_t>). "
1725 "The key is scheduled for garbage collection; it will no longer be findable, "
1726 "and will be unavailable for further operations. Further attempts to use the "
1727 "key will fail with the error B<EKEYREVOKED>."
1728 msgstr ""
1729 "Révoquer la clé dont l'identifiant est fourni dans I<arg2> (diffusé sur "
1730 "I<key_serial_t>). La clé est vouée à aller à la poubelle ; elle ne sera plus "
1731 "trouvable et ne sera plus disponible pour de futures opérations. Les futures "
1732 "tentatives d'utiliser la clé échoueront avec l'erreur B<EKEYREVOKED>."
1733
1734 #. Keys with the KEY_FLAG_KEEP bit set cause an EPERM
1735 #. error for KEYCTL_REVOKE. Does this need to be documented?
1736 #. David Howells: No significance for user space.
1737 #. type: Plain text
1738 #: debian-trixie
1739 msgid "The caller must have I<write> or I<setattr> permission on the key."
1740 msgstr "L'appelant doit avoir les droits I<write> ou I<setattr> sur la clé."
1741
1742 #. type: Plain text
1743 #: debian-trixie
1744 msgid ""
1745 "This operation is exposed by I<libkeyutils> via the function "
1746 "B<keyctl_revoke>(3)."
1747 msgstr ""
1748 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
1749 "fonction B<keyctl_revoke>(3)."
1750
1751 #. type: TP
1752 #: debian-trixie
1753 #, no-wrap
1754 msgid "B<KEYCTL_CHOWN> (since Linux 2.6.10)"
1755 msgstr "B<KEYCTL_CHOWN> (depuis Linux 2.6.10)"
1756
1757 #. type: Plain text
1758 #: debian-trixie
1759 msgid "Change the ownership (user and group ID) of a key."
1760 msgstr ""
1761 "Changer le propriétaire (identifiant de l'utilisateur et du groupe) d'une "
1762 "clé."
1763
1764 #. type: Plain text
1765 #: debian-trixie
1766 msgid ""
1767 "The I<arg2> argument (cast to I<key_serial_t>) contains the key ID. The "
1768 "I<arg3> argument (cast to I<uid_t>) contains the new user ID (or -1 in case "
1769 "the user ID shouldn't be changed). The I<arg4> argument (cast to I<gid_t>) "
1770 "contains the new group ID (or -1 in case the group ID shouldn't be changed)."
1771 msgstr ""
1772 "Le paramètre I<arg2> (diffusé sur I<key_serial_t>) contient l'identifiant de "
1773 "la clé. Le paramètre I<arg3> (diffusé sur I<uid_t>) contient l'identifiant "
1774 "du nouvel utilisateur (ou B<-1> s'il ne doit pas être modifié). Le paramètre "
1775 "I<arg4> (diffusé sur I<gid_t>) contient l'identifiant du nouveau groupe (ou "
1776 "B<-1> s'il ne doit pas être modifié)."
1777
1778 #. type: Plain text
1779 #: debian-trixie
1780 msgid "The key must grant the caller I<setattr> permission."
1781 msgstr "La clé doit accorder le droit I<setattr> à l'appelant."
1782
1783 #. type: Plain text
1784 #: debian-trixie
1785 msgid ""
1786 "For the UID to be changed, or for the GID to be changed to a group the "
1787 "caller is not a member of, the caller must have the B<CAP_SYS_ADMIN> "
1788 "capability (see B<capabilities>(7))."
1789 msgstr ""
1790 "Pour pouvoir modifier l'identifiant utilisateur ou utiliser un identifiant "
1791 "de groupe dont l'appelant n'est pas membre, l'appelant doit avoir la "
1792 "capacité B<CAP_SYS_ADMIN> (voir B<capabilities>(7))."
1793
1794 #. type: Plain text
1795 #: debian-trixie
1796 msgid ""
1797 "If the UID is to be changed, the new user must have sufficient quota to "
1798 "accept the key. The quota deduction will be removed from the old user to "
1799 "the new user should the UID be changed."
1800 msgstr ""
1801 "Si l'identifiant utilisateur doit être modifié, le nouvel utilisateur doit "
1802 "avoir un quota suffisant pour accepter la clé. La déduction du quota sera "
1803 "déplacée de l’ancien utilisateur vers le nouveau à condition que l’UID ait "
1804 "changé."
1805
1806 #. type: Plain text
1807 #: debian-trixie
1808 msgid ""
1809 "This operation is exposed by I<libkeyutils> via the function "
1810 "B<keyctl_chown>(3)."
1811 msgstr ""
1812 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
1813 "fonction B<keyctl_chown>(3)."
1814
1815 #. type: TP
1816 #: debian-trixie
1817 #, no-wrap
1818 msgid "B<KEYCTL_SETPERM> (since Linux 2.6.10)"
1819 msgstr "B<KEYCTL_SETPERM> (depuis Linux 2.6.10)"
1820
1821 #. type: Plain text
1822 #: debian-trixie
1823 msgid ""
1824 "Change the permissions of the key with the ID provided in the I<arg2> "
1825 "argument (cast to I<key_serial_t>) to the permissions provided in the "
1826 "I<arg3> argument (cast to I<key_perm_t>)."
1827 msgstr ""
1828 "Passer les droits de la clé dont l'identifiant est fourni dans le paramètre "
1829 "I<arg2> (diffusé sur I<key_serial_t>) à ceux fournis dans le paramètre "
1830 "I<arg3> (diffusé sur I<key_perm_t>)."
1831
1832 #. type: Plain text
1833 #: debian-trixie
1834 msgid ""
1835 "If the caller doesn't have the B<CAP_SYS_ADMIN> capability, it can change "
1836 "permissions only for the keys it owns. (More precisely: the caller's "
1837 "filesystem UID must match the UID of the key.)"
1838 msgstr ""
1839 "Si l'appelant n'a pas la capacité B<CAP_SYS_ADMIN>, il ne peut modifier que "
1840 "les droits des clés qu'il possède. (Plus précisément, l’UID du système de "
1841 "fichiers de l’appelant doit correspondre à l’UID de la clé.)"
1842
1843 #. FIXME Above, is it really intended that a privileged process can't
1844 #. override the lack of the 'setattr' permission?
1845 #. type: Plain text
1846 #: debian-trixie
1847 msgid ""
1848 "The key must grant I<setattr> permission to the caller I<regardless> of the "
1849 "caller's capabilities."
1850 msgstr ""
1851 "La clé doit accorder le droit I<setattr> à l'appelant I<indépendamment> de "
1852 "ses capacités."
1853
1854 #. type: Plain text
1855 #: debian-trixie
1856 msgid ""
1857 "The permissions in I<arg3> specify masks of available operations for each of "
1858 "the following user categories:"
1859 msgstr ""
1860 "Les droits dans I<arg3> indiquent les masques des opérations disponibles "
1861 "pour chacune des catégories suivantes d'utilisateur :"
1862
1863 #. type: TP
1864 #: debian-trixie
1865 #, no-wrap
1866 msgid "I<possessor> (since Linux 2.6.14)"
1867 msgstr "I<possessor> (depuis Linux 2.6.14)"
1868
1869 #. commit 664cceb0093b755739e56572b836a99104ee8a75
1870 #. type: Plain text
1871 #: debian-trixie
1872 msgid ""
1873 "This is the permission granted to a process that possesses the key (has it "
1874 "attached searchably to one of the process's keyrings); see B<keyrings>(7)."
1875 msgstr ""
1876 "Il s'agit des droits accordés à un processus possédant la clé (en tant qu'il "
1877 "est rattaché à un des trousseaux du processus trouvables) ; voir "
1878 "B<keyrings>(7)."
1879
1880 #. type: TP
1881 #: debian-trixie
1882 #, no-wrap
1883 msgid "I<user>"
1884 msgstr "I<user>"
1885
1886 #. type: Plain text
1887 #: debian-trixie
1888 msgid ""
1889 "This is the permission granted to a process whose filesystem UID matches the "
1890 "UID of the key."
1891 msgstr ""
1892 "Il s'agit du droit accordé à un processus dont l'identifiant utilisateur du "
1893 "système de fichiers correspond à celui de la clé."
1894
1895 #. type: TP
1896 #: debian-trixie
1897 #, no-wrap
1898 msgid "I<group>"
1899 msgstr "I<group>"
1900
1901 #. type: Plain text
1902 #: debian-trixie
1903 msgid ""
1904 "This is the permission granted to a process whose filesystem GID or any of "
1905 "its supplementary GIDs matches the GID of the key."
1906 msgstr ""
1907 "Il s'agit du droit accordé au processus dont l'identifiant de groupe du "
1908 "système de fichiers ou un de ses identifiants de groupes supplémentaires "
1909 "correspond à celui de la clé."
1910
1911 #. type: TP
1912 #: debian-trixie
1913 #, no-wrap
1914 msgid "I<other>"
1915 msgstr "I<other>"
1916
1917 #. type: Plain text
1918 #: debian-trixie
1919 msgid ""
1920 "This is the permission granted to other processes that do not match the "
1921 "I<user> and I<group> categories."
1922 msgstr ""
1923 "Il s'agit du droit accordé aux autres processus qui ne rentrent pas dans les "
1924 "catégories I<user> et I<group>."
1925
1926 #. type: Plain text
1927 #: debian-trixie
1928 msgid ""
1929 "The I<user>, I<group>, and I<other> categories are exclusive: if a process "
1930 "matches the I<user> category, it will not receive permissions granted in the "
1931 "I<group> category; if a process matches the I<user> or I<group> category, "
1932 "then it will not receive permissions granted in the I<other> category."
1933 msgstr ""
1934 "Les catégories I<user>, I<group> et I<other> sont exclusives : si un "
1935 "processus rentre dans la catégorie I<user>, il ne recevra pas de droits dans "
1936 "la catégorie I<group> ; s'il rentre dans la catégorie I<user> ou I<group>, "
1937 "il ne recevra aucun droit de la catégorie I<other>."
1938
1939 #. type: Plain text
1940 #: debian-trixie
1941 msgid ""
1942 "The I<possessor> category grants permissions that are cumulative with the "
1943 "grants from the I<user>, I<group>, or I<other> category."
1944 msgstr ""
1945 "La catégorie I<possessor> accorde des droits qui s'ajoutent à ceux accordés "
1946 "en vertu des catégories I<user>, I<group> ou I<other>."
1947
1948 #. type: Plain text
1949 #: debian-trixie
1950 msgid ""
1951 "Each permission mask is eight bits in size, with only six bits currently "
1952 "used. The available permissions are:"
1953 msgstr ""
1954 "Chaque masque de droits pèse huit bits, dont seuls six sont actuellement "
1955 "utilisés. Les droits disponibles sont :"
1956
1957 #. type: TP
1958 #: debian-trixie
1959 #, no-wrap
1960 msgid "I<view>"
1961 msgstr "I<view>"
1962
1963 #. type: Plain text
1964 #: debian-trixie
1965 msgid "This permission allows reading attributes of a key."
1966 msgstr "Droit de lire les attributs d'une clé."
1967
1968 #. type: Plain text
1969 #: debian-trixie
1970 msgid "This permission is required for the B<KEYCTL_DESCRIBE> operation."
1971 msgstr "Ce droit est nécessaire pour l'opération B<KEYCTL_DESCRIBE>."
1972
1973 #. type: Plain text
1974 #: debian-trixie
1975 msgid ""
1976 "The permission bits for each category are B<KEY_POS_VIEW>, B<KEY_USR_VIEW>, "
1977 "B<KEY_GRP_VIEW>, and B<KEY_OTH_VIEW>."
1978 msgstr ""
1979 "Les bits de droit pour chaque catégorie sont B<KEY_POS_VIEW>, "
1980 "B<KEY_USR_VIEW>, B<KEY_GRP_VIEW> et B<KEY_OTH_VIEW>."
1981
1982 #. type: TP
1983 #: debian-trixie
1984 #, no-wrap
1985 msgid "I<read>"
1986 msgstr "I<read>"
1987
1988 #. type: Plain text
1989 #: debian-trixie
1990 msgid "This permission allows reading a key's payload."
1991 msgstr "Lire la charge utile d'une clé."
1992
1993 #. type: Plain text
1994 #: debian-trixie
1995 msgid "This permission is required for the B<KEYCTL_READ> operation."
1996 msgstr "Ce droit est nécessaire pour l'opération B<KEYCTL_READ>."
1997
1998 #. type: Plain text
1999 #: debian-trixie
2000 msgid ""
2001 "The permission bits for each category are B<KEY_POS_READ>, B<KEY_USR_READ>, "
2002 "B<KEY_GRP_READ>, and B<KEY_OTH_READ>."
2003 msgstr ""
2004 "Les bits de droit pour chaque catégorie sont B<KEY_POS_READ>, "
2005 "B<KEY_USR_READ>, B<KEY_GRP_READ> et B<KEY_OTH_READ>."
2006
2007 #. type: TP
2008 #: debian-trixie
2009 #, no-wrap
2010 msgid "I<write>"
2011 msgstr "I<write>"
2012
2013 #. type: Plain text
2014 #: debian-trixie
2015 msgid ""
2016 "This permission allows update or instantiation of a key's payload. For a "
2017 "keyring, it allows keys to be linked and unlinked from the keyring,"
2018 msgstr ""
2019 "Mettre à jour ou instancier une clé. Pour un trousseau, attacher ou détacher "
2020 "des clés d'un trousseau."
2021
2022 #. type: Plain text
2023 #: debian-trixie
2024 msgid ""
2025 "This permission is required for the B<KEYCTL_UPDATE>, B<KEYCTL_REVOKE>, "
2026 "B<KEYCTL_CLEAR>, B<KEYCTL_LINK>, and B<KEYCTL_UNLINK> operations."
2027 msgstr ""
2028 "Ce droit est nécessaire pour les opérations B<KEYCTL_UPDATE>, "
2029 "B<KEYCTL_REVOKE>, B<KEYCTL_CLEAR>, B<KEYCTL_LINK> et B<KEYCTL_UNLINK>."
2030
2031 #. type: Plain text
2032 #: debian-trixie
2033 msgid ""
2034 "The permission bits for each category are B<KEY_POS_WRITE>, "
2035 "B<KEY_USR_WRITE>, B<KEY_GRP_WRITE>, and B<KEY_OTH_WRITE>."
2036 msgstr ""
2037 "Les bits des droits pour chaque catégorie sont B<KEY_POS_WRITE>, "
2038 "B<KEY_USR_WRITE>, B<KEY_GRP_WRITE> et B<KEY_OTH_WRITE>."
2039
2040 #. type: TP
2041 #: debian-trixie
2042 #, no-wrap
2043 msgid "I<search>"
2044 msgstr "I<search>"
2045
2046 #. type: Plain text
2047 #: debian-trixie
2048 msgid ""
2049 "This permission allows keyrings to be searched and keys to be found. "
2050 "Searches can recurse only into nested keyrings that have I<search> "
2051 "permission set."
2052 msgstr ""
2053 "Rechercher dans les trousseaux et rendre les clés trouvables. Les recherches "
2054 "ne peuvent parcourir des trousseaux imbriqués que si les droits I<search> y "
2055 "sont positionnés."
2056
2057 #. type: Plain text
2058 #: debian-trixie
2059 msgid ""
2060 "This permission is required for the B<KEYCTL_GET_KEYRING_ID>, "
2061 "B<KEYCTL_JOIN_SESSION_KEYRING>, B<KEYCTL_SEARCH>, and B<KEYCTL_INVALIDATE> "
2062 "operations."
2063 msgstr ""
2064 "Ce droit est nécessaire pour les opérations B<KEYCTL_GET_KEYRING_ID>, "
2065 "B<KEYCTL_JOIN_SESSION_KEYRING>, B<KEYCTL_SEARCH> et B<KEYCTL_INVALIDATE>."
2066
2067 #. type: Plain text
2068 #: debian-trixie
2069 msgid ""
2070 "The permission bits for each category are B<KEY_POS_SEARCH>, "
2071 "B<KEY_USR_SEARCH>, B<KEY_GRP_SEARCH>, and B<KEY_OTH_SEARCH>."
2072 msgstr ""
2073 "Les bits de droit pour chaque catégorie sont B<KEY_POS_SEARCH>, "
2074 "B<KEY_USR_SEARCH>, B<KEY_GRP_SEARCH> et B<KEY_OTH_SEARCH>."
2075
2076 #. type: TP
2077 #: debian-trixie
2078 #, no-wrap
2079 msgid "I<link>"
2080 msgstr "I<link>"
2081
2082 #. type: Plain text
2083 #: debian-trixie
2084 msgid "This permission allows a key or keyring to be linked to."
2085 msgstr "Rattacher une clé ou un trousseau."
2086
2087 #. type: Plain text
2088 #: debian-trixie
2089 msgid ""
2090 "This permission is required for the B<KEYCTL_LINK> and "
2091 "B<KEYCTL_SESSION_TO_PARENT> operations."
2092 msgstr ""
2093 "Ce droit est nécessaire pour les opérations B<KEYCTL_LINK> et "
2094 "B<KEYCTL_SESSION_TO_PARENT>."
2095
2096 #. type: Plain text
2097 #: debian-trixie
2098 msgid ""
2099 "The permission bits for each category are B<KEY_POS_LINK>, B<KEY_USR_LINK>, "
2100 "B<KEY_GRP_LINK>, and B<KEY_OTH_LINK>."
2101 msgstr ""
2102 "Les bits des droits pour cette catégorie sont B<KEY_POS_LINK>, "
2103 "B<KEY_USR_LINK>, B<KEY_GRP_LINK> et B<KEY_OTH_LINK>."
2104
2105 #. type: TP
2106 #: debian-trixie
2107 #, no-wrap
2108 msgid "I<setattr> (since Linux 2.6.15)."
2109 msgstr "I<setattr> (depuis Linux 2.6.15)."
2110
2111 #. type: Plain text
2112 #: debian-trixie
2113 msgid ""
2114 "This permission allows a key's UID, GID, and permissions mask to be changed."
2115 msgstr ""
2116 "Modifier un identifiant d'utilisateur, de groupe ou le masque de droits "
2117 "d'une clé."
2118
2119 #. type: Plain text
2120 #: debian-trixie
2121 msgid ""
2122 "This permission is required for the B<KEYCTL_REVOKE>, B<KEYCTL_CHOWN>, and "
2123 "B<KEYCTL_SETPERM> operations."
2124 msgstr ""
2125 "Ce droit est nécessaire pour les opérations B<KEYCTL_REVOKE>, "
2126 "B<KEYCTL_CHOWN> et B<KEYCTL_SETPERM>."
2127
2128 #. type: Plain text
2129 #: debian-trixie
2130 msgid ""
2131 "The permission bits for each category are B<KEY_POS_SETATTR>, "
2132 "B<KEY_USR_SETATTR>, B<KEY_GRP_SETATTR>, and B<KEY_OTH_SETATTR>."
2133 msgstr ""
2134 "Les bits de droits pour chaque catégorie sont B<KEY_POS_SETATTR>, "
2135 "B<KEY_USR_SETATTR>, B<KEY_GRP_SETATTR> et B<KEY_OTH_SETATTR>."
2136
2137 #. type: Plain text
2138 #: debian-trixie
2139 msgid ""
2140 "As a convenience, the following macros are defined as masks for all of the "
2141 "permission bits in each of the user categories: B<KEY_POS_ALL>, "
2142 "B<KEY_USR_ALL>, B<KEY_GRP_ALL>, and B<KEY_OTH_ALL>."
2143 msgstr ""
2144 "Par commodité, les macros suivantes sont définies en tant que masques pour "
2145 "tous les bits de droits de chacune des catégories de l'utilisateur : "
2146 "B<KEY_POS_ALL>, B<KEY_USR_ALL>, B<KEY_GRP_ALL> et B<KEY_OTH_ALL>."
2147
2148 #. type: Plain text
2149 #: debian-trixie
2150 msgid "The I<arg4> and I<arg5> arguments are ignored."
2151 msgstr "Les paramètres I<arg4> et I<arg5> sont ignorés."
2152
2153 #. type: Plain text
2154 #: debian-trixie
2155 msgid ""
2156 "This operation is exposed by I<libkeyutils> via the function "
2157 "B<keyctl_setperm>(3)."
2158 msgstr ""
2159 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2160 "fonction B<keyctl_setperm>(3)."
2161
2162 #. type: TP
2163 #: debian-trixie
2164 #, no-wrap
2165 msgid "B<KEYCTL_DESCRIBE> (since Linux 2.6.10)"
2166 msgstr "B<KEYCTL_DESCRIBE> (depuis Linux 2.6.10)"
2167
2168 #. type: Plain text
2169 #: debian-trixie
2170 msgid "Obtain a string describing the attributes of a specified key."
2171 msgstr "Obtenir une chaîne décrivant les attributs d'une clé indiquée."
2172
2173 #. type: Plain text
2174 #: debian-trixie
2175 #, fuzzy
2176 #| msgid ""
2177 #| "The ID of the key to be described is specified in I<arg2> (cast to "
2178 #| "I<key_serial_t>). The descriptive string is returned in the buffer "
2179 #| "pointed to by I<arg3> (cast to I<char\\ *>); I<arg4> (cast to I<size_t>) "
2180 #| "specifies the size of that buffer in bytes."
2181 msgid ""
2182 "The ID of the key to be described is specified in I<arg2> (cast to "
2183 "I<key_serial_t>). The descriptive string is returned in the buffer pointed "
2184 "to by I<arg3> (cast to I<char\\ *>); I<arg4> (cast to I<size_t>) specifies "
2185 "the size of that buffer in bytes."
2186 msgstr ""
2187 "L'identifiant de la clé à décrire est indiqué dans I<arg2> (diffusé sur "
2188 "I<key_serial_t>). La chaîne de description est renvoyée dans le tampon vers "
2189 "lequel pointe I<arg3> (diffusé sur I<char\\ *>) ; I<arg4> (diffusé sur "
2190 "I<size_t>) indique la taille de ce tampon en octets."
2191
2192 #. type: Plain text
2193 #: debian-trixie
2194 msgid "The key must grant the caller I<view> permission."
2195 msgstr "La clé doit accorder le droit I<view> à l'appelant."
2196
2197 #. type: Plain text
2198 #: debian-trixie
2199 msgid ""
2200 "The returned string is null-terminated and contains the following "
2201 "information about the key:"
2202 msgstr ""
2203 "La chaîne renvoyée se termine par NULL et contient les informations "
2204 "suivantes sur la clé :"
2205
2206 #. type: Plain text
2207 #: debian-trixie
2208 msgid "I<type>;I<uid>;I<gid>;I<perm>;I<description>"
2209 msgstr "I<type>;I<uid>;I<gid>;I<perm>;I<description>"
2210
2211 #. type: Plain text
2212 #: debian-trixie
2213 msgid ""
2214 "In the above, I<type> and I<description> are strings, I<uid> and I<gid> are "
2215 "decimal strings, and I<perm> is a hexadecimal permissions mask. The "
2216 "descriptive string is written with the following format:"
2217 msgstr ""
2218 "Dans ce qui précède, I<type> et I<description> sont des chaînes, I<uid> et "
2219 "I<gid> sont des chaînes décimales et I<perm> est un masque de droits "
2220 "hexadécimal. La chaîne de description est écrite dans le format suivant :"
2221
2222 #. type: Plain text
2223 #: debian-trixie
2224 #, no-wrap
2225 msgid "%s;%d;%d;%08x;%s\n"
2226 msgstr "%s;%d;%d;%08x;%s\n"
2227
2228 #. FIXME But, the kernel does not enforce the requirement
2229 #. that the key description contains no semicolons!
2230 #. So, user space has no guarantee here??
2231 #. Either something more needs to be said here,
2232 #. or a kernel fix is required.
2233 #. type: Plain text
2234 #: debian-trixie
2235 msgid ""
2236 "B<Note: the intention is that the descriptive string should> B<be extensible "
2237 "in future kernel versions.> In particular, the I<description> field will not "
2238 "contain semicolons; it should be parsed by working backwards from the end of "
2239 "the string to find the last semicolon. This allows future semicolon-"
2240 "delimited fields to be inserted in the descriptive string in the future."
2241 msgstr ""
2242 "B<Note : l'objectif est d'étendre la chaîne de description dans les futures "
2243 "versions du noyau>. En particulier, le champ I<description> ne contiendra "
2244 "pas de point-virgule ; elle doit être analysée en partant de la fin pour "
2245 "chercher le dernier point-virgule. Cela permettra, à l'avenir, d'insérer des "
2246 "champs délimités avec des points-virgules."
2247
2248 #. Function commentary says it copies up to buflen bytes, but see the
2249 #. (buffer && buflen >= ret) condition in keyctl_describe_key() in
2250 #. security/keyctl.c
2251 #. type: Plain text
2252 #: debian-trixie
2253 msgid ""
2254 "Writing to the buffer is attempted only when I<arg3> is non-NULL and the "
2255 "specified buffer size is large enough to accept the descriptive string "
2256 "(including the terminating null byte). In order to determine whether the "
2257 "buffer size was too small, check to see if the return value of the operation "
2258 "is greater than I<arg4>."
2259 msgstr ""
2260 "Une tentative d'écrire dans le tampon n'a lieu que lorsque I<arg3> n'est pas "
2261 "NULL et quand la taille du tampon indiquée est assez grande pour accepter la "
2262 "chaîne de description (y compris l'octet NULL final). Afin de déterminer si "
2263 "la taille du tampon était trop petite, vérifiez que la valeur de retour de "
2264 "l'opération est supérieure à I<arg4>."
2265
2266 #. type: Plain text
2267 #: debian-trixie
2268 msgid ""
2269 "This operation is exposed by I<libkeyutils> via the function "
2270 "B<keyctl_describe>(3)."
2271 msgstr ""
2272 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2273 "fonction B<keyctl_describe>(3)."
2274
2275 #. type: TP
2276 #: debian-trixie
2277 #, no-wrap
2278 msgid "B<KEYCTL_CLEAR>"
2279 msgstr "B<KEYCTL_CLEAR>"
2280
2281 #. type: Plain text
2282 #: debian-trixie
2283 msgid "Clear the contents of (i.e., unlink all keys from) a keyring."
2284 msgstr "Vider le contenu (à savoir détacher les clés) d'un trousseau."
2285
2286 #. or the error ENOTDIR results
2287 #. According to Documentation/security/keys.txt:
2288 #. This function can also be used to clear special kernel keyrings if they
2289 #. are appropriately marked if the user has CAP_SYS_ADMIN capability. The
2290 #. DNS resolver cache keyring is an example of this.
2291 #. type: Plain text
2292 #: debian-trixie
2293 msgid ""
2294 "The ID of the key (which must be of keyring type) is provided in I<arg2> "
2295 "(cast to I<key_serial_t>)."
2296 msgstr ""
2297 "L'identifiant de la clé (qui doit être de type trousseau) est fourni dans "
2298 "I<arg2> (diffusé sur I<key_serial_t>)."
2299
2300 #. type: Plain text
2301 #: debian-trixie
2302 msgid "The caller must have I<write> permission on the keyring."
2303 msgstr "L'appelant doit avoir le droit I<write> sur le trousseau."
2304
2305 #. type: Plain text
2306 #: debian-trixie
2307 msgid ""
2308 "This operation is exposed by I<libkeyutils> via the function "
2309 "B<keyctl_clear>(3)."
2310 msgstr ""
2311 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2312 "fonction B<keyctl_clear>(3)."
2313
2314 #. type: TP
2315 #: debian-trixie
2316 #, no-wrap
2317 msgid "B<KEYCTL_LINK> (since Linux 2.6.10)"
2318 msgstr "B<KEYCTL_LINK> (depuis Linux 2.6.10)"
2319
2320 #. type: Plain text
2321 #: debian-trixie
2322 msgid "Create a link from a keyring to a key."
2323 msgstr "Créer un lien d'un trousseau vers une clé."
2324
2325 #. type: Plain text
2326 #: debian-trixie
2327 msgid ""
2328 "The key to be linked is specified in I<arg2> (cast to I<key_serial_t>); the "
2329 "keyring is specified in I<arg3> (cast to I<key_serial_t>)."
2330 msgstr ""
2331 "La clé à rattacher est indiquée dans I<arg2> (diffusé sur I<key_serial_t>) ; "
2332 "le trousseau est indiqué dans I<arg3> (diffusé sur I<key_serial_t>)."
2333
2334 #. type: Plain text
2335 #: debian-trixie
2336 msgid ""
2337 "If a key with the same type and description is already linked in the "
2338 "keyring, then that key is displaced from the keyring."
2339 msgstr ""
2340 "Si une clé du même type et ayant la même description se trouve déjà "
2341 "rattachée au trousseau, elle est éliminée du trousseau."
2342
2343 #. type: Plain text
2344 #: debian-trixie
2345 msgid ""
2346 "Before creating the link, the kernel checks the nesting of the keyrings and "
2347 "returns appropriate errors if the link would produce a cycle or if the "
2348 "nesting of keyrings would be too deep (The limit on the nesting of keyrings "
2349 "is determined by the kernel constant B<KEYRING_SEARCH_MAX_DEPTH>, defined "
2350 "with the value 6, and is necessary to prevent overflows on the kernel stack "
2351 "when recursively searching keyrings)."
2352 msgstr ""
2353 "Avant de créer le rattachement, le noyau vérifie la profondeur des "
2354 "trousseaux et renvoie les erreurs adéquates si le rattachement crée une "
2355 "boucle ou si la profondeur des trousseaux serait trop importante (la limite "
2356 "de profondeur est définie par la constante B<KEYRING_SEARCH_MAX_DEPTH> du "
2357 "noyau, fixée à 6, et elle est nécessaire pour empêcher les débordements de "
2358 "de la pile du noyau lors d'une recherche récursive de trousseaux)."
2359
2360 #. type: Plain text
2361 #: debian-trixie
2362 msgid ""
2363 "The caller must have I<link> permission on the key being added and I<write> "
2364 "permission on the keyring."
2365 msgstr ""
2366 "L'appelant doit avoir le droit I<link> sur la clé à ajouter et celui "
2367 "I<write> sur le trousseau."
2368
2369 #. type: Plain text
2370 #: debian-trixie
2371 msgid ""
2372 "This operation is exposed by I<libkeyutils> via the function "
2373 "B<keyctl_link>(3)."
2374 msgstr ""
2375 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2376 "fonction B<keyctl_link>(3)."
2377
2378 #. type: TP
2379 #: debian-trixie
2380 #, no-wrap
2381 msgid "B<KEYCTL_UNLINK> (since Linux 2.6.10)"
2382 msgstr "B<KEYCTL_UNLINK> (depuis Linux 2.6.10)"
2383
2384 #. type: Plain text
2385 #: debian-trixie
2386 msgid "Unlink a key from a keyring."
2387 msgstr "Supprimer une clé d'un trousseau."
2388
2389 #. type: Plain text
2390 #: debian-trixie
2391 msgid ""
2392 "The ID of the key to be unlinked is specified in I<arg2> (cast to "
2393 "I<key_serial_t>); the ID of the keyring from which it is to be unlinked is "
2394 "specified in I<arg3> (cast to I<key_serial_t>)."
2395 msgstr ""
2396 "L'identifiant de la clé à détacher est indiqué dans I<arg2> (diffusé sur "
2397 "I<key_serial_t>) ; l'identifiant du trousseau d'où la clé doit être détachée "
2398 "est indiqué dans I<arg3> (diffusé sur I<key_serial_t>)."
2399
2400 #. type: Plain text
2401 #: debian-trixie
2402 msgid "If the key is not currently linked into the keyring, an error results."
2403 msgstr "Si la clé n'est pas rattachée au trousseau, cela produit une erreur."
2404
2405 #. type: Plain text
2406 #: debian-trixie
2407 msgid ""
2408 "The caller must have I<write> permission on the keyring from which the key "
2409 "is being removed."
2410 msgstr ""
2411 "L'appelant doit avoir le droit I<write> sur le trousseau d'où doit être "
2412 "détachée la clé."
2413
2414 #. type: Plain text
2415 #: debian-trixie
2416 msgid ""
2417 "If the last link to a key is removed, then that key will be scheduled for "
2418 "destruction."
2419 msgstr ""
2420 "Si le dernier rattachement d'une clé est supprimé, cette clé sera mise en "
2421 "destruction."
2422
2423 #. type: Plain text
2424 #: debian-trixie
2425 msgid ""
2426 "This operation is exposed by I<libkeyutils> via the function "
2427 "B<keyctl_unlink>(3)."
2428 msgstr ""
2429 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2430 "fonction B<keyctl_unlink>(3)."
2431
2432 #. type: TP
2433 #: debian-trixie
2434 #, no-wrap
2435 msgid "B<KEYCTL_SEARCH> (since Linux 2.6.10)"
2436 msgstr "B<KEYCTL_SEARCH> (depuis Linux 2.6.10)"
2437
2438 #. type: Plain text
2439 #: debian-trixie
2440 msgid ""
2441 "Search for a key in a keyring tree, returning its ID and optionally linking "
2442 "it to a specified keyring."
2443 msgstr ""
2444 "Chercher une clé dans l'arborescence d'un trousseau, renvoyer son "
2445 "identifiant et, éventuellement, la rattacher à un trousseau indiqué."
2446
2447 #. type: Plain text
2448 #: debian-trixie
2449 msgid ""
2450 "The tree to be searched is specified by passing the ID of the head keyring "
2451 "in I<arg2> (cast to I<key_serial_t>). The search is performed breadth-first "
2452 "and recursively."
2453 msgstr ""
2454 "L'arborescence où doit s'effectuer la recherche est indiquée en passant "
2455 "l'identifiant de la clé de tête à I<arg2> (diffusé sur I<key_serial_t>). La "
2456 "recherche s'effectue en largeur et récursivement."
2457
2458 #. type: Plain text
2459 #: debian-trixie
2460 #, fuzzy
2461 #| msgid ""
2462 #| "The I<arg3> and I<arg4> arguments specify the key to be searched for: "
2463 #| "I<arg3> (cast as I<char\\ *>) contains the key type (a null-terminated "
2464 #| "character string up to 32 bytes in size, including the terminating null "
2465 #| "byte), and I<arg4> (cast as I<char\\ *>) contains the description of the "
2466 #| "key (a null-terminated character string up to 4096 bytes in size, "
2467 #| "including the terminating null byte)."
2468 msgid ""
2469 "The I<arg3> and I<arg4> arguments specify the key to be searched for: "
2470 "I<arg3> (cast as I<char\\ *>) contains the key type (a null-terminated "
2471 "character string up to 32 bytes in size, including the terminating null "
2472 "byte), and I<arg4> (cast as I<char\\ *>) contains the description of the "
2473 "key (a null-terminated character string up to 4096 bytes in size, including "
2474 "the terminating null byte)."
2475 msgstr ""
2476 "Les paramètres I<arg3> et I<arg4> indiquent la clé à rechercher : I<arg3> "
2477 "(diffusé en tant que I<char\\ *>) contient le type de clé (une chaîne de "
2478 "caractères se terminant par NULL et mesurant jusqu'à 32 octets en comptant "
2479 "l'octet NULL final), et I<arg4> (diffusé en tant que I<char\\ *>) contient "
2480 "la description de la clé (une chaîne de caractères se terminant par NULL et "
2481 "mesurant jusqu'à 4096 octets en comptant l'octet NULL final)."
2482
2483 #. type: Plain text
2484 #: debian-trixie
2485 msgid ""
2486 "The source keyring must grant I<search> permission to the caller. When "
2487 "performing the recursive search, only keyrings that grant the caller "
2488 "I<search> permission will be searched. Only keys with for which the caller "
2489 "has I<search> permission can be found."
2490 msgstr ""
2491 "Le trousseau d'origine doit autoriser l'appelant à I<search>. Pendant la "
2492 "recherche récursive, seuls les trousseaux accordant le droit I<search> à "
2493 "l'appelant seront explorés. Seules les clés pour lesquelles l'appelant a le "
2494 "droit I<search> seront trouvées."
2495
2496 #. type: Plain text
2497 #: debian-trixie
2498 msgid "If the key is found, its ID is returned as the function result."
2499 msgstr ""
2500 "Si la clé est trouvée, son identifiant est renvoyé en tant que résultat de "
2501 "la fonction."
2502
2503 #. type: Plain text
2504 #: debian-trixie
2505 msgid ""
2506 "If the key is found and I<arg5> (cast to I<key_serial_t>) is nonzero, then, "
2507 "subject to the same constraints and rules as B<KEYCTL_LINK>, the key is "
2508 "linked into the keyring whose ID is specified in I<arg5>. If the "
2509 "destination keyring specified in I<arg5> already contains a link to a key "
2510 "that has the same type and description, then that link will be displaced by "
2511 "a link to the key found by this operation."
2512 msgstr ""
2513 "Si la clé est trouvée et si I<arg5> (diffusé sur I<key_serial_t>) n'est pas "
2514 "zéro, la clé est rattachée au trousseau indiqué dont l'identifiant est "
2515 "indiqué dans I<arg5>, avec les mêmes contraintes et les mêmes règles que "
2516 "B<KEYCTL_LINK>. Si le trousseau cible indiqué dans I<arg5> contient déjà une "
2517 "clé rattachée du même type et à la même description, cet attachement sera "
2518 "remplacé par un autre avec la clé trouvée avec cette opération."
2519
2520 #. type: Plain text
2521 #: debian-trixie
2522 msgid ""
2523 "Instead of valid existing keyring IDs, the source (I<arg2>) and destination "
2524 "(I<arg5>) keyrings can be one of the special keyring IDs listed under "
2525 "B<KEYCTL_GET_KEYRING_ID>."
2526 msgstr ""
2527 "Plutôt que des identifiants de trousseaux existants valables, les trousseaux "
2528 "d'origine (I<arg2>) et cible (I<arg5>) peuvent être un des identifiants de "
2529 "trousseau de clés spéciales indiqué dans B<KEYCTL_GET_KEYRING_ID>."
2530
2531 #. type: Plain text
2532 #: debian-trixie
2533 msgid ""
2534 "This operation is exposed by I<libkeyutils> via the function "
2535 "B<keyctl_search>(3)."
2536 msgstr ""
2537 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2538 "fonction B<keyctl_search>(3)."
2539
2540 #. type: TP
2541 #: debian-trixie
2542 #, no-wrap
2543 msgid "B<KEYCTL_READ> (since Linux 2.6.10)"
2544 msgstr "B<KEYCTL_READ> (depuis Linux 2.6.10)"
2545
2546 #. type: Plain text
2547 #: debian-trixie
2548 msgid "Read the payload data of a key."
2549 msgstr "Lire les données de la charge utile (I<payload>) d'une clé."
2550
2551 #. including KEY_SPEC_REQKEY_AUTH_KEY
2552 #. type: Plain text
2553 #: debian-trixie
2554 msgid ""
2555 "The ID of the key whose payload is to be read is specified in I<arg2> (cast "
2556 "to I<key_serial_t>). This can be the ID of an existing key, or any of the "
2557 "special key IDs listed for B<KEYCTL_GET_KEYRING_ID>."
2558 msgstr ""
2559 "L'identifiant de la clé dont la charge utile va être lue est indiqué dans "
2560 "I<arg2> (diffusé sur I<key_serial_t>). Il peut s'agir de l'identifiant d'une "
2561 "clé existante ou un identifiant de clé spéciale listé dans "
2562 "B<KEYCTL_GET_KEYRING_ID>."
2563
2564 #. type: Plain text
2565 #: debian-trixie
2566 msgid ""
2567 "The payload is placed in the buffer pointed by I<arg3> (cast to I<char\\ "
2568 "*>); the size of that buffer must be specified in I<arg4> (cast to "
2569 "I<size_t>)."
2570 msgstr ""
2571 "La charge utile est mise dans le tampon vers lequel pointe I<arg3> (diffusé "
2572 "sur I<char\\ *>) ; la taille de ce tampon doit être indiquée dans I<arg4> "
2573 "(diffusé sur I<size_t>)."
2574
2575 #. type: Plain text
2576 #: debian-trixie
2577 msgid ""
2578 "The returned data will be processed for presentation according to the key "
2579 "type. For example, a keyring will return an array of I<key_serial_t> "
2580 "entries representing the IDs of all the keys that are linked to it. The "
2581 "I<user> key type will return its data as is. If a key type does not "
2582 "implement this function, the operation fails with the error B<EOPNOTSUPP>."
2583 msgstr ""
2584 "Les données renvoyées seront traitées pour être présentées en fonction du "
2585 "type de clé. Par exemple, un trousseau renverra un tableau d'entrées "
2586 "I<key_serial_t> qui représentent les identifiants de toutes les clés qui y "
2587 "sont rattachées. Le type de clé I<user> renverra ses données telles quelles. "
2588 "Si un type de clé n'implémente pas cette fonction, l'opération échoue avec "
2589 "l'erreur B<EOPNOTSUPP>."
2590
2591 #. type: Plain text
2592 #: debian-trixie
2593 msgid ""
2594 "If I<arg3> is not NULL, as much of the payload data as will fit is copied "
2595 "into the buffer. On a successful return, the return value is always the "
2596 "total size of the payload data. To determine whether the buffer was of "
2597 "sufficient size, check to see that the return value is less than or equal to "
2598 "the value supplied in I<arg4>."
2599 msgstr ""
2600 "Si I<arg3> n'est pas NULL, autant de données que possible de la charge utile "
2601 "seront copiées dans le tampon. En cas de renvoi d'un succès, la valeur est "
2602 "toujours la taille totale des données de la charge utile. Pour savoir si le "
2603 "tampon était de taille suffisante, vérifiez que la valeur de retour est "
2604 "inférieure ou égale à celle fournie dans I<arg4>."
2605
2606 #. type: Plain text
2607 #: debian-trixie
2608 msgid ""
2609 "The key must either grant the caller I<read> permission, or grant the caller "
2610 "I<search> permission when searched for from the process keyrings (i.e., the "
2611 "key is possessed)."
2612 msgstr ""
2613 "La clé doit accorder à l'appelant le droit I<read>, ou bien lui accorder le "
2614 "droit I<search> quand elle est recherchée depuis les trousseaux d'un "
2615 "processus (à savoir quand elle est détenue)."
2616
2617 #. type: Plain text
2618 #: debian-trixie
2619 msgid ""
2620 "This operation is exposed by I<libkeyutils> via the function "
2621 "B<keyctl_read>(3)."
2622 msgstr ""
2623 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2624 "fonction B<keyctl_read>(3)."
2625
2626 #. type: TP
2627 #: debian-trixie
2628 #, no-wrap
2629 msgid "B<KEYCTL_INSTANTIATE> (since Linux 2.6.10)"
2630 msgstr "B<KEYCTL_INSTANTIATE> (depuis Linux 2.6.10)"
2631
2632 #. type: Plain text
2633 #: debian-trixie
2634 msgid ""
2635 "(Positively) instantiate an uninstantiated key with a specified payload."
2636 msgstr ""
2637 "Instancier (positivement) une clé non instanciée avec une charge utile "
2638 "indiquée"
2639
2640 #. type: Plain text
2641 #: debian-trixie
2642 msgid ""
2643 "The ID of the key to be instantiated is provided in I<arg2> (cast to "
2644 "I<key_serial_t>)."
2645 msgstr ""
2646 "L'identifiant de la clé à instancier est fournie dans I<arg2> (diffusée sur "
2647 "I<key_serial_t>)."
2648
2649 #. type: Plain text
2650 #: debian-trixie
2651 msgid ""
2652 "The key payload is specified in the buffer pointed to by I<arg3> (cast to "
2653 "I<void\\ *>); the size of that buffer is specified in I<arg4> (cast to "
2654 "I<size_t>)."
2655 msgstr ""
2656 "La charge utile de la clé est indiquée dans le tampon vers lequel pointe "
2657 "I<arg3> (diffusé sur I<void\\ *>) ; la taille de ce tampon est indiquée dans "
2658 "I<arg4> (diffusée sur I<size_t>)."
2659
2660 #. type: Plain text
2661 #: debian-trixie
2662 msgid ""
2663 "The payload may be a null pointer and the buffer size may be 0 if this is "
2664 "supported by the key type (e.g., it is a keyring)."
2665 msgstr ""
2666 "La charge utile peut être un pointeur NULL et la taille du tampon peut être "
2667 "de B<0> si cela est pris en charge par le type de clé (si c'est un "
2668 "trousseau, par exemple)."
2669
2670 #. type: Plain text
2671 #: debian-trixie
2672 msgid ""
2673 "The operation may be fail if the payload data is in the wrong format or is "
2674 "otherwise invalid."
2675 msgstr ""
2676 "L'opération peut échouer si les données de charge utile sont dans un mauvais "
2677 "format ou non valables pour toute autre raison."
2678
2679 #. type: Plain text
2680 #: debian-trixie
2681 msgid ""
2682 "If I<arg5> (cast to I<key_serial_t>) is nonzero, then, subject to the same "
2683 "constraints and rules as B<KEYCTL_LINK>, the instantiated key is linked into "
2684 "the keyring whose ID specified in I<arg5>."
2685 msgstr ""
2686 "Si I<arg5> (diffusé sur I<key_serial_t>) n'est pas zéro, la clé instanciée "
2687 "est rattachée au trousseau dont l'identifiant a été indiqué dans I<arg5>, "
2688 "avec les mêmes contraintes et les mêmes règles que B<KEYCTL_LINK>."
2689
2690 #. type: Plain text
2691 #: debian-trixie
2692 msgid ""
2693 "The caller must have the appropriate authorization key, and once the "
2694 "uninstantiated key has been instantiated, the authorization key is revoked. "
2695 "In other words, this operation is available only from a B<request-key>(8)-"
2696 "style program. See B<request_key>(2) for an explanation of uninstantiated "
2697 "keys and key instantiation."
2698 msgstr ""
2699 "L'appelant doit avoir la clé d'autorisation adéquate, et une fois que la clé "
2700 "non instanciée a été instanciée, la clé d'autorisation est révoquée. "
2701 "Autrement dit, cette opération n'est disponible qu'à partir d'un programme "
2702 "de style B<request-key>(8). Voir B<request_key>(2) pour une explication sur "
2703 "les clés non instanciées et l'instanciation de clés."
2704
2705 #. type: Plain text
2706 #: debian-trixie
2707 msgid ""
2708 "This operation is exposed by I<libkeyutils> via the function "
2709 "B<keyctl_instantiate>(3)."
2710 msgstr ""
2711 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2712 "fonction B<keyctl_instantiate>(3)."
2713
2714 #. type: TP
2715 #: debian-trixie
2716 #, no-wrap
2717 msgid "B<KEYCTL_NEGATE> (since Linux 2.6.10)"
2718 msgstr "B<KEYCTL_NEGATE> (depuis Linux 2.6.10)"
2719
2720 #. type: Plain text
2721 #: debian-trixie
2722 msgid "Negatively instantiate an uninstantiated key."
2723 msgstr "Instancier négativement une clé non instanciée."
2724
2725 #. type: Plain text
2726 #: debian-trixie
2727 msgid "This operation is equivalent to the call:"
2728 msgstr "Cette opération est équivalente à l'appel :"
2729
2730 #. type: Plain text
2731 #: debian-trixie
2732 #, no-wrap
2733 msgid "keyctl(KEYCTL_REJECT, arg2, arg3, ENOKEY, arg4);\n"
2734 msgstr "keyctl(KEYCTL_REJECT, arg2, arg3, ENOKEY, arg4);\n"
2735
2736 #. type: Plain text
2737 #: debian-trixie
2738 msgid ""
2739 "This operation is exposed by I<libkeyutils> via the function "
2740 "B<keyctl_negate>(3)."
2741 msgstr ""
2742 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2743 "fonction B<keyctl_negate>(3)."
2744
2745 #. type: TP
2746 #: debian-trixie
2747 #, no-wrap
2748 msgid "B<KEYCTL_SET_REQKEY_KEYRING> (since Linux 2.6.13)"
2749 msgstr "B<KEYCTL_SET_REQKEY_KEYRING> (depuis Linux 2.6.10)"
2750
2751 #. I.e., calls to the kernel's internal request_key() interface,
2752 #. which is distinct from the request_key(2) system call (which
2753 #. ultimately employs the kernel-internal interface).
2754 #. type: Plain text
2755 #: debian-trixie
2756 msgid ""
2757 "Set the default keyring to which implicitly requested keys will be linked "
2758 "for this thread, and return the previous setting. Implicit key requests are "
2759 "those made by internal kernel components, such as can occur when, for "
2760 "example, opening files on an AFS or NFS filesystem. Setting the default "
2761 "keyring also has an effect when requesting a key from user space; see "
2762 "B<request_key>(2) for details."
2763 msgstr ""
2764 "Définir le trousseau par défaut auquel les clés demandées implicitement "
2765 "seront rattachées pour ce thread et renvoyer la configuration précédente. "
2766 "Les requêtes de clé implicites sont celles que des composants du noyau "
2767 "effectuent en interne, comme par exemple lors de l'ouverture de fichiers sur "
2768 "des systèmes de fichiers AFS ou NFS. Le fait de définir un trousseau par "
2769 "défaut produit également des effets lors d'une demande de clé depuis "
2770 "l'espace utilisateur ; voir B<request_key>(2) pour les détails."
2771
2772 #. type: Plain text
2773 #: debian-trixie
2774 msgid ""
2775 "The I<arg2> argument (cast to I<int>) should contain one of the following "
2776 "values, to specify the new default keyring:"
2777 msgstr ""
2778 "Le paramètre I<arg2> (diffusé sur I<int>) doit contenir une des valeurs "
2779 "suivantes pour indiquer le nouveau trousseau par défaut :"
2780
2781 #. type: TP
2782 #: debian-trixie
2783 #, no-wrap
2784 msgid "B<KEY_REQKEY_DEFL_NO_CHANGE>"
2785 msgstr "B<KEY_REQKEY_DEFL_NO_CHANGE>"
2786
2787 #. type: Plain text
2788 #: debian-trixie
2789 msgid ""
2790 "Don't change the default keyring. This can be used to discover the current "
2791 "default keyring (without changing it)."
2792 msgstr ""
2793 "Ne pas modifier le trousseau par défaut. Cela peut servir à rechercher le "
2794 "trousseau par défaut actuel (sans le modifier)."
2795
2796 #. type: TP
2797 #: debian-trixie
2798 #, no-wrap
2799 msgid "B<KEY_REQKEY_DEFL_DEFAULT>"
2800 msgstr "B<KEY_REQKEY_DEFL_DEFAULT>"
2801
2802 #. type: Plain text
2803 #: debian-trixie
2804 msgid ""
2805 "This selects the default behaviour, which is to use the thread-specific "
2806 "keyring if there is one, otherwise the process-specific keyring if there is "
2807 "one, otherwise the session keyring if there is one, otherwise the UID-"
2808 "specific session keyring, otherwise the user-specific keyring."
2809 msgstr ""
2810 "Cela sélectionne le comportement par défaut qui consiste à utiliser le "
2811 "trousseau spécifique au thread s'il y en a un, ou sinon celui spécifique au "
2812 "processus s'il y en a un, ou bien celui spécifique à la session s'il y en a "
2813 "un, ou sinon celui de la session spécifique de l'identifiant utilisateur, ou "
2814 "celui spécifique à l'utilisateur."
2815
2816 #. type: TP
2817 #: debian-trixie
2818 #, no-wrap
2819 msgid "B<KEY_REQKEY_DEFL_THREAD_KEYRING>"
2820 msgstr "B<KEY_REQKEY_DEFL_THREAD_KEYRING>"
2821
2822 #. type: Plain text
2823 #: debian-trixie
2824 msgid ""
2825 "Use the thread-specific keyring (B<thread-keyring>(7)) as the new default "
2826 "keyring."
2827 msgstr ""
2828 "Utiliser le trousseau spécifique du thread (B<thread-keyring>(7)) en tant "
2829 "que nouveau trousseau par défaut."
2830
2831 #. type: TP
2832 #: debian-trixie
2833 #, no-wrap
2834 msgid "B<KEY_REQKEY_DEFL_PROCESS_KEYRING>"
2835 msgstr "B<KEY_REQKEY_DEFL_PROCESS_KEYRING>"
2836
2837 #. type: Plain text
2838 #: debian-trixie
2839 msgid ""
2840 "Use the process-specific keyring (B<process-keyring>(7)) as the new default "
2841 "keyring."
2842 msgstr ""
2843 "Utiliser le trousseau spécifique au processus (B<process-keyring>(7)) en "
2844 "tant que nouveau trousseau par défaut."
2845
2846 #. type: TP
2847 #: debian-trixie
2848 #, no-wrap
2849 msgid "B<KEY_REQKEY_DEFL_SESSION_KEYRING>"
2850 msgstr "B<KEY_REQKEY_DEFL_SESSION_KEYRING>"
2851
2852 #. type: Plain text
2853 #: debian-trixie
2854 msgid ""
2855 "Use the session-specific keyring (B<session-keyring>(7)) as the new default "
2856 "keyring."
2857 msgstr ""
2858 "Utiliser le trousseau spécifique à la session (B<session-keyring>(7)) en "
2859 "tant que nouveau trousseau par défaut."
2860
2861 #. type: TP
2862 #: debian-trixie
2863 #, no-wrap
2864 msgid "B<KEY_REQKEY_DEFL_USER_KEYRING>"
2865 msgstr "B<KEY_REQKEY_DEFL_USER_KEYRING>"
2866
2867 #. type: Plain text
2868 #: debian-trixie
2869 msgid ""
2870 "Use the UID-specific keyring (B<user-keyring>(7)) as the new default "
2871 "keyring."
2872 msgstr ""
2873 "Utiliser le trousseau spécifique à l'identifiant utilisateur (B<user-"
2874 "keyring>(7)) en tant que nouveau trousseau par défaut."
2875
2876 #. type: TP
2877 #: debian-trixie
2878 #, no-wrap
2879 msgid "B<KEY_REQKEY_DEFL_USER_SESSION_KEYRING>"
2880 msgstr "B<KEY_REQKEY_DEFL_USER_SESSION_KEYRING>"
2881
2882 #. type: Plain text
2883 #: debian-trixie
2884 msgid ""
2885 "Use the UID-specific session keyring (B<user-session-keyring>(7)) as the "
2886 "new default keyring."
2887 msgstr ""
2888 "Utiliser le trousseau de la session spécifique de l'identifiant utilisateur "
2889 "(B<user-session-keyring>(7)) en tant que nouveau trousseau par défaut."
2890
2891 #. type: TP
2892 #: debian-trixie
2893 #, no-wrap
2894 msgid "B<KEY_REQKEY_DEFL_REQUESTOR_KEYRING> (since Linux 2.6.29)"
2895 msgstr "B<KEY_REQKEY_DEFL_REQUESTOR_KEYRING> (depuis Linux 2.6.29)"
2896
2897 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
2898 #. FIXME The preceding explanation needs to be expanded.
2899 #. Is the following correct:
2900 #. The requestor keyring is the dest_keyring that
2901 #. was supplied to a call to request_key(2)?
2902 #. David Howells said: to be checked
2903 #. type: Plain text
2904 #: debian-trixie
2905 msgid "Use the requestor keyring."
2906 msgstr "Utiliser le trousseau du demandeur."
2907
2908 #. (including the still-unsupported KEY_REQKEY_DEFL_GROUP_KEYRING)
2909 #. type: Plain text
2910 #: debian-trixie
2911 msgid "All other values are invalid."
2912 msgstr "Toutes les autres valeurs ne sont pas valables."
2913
2914 #. type: Plain text
2915 #: debian-trixie
2916 msgid ""
2917 "The setting controlled by this operation is inherited by the child of "
2918 "B<fork>(2) and preserved across B<execve>(2)."
2919 msgstr ""
2920 "Le paramètre que contrôle cette opération est récupéré par l'enfant de "
2921 "B<fork>(2) et conservé durant un B<execve>(2)."
2922
2923 #. type: Plain text
2924 #: debian-trixie
2925 msgid ""
2926 "This operation is exposed by I<libkeyutils> via the function "
2927 "B<keyctl_set_reqkey_keyring>(3)."
2928 msgstr ""
2929 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
2930 "fonction B<keyctl_set_reqkey_keyring>(3)."
2931
2932 #. type: TP
2933 #: debian-trixie
2934 #, no-wrap
2935 msgid "B<KEYCTL_SET_TIMEOUT> (since Linux 2.6.16)"
2936 msgstr "B<KEYCTL_SET_TIMEOUT> (depuis Linux 2.6.10)"
2937
2938 #. type: Plain text
2939 #: debian-trixie
2940 msgid "Set a timeout on a key."
2941 msgstr "Définir un délai d'expiration sur une clé."
2942
2943 #. type: Plain text
2944 #: debian-trixie
2945 msgid ""
2946 "The ID of the key is specified in I<arg2> (cast to I<key_serial_t>). The "
2947 "timeout value, in seconds from the current time, is specified in I<arg3> "
2948 "(cast to I<unsigned int>). The timeout is measured against the realtime "
2949 "clock."
2950 msgstr ""
2951 "L'identifiant de la clé est indiqué dans I<arg2> (diffusé sur "
2952 "I<key_serial_t>). La valeur du délai, en seconde à partir de l'heure "
2953 "actuelle, est indiquée dans I<arg3> (diffusé sur I<unsigned int>). Le délai "
2954 "se mesure par rapport à l'horloge en temps réel."
2955
2956 #. type: Plain text
2957 #: debian-trixie
2958 msgid ""
2959 "Specifying the timeout value as 0 clears any existing timeout on the key."
2960 msgstr ""
2961 "L'indication d'une valeur de délai de B<0> vide les délais existants de la "
2962 "clé."
2963
2964 #. type: Plain text
2965 #: debian-trixie
2966 msgid ""
2967 "The I</proc/keys> file displays the remaining time until each key will "
2968 "expire. (This is the only method of discovering the timeout on a key.)"
2969 msgstr ""
2970 "Le fichier I</proc/keys> affiche le temps restant avant l'expiration de "
2971 "chaque clé (il s'agit de la seule méthode de recherche du temps de vie d'une "
2972 "clé)."
2973
2974 #. type: Plain text
2975 #: debian-trixie
2976 msgid ""
2977 "The caller must either have the I<setattr> permission on the key or hold an "
2978 "instantiation authorization token for the key (see B<request_key>(2))."
2979 msgstr ""
2980 "L'appelant doit avoir le droit I<setattr> sur la clé ou détenir un jeton "
2981 "d'autorisation d’instanciation pour cette clé (voir B<request_key>(2))."
2982
2983 #. type: Plain text
2984 #: debian-trixie
2985 msgid ""
2986 "The key and any links to the key will be automatically garbage collected "
2987 "after the timeout expires. Subsequent attempts to access the key will then "
2988 "fail with the error B<EKEYEXPIRED>."
2989 msgstr ""
2990 "La clé et les liens vis-à-vis d'elle seront automatiquement mis à la "
2991 "poubelle après le délai d'expiration. Les futurs essais d'y accéder "
2992 "échoueront avec l'erreur B<EKEYEXPIRED>."
2993
2994 #. type: Plain text
2995 #: debian-trixie
2996 msgid ""
2997 "This operation cannot be used to set timeouts on revoked, expired, or "
2998 "negatively instantiated keys."
2999 msgstr ""
3000 "Cette opération ne peut pas être utilisée pour poser des limites à des clés "
3001 "révoquées, expirées ou instanciées négativement."
3002
3003 #. type: Plain text
3004 #: debian-trixie
3005 msgid ""
3006 "This operation is exposed by I<libkeyutils> via the function "
3007 "B<keyctl_set_timeout>(3)."
3008 msgstr ""
3009 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3010 "fonction B<keyctl_set_timeout>(3)."
3011
3012 #. type: TP
3013 #: debian-trixie
3014 #, no-wrap
3015 msgid "B<KEYCTL_ASSUME_AUTHORITY> (since Linux 2.6.16)"
3016 msgstr "B<KEYCTL_ASSUME_AUTHORITY> (depuis Linux 2.6.10)"
3017
3018 #. type: Plain text
3019 #: debian-trixie
3020 msgid ""
3021 "Assume (or divest) the authority for the calling thread to instantiate a key."
3022 msgstr ""
3023 "Assumer (ou se débarrasser) de l'autorité pour le thread appelant pour "
3024 "instancier une clé."
3025
3026 #. type: Plain text
3027 #: debian-trixie
3028 msgid ""
3029 "The I<arg2> argument (cast to I<key_serial_t>) specifies either a nonzero "
3030 "key ID to assume authority, or the value 0 to divest authority."
3031 msgstr ""
3032 "Ce paramètre I<arg2> (diffusé sur I<key_serial_t>) fait assumer l'autorité à "
3033 "un identifiant de clé autre que zéro, ou retire l'autorité grâce à la valeur "
3034 "B<0>."
3035
3036 #. type: Plain text
3037 #: debian-trixie
3038 msgid ""
3039 "If I<arg2> is nonzero, then it specifies the ID of an uninstantiated key for "
3040 "which authority is to be assumed. That key can then be instantiated using "
3041 "one of B<KEYCTL_INSTANTIATE>, B<KEYCTL_INSTANTIATE_IOV>, B<KEYCTL_REJECT>, "
3042 "or B<KEYCTL_NEGATE>. Once the key has been instantiated, the thread is "
3043 "automatically divested of authority to instantiate the key."
3044 msgstr ""
3045 "Si I<arg2> n'est pas zéro, il indique un identifiant de clé non instanciée "
3046 "qui devra assumer l'autorité. Cette clé peut alors être instanciée en "
3047 "utilisant B<KEYCTL_INSTANTIATE>, B<KEYCTL_INSTANTIATE_IOV>, B<KEYCTL_REJECT> "
3048 "ou B<KEYCTL_NEGATE>. Quand la clé a été instanciée, le thread se voit "
3049 "automatiquement retirer le pouvoir d'instancier la clé."
3050
3051 #. type: Plain text
3052 #: debian-trixie
3053 msgid ""
3054 "Authority over a key can be assumed only if the calling thread has present "
3055 "in its keyrings the authorization key that is associated with the specified "
3056 "key. (In other words, the B<KEYCTL_ASSUME_AUTHORITY> operation is available "
3057 "only from a B<request-key>(8)-style program; see B<request_key>(2) for an "
3058 "explanation of how this operation is used.) The caller must have I<search> "
3059 "permission on the authorization key."
3060 msgstr ""
3061 "Une clé ne peut assumer une autorité que si le thread appelant a dans ses "
3062 "trousseaux la clé d'autorisation associée à la clé (autrement dit, "
3063 "l'opération B<KEYCTL_ASSUME_AUTHORITY> n'est disponible qu'à partir d'un "
3064 "programme du style B<request-key>(8) ; voir B<request_key>(2) pour une "
3065 "explication sur la manière dont cette opération est utilisée). L'appelant "
3066 "doit avoir le droit I<search> sur la clé d'autorisation."
3067
3068 #. type: Plain text
3069 #: debian-trixie
3070 msgid ""
3071 "If the specified key has a matching authorization key, then the ID of that "
3072 "key is returned. The authorization key can be read (B<KEYCTL_READ>) to "
3073 "obtain the callout information passed to B<request_key>(2)."
3074 msgstr ""
3075 "Si la clé indiquée a une clé d'autorisation associée, l'identifiant de cette "
3076 "clé est renvoyé. La clé d'autorisation peut être lue (B<KEYCTL_READ>) pour "
3077 "obtenir les informations d'appel transmises à B<request_key>(2)."
3078
3079 #. type: Plain text
3080 #: debian-trixie
3081 msgid ""
3082 "If the ID given in I<arg2> is 0, then the currently assumed authority is "
3083 "cleared (divested), and the value 0 is returned."
3084 msgstr ""
3085 "Si l'identifiant fourni dans I<arg2> est B<0>, l'autorité actuellement "
3086 "assumée est retirée et la valeur B<0> est renvoyée."
3087
3088 #. type: Plain text
3089 #: debian-trixie
3090 msgid ""
3091 "The B<KEYCTL_ASSUME_AUTHORITY> mechanism allows a program such as B<request-"
3092 "key>(8) to assume the necessary authority to instantiate a new "
3093 "uninstantiated key that was created as a consequence of a call to "
3094 "B<request_key>(2). For further information, see B<request_key>(2) and the "
3095 "kernel source file I<Documentation/security/keys-request-key.txt>."
3096 msgstr ""
3097 "Le mécanisme B<KEYCTL_ASSUME_AUTHORITY> permet à un programme tel que "
3098 "B<requestkey>(8) d'assumer l'autorité nécessaire pour instancier une "
3099 "nouvelle clé non instanciée créée suite à un appel à B<request_key>(2). Pour "
3100 "plus d'informations, voir B<request_key>(2) et le fichier I<Documentation/"
3101 "security/keys-request-key.txt> des sources du noyau."
3102
3103 #. type: Plain text
3104 #: debian-trixie
3105 msgid ""
3106 "This operation is exposed by I<libkeyutils> via the function "
3107 "B<keyctl_assume_authority>(3)."
3108 msgstr ""
3109 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3110 "fonction B<keyctl_assume_authority>(3)."
3111
3112 #. type: TP
3113 #: debian-trixie
3114 #, no-wrap
3115 msgid "B<KEYCTL_GET_SECURITY> (since Linux 2.6.26)"
3116 msgstr "B<KEYCTL_GET_SECURITY> (depuis Linux 2.6.26)"
3117
3118 #. commit 70a5bb72b55e82fbfbf1e22cae6975fac58a1e2d
3119 #. type: Plain text
3120 #: debian-trixie
3121 msgid ""
3122 "Get the LSM (Linux Security Module) security label of the specified key."
3123 msgstr ""
3124 "Récupérer l'étiquette de sécurité LSM (Linux Security Module) de la clé "
3125 "indiquée."
3126
3127 #. type: Plain text
3128 #: debian-trixie
3129 msgid ""
3130 "The ID of the key whose security label is to be fetched is specified in "
3131 "I<arg2> (cast to I<key_serial_t>). The security label (terminated by a null "
3132 "byte) will be placed in the buffer pointed to by I<arg3> argument (cast to "
3133 "I<char\\ *>); the size of the buffer must be provided in I<arg4> (cast to "
3134 "I<size_t>)."
3135 msgstr ""
3136 "L'identifiant de la clé dont l'étiquette doit être récupérée est indiqué "
3137 "dans I<arg2> (diffusé sur I<key_serial_t>). L'étiquette de sécurité (qui se "
3138 "termine par un octet NULL) sera mis dans le tampon vers lequel pointe "
3139 "I<arg3> (diffusé sur I<char\\ *>) ; la taille du tampon doit être fournie "
3140 "dans I<arg4> (diffusée sur I<size_t>)."
3141
3142 #. type: Plain text
3143 #: debian-trixie
3144 msgid ""
3145 "If I<arg3> is specified as NULL or the buffer size specified in I<arg4> is "
3146 "too small, the full size of the security label string (including the "
3147 "terminating null byte) is returned as the function result, and nothing is "
3148 "copied to the buffer."
3149 msgstr ""
3150 "Si I<arg3> est indiqué en tant que NULL ou si la taille du tampon indiquée "
3151 "dans I<arg4> est trop petite, toute la taille de la chaîne de l'étiquette de "
3152 "sécurité (y compris l'octet NULL de fin) est renvoyée en tant que résultat "
3153 "de la fonction et rien n'est copié dans le tampon."
3154
3155 #. type: Plain text
3156 #: debian-trixie
3157 msgid "The caller must have I<view> permission on the specified key."
3158 msgstr "L'appelant doit avoir le droit I<view> sur la clé indiquée."
3159
3160 #. type: Plain text
3161 #: debian-trixie
3162 msgid ""
3163 "The returned security label string will be rendered in a form appropriate to "
3164 "the LSM in force. For example, with SELinux, it may look like:"
3165 msgstr ""
3166 "La chaîne de l'étiquette de sécurité renvoyée sera affichée sous la bonne "
3167 "forme sur le LSM en mode force. Par exemple, avec SELinux, elle peut "
3168 "ressembler à :"
3169
3170 #. type: Plain text
3171 #: debian-trixie
3172 #, no-wrap
3173 msgid "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n"
3174 msgstr "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n"
3175
3176 #. type: Plain text
3177 #: debian-trixie
3178 msgid ""
3179 "If no LSM is currently in force, then an empty string is placed in the "
3180 "buffer."
3181 msgstr ""
3182 "Si aucun LSM n'est en mode force, une chaîne vide est placée dans le tampon."
3183
3184 #. type: Plain text
3185 #: debian-trixie
3186 msgid ""
3187 "This operation is exposed by I<libkeyutils> via the functions "
3188 "B<keyctl_get_security>(3) and B<keyctl_get_security_alloc>(3)."
3189 msgstr ""
3190 "Cette opération est mise à disposition par I<libkeyutils> à l'aide des "
3191 "fonctions B<keyctl_get_security>(3) et B<keyctl_get_security_alloc>(3)."
3192
3193 #. type: TP
3194 #: debian-trixie
3195 #, no-wrap
3196 msgid "B<KEYCTL_SESSION_TO_PARENT> (since Linux 2.6.32)"
3197 msgstr "B<KEYCTL_SESSION_TO_PARENT> (depuis Linux 2.6.32)"
3198
3199 #. commit ee18d64c1f632043a02e6f5ba5e045bb26a5465f
3200 #. What is the use case for KEYCTL_SESSION_TO_PARENT?
3201 #. David Howells: the Process Authentication Groups people requested this,
3202 #. but then didn't use it; maybe there are no users.
3203 #. type: Plain text
3204 #: debian-trixie
3205 msgid ""
3206 "Replace the session keyring to which the I<parent> of the calling process "
3207 "subscribes with the session keyring of the calling process."
3208 msgstr ""
3209 "Remplacer le trousseau de session auquel est enregistré le I<parent> du "
3210 "processus appelant par celui du processus appelant."
3211
3212 #. type: Plain text
3213 #: debian-trixie
3214 msgid ""
3215 "The keyring will be replaced in the parent process at the point where the "
3216 "parent next transitions from kernel space to user space."
3217 msgstr ""
3218 "Le trousseau sera remplacé dans le processus parent sur les prochains points "
3219 "de transition du parent entre l'espace noyau et l'espace utilisateur."
3220
3221 #. type: Plain text
3222 #: debian-trixie
3223 msgid ""
3224 "The keyring must exist and must grant the caller I<link> permission. The "
3225 "parent process must be single-threaded and have the same effective ownership "
3226 "as this process and must not be set-user-ID or set-group-ID. The UID of the "
3227 "parent process's existing session keyring (f it has one), as well as the UID "
3228 "of the caller's session keyring much match the caller's effective UID."
3229 msgstr ""
3230 "Le trousseau doit exister et accorder le droit I<link> à l'appelant. Le "
3231 "processus parent doit être single-threaded et appartenir au même utilisateur/"
3232 "groupe effectif que ce processus, et il ne doit pas être set-user-ID ou set-"
3233 "group-ID. L'identifiant utilisateur du trousseau de la session existante du "
3234 "processus parent (s'il en existe un) et celui du trousseau de session de "
3235 "l'appelant doivent correspondre à celui de l'identifiant utilisateur "
3236 "effectif de l'appelant."
3237
3238 #. type: Plain text
3239 #: debian-trixie
3240 msgid ""
3241 "The fact that it is the parent process that is affected by this operation "
3242 "allows a program such as the shell to start a child process that uses this "
3243 "operation to change the shell's session keyring. (This is what the "
3244 "B<keyctl>(1) B<new_session> command does.)"
3245 msgstr ""
3246 "Le fait que le processus parent soit touché par cette opération permet à un "
3247 "programme tel qu'un interpréteur de démarrer un processus enfant qui utilise "
3248 "cette opération pour modifier le trousseau de session de l'interpréteur "
3249 "(c'est ce que fait la commande B<new_session> de B<keyctl>(1))."
3250
3251 #. type: Plain text
3252 #: debian-trixie
3253 msgid "The arguments I<arg2>, I<arg3>, I<arg4>, and I<arg5> are ignored."
3254 msgstr "Les paramètres I<arg2>, I<arg3>, I<arg4> et I<arg5> sont ignorés."
3255
3256 #. type: Plain text
3257 #: debian-trixie
3258 msgid ""
3259 "This operation is exposed by I<libkeyutils> via the function "
3260 "B<keyctl_session_to_parent>(3)."
3261 msgstr ""
3262 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3263 "fonction B<keyctl_session_to_parent>(3)."
3264
3265 #. type: TP
3266 #: debian-trixie
3267 #, no-wrap
3268 msgid "B<KEYCTL_REJECT> (since Linux 2.6.39)"
3269 msgstr "B<KEYCTL_REJECT> (depuis Linux 2.6.39)"
3270
3271 #. commit fdd1b94581782a2ddf9124414e5b7a5f48ce2f9c
3272 #. type: Plain text
3273 #: debian-trixie
3274 msgid ""
3275 "Mark a key as negatively instantiated and set an expiration timer on the "
3276 "key. This operation provides a superset of the functionality of the earlier "
3277 "B<KEYCTL_NEGATE> operation."
3278 msgstr ""
3279 "Marquer une clé comme étant instanciée négativement et positionner une durée "
3280 "d'expiration sur la clé. Cette opération ajoute un supplément à l'opération "
3281 "B<KEYCTL_NEGATE> ci-dessus."
3282
3283 #. type: Plain text
3284 #: debian-trixie
3285 msgid ""
3286 "The ID of the key that is to be negatively instantiated is specified in "
3287 "I<arg2> (cast to I<key_serial_t>). The I<arg3> (cast to I<unsigned int>) "
3288 "argument specifies the lifetime of the key, in seconds. The I<arg4> "
3289 "argument (cast to I<unsigned int>) specifies the error to be returned when "
3290 "a search hits this key; typically, this is one of B<EKEYREJECTED>, "
3291 "B<EKEYREVOKED>, or B<EKEYEXPIRED>."
3292 msgstr ""
3293 "L'identifiant de la clé à instancier négativement est indiqué dans I<arg2> "
3294 "(diffusé sur I<key_serial_t>). Le paramètre I<arg3> (diffusé sur I<unsigned "
3295 "int>) indique la durée de vie de la clé en seconde. Le paramètre I<arg4> "
3296 "(diffusé sur I<unsigned int>) indique l'erreur à renvoyer quand une "
3297 "recherche trouve cette clé ; généralement il s'agit de B<EKEYREJECTED>, "
3298 "B<EKEYREVOKED> ou B<EKEYEXPIRED>."
3299
3300 #. type: Plain text
3301 #: debian-trixie
3302 msgid ""
3303 "If I<arg5> (cast to I<key_serial_t>) is nonzero, then, subject to the same "
3304 "constraints and rules as B<KEYCTL_LINK>, the negatively instantiated key is "
3305 "linked into the keyring whose ID is specified in I<arg5>."
3306 msgstr ""
3307 "Si I<arg5> (diffusé sur I<key_serial_t>) n'est pas nul, la clé instanciée "
3308 "négativement est rattachée au trousseau dont l'identifiant est indiqué dans "
3309 "I<arg5>, avec les mêmes contraintes et les mêmes règles que B<KEYCTL_LINK>."
3310
3311 #. type: Plain text
3312 #: debian-trixie
3313 msgid ""
3314 "The caller must have the appropriate authorization key. In other words, "
3315 "this operation is available only from a B<request-key>(8)-style program. "
3316 "See B<request_key>(2)."
3317 msgstr ""
3318 "L'appelant doit avoir la clé d'autorisation adéquate. Autrement dit, cette "
3319 "opération n'est disponible qu'à partir d'un programme dans le style "
3320 "B<request-key>(8). Voir B<request_key>(2)."
3321
3322 #. type: Plain text
3323 #: debian-trixie
3324 msgid ""
3325 "This operation is exposed by I<libkeyutils> via the function "
3326 "B<keyctl_reject>(3)."
3327 msgstr ""
3328 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3329 "fonction B<keyctl_reject>(3)."
3330
3331 #. type: TP
3332 #: debian-trixie
3333 #, no-wrap
3334 msgid "B<KEYCTL_INSTANTIATE_IOV> (since Linux 2.6.39)"
3335 msgstr "B<KEYCTL_INSTANTIATE_IOV> (depuis Linux 2.6.39)"
3336
3337 #. commit ee009e4a0d4555ed522a631bae9896399674f063
3338 #. type: Plain text
3339 #: debian-trixie
3340 msgid ""
3341 "Instantiate an uninstantiated key with a payload specified via a vector of "
3342 "buffers."
3343 msgstr ""
3344 "Instancier une clé non instanciée avec la charge utile indiquée à l'aide "
3345 "d'un vecteur de tampons."
3346
3347 #. type: Plain text
3348 #: debian-trixie
3349 msgid ""
3350 "This operation is the same as B<KEYCTL_INSTANTIATE>, but the payload data is "
3351 "specified as an array of I<iovec> structures (see B<iovec>(3type))."
3352 msgstr ""
3353 "Cette opération est la même que B<KEYCTL_INSTANTIATE>, mais les données de "
3354 "la charge utile sont indiquées sous forme d'un tableau de structures "
3355 "I<iovec> (voir B<iovec>(3type))."
3356
3357 #. type: Plain text
3358 #: debian-trixie
3359 #, fuzzy
3360 #| msgid ""
3361 #| "The pointer to the payload vector is specified in I<arg3> (cast as "
3362 #| "I<const struct iovec\\ *>). The number of items in the vector is "
3363 #| "specified in I<arg4> (cast as I<unsigned int>)."
3364 msgid ""
3365 "The pointer to the payload vector is specified in I<arg3> (cast as I<const "
3366 "struct iovec\\ *>). The number of items in the vector is specified in "
3367 "I<arg4> (cast as I<unsigned int>)."
3368 msgstr ""
3369 "Le pointeur vers le vecteur de charge utile est indiqué dans I<arg3> "
3370 "(diffusé en tant que I<const struct iovec\\ *>). Le nombre d'éléments du "
3371 "vecteur est indiqué dans I<arg4> (diffusé en tant que I<unsigned int>)."
3372
3373 #. type: Plain text
3374 #: debian-trixie
3375 msgid ""
3376 "The I<arg2> (key ID) and I<arg5> (keyring ID) are interpreted as for "
3377 "B<KEYCTL_INSTANTIATE>."
3378 msgstr ""
3379 "I<arg2> (identifiant de clé) et I<arg5> (identifiant de trousseau) sont "
3380 "interprétés avec B<KEYCTL_INSTANTIATE>."
3381
3382 #. type: Plain text
3383 #: debian-trixie
3384 msgid ""
3385 "This operation is exposed by I<libkeyutils> via the function "
3386 "B<keyctl_instantiate_iov>(3)."
3387 msgstr ""
3388 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3389 "fonction B<keyctl_instantiate_iov>(3)."
3390
3391 #. type: TP
3392 #: debian-trixie
3393 #, no-wrap
3394 msgid "B<KEYCTL_INVALIDATE> (since Linux 3.5)"
3395 msgstr "B<KEYCTL_INVALIDATE> (depuis Linux 3.5)"
3396
3397 #. commit fd75815f727f157a05f4c96b5294a4617c0557da
3398 #. type: Plain text
3399 #: debian-trixie
3400 msgid "Mark a key as invalid."
3401 msgstr "Marquer une clé comme non valable."
3402
3403 #. type: Plain text
3404 #: debian-trixie
3405 msgid ""
3406 "The ID of the key to be invalidated is specified in I<arg2> (cast to "
3407 "I<key_serial_t>)."
3408 msgstr ""
3409 "L'identifiant de la clé à rendre non valable est indiqué dans I<arg2> "
3410 "(diffusé sur I<key_serial_t>)."
3411
3412 #. CAP_SYS_ADMIN is permitted to invalidate certain special keys
3413 #. type: Plain text
3414 #: debian-trixie
3415 msgid ""
3416 "To invalidate a key, the caller must have I<search> permission on the key."
3417 msgstr ""
3418 "Pour rendre une clé non valable, l'appelant doit avoir le droit I<search> "
3419 "sur la clé."
3420
3421 #. type: Plain text
3422 #: debian-trixie
3423 msgid ""
3424 "This operation marks the key as invalid and schedules immediate garbage "
3425 "collection. The garbage collector removes the invalidated key from all "
3426 "keyrings and deletes the key when its reference count reaches zero. After "
3427 "this operation, the key will be ignored by all searches, even if it is not "
3428 "yet deleted."
3429 msgstr ""
3430 "Cette opération marque la clé comme non valable et programme sa mise "
3431 "immédiate à la corbeille. Le ramasse-miettes, supprime les clés non valables "
3432 "de tous les trousseaux et efface la clé quand son nombre de références "
3433 "atteint B<0>. Après cette opération, cette clé sera ignorée par toutes les "
3434 "recherches, même si elle n'est pas encore effacée."
3435
3436 #. type: Plain text
3437 #: debian-trixie
3438 msgid ""
3439 "Keys that are marked invalid become invisible to normal key operations "
3440 "immediately, though they are still visible in I</proc/keys> (marked with an "
3441 "'i' flag) until they are actually removed."
3442 msgstr ""
3443 "Les clés marquées comme non valables deviennent aussitôt invisibles pour les "
3444 "opérations de clé normales, bien qu'elle soient encore visibles dans I</proc/"
3445 "keys> (avec un drapeau « i ») jusqu'à ce qu'elles soient totalement "
3446 "supprimées."
3447
3448 #. type: Plain text
3449 #: debian-trixie
3450 msgid ""
3451 "This operation is exposed by I<libkeyutils> via the function "
3452 "B<keyctl_invalidate>(3)."
3453 msgstr ""
3454 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3455 "fonction B<keyctl_invalidate>(3)."
3456
3457 #. type: TP
3458 #: debian-trixie
3459 #, no-wrap
3460 msgid "B<KEYCTL_GET_PERSISTENT> (since Linux 3.13)"
3461 msgstr "B<KEYCTL_GET_PERSISTENT> (depuis Linux 3.13)"
3462
3463 #. commit f36f8c75ae2e7d4da34f4c908cebdb4aa42c977e
3464 #. type: Plain text
3465 #: debian-trixie
3466 msgid ""
3467 "Get the persistent keyring (B<persistent-keyring>(7)) for a specified user "
3468 "and link it to a specified keyring."
3469 msgstr ""
3470 "Récupérer le trousseau persistant (B<persistent-keyring>(7)) d'un "
3471 "utilisateur indiqué et le rattacher au trousseau indiqué."
3472
3473 #. type: Plain text
3474 #: debian-trixie
3475 msgid ""
3476 "The user ID is specified in I<arg2> (cast to I<uid_t>). If the value -1 is "
3477 "specified, the caller's real user ID is used. The ID of the destination "
3478 "keyring is specified in I<arg3> (cast to I<key_serial_t>)."
3479 msgstr ""
3480 "L'identifiant utilisateur est indiqué dans I<arg2> (diffusé sur I<uid_t>). "
3481 "Si la valeur B<-1> est indiquée, l'identifiant de l'utilisateur réel de "
3482 "l'appelant est utilisé. L'identifiant du trousseau de destination est "
3483 "indiqué dans I<arg3> (diffusé sur I<key_serial_t>)."
3484
3485 #. type: Plain text
3486 #: debian-trixie
3487 msgid ""
3488 "The caller must have the B<CAP_SETUID> capability in its user namespace in "
3489 "order to fetch the persistent keyring for a user ID that does not match "
3490 "either the real or effective user ID of the caller."
3491 msgstr ""
3492 "L'appelant doit avoir la capacité B<CAP_SETUID> dans son espace de noms "
3493 "utilisateur afin de récupérer le trousseau persistant pour un identifiant "
3494 "utilisateur qui ne correspond pas à l'identifiant utilisateur réel ou "
3495 "effectif de l'appelant."
3496
3497 #. type: Plain text
3498 #: debian-trixie
3499 msgid ""
3500 "If the call is successful, a link to the persistent keyring is added to the "
3501 "keyring whose ID was specified in I<arg3>."
3502 msgstr ""
3503 "Si l'appel réussit, un lien vers le trousseau persistant est ajouté au "
3504 "trousseau dont l'identifiant a été indiqué dans I<arg3>."
3505
3506 #. type: Plain text
3507 #: debian-trixie
3508 msgid ""
3509 "The persistent keyring will be created by the kernel if it does not yet "
3510 "exist."
3511 msgstr ""
3512 "Le trousseau persistant sera créé par le noyau s'il n'existe pas encore."
3513
3514 #. type: Plain text
3515 #: debian-trixie
3516 msgid ""
3517 "Each time the B<KEYCTL_GET_PERSISTENT> operation is performed, the "
3518 "persistent keyring will have its expiration timeout reset to the value in:"
3519 msgstr ""
3520 "Chaque fois que l'opération B<KEYCTL_GET_PERSISTENT> est effectuée, le "
3521 "trousseau persistant aura un délai d'expiration réinitialisé à la valeur "
3522 "dans :"
3523
3524 #. type: Plain text
3525 #: debian-trixie
3526 #, no-wrap
3527 msgid "/proc/sys/kernel/keys/persistent_keyring_expiry\n"
3528 msgstr "/proc/sys/kernel/keys/persistent_keyring_expiry\n"
3529
3530 #. type: Plain text
3531 #: debian-trixie
3532 msgid ""
3533 "Should the timeout be reached, the persistent keyring will be removed and "
3534 "everything it pins can then be garbage collected."
3535 msgstr ""
3536 "Lorsque le délai est atteint, le trousseau persistant sera supprimé et son "
3537 "contenu pourra être collecté par le ramasse-miettes."
3538
3539 #. type: Plain text
3540 #: debian-trixie
3541 msgid "Persistent keyrings were added in Linux 3.13."
3542 msgstr "Des trousseaux persistants ont été ajoutés dans Linux 3.13."
3543
3544 #. type: Plain text
3545 #: debian-trixie
3546 msgid ""
3547 "This operation is exposed by I<libkeyutils> via the function "
3548 "B<keyctl_get_persistent>(3)."
3549 msgstr ""
3550 "Cette opération est mise à disposition par I<libkeyutils> à l'aide de la "
3551 "fonction B<keyctl_get_persistent>(3)."
3552
3553 #. type: TP
3554 #: debian-trixie
3555 #, no-wrap
3556 msgid "B<KEYCTL_DH_COMPUTE> (since Linux 4.7)"
3557 msgstr "B<KEYCTL_DH_COMPUTE> (depuis Linux 4.7)"
3558
3559 #. commit ddbb41148724367394d0880c516bfaeed127b52e
3560 #. type: Plain text
3561 #: debian-trixie
3562 msgid ""
3563 "Compute a Diffie-Hellman shared secret or public key, optionally applying "
3564 "key derivation function (KDF) to the result."
3565 msgstr ""
3566 "Calculer la clé secrète Diffie-Hellman partagée ou la clé publique, en "
3567 "appliquant éventuellement une fonction de dérivation de clé (KDF) au "
3568 "résultat."
3569
3570 #. type: Plain text
3571 #: debian-trixie
3572 msgid ""
3573 "The I<arg2> argument is a pointer to a set of parameters containing serial "
3574 "numbers for three I<\\[dq]user\\[dq]> keys used in the Diffie-Hellman "
3575 "calculation, packaged in a structure of the following form:"
3576 msgstr ""
3577 "Le paramètre I<arg2> est un pointeur vers un ensemble de paramètres "
3578 "contenant les numéros de série de trois clés I<« utilisateur »> utilisés "
3579 "dans le calcul Diffie-Hellman, empaquetés dans une structure de la forme "
3580 "suivante :"
3581
3582 #. type: Plain text
3583 #: debian-trixie
3584 #, no-wrap
3585 msgid ""
3586 "struct keyctl_dh_params {\n"
3587 " int32_t private; /* The local private key */\n"
3588 " int32_t prime; /* The prime, known to both parties */\n"
3589 " int32_t base; /* The base integer: either a shared\n"
3590 " generator or the remote public key */\n"
3591 "};\n"
3592 msgstr ""
3593 "struct keyctl_dh_params {\n"
3594 " int32_t private; /* La clé privée locale */\n"
3595 " int32_t prime; /* Le nombre premier, connue des deux côtés */\n"
3596 " int32_t base; /* L'entier de base : soit un générateur partagé,\n"
3597 " soit la clé publique distante */\n"
3598 "};\n"
3599
3600 #. type: Plain text
3601 #: debian-trixie
3602 msgid ""
3603 "Each of the three keys specified in this structure must grant the caller "
3604 "I<read> permission. The payloads of these keys are used to calculate the "
3605 "Diffie-Hellman result as:"
3606 msgstr ""
3607 "Chacune des trois clés indiquées dans cette structure doit accorder le droit "
3608 "I<read> à l'appelant. Les charges utiles de ces clés sont utilisées pour "
3609 "calculer le résultat Diffie-Hellman ainsi :"
3610
3611 #. type: Plain text
3612 #: debian-trixie
3613 #, no-wrap
3614 msgid "base \\[ha] private mod prime\n"
3615 msgstr "base \\[ha] private mod prime\n"
3616
3617 #. type: Plain text
3618 #: debian-trixie
3619 msgid ""
3620 "If the base is the shared generator, the result is the local public key. If "
3621 "the base is the remote public key, the result is the shared secret."
3622 msgstr ""
3623 "Si la base est le générateur partagé, le résultat est la clé publique "
3624 "locale. Si la base est la clé publique distante, le résultat est le code "
3625 "secret partagé."
3626
3627 #. type: Plain text
3628 #: debian-trixie
3629 #, fuzzy
3630 #| msgid ""
3631 #| "The I<arg3> argument (cast to I<char\\ *>) points to a buffer where the "
3632 #| "result of the calculation is placed. The size of that buffer is "
3633 #| "specified in I<arg4> (cast to I<size_t>)."
3634 msgid ""
3635 "The I<arg3> argument (cast to I<char\\ *>) points to a buffer where the "
3636 "result of the calculation is placed. The size of that buffer is specified "
3637 "in I<arg4> (cast to I<size_t>)."
3638 msgstr ""
3639 "Le paramètre I<arg3> (diffusé sur I<char\\ *>) pointe vers un tampon où est "
3640 "mis le résultat du calcul. La taille de ce tampon est indiquée dans I<arg4> "
3641 "(diffusé sur I<size_t>)."
3642
3643 #. type: Plain text
3644 #: debian-trixie
3645 msgid ""
3646 "The buffer must be large enough to accommodate the output data, otherwise an "
3647 "error is returned. If I<arg4> is specified zero, in which case the buffer "
3648 "is not used and the operation returns the minimum required buffer size "
3649 "(i.e., the length of the prime)."
3650 msgstr ""
3651 "Le tampon doit être assez grand pour accueillir les données de sortie, sans "
3652 "quoi une erreur est renvoyée. Si I<arg4> vaut zéro, le tampon n'est pas "
3653 "utilisé et l'opération renvoie la taille minimale requise du tampon (à "
3654 "savoir la longueur du nombre premier)."
3655
3656 #. type: Plain text
3657 #: debian-trixie
3658 msgid ""
3659 "Diffie-Hellman computations can be performed in user space, but require a "
3660 "multiple-precision integer (MPI) library. Moving the implementation into "
3661 "the kernel gives access to the kernel MPI implementation, and allows access "
3662 "to secure or acceleration hardware."
3663 msgstr ""
3664 "Les calculs Diffie-Hellman peuvent être effectués dans l'espace utilisateur "
3665 "mais exigent une bibliothèque multiprécision d'entiers (MPI). Le déplacement "
3666 "de l'implémentation dans le noyau donne accès à l'implémentation MPI du "
3667 "noyau et permet d'accéder à la sécurisation et à l'accélération matérielle."
3668
3669 #. commit f1c316a3ab9d24df6022682422fe897492f2c0c8
3670 #. type: Plain text
3671 #: debian-trixie
3672 msgid ""
3673 "Adding support for DH computation to the B<keyctl>() system call was "
3674 "considered a good fit due to the DH algorithm's use for deriving shared "
3675 "keys; it also allows the type of the key to determine which DH "
3676 "implementation (software or hardware) is appropriate."
3677 msgstr ""
3678 "L'ajout de la prise en charge du calcul DH à l'appel système B<keyctl>() a "
3679 "été considéré comme convenable grâce à l'utilisation de l'algorithme DH pour "
3680 "faire dériver les clés partagées ; cela permet aussi au type de clé de "
3681 "déterminer l'implémentation DH adéquate (logicielle ou matérielle)."
3682
3683 #. type: Plain text
3684 #: debian-trixie
3685 msgid ""
3686 "If the I<arg5> argument is B<NULL>, then the DH result itself is returned. "
3687 "Otherwise (since Linux 4.12), it is a pointer to a structure which specifies "
3688 "parameters of the KDF operation to be applied:"
3689 msgstr ""
3690 "Si le paramètre I<arg5> vaut B<NULL>, le résultat DH lui-même est renvoyé. "
3691 "Sinon, (depuis Linux 4.12), il s'agit d'un pointeur vers une structure qui "
3692 "indique les paramètres de l'opération KDF à appliquer :"
3693
3694 #. type: Plain text
3695 #: debian-trixie
3696 #, no-wrap
3697 msgid ""
3698 "struct keyctl_kdf_params {\n"
3699 " char *hashname; /* Hash algorithm name */\n"
3700 " char *otherinfo; /* SP800-56A OtherInfo */\n"
3701 " __u32 otherinfolen; /* Length of otherinfo data */\n"
3702 " __u32 __spare[8]; /* Reserved */\n"
3703 "};\n"
3704 msgstr ""
3705 "struct keyctl_kdf_params {\n"
3706 " char *hashname; /* Nom de l'algorithm de hachage */\n"
3707 " char *otherinfo; /* SP800-56A OtherInfo */\n"
3708 " __u32 otherinfolen; /* Taille des données otherinfo */\n"
3709 " __u32 __spare[8]; /* Réservé */\n"
3710 "};\n"
3711
3712 #. type: Plain text
3713 #: debian-trixie
3714 msgid ""
3715 "The I<hashname> field is a null-terminated string which specifies a hash "
3716 "name (available in the kernel's crypto API; the list of the hashes available "
3717 "is rather tricky to observe; please refer to the E<.UR https://"
3718 "www.kernel.org\\:/doc\\:/html\\:/latest\\:/crypto\\:/architecture.html> "
3719 "\"Kernel Crypto API Architecture\" E<.UE> documentation for the information "
3720 "regarding how hash names are constructed and your kernel's source and "
3721 "configuration regarding what ciphers and templates with type "
3722 "B<CRYPTO_ALG_TYPE_SHASH> are available) to be applied to DH result in KDF "
3723 "operation."
3724 msgstr ""
3725 "Le champ I<hashname> est une chaîne se terminant par NULL qui indique un nom "
3726 "de hachage (disponible dans l'API de chiffrement du noyau ; la liste des "
3727 "hachages disponibles est plutôt difficile à examiner ; veuillez vous "
3728 "reporter à la documentation de la E<.UR https://www.kernel.org\\:/doc\\:/"
3729 "html\\:/latest\\:/crypto\\:/architecture.html> « Kernel Crypto API "
3730 "Architecture » E<.UE> pour des informations sur la manière dont les noms de "
3731 "hachage sont construits, et aux sources et à la configuration de votre noyau "
3732 "concernant les chiffrements et les modèles de type B<CRYPTO_ALG_TYPE_SHASH> "
3733 "disponibles) à appliquer au résultat DH dans l'opération KDF."
3734
3735 #. type: Plain text
3736 #: debian-trixie
3737 msgid ""
3738 "The I<otherinfo> field is an I<OtherInfo> data as described in SP800-56A "
3739 "section 5.8.1.2 and is algorithm-specific. This data is concatenated with "
3740 "the result of DH operation and is provided as an input to the KDF "
3741 "operation. Its size is provided in the I<otherinfolen> field and is limited "
3742 "by B<KEYCTL_KDF_MAX_OI_LEN> constant that defined in I<security/keys/"
3743 "internal.h> to a value of 64."
3744 msgstr ""
3745 "Le champ I<otherinfo> consiste dans des données I<OtherInfo> comme décrit "
3746 "dans la section 5.8.1.2 de SP800-56A et il est spécifique à l'algorithme. "
3747 "Ces données sont concaténées avec le résultat de l'opération DH et elles "
3748 "sont fournies comme entrée de l'opération KDF. Leur taille est fournie dans "
3749 "le champ I<otherinfolen> et limitée à la constante B<KEYCTL_KDF_MAX_OI_LEN> "
3750 "définie dans I<security/keys/internal.h> à la valeur 64."
3751
3752 #. commit 4f9dabfaf8df971f8a3b6aa324f8f817be38d538
3753 #. type: Plain text
3754 #: debian-trixie
3755 msgid ""
3756 "The B<__spare> field is currently unused. It was ignored until Linux 4.13 "
3757 "(but still should be user-addressable since it is copied to the kernel), and "
3758 "should contain zeros since Linux 4.13."
3759 msgstr ""
3760 "Le champ B<__spare> est actuellement inusité. Il était ignoré jusqu'à "
3761 "Linux 4.13 (mais il est encore visible par l'utilisateur puisqu'il est copié "
3762 "dans le noyau) et il devrait contenir des zéros depuis Linux 4.13."
3763
3764 #. type: Plain text
3765 #: debian-trixie
3766 msgid ""
3767 "The KDF implementation complies with SP800-56A as well as with SP800-108 "
3768 "(the counter KDF)."
3769 msgstr ""
3770 "L'implémentation KDF se conforme à SP800-56A et à SP800-108 (le compteur "
3771 "KDF)."
3772
3773 #. keyutils commit 742c9d7b94051d3b21f9f61a73ed6b5f3544cb82
3774 #. keyutils commit d68a981e5db41d059ac782071c35d1e8f3aaf61c
3775 #. type: Plain text
3776 #: debian-trixie
3777 msgid ""
3778 "This operation is exposed by I<libkeyutils> (from I<libkeyutils> 1.5.10 "
3779 "onwards) via the functions B<keyctl_dh_compute>(3) and "
3780 "B<keyctl_dh_compute_alloc>(3)."
3781 msgstr ""
3782 "Cette opération est mise à disposition par I<libkeyutils> (à partir de "
3783 "I<libkeyutils> 1.5.10 jusqu'à aujourd'hui) à l'aide de la fonction "
3784 "B<keyctl_dh_compute>(3) et de B<keyctl_dh_compute_alloc>(3)."
3785
3786 #. type: TP
3787 #: debian-trixie
3788 #, no-wrap
3789 msgid "B<KEYCTL_RESTRICT_KEYRING> (since Linux 4.12)"
3790 msgstr "B<KEYCTL_RESTRICT_KEYRING> (depuis Linux 4.12)"
3791
3792 #. commit 6563c91fd645556c7801748f15bc727c77fcd311
3793 #. commit 7228b66aaf723a623e578aa4db7d083bb39546c9
3794 #. type: Plain text
3795 #: debian-trixie
3796 msgid ""
3797 "Apply a key-linking restriction to the keyring with the ID provided in "
3798 "I<arg2> (cast to I<key_serial_t>). The caller must have I<setattr> "
3799 "permission on the key. If I<arg3> is NULL, any attempt to add a key to the "
3800 "keyring is blocked; otherwise it contains a pointer to a string with a key "
3801 "type name and I<arg4> contains a pointer to string that describes the type-"
3802 "specific restriction. As of Linux 4.12, only the type \"asymmetric\" has "
3803 "restrictions defined:"
3804 msgstr ""
3805 "Appliquer une restriction de rattachement de clé à un trousseau dont "
3806 "l'identifiant est fourni dans I<arg2> (diffusé sur I<key_serial_t>). "
3807 "L'appelant doit avoir le droit I<setattr> sur la clé. Si I<arg3> vaut NULL, "
3808 "toute tentative d'ajout au trousseau est bloquée ; sinon il contient un "
3809 "pointeur vers une chaîne contenant le nom du type de clé et I<arg4> contient "
3810 "un pointeur vers une chaîne contenant la restriction spécifique au type de "
3811 "clé. À partir de Linux 4.12, seul le type « asymmetric » a des restrictions "
3812 "définies :"
3813
3814 #. type: TP
3815 #: debian-trixie
3816 #, no-wrap
3817 msgid "B<builtin_trusted>"
3818 msgstr "B<builtin_trusted>"
3819
3820 #. type: Plain text
3821 #: debian-trixie
3822 msgid ""
3823 "Allows only keys that are signed by a key linked to the built-in keyring "
3824 "(\".builtin_trusted_keys\")."
3825 msgstr ""
3826 "N'autoriser que les clés signées par une clé rattachée au trousseau interne "
3827 "(« .builtin_trusted_keys »)."
3828
3829 #. type: TP
3830 #: debian-trixie
3831 #, no-wrap
3832 msgid "B<builtin_and_secondary_trusted>"
3833 msgstr "B<builtin_and_secondary_trusted>"
3834
3835 #. type: Plain text
3836 #: debian-trixie
3837 msgid ""
3838 "Allows only keys that are signed by a key linked to the secondary keyring "
3839 "(\".secondary_trusted_keys\") or, by extension, a key in a built-in keyring, "
3840 "as the latter is linked to the former."
3841 msgstr ""
3842 "N'autoriser que les clés signées par une clé rattachée à un trousseau "
3843 "secondaire (« .secondary_trusted_keys ») ou, par extension, à une clé du "
3844 "trousseau interne, puisque le deuxième est lié au premier."
3845
3846 #. type: TP
3847 #: debian-trixie
3848 #, no-wrap
3849 msgid "B<key_or_keyring:>I<key>"
3850 msgstr "B<key_or_keyring:>I<key>"
3851
3852 #. type: TQ
3853 #: debian-trixie
3854 #, no-wrap
3855 msgid "B<key_or_keyring:>I<key>B<:chain>"
3856 msgstr "B<key_or_keyring:>I<key>B<:chain>"
3857
3858 #. type: Plain text
3859 #: debian-trixie
3860 msgid ""
3861 "If I<key> specifies the ID of a key of type \"asymmetric\", then only keys "
3862 "that are signed by this key are allowed."
3863 msgstr ""
3864 "Si I<key> indique l'identifiant d'une clé de type « asymmetric », seules les "
3865 "clés signées par cette clé sont autorisées."
3866
3867 #. type: Plain text
3868 #: debian-trixie
3869 msgid ""
3870 "If I<key> specifies the ID of a keyring, then only keys that are signed by a "
3871 "key linked to this keyring are allowed."
3872 msgstr ""
3873 "Si I<key> indique l'identifiant d'un trousseau, seules les clés signées par "
3874 "une clé rattachée à ce trousseau sont autorisées."
3875
3876 #. type: Plain text
3877 #: debian-trixie
3878 msgid ""
3879 "If \":chain\" is specified, keys that are signed by a keys linked to the "
3880 "destination keyring (that is, the keyring with the ID specified in the "
3881 "I<arg2> argument) are also allowed."
3882 msgstr ""
3883 "Si « :chain » est indiqué, les clés signées par une clé rattachée au "
3884 "trousseau de destination (c'est-à-dire le trousseau dont l'identifiant est "
3885 "indiqué dans le paramètre I<arg2>) sont aussi autorisées."
3886
3887 #. type: Plain text
3888 #: debian-trixie
3889 msgid ""
3890 "Note that a restriction can be configured only once for the specified "
3891 "keyring; once a restriction is set, it can't be overridden."
3892 msgstr ""
3893 "Remarquez qu'une restriction ne peut être configurée qu'une fois pour le "
3894 "trousseau indiqué ; une fois qu'une restriction est positionnée, elle ne "
3895 "peut pas être contournée."
3896
3897 #. FIXME Document KEYCTL_RESTRICT_KEYRING, added in Linux 4.12
3898 #. commit 6563c91fd645556c7801748f15bc727c77fcd311
3899 #. Author: Mat Martineau <[email protected]>
3900 #. See Documentation/security/keys.txt
3901 #. type: Plain text
3902 #: debian-trixie
3903 msgid "The argument I<arg5> is ignored."
3904 msgstr "Le paramètre I<arg5> est ignoré."
3905
3906 #. type: Plain text
3907 #: debian-trixie
3908 msgid "For a successful call, the return value depends on the operation:"
3909 msgstr ""
3910 "Pour qu'un appel réussisse, le code de retour dépend de l'opération\\ :"
3911
3912 #. type: TP
3913 #: debian-trixie
3914 #, no-wrap
3915 msgid "B<KEYCTL_GET_KEYRING_ID>"
3916 msgstr "B<KEYCTL_GET_KEYRING_ID>"
3917
3918 #. type: Plain text
3919 #: debian-trixie
3920 msgid "The ID of the requested keyring."
3921 msgstr "L'identifiant du trousseau demandé."
3922
3923 #. type: TP
3924 #: debian-trixie
3925 #, no-wrap
3926 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
3927 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING>"
3928
3929 #. type: Plain text
3930 #: debian-trixie
3931 msgid "The ID of the joined session keyring."
3932 msgstr "L'identifiant du trousseau de la session qu'on vient de rejoindre."
3933
3934 #. type: TP
3935 #: debian-trixie
3936 #, no-wrap
3937 msgid "B<KEYCTL_DESCRIBE>"
3938 msgstr "B<KEYCTL_DESCRIBE>"
3939
3940 #. type: Plain text
3941 #: debian-trixie
3942 msgid ""
3943 "The size of the description (including the terminating null byte), "
3944 "irrespective of the provided buffer size."
3945 msgstr ""
3946 "La taille de la description (comprenant l'octet NULL de fin) indépendamment "
3947 "de la taille du tampon fournie."
3948
3949 #. type: TP
3950 #: debian-trixie
3951 #, no-wrap
3952 msgid "B<KEYCTL_SEARCH>"
3953 msgstr "B<KEYCTL_SEARCH>"
3954
3955 #. type: Plain text
3956 #: debian-trixie
3957 msgid "The ID of the key that was found."
3958 msgstr "L'identifiant de la clé trouvée."
3959
3960 #. type: TP
3961 #: debian-trixie
3962 #, no-wrap
3963 msgid "B<KEYCTL_READ>"
3964 msgstr "B<KEYCTL_READ>"
3965
3966 #. type: Plain text
3967 #: debian-trixie
3968 msgid ""
3969 "The amount of data that is available in the key, irrespective of the "
3970 "provided buffer size."
3971 msgstr ""
3972 "La quantité de données disponibles dans la clé, indépendamment de la taille "
3973 "du tampon fournie."
3974
3975 #. type: TP
3976 #: debian-trixie
3977 #, no-wrap
3978 msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
3979 msgstr "B<KEYCTL_SET_REQKEY_KEYRING>"
3980
3981 #. type: Plain text
3982 #: debian-trixie
3983 msgid ""
3984 "The ID of the previous default keyring to which implicitly requested keys "
3985 "were linked (one of B<KEY_REQKEY_DEFL_USER_*>)."
3986 msgstr ""
3987 "L'identifiant du trousseau par défaut précédent auquel ont été rattachées "
3988 "implicitement les clés sollicitées (un parmi B<KEY_REQKEY_DEFL_USER_*>)."
3989
3990 #. type: TP
3991 #: debian-trixie
3992 #, no-wrap
3993 msgid "B<KEYCTL_ASSUME_AUTHORITY>"
3994 msgstr "B<KEYCTL_ASSUME_AUTHORITY>"
3995
3996 #. type: Plain text
3997 #: debian-trixie
3998 msgid ""
3999 "Either 0, if the ID given was 0, or the ID of the authorization key matching "
4000 "the specified key, if a nonzero key ID was provided."
4001 msgstr ""
4002 "B<0> si l'identifiant donné valait B<0>, ou l'identifiant de la clé "
4003 "d'autorisation correspondant à la clé indiquée, si un identifiant de clé "
4004 "autre que zéro a été fourni."
4005
4006 #. type: TP
4007 #: debian-trixie
4008 #, no-wrap
4009 msgid "B<KEYCTL_GET_SECURITY>"
4010 msgstr "B<KEYCTL_GET_SECURITY>"
4011
4012 #. type: Plain text
4013 #: debian-trixie
4014 msgid ""
4015 "The size of the LSM security label string (including the terminating null "
4016 "byte), irrespective of the provided buffer size."
4017 msgstr ""
4018 "La taille de la chaîne de l'étiquette de sécurité LSM (y compris l'octet "
4019 "NULL de fin), indépendamment de la taille du tampon fourni."
4020
4021 #. type: TP
4022 #: debian-trixie
4023 #, no-wrap
4024 msgid "B<KEYCTL_GET_PERSISTENT>"
4025 msgstr "B<KEYCTL_GET_PERSISTENT>"
4026
4027 #. type: Plain text
4028 #: debian-trixie
4029 msgid "The ID of the persistent keyring."
4030 msgstr "L'identifiant du trousseau persistant."
4031
4032 #. type: TP
4033 #: debian-trixie
4034 #, no-wrap
4035 msgid "B<KEYCTL_DH_COMPUTE>"
4036 msgstr "B<KEYCTL_DH_COMPUTE>"
4037
4038 #. type: Plain text
4039 #: debian-trixie
4040 msgid ""
4041 "The number of bytes copied to the buffer, or, if I<arg4> is 0, the required "
4042 "buffer size."
4043 msgstr ""
4044 "Le nombre d'octets copiés dans le tampon ou, si I<arg4> vaut B<0>, la taille "
4045 "du tampon nécessaire."
4046
4047 #. type: TP
4048 #: debian-trixie
4049 #, no-wrap
4050 msgid "All other operations"
4051 msgstr "Toutes les autres opérations\\ :"
4052
4053 #. type: Plain text
4054 #: debian-trixie
4055 msgid "Zero."
4056 msgstr "Zéro."
4057
4058 #. type: TP
4059 #: debian-trixie
4060 #, no-wrap
4061 msgid "B<EAGAIN>"
4062 msgstr "B<EAGAIN>"
4063
4064 #. type: Plain text
4065 #: debian-trixie
4066 msgid ""
4067 "I<operation> was B<KEYCTL_DH_COMPUTE> and there was an error during crypto "
4068 "module initialization."
4069 msgstr ""
4070 "I<operation> était B<KEYCTL_DH_COMPUTE> et une erreur s'est produite lors de "
4071 "l'initialisation du module de chiffrement."
4072
4073 #. type: TP
4074 #: debian-trixie
4075 #, no-wrap
4076 msgid "B<EDEADLK>"
4077 msgstr "B<EDEADLK>"
4078
4079 #. type: Plain text
4080 #: debian-trixie
4081 msgid ""
4082 "I<operation> was B<KEYCTL_LINK> and the requested link would result in a "
4083 "cycle."
4084 msgstr ""
4085 "I<operation> était B<KEYCTL_LINK> et le rattachement demandé conduirait à "
4086 "une boucle."
4087
4088 #. type: Plain text
4089 #: debian-trixie
4090 msgid ""
4091 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and the requested keyring "
4092 "restriction would result in a cycle."
4093 msgstr ""
4094 "I<operation> était B<KEYCTL_RESTRICT_KEYRING> et la restriction de trousseau "
4095 "demandée aboutirait à une boucle."
4096
4097 #. type: TP
4098 #: debian-trixie
4099 #, no-wrap
4100 msgid "B<EEXIST>"
4101 msgstr "B<EEXIST>"
4102
4103 #. type: Plain text
4104 #: debian-trixie
4105 msgid ""
4106 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and keyring provided in I<arg2> "
4107 "argument already has a restriction set."
4108 msgstr ""
4109 "I<operation> était B<KEYCTL_RESTRICT_KEYRING> et le trousseau fourni dans le "
4110 "paramètre I<arg2> comporte déjà une restriction."
4111
4112 #. type: TP
4113 #: debian-trixie
4114 #, no-wrap
4115 msgid "B<EFAULT>"
4116 msgstr "B<EFAULT>"
4117
4118 #. type: Plain text
4119 #: debian-trixie
4120 msgid ""
4121 "I<operation> was B<KEYCTL_DH_COMPUTE> and one of the following has failed:"
4122 msgstr ""
4123 "I<operation> était B<KEYCTL_DH_COMPUTE> et une des actions suivantes a "
4124 "échoué :"
4125
4126 #. type: Plain text
4127 #: debian-trixie
4128 msgid ""
4129 "copying of the I<struct keyctl_dh_params>, provided in the I<arg2> argument, "
4130 "from user space;"
4131 msgstr ""
4132 "copie de la I<struct keyctl_dh_params>, fournie dans le paramètre I<arg2>, "
4133 "depuis l'espace utilisateur ;"
4134
4135 #. type: Plain text
4136 #: debian-trixie
4137 msgid ""
4138 "copying of the I<struct keyctl_kdf_params>, provided in the non-NULL I<arg5> "
4139 "argument, from user space (in case kernel supports performing KDF operation "
4140 "on DH operation result);"
4141 msgstr ""
4142 "copie de la I<struct keyctl_kdf_params>, fournie dans l'argument non NULL "
4143 "I<arg5>, depuis l'espace utilisateur (si le noyau gère l'opération KDF lors "
4144 "du résultat de l'opération DH) ;"
4145
4146 #. type: Plain text
4147 #: debian-trixie
4148 msgid ""
4149 "copying of data pointed by the I<hashname> field of the I<struct "
4150 "keyctl_kdf_params> from user space;"
4151 msgstr ""
4152 "copie des données vers lesquelles pointe le champ I<hashname> de la I<struct "
4153 "keyctl_kdf_params> à partir de l'espace utilisateur ;"
4154
4155 #. type: Plain text
4156 #: debian-trixie
4157 msgid ""
4158 "copying of data pointed by the I<otherinfo> field of the I<struct "
4159 "keyctl_kdf_params> from user space if the I<otherinfolen> field was nonzero;"
4160 msgstr ""
4161 "copie des données vers lesquelles pointe le champ I<otherinfo> de la "
4162 "I<struct keyctl_kdf_params> depuis l'espace utilisateur si le champ "
4163 "I<otherinfolen> n'était pas zéro ;"
4164
4165 #. type: Plain text
4166 #: debian-trixie
4167 msgid "copying of the result to user space."
4168 msgstr "copie du résultat vers l'espace utilisateur."
4169
4170 #. type: Plain text
4171 #: debian-trixie
4172 msgid ""
4173 "I<operation> was B<KEYCTL_SETPERM> and an invalid permission bit was "
4174 "specified in I<arg3>."
4175 msgstr ""
4176 "I<operation> était B<KEYCTL_SETPERM> et un bit de droit non valable a été "
4177 "indiqué dans I<arg3>."
4178
4179 #. type: Plain text
4180 #: debian-trixie
4181 msgid ""
4182 "I<operation> was B<KEYCTL_SEARCH> and the size of the description in I<arg4> "
4183 "(including the terminating null byte) exceeded 4096 bytes."
4184 msgstr ""
4185 "I<operation> était B<KEYCTL_SEARCH> et la taille de la description "
4186 "(comprenant l'octet NULL de fin) dépassait 4096 octets."
4187
4188 #. type: TP
4189 #: debian-trixie
4190 #, no-wrap
4191 msgid "B<EINVAL> (before Linux 4.12)"
4192 msgstr "B<EINVAL> (avant Linux 4.12)"
4193
4194 #. type: Plain text
4195 #: debian-trixie
4196 msgid "I<operation> was B<KEYCTL_DH_COMPUTE>, argument I<arg5> was non-NULL."
4197 msgstr ""
4198 "I<operation> était B<KEYCTL_DH_COMPUTE>, le paramètre I<arg5> n'était pas "
4199 "NULL."
4200
4201 #. type: Plain text
4202 #: debian-trixie
4203 msgid ""
4204 "I<operation> was B<KEYCTL_DH_COMPUTE> And the digest size of the hashing "
4205 "algorithm supplied is zero."
4206 msgstr ""
4207 "I<operation> était B<KEYCTL_DH_COMPUTE> et la taille de l’empreinte "
4208 "numérique de l'algorithme de hachage fourni est de zéro."
4209
4210 #. type: Plain text
4211 #: debian-trixie
4212 msgid ""
4213 "I<operation> was B<KEYCTL_DH_COMPUTE> and the buffer size provided is not "
4214 "enough to hold the result. Provide 0 as a buffer size in order to obtain "
4215 "the minimum buffer size."
4216 msgstr ""
4217 "I<operation> était B<KEYCTL_DH_COMPUTE> et la taille du tampon fournie n'est "
4218 "pas suffisante pour contenir le résultat. Mettez B<0> en tant que taille de "
4219 "tampon pour obtenir la taille minimale du tampon."
4220
4221 #. type: Plain text
4222 #: debian-trixie
4223 msgid ""
4224 "I<operation> was B<KEYCTL_DH_COMPUTE> and the hash name provided in the "
4225 "I<hashname> field of the I<struct keyctl_kdf_params> pointed by I<arg5> "
4226 "argument is too big (the limit is implementation-specific and varies between "
4227 "kernel versions, but it is deemed big enough for all valid algorithm names)."
4228 msgstr ""
4229 "I<operation> était B<KEYCTL_DH_COMPUTE> et le nom de hachage fourni dans le "
4230 "champ I<hashname> de la I<struct keyctl_kdf_params> vers laquelle pointe le "
4231 "paramètre I<arg5> est trop grand (la limite est spécifique à "
4232 "l'implémentation et varie entre les versions du noyau, mais elle est "
4233 "considérée comme suffisante pour tous les noms d'algorithmes valables)."
4234
4235 #. commit 4f9dabfaf8df971f8a3b6aa324f8f817be38d538
4236 #. type: Plain text
4237 #: debian-trixie
4238 msgid ""
4239 "I<operation> was B<KEYCTL_DH_COMPUTE> and the I<__spare> field of the "
4240 "I<struct keyctl_kdf_params> provided in the I<arg5> argument contains "
4241 "nonzero values."
4242 msgstr ""
4243 "I<operation> était B<KEYCTL_DH_COMPUTE> et le champ I<__spare> de la "
4244 "I<struct keyctl_kdf_params> fournie dans le paramètre I<arg5> contient des "
4245 "valeurs autres que zéro."
4246
4247 #. type: TP
4248 #: debian-trixie
4249 #, no-wrap
4250 msgid "B<ELOOP>"
4251 msgstr "B<ELOOP>"
4252
4253 #. type: Plain text
4254 #: debian-trixie
4255 msgid ""
4256 "I<operation> was B<KEYCTL_LINK> and the requested link would cause the "
4257 "maximum nesting depth for keyrings to be exceeded."
4258 msgstr ""
4259 "I<operation> était B<KEYCTL_LINK> et le rattachement demandé ferait dépasser "
4260 "la profondeur maximale d’imbrication des trousseaux."
4261
4262 #. type: TP
4263 #: debian-trixie
4264 #, no-wrap
4265 msgid "B<EMSGSIZE>"
4266 msgstr "B<EMSGSIZE>"
4267
4268 #. type: Plain text
4269 #: debian-trixie
4270 msgid ""
4271 "I<operation> was B<KEYCTL_DH_COMPUTE> and the buffer length exceeds "
4272 "B<KEYCTL_KDF_MAX_OUTPUT_LEN> (which is 1024 currently) or the "
4273 "I<otherinfolen> field of the I<struct keyctl_kdf_parms> passed in I<arg5> "
4274 "exceeds B<KEYCTL_KDF_MAX_OI_LEN> (which is 64 currently)."
4275 msgstr ""
4276 "I<operation> était B<KEYCTL_DH_COMPUTE> et la longueur du tampon dépasse "
4277 "B<KEYCTL_KDF_MAX_OUTPUT_LEN> (qui est actuellement de 1024) ou le champ "
4278 "I<otherinfolen> de la I<struct keyctl_kdf_parms> fournie dans I<arg5> "
4279 "dépasse B<KEYCTL_KDF_MAX_OI_LEN> (qui est actuellement de 64)."
4280
4281 #. type: TP
4282 #: debian-trixie
4283 #, no-wrap
4284 msgid "B<ENFILE> (before Linux 3.13)"
4285 msgstr "B<ENFILE> (avant Linux 3.13)"
4286
4287 #. commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69
4288 #. type: Plain text
4289 #: debian-trixie
4290 msgid ""
4291 "I<operation> was B<KEYCTL_LINK> and the keyring is full. (Before Linux "
4292 "3.13, the available space for storing keyring links was limited to a single "
4293 "page of memory; since Linux 3.13, there is no fixed limit.)"
4294 msgstr ""
4295 "I<operation> était B<KEYCTL_LINK> et le trousseau est complet (avant "
4296 "Linux 3.13, l'espace disponible de stockage de rattachements de trousseaux "
4297 "était limité à une seule page mémoire ; depuis Linux 3.13, il n'y a pas de "
4298 "limite fixée)."
4299
4300 #. type: TP
4301 #: debian-trixie
4302 #, no-wrap
4303 msgid "B<ENOENT>"
4304 msgstr "B<ENOENT>"
4305
4306 #. type: Plain text
4307 #: debian-trixie
4308 msgid ""
4309 "I<operation> was B<KEYCTL_UNLINK> and the key to be unlinked isn't linked to "
4310 "the keyring."
4311 msgstr ""
4312 "I<operation> était B<KEYCTL_UNLINK> et la clé à détacher n'est pas rattachée "
4313 "au trousseau."
4314
4315 #. type: Plain text
4316 #: debian-trixie
4317 msgid ""
4318 "I<operation> was B<KEYCTL_DH_COMPUTE> and the hashing algorithm specified in "
4319 "the I<hashname> field of the I<struct keyctl_kdf_params> pointed by I<arg5> "
4320 "argument hasn't been found."
4321 msgstr ""
4322 "I<operation> était B<KEYCTL_DH_COMPUTE> et l'algorithme de hachage indiqué "
4323 "dans le champ I<hashname> de la I<struct keyctl_kdf_params> vers laquelle "
4324 "pointe le paramètre I<arg5> n'a pas été trouvé."
4325
4326 #. type: Plain text
4327 #: debian-trixie
4328 msgid ""
4329 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and the type provided in I<arg3> "
4330 "argument doesn't support setting key linking restrictions."
4331 msgstr ""
4332 "I<operation> était B<KEYCTL_RESTRICT_KEYRING> et le type fourni dans le "
4333 "paramètre I<arg3> ne gère pas la définition de restrictions de rattachement "
4334 "de clés."
4335
4336 #. type: Plain text
4337 #: debian-trixie
4338 msgid ""
4339 "The value B<KEYCTL_GET_KEYRING_ID> was specified in I<operation>, the key "
4340 "specified in I<arg2> did not exist, and I<arg3> was zero (meaning don't "
4341 "create the key if it didn't exist)."
4342 msgstr ""
4343 "La valeur B<KEYCTL_GET_KEYRING_ID> était indiquée dans I<operation>, la clé "
4344 "indiquée dans I<arg2> n'existait pas et I<arg3> valait zéro (ce qui veut "
4345 "dire ne pas créer de clé si elle n'existe pas)."
4346
4347 #. type: TP
4348 #: debian-trixie
4349 #, no-wrap
4350 msgid "B<EOPNOTSUPP>"
4351 msgstr "B<EOPNOTSUPP>"
4352
4353 #. type: Plain text
4354 #: debian-trixie
4355 msgid ""
4356 "I<operation> was B<KEYCTL_READ> and the key type does not support reading "
4357 "(e.g., the type is I<\\[dq]login\\[dq]>)."
4358 msgstr ""
4359 "I<operation> était B<KEYCTL_READ> et le type de clé ne gère pas la lecture "
4360 "(par exemple, le type est I<« login »>)."
4361
4362 #. type: Plain text
4363 #: debian-trixie
4364 msgid ""
4365 "I<operation> was B<KEYCTL_UPDATE> and the key type does not support updating."
4366 msgstr ""
4367 "I<operation> était B<KEYCTL_UPDATE> et le type de clé ne gère pas les mises "
4368 "à jour."
4369
4370 #. type: Plain text
4371 #: debian-trixie
4372 msgid ""
4373 "I<operation> was B<KEYCTL_RESTRICT_KEYRING>, the type provided in I<arg3> "
4374 "argument was \"asymmetric\", and the key specified in the restriction "
4375 "specification provided in I<arg4> has type other than \"asymmetric\" or "
4376 "\"keyring\"."
4377 msgstr ""
4378 "I<operation> était B<KEYCTL_RESTRICT_KEYRING>, le type fourni dans le "
4379 "paramètre I<arg3> était « asymmetric », et la clé indiquée dans la "
4380 "spécification de la restriction fournie dans I<arg4> a un autre type que "
4381 "« asymmetric » ou « keyring »."
4382
4383 #. type: TP
4384 #: debian-trixie
4385 #, no-wrap
4386 msgid "B<EPERM>"
4387 msgstr "B<EPERM>"
4388
4389 #. type: Plain text
4390 #: debian-trixie
4391 msgid ""
4392 "I<operation> was B<KEYCTL_GET_PERSISTENT>, I<arg2> specified a UID other "
4393 "than the calling thread's real or effective UID, and the caller did not have "
4394 "the B<CAP_SETUID> capability."
4395 msgstr ""
4396 "I<operation> était B<KEYCTL_GET_PERSISTENT>, I<arg2> indiquait un "
4397 "identifiant utilisateur différent de celui de l'utilisateur réel ou effectif "
4398 "du thread appelant, et l'appelant n'avait pas la capacité B<CAP_SETUID>."
4399
4400 #. type: Plain text
4401 #: debian-trixie
4402 msgid ""
4403 "I<operation> was B<KEYCTL_SESSION_TO_PARENT> and either: all of the UIDs "
4404 "(GIDs) of the parent process do not match the effective UID (GID) of the "
4405 "calling process; the UID of the parent's existing session keyring or the UID "
4406 "of the caller's session keyring did not match the effective UID of the "
4407 "caller; the parent process is not single-thread; or the parent process is "
4408 "B<init>(1) or a kernel thread."
4409 msgstr ""
4410 "I<operation> était B<KEYCTL_SESSION_TO_PARENT> et : soit tous les "
4411 "identifiants utilisateur (ou de groupe) du processus parent ne correspondent "
4412 "pas à celui effectif du processus appelant ; soit l'identifiant utilisateur "
4413 "du trousseau de session du parent, ou celui du trousseau de session de "
4414 "l'appelant, ne correspondait pas à l'identifiant de l'utilisateur effectif "
4415 "de l'appelant ; soit le processus parent se compose de plus d'un thread ; "
4416 "soit le processus parent est B<init>(1) ou un thread du noyau."
4417
4418 #. type: TP
4419 #: debian-trixie
4420 #, no-wrap
4421 msgid "B<ETIMEDOUT>"
4422 msgstr "B<ETIMEDOUT>"
4423
4424 #. type: Plain text
4425 #: debian-trixie
4426 msgid ""
4427 "I<operation> was B<KEYCTL_DH_COMPUTE> and the initialization of crypto "
4428 "modules has timed out."
4429 msgstr ""
4430 "I<operation> était B<KEYCTL_DH_COMPUTE> et l'initialisation des modules de "
4431 "chiffrement a dépassé le délai."
4432
4433 #. type: Plain text
4434 #: debian-trixie fedora-44 fedora-rawhide
4435 #, no-wrap
4436 msgid ""
4437 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
4438 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
4439 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
4440 "$ B<./t_request_key user mykey somepayloaddata>\n"
4441 "Key ID is 20d035bf\n"
4442 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
4443 msgstr ""
4444 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
4445 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
4446 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
4447 "$ B<./t_request_key user mykey somepayloaddata>\n"
4448 "L'identifiant de clé est 20d035bf\n"
4449 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
4450
4451 #. type: Plain text
4452 #: debian-trixie fedora-44 fedora-rawhide
4453 #, no-wrap
4454 msgid ""
4455 "$ B<cat /tmp/key_instantiate.log>\n"
4456 "Time: Mon Nov 7 13:06:47 2016\n"
4457 "\\&\n"
4458 "Command line arguments:\n"
4459 " argv[0]: /sbin/request-key\n"
4460 " operation: create\n"
4461 " key_to_instantiate: 20d035bf\n"
4462 " UID: 1000\n"
4463 " GID: 1000\n"
4464 " thread_keyring: 0\n"
4465 " process_keyring: 0\n"
4466 " session_keyring: 256e6a6\n"
4467 "\\&\n"
4468 "Key description: user;1000;1000;3f010000;mykey\n"
4469 "Auth key payload: somepayloaddata\n"
4470 "Destination keyring: 256e6a6\n"
4471 "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
4472 msgstr ""
4473 "$ B<cat /tmp/key_instantiate.log>\n"
4474 "Time: Mon Nov 7 13:06:47 2016\n"
4475 "\\&\n"
4476 "Command line arguments:\n"
4477 " argv[0]: /sbin/request-key\n"
4478 " operation: create\n"
4479 " key_to_instantiate: 20d035bf\n"
4480 " UID: 1000\n"
4481 " GID: 1000\n"
4482 " thread_keyring: 0\n"
4483 " process_keyring: 0\n"
4484 " session_keyring: 256e6a6\n"
4485
4486 #. type: Plain text
4487 #: debian-trixie fedora-44 fedora-rawhide
4488 #, no-wrap
4489 msgid ""
4490 "$ B<cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>\n"
4491 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
4492 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
4493 msgstr ""
4494 "$ B<cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>\n"
4495 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
4496 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
4497
4498 #. type: Plain text
4499 #: debian-trixie fedora-44 fedora-rawhide
4500 #, no-wrap
4501 msgid ""
4502 "/* key_instantiate.c */\n"
4503 "\\&\n"
4504 "#include E<lt>errno.hE<gt>\n"
4505 "#include E<lt>keyutils.hE<gt>\n"
4506 "#include E<lt>stdint.hE<gt>\n"
4507 "#include E<lt>stdio.hE<gt>\n"
4508 "#include E<lt>stdlib.hE<gt>\n"
4509 "#include E<lt>string.hE<gt>\n"
4510 "#include E<lt>sys/types.hE<gt>\n"
4511 "#include E<lt>time.hE<gt>\n"
4512 "\\&\n"
4513 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
4514 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
4515 "#endif\n"
4516 "\\&\n"
4517 "int\n"
4518 "main(int argc, char *argv[])\n"
4519 "{\n"
4520 " int akp_size; /* Size of auth_key_payload */\n"
4521 " int auth_key;\n"
4522 " char dbuf[256];\n"
4523 " char auth_key_payload[256];\n"
4524 " char *operation;\n"
4525 " FILE *fp;\n"
4526 " gid_t gid;\n"
4527 " uid_t uid;\n"
4528 " time_t t;\n"
4529 " key_serial_t key_to_instantiate, dest_keyring;\n"
4530 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
4531 "\\&\n"
4532 " if (argc != 8) {\n"
4533 " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
4534 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
4535 " exit(EXIT_FAILURE);\n"
4536 " }\n"
4537 "\\&\n"
4538 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
4539 " if (fp == NULL)\n"
4540 " exit(EXIT_FAILURE);\n"
4541 "\\&\n"
4542 " setbuf(fp, NULL);\n"
4543 "\\&\n"
4544 " t = time(NULL);\n"
4545 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
4546 "\\&\n"
4547 " /*\n"
4548 " * The kernel passes a fixed set of arguments to the program\n"
4549 " * that it execs; fetch them.\n"
4550 " */\n"
4551 " operation = argv[1];\n"
4552 " key_to_instantiate = atoi(argv[2]);\n"
4553 " uid = atoi(argv[3]);\n"
4554 " gid = atoi(argv[4]);\n"
4555 " thread_keyring = atoi(argv[5]);\n"
4556 " process_keyring = atoi(argv[6]);\n"
4557 " session_keyring = atoi(argv[7]);\n"
4558 "\\&\n"
4559 " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
4560 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
4561 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
4562 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
4563 " (uintmax_t) key_to_instantiate);\n"
4564 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
4565 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
4566 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
4567 " (uintmax_t) thread_keyring);\n"
4568 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
4569 " (uintmax_t) process_keyring);\n"
4570 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
4571 " (uintmax_t) session_keyring);\n"
4572 " fprintf(fp, \"\\[rs]n\");\n"
4573 "\\&\n"
4574 " /*\n"
4575 " * Assume the authority to instantiate the key named in argv[2].\n"
4576 " */\n"
4577 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
4578 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
4579 " strerror(errno));\n"
4580 " exit(EXIT_FAILURE);\n"
4581 " }\n"
4582 "\\&\n"
4583 " /*\n"
4584 " * Fetch the description of the key that is to be instantiated.\n"
4585 " */\n"
4586 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
4587 " dbuf, sizeof(dbuf)) == -1) {\n"
4588 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
4589 " exit(EXIT_FAILURE);\n"
4590 " }\n"
4591 "\\&\n"
4592 " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
4593 "\\&\n"
4594 " /*\n"
4595 " * Fetch the payload of the authorization key, which is\n"
4596 " * actually the callout data given to request_key().\n"
4597 " */\n"
4598 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4599 " auth_key_payload, sizeof(auth_key_payload));\n"
4600 " if (akp_size == -1) {\n"
4601 " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
4602 " exit(EXIT_FAILURE);\n"
4603 " }\n"
4604 "\\&\n"
4605 " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
4606 " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
4607 "\\&\n"
4608 " /*\n"
4609 " * For interest, get the ID of the authorization key and\n"
4610 " * display it.\n"
4611 " */\n"
4612 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4613 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
4614 " if (auth_key == -1) {\n"
4615 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
4616 " strerror(errno));\n"
4617 " exit(EXIT_FAILURE);\n"
4618 " }\n"
4619 "\\&\n"
4620 " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
4621 "\\&\n"
4622 " /*\n"
4623 " * Fetch key ID for the request_key(2) destination keyring.\n"
4624 " */\n"
4625 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4626 " KEY_SPEC_REQUESTOR_KEYRING);\n"
4627 " if (dest_keyring == -1) {\n"
4628 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
4629 " strerror(errno));\n"
4630 " exit(EXIT_FAILURE);\n"
4631 " }\n"
4632 "\\&\n"
4633 " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
4634 "\\&\n"
4635 " /*\n"
4636 " * Fetch the description of the authorization key. This\n"
4637 " * allows us to see the key type, UID, GID, permissions,\n"
4638 " * and description (name) of the key. Among other things,\n"
4639 " * we will see that the name of the key is a hexadecimal\n"
4640 " * string representing the ID of the key to be instantiated.\n"
4641 " */\n"
4642 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4643 " dbuf, sizeof(dbuf)) == -1)\n"
4644 " {\n"
4645 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
4646 " exit(EXIT_FAILURE);\n"
4647 " }\n"
4648 "\\&\n"
4649 " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
4650 "\\&\n"
4651 " /*\n"
4652 " * Instantiate the key using the callout data that was supplied\n"
4653 " * in the payload of the authorization key.\n"
4654 " */\n"
4655 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
4656 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
4657 " {\n"
4658 " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
4659 " strerror(errno));\n"
4660 " exit(EXIT_FAILURE);\n"
4661 " }\n"
4662 "\\&\n"
4663 " exit(EXIT_SUCCESS);\n"
4664 "}\n"
4665 msgstr ""
4666 "/* key_instantiate.c */\n"
4667 "\\&\n"
4668 "#include E<lt>errno.hE<gt>\n"
4669 "#include E<lt>keyutils.hE<gt>\n"
4670 "#include E<lt>stdint.hE<gt>\n"
4671 "#include E<lt>stdio.hE<gt>\n"
4672 "#include E<lt>stdlib.hE<gt>\n"
4673 "#include E<lt>string.hE<gt>\n"
4674 "#include E<lt>sys/types.hE<gt>\n"
4675 "#include E<lt>time.hE<gt>\n"
4676 "\\&\n"
4677 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
4678 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
4679 "#endif\n"
4680 "\\&\n"
4681 "int\n"
4682 "main(int argc, char *argv[])\n"
4683 "{\n"
4684 " int akp_size; /* Taille de auth_key_payload */\n"
4685 " int auth_key;\n"
4686 " char dbuf[256];\n"
4687 " char auth_key_payload[256];\n"
4688 " char *operation;\n"
4689 " FILE *fp;\n"
4690 " gid_t gid;\n"
4691 " uid_t uid;\n"
4692 " time_t t;\n"
4693 " key_serial_t key_to_instantiate, dest_keyring;\n"
4694 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
4695 "\\&\n"
4696 " if (argc != 8) {\n"
4697 " fprintf(stderr, \"Usage : %s op key uid gid thread_keyring \"\n"
4698 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
4699 " exit(EXIT_FAILURE);\n"
4700 " }\n"
4701 "\\&\n"
4702 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
4703 " if (fp == NULL)\n"
4704 " exit(EXIT_FAILURE);\n"
4705 "\\&\n"
4706 " setbuf(fp, NULL);\n"
4707 "\\&\n"
4708 " t = time(NULL);\n"
4709 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
4710 "\\&\n"
4711 " /*\n"
4712 " * Le noyau passe un ensemble fixe de paramètres au programme\n"
4713 " * qu'il exécute ; les récupérer.\n"
4714 " */\n"
4715 " operation = argv[1];\n"
4716 " key_to_instantiate = atoi(argv[2]);\n"
4717 " uid = atoi(argv[3]);\n"
4718 " gid = atoi(argv[4]);\n"
4719 " thread_keyring = atoi(argv[5]);\n"
4720 " process_keyring = atoi(argv[6]);\n"
4721 " session_keyring = atoi(argv[7]);\n"
4722 "\\&\n"
4723 " fprintf(fp, \"Paramètres de la ligne de commande :\\[rs]n\");\n"
4724 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
4725 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
4726 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
4727 " (uintmax_t) key_to_instantiate);\n"
4728 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
4729 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
4730 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
4731 " (uintmax_t) thread_keyring);\n"
4732 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
4733 " (uintmax_t) process_keyring);\n"
4734 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
4735 " (uintmax_t) session_keyring);\n"
4736 " fprintf(fp, \"\\[rs]n\");\n"
4737 "\\&\n"
4738 " /*\n"
4739 " * Assumer l'autorité pour instancier la clé nommée dans argv[2].\n"
4740 " */\n"
4741 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
4742 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY a échoué : %s\\[rs]n\",\n"
4743 " strerror(errno));\n"
4744 " exit(EXIT_FAILURE);\n"
4745 " }\n"
4746 "\\&\n"
4747 " /*\n"
4748 " * Récupérer la description de la clé à instancier.\n"
4749 " */\n"
4750 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
4751 " dbuf, sizeof(dbuf)) == -1) {\n"
4752 " fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
4753 " exit(EXIT_FAILURE);\n"
4754 " }\n"
4755 "\\&\n"
4756 " fprintf(fp, \"Description de clé : %s\\[rs]n\", dbuf);\n"
4757 "\\&\n"
4758 " /*\n"
4759 " * Récupérer la charge utile de la clé d'autorisation, qui est en fait\n"
4760 " * les données d'appel (callout) données à request_key().\n"
4761 " */\n"
4762 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4763 " auth_key_payload, sizeof(auth_key_payload));\n"
4764 " if (akp_size == -1) {\n"
4765 " fprintf(fp, \"KEYCTL_READ a échoué : %s\\[rs]n\", strerror(errno));\n"
4766 " exit(EXIT_FAILURE);\n"
4767 " }\n"
4768 "\\&\n"
4769 " auth_key_payload[akp_size] = \\[aq]\\e0\\[aq];\n"
4770 " fprintf(fp, \"Charge utile de la clé d'auth : %s\\[rs]n\", auth_key_payload);\n"
4771 "\\&\n"
4772 " /*\n"
4773 " * Par intérêt, récupérer l'identifiant de la clé d'autorisation et\n"
4774 " * l'afficher.\n"
4775 " */\n"
4776 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4777 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
4778 " if (auth_key == -1) {\n"
4779 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
4780 " strerror(errno));\n"
4781 " exit(EXIT_FAILURE);\n"
4782 " }\n"
4783 "\\&\n"
4784 " fprintf(fp, \"Identifiant de la clé d'auth : %jx\\[rs]n\", (uintmax_t) auth_key);\n"
4785 "\\&\n"
4786 " /*\n"
4787 " * Récupérer l'identifiant de clé pour le trousseau de destination \n"
4788 " * request_key(2).\n"
4789 " */\n"
4790 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4791 " KEY_SPEC_REQUESTOR_KEYRING);\n"
4792 " if (dest_keyring == -1) {\n"
4793 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID a échoué : %s\\[rs]n\",\n"
4794 " strerror(errno));\n"
4795 " exit(EXIT_FAILURE);\n"
4796 " }\n"
4797 "\\&\n"
4798 " fprintf(fp, \"Trousseau de destination : %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
4799 "\\&\n"
4800 " /*\n"
4801 " * Récupérer la description de la clé d'autorisation. Cela nous permet\n"
4802 " * de voir le type de clé, l'identifiant utilisateur et de groupe, les\n"
4803 " * droits et la description (nom) de la clé. Entre autres choses,\n"
4804 " * on verra que le nom de la clé est une chaîne hexadécimale représentant\n"
4805 " * l'identifiant de la clé à instancier.\n"
4806 " */\n"
4807 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4808 " dbuf, sizeof(dbuf)) == -1)\n"
4809 " {\n"
4810 " fprintf(fp, \"KEYCTL_DESCRIBE a échoué : %s\\[rs]n\", strerror(errno));\n"
4811 " exit(EXIT_FAILURE);\n"
4812 " }\n"
4813 "\\&\n"
4814 " fprintf(fp, \"Description de la clé d'auth : %s\\[rs]n\", dbuf);\n"
4815 "\\&\n"
4816 " /*\n"
4817 " * Instancier la clé en utilisant les données de l'appel (callout)\n"
4818 " * fournies dans la charge utile de la clé d'autorisation.\n"
4819 " */\n"
4820 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
4821 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
4822 " {\n"
4823 " fprintf(fp, \"KEYCTL_INSTANTIATE a échoué : %s\\[rs]n\",\n"
4824 " strerror(errno));\n"
4825 " exit(EXIT_FAILURE);\n"
4826 " }\n"
4827 "\\&\n"
4828 " exit(EXIT_SUCCESS);\n"
4829 "}\n"
4830
4831 #. .BR find_key_by_type_and_name (3)
4832 #. There is a man page, but this function seems not to exist
4833 #. type: Plain text
4834 #: debian-trixie
4835 msgid ""
4836 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
4837 "B<keyctl_assume_authority>(3), B<keyctl_chown>(3), B<keyctl_clear>(3), "
4838 "B<keyctl_describe>(3), B<keyctl_describe_alloc>(3), B<keyctl_dh_compute>(3), "
4839 "B<keyctl_dh_compute_alloc>(3), B<keyctl_get_keyring_ID>(3), "
4840 "B<keyctl_get_persistent>(3), B<keyctl_get_security>(3), "
4841 "B<keyctl_get_security_alloc>(3), B<keyctl_instantiate>(3), "
4842 "B<keyctl_instantiate_iov>(3), B<keyctl_invalidate>(3), "
4843 "B<keyctl_join_session_keyring>(3), B<keyctl_link>(3), B<keyctl_negate>(3), "
4844 "B<keyctl_read>(3), B<keyctl_read_alloc>(3), B<keyctl_reject>(3), "
4845 "B<keyctl_revoke>(3), B<keyctl_search>(3), B<keyctl_session_to_parent>(3), "
4846 "B<keyctl_set_reqkey_keyring>(3), B<keyctl_set_timeout>(3), "
4847 "B<keyctl_setperm>(3), B<keyctl_unlink>(3), B<keyctl_update>(3), "
4848 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
4849 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
4850 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
4851 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
4852 "session-keyring>(7), B<request-key>(8)"
4853 msgstr ""
4854 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
4855 "B<keyctl_assume_authority>(3), B<keyctl_chown>(3), B<keyctl_clear>(3), "
4856 "B<keyctl_describe>(3), B<keyctl_describe_alloc>(3), B<keyctl_dh_compute>(3), "
4857 "B<keyctl_dh_compute_alloc>(3), B<keyctl_get_keyring_ID>(3), "
4858 "B<keyctl_get_persistent>(3), B<keyctl_get_security>(3), "
4859 "B<keyctl_get_security_alloc>(3), B<keyctl_instantiate>(3), "
4860 "B<keyctl_instantiate_iov>(3), B<keyctl_invalidate>(3), "
4861 "B<keyctl_join_session_keyring>(3), B<keyctl_link>(3), B<keyctl_negate>(3), "
4862 "B<keyctl_read>(3), B<keyctl_read_alloc>(3), B<keyctl_reject>(3), "
4863 "B<keyctl_revoke>(3), B<keyctl_search>(3), B<keyctl_session_to_parent>(3), "
4864 "B<keyctl_set_reqkey_keyring>(3), B<keyctl_set_timeout>(3), "
4865 "B<keyctl_setperm>(3), B<keyctl_unlink>(3), B<keyctl_update>(3), "
4866 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
4867 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
4868 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
4869 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
4870 "session-keyring>(7), B<request-key>(8)"
4871
4872 #. type: Plain text
4873 #: debian-trixie fedora-44 fedora-rawhide
4874 msgid ""
4875 "The kernel source files under I<Documentation/security/keys/> (or, before "
4876 "Linux 4.13, in the file I<Documentation/security/keys.txt>)."
4877 msgstr ""
4878 "Les fichiers sources du noyau I<Documentation/security/keys/> (ou avant "
4879 "Linux 4.13, dans le fichier I<Documentation/security/keys.txt>)."
4880
4881 #. type: TH
4882 #: fedora-44 fedora-rawhide
4883 #, no-wrap
4884 msgid "2024-08-21"
4885 msgstr "21 août 2024"
4886
4887 #. type: TH
4888 #: fedora-44 fedora-rawhide
4889 #, no-wrap
4890 msgid "Linux man-pages 6.13"
4891 msgstr "Pages du manuel de Linux 6.13"
4892
4893 #. type: TH
4894 #: mageia-cauldron
4895 #, no-wrap
4896 msgid "Linux man-pages 6.17"
4897 msgstr "Pages du manuel de Linux 6.17"
4898
4899 #. type: TH
4900 #: opensuse-leap-16-1 opensuse-tumbleweed
4901 #, no-wrap
4902 msgid "Linux man-pages (unreleased)"
4903 msgstr "Pages du manuel de Linux (non publiées)"