Debian Codegraph @

templates/man2/request_key.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "request_key"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "request_key - request a key from the kernel's key management facility"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Linux Key Management Utilities (I<libkeyutils>,\\ I<-lkeyutils>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>keyutils.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<key_serial_t request_key(const char *>I<type>B<, const char *>I<description>B<,>\n"
85 "B< const char *_Nullable >I<callout_info>B<,>\n"
86 "B< key_serial_t >I<dest_keyring>B<);>\n"
87 msgstr ""
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "B<request_key>() attempts to find a key of the given I<type> with a "
101 "description (name) that matches the specified I<description>. If such a key "
102 "could not be found, then the key is optionally created. If the key is found "
103 "or created, B<request_key>() attaches it to the keyring whose ID is "
104 "specified in I<dest_keyring> and returns the key's serial number."
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "B<request_key>() first recursively searches for a matching key in all of "
112 "the keyrings attached to the calling process. The keyrings are searched in "
113 "the order: thread-specific keyring, process-specific keyring, and then "
114 "session keyring."
115 msgstr ""
116
117 #. #-#-#-#-# archlinux: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
118 #. David Howells: we can then have an arbitrarily long sequence
119 #. of "recursive" request-key upcalls. There is no limit, other
120 #. than number of PIDs, etc.
121 #. type: Plain text
122 #. #-#-#-#-# debian-trixie: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
123 #. David Howells: we can then have an arbitrarily long sequence
124 #. of "recursive" request-key upcalls. There is no limit, other
125 #. than number of PIDs, etc.
126 #. type: Plain text
127 #. #-#-#-#-# debian-unstable: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
128 #. David Howells: we can then have an arbitrarily long sequence
129 #. of "recursive" request-key upcalls. There is no limit, other
130 #. than number of PIDs, etc.
131 #. type: Plain text
132 #. #-#-#-#-# fedora-44: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
133 #. David Howells: we can then have an arbitrarily long sequence
134 #. of "recursive" request-key upcalls. There is no limit, other
135 #. than number of PIDs, etc.
136 #. type: Plain text
137 #. #-#-#-#-# fedora-rawhide: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
138 #. David Howells: we can then have an arbitrarily long sequence
139 #. of "recursive" request-key upcalls. There is no limit, other
140 #. than number of PIDs, etc.
141 #. type: Plain text
142 #. #-#-#-#-# mageia-cauldron: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
143 #. David Howells: we can then have an arbitrarily long sequence
144 #. of "recursive" request-key upcalls. There is no limit, other
145 #. than number of PIDs, etc.
146 #. type: Plain text
147 #. #-#-#-#-# opensuse-leap-16-1: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
148 #. David Howells: we can then have an arbitrarily long sequence
149 #. of "recursive" request-key upcalls. There is no limit, other
150 #. than number of PIDs, etc.
151 #. type: Plain text
152 #. #-#-#-#-# opensuse-tumbleweed: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
153 #. David Howells: we can then have an arbitrarily long sequence
154 #. of "recursive" request-key upcalls. There is no limit, other
155 #. than number of PIDs, etc.
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "If B<request_key>() is called from a program invoked by B<request_key>() "
161 "on behalf of some other process to generate a key, then the keyrings of that "
162 "other process will be searched next, using that other process's user ID, "
163 "group ID, supplementary group IDs, and security context to determine access."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The search of the keyring tree is breadth-first: the keys in each keyring "
171 "searched are checked for a match before any child keyrings are recursed "
172 "into. Only keys for which the caller has I<search> permission be found, and "
173 "only keyrings for which the caller has I<search> permission may be searched."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "If the key is not found and I<callout> is NULL, then the call fails with the "
181 "error B<ENOKEY>."
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "If the key is not found and I<callout> is not NULL, then the kernel attempts "
189 "to invoke a user-space program to instantiate the key. The details are "
190 "given below."
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "The I<dest_keyring> serial number may be that of a valid keyring for which "
198 "the caller has I<write> permission, or it may be one of the following "
199 "special keyring IDs:"
200 msgstr ""
201
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "B<KEY_SPEC_THREAD_KEYRING>"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "This specifies the caller's thread-specific keyring (see B<thread-"
214 "keyring>(7))."
215 msgstr ""
216
217 #. type: TP
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "This specifies the caller's process-specific keyring (see B<process-"
229 "keyring>(7))."
230 msgstr ""
231
232 #. type: TP
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "B<KEY_SPEC_SESSION_KEYRING>"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "This specifies the caller's session-specific keyring (see B<session-"
244 "keyring>(7))."
245 msgstr ""
246
247 #. type: TP
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<KEY_SPEC_USER_KEYRING>"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "This specifies the caller's UID-specific keyring (see B<user-keyring>(7))."
259 msgstr ""
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
266 msgstr ""
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "This specifies the caller's UID-session keyring (see B<user-session-"
273 "keyring>(7))."
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "When the I<dest_keyring> is specified as 0 and no key construction has been "
281 "performed, then no additional linking is done."
282 msgstr ""
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "Otherwise, if I<dest_keyring> is 0 and a new key is constructed, the new key "
289 "will be linked to the \"default\" keyring. More precisely, when the kernel "
290 "tries to determine to which keyring the newly constructed key should be "
291 "linked, it tries the following keyrings, beginning with the keyring set via "
292 "the B<keyctl>(2) B<KEYCTL_SET_REQKEY_KEYRING> operation and continuing in "
293 "the order shown below until it finds the first keyring that exists:"
294 msgstr ""
295
296 #. type: IP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "\\[bu]"
301 msgstr ""
302
303 #. #-#-#-#-# archlinux: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
304 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
305 #. FIXME
306 #. Actually, is the preceding point correct?
307 #. If I understand correctly, we'll only get here if
308 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
309 #. won't refer to a keyring. Have I misunderstood?
310 #. type: Plain text
311 #. #-#-#-#-# debian-trixie: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
312 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
313 #. FIXME
314 #. Actually, is the preceding point correct?
315 #. If I understand correctly, we'll only get here if
316 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
317 #. won't refer to a keyring. Have I misunderstood?
318 #. type: Plain text
319 #. #-#-#-#-# debian-unstable: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
320 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
321 #. FIXME
322 #. Actually, is the preceding point correct?
323 #. If I understand correctly, we'll only get here if
324 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
325 #. won't refer to a keyring. Have I misunderstood?
326 #. type: Plain text
327 #. #-#-#-#-# fedora-44: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
328 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
329 #. FIXME
330 #. Actually, is the preceding point correct?
331 #. If I understand correctly, we'll only get here if
332 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
333 #. won't refer to a keyring. Have I misunderstood?
334 #. type: Plain text
335 #. #-#-#-#-# fedora-rawhide: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
336 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
337 #. FIXME
338 #. Actually, is the preceding point correct?
339 #. If I understand correctly, we'll only get here if
340 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
341 #. won't refer to a keyring. Have I misunderstood?
342 #. type: Plain text
343 #. #-#-#-#-# mageia-cauldron: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
344 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
345 #. FIXME
346 #. Actually, is the preceding point correct?
347 #. If I understand correctly, we'll only get here if
348 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
349 #. won't refer to a keyring. Have I misunderstood?
350 #. type: Plain text
351 #. #-#-#-#-# opensuse-leap-16-1: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
352 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
353 #. FIXME
354 #. Actually, is the preceding point correct?
355 #. If I understand correctly, we'll only get here if
356 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
357 #. won't refer to a keyring. Have I misunderstood?
358 #. type: Plain text
359 #. #-#-#-#-# opensuse-tumbleweed: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
360 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
361 #. FIXME
362 #. Actually, is the preceding point correct?
363 #. If I understand correctly, we'll only get here if
364 #. 'dest_keyring' is zero, in which case KEY_REQKEY_DEFL_REQUESTOR_KEYRING
365 #. won't refer to a keyring. Have I misunderstood?
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "The requestor keyring (B<KEY_REQKEY_DEFL_REQUESTOR_KEYRING>, since Linux "
371 "2.6.29)."
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "The thread-specific keyring (B<KEY_REQKEY_DEFL_THREAD_KEYRING>; see B<thread-"
379 "keyring>(7))."
380 msgstr ""
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 "The process-specific keyring (B<KEY_REQKEY_DEFL_PROCESS_KEYRING>; see "
387 "B<process-keyring>(7))."
388 msgstr ""
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "The session-specific keyring (B<KEY_REQKEY_DEFL_SESSION_KEYRING>; see "
395 "B<session-keyring>(7))."
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "The session keyring for the process's user ID "
403 "(B<KEY_REQKEY_DEFL_USER_SESSION_KEYRING>; see B<user-session-keyring>(7)). "
404 "This keyring is expected to always exist."
405 msgstr ""
406
407 #
408 #
409 #
410 #
411 #
412 #. mtk: Are there circumstances where the user sessions and UID-specific
413 #. keyrings do not exist?
414 #. David Howells:
415 #. The uid keyrings don't exist until someone tries to access them -
416 #. at which point they're both created. When you log in, pam_keyinit
417 #. creates a link to your user keyring in the session keyring it just
418 #. created, thereby creating the user and user-session keyrings.
419 #. and David elaborated that "access" means:
420 #. It means lookup_user_key() was passed KEY_LOOKUP_CREATE. So:
421 #. add_key() - destination keyring
422 #. request_key() - destination keyring
423 #. KEYCTL_GET_KEYRING_ID - if create arg is true
424 #. KEYCTL_CLEAR
425 #. KEYCTL_LINK - both args
426 #. KEYCTL_SEARCH - destination keyring
427 #. KEYCTL_CHOWN
428 #. KEYCTL_SETPERM
429 #. KEYCTL_SET_TIMEOUT
430 #. KEYCTL_INSTANTIATE - destination keyring
431 #. KEYCTL_INSTANTIATE_IOV - destination keyring
432 #. KEYCTL_NEGATE - destination keyring
433 #. KEYCTL_REJECT - destination keyring
434 #. KEYCTL_GET_PERSISTENT - destination keyring
435 #. will all create a keyring under some circumstances. Whereas the rest,
436 #. such as KEYCTL_GET_SECURITY, KEYCTL_READ and KEYCTL_REVOKE, won't.
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid ""
441 "The UID-specific keyring (B<KEY_REQKEY_DEFL_USER_KEYRING>; see B<user-"
442 "keyring>(7)). This keyring is also expected to always exist."
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "If the B<keyctl>(2) B<KEYCTL_SET_REQKEY_KEYRING> operation specifies "
450 "B<KEY_REQKEY_DEFL_DEFAULT> (or no B<KEYCTL_SET_REQKEY_KEYRING> operation is "
451 "performed), then the kernel looks for a keyring starting from the beginning "
452 "of the list."
453 msgstr ""
454
455 #. type: SS
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Requesting user-space instantiation of a key"
460 msgstr ""
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "If the kernel cannot find a key matching I<type> and I<description>, and "
467 "I<callout> is not NULL, then the kernel attempts to invoke a user-space "
468 "program to instantiate a key with the given I<type> and I<description>. In "
469 "this case, the following steps are performed:"
470 msgstr ""
471
472 #. type: IP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "(1)"
477 msgstr ""
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid ""
483 "The kernel creates an uninstantiated key, U, with the requested I<type> and "
484 "I<description>."
485 msgstr ""
486
487 #. type: IP
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "(2)"
492 msgstr ""
493
494 #. struct request_key_auth, defined in security/keys/internal.h
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "The kernel creates an authorization key, V, that refers to the key U and "
500 "records the facts that the caller of B<request_key>() is:"
501 msgstr ""
502
503 #. type: IP
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "(2.1)"
508 msgstr ""
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 msgid "the context in which the key U should be instantiated and secured, and"
514 msgstr ""
515
516 #. type: IP
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "(2.2)"
521 msgstr ""
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid "the context from which associated key requests may be satisfied."
527 msgstr ""
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid "The authorization key is constructed as follows:"
533 msgstr ""
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 msgid "The key type is I<\\[dq].request_key_auth\\[dq]>."
539 msgstr ""
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "The key's UID and GID are the same as the corresponding filesystem IDs of "
546 "the requesting process."
547 msgstr ""
548
549 #. type: Plain text
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 msgid ""
553 "The key grants I<view>, I<read>, and I<search> permissions to the key "
554 "possessor as well as I<view> permission for the key user."
555 msgstr ""
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "The description (name) of the key is the hexadecimal string representing the "
562 "ID of the key that is to be instantiated in the requesting program."
563 msgstr ""
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 payload of the key is taken from the data specified in I<callout_info>."
570 msgstr ""
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "Internally, the kernel also records the PID of the process that called "
577 "B<request_key>()."
578 msgstr ""
579
580 #. type: IP
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "(3)"
585 msgstr ""
586
587 #. #-#-#-#-# archlinux: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
588 #. The request\-key(8) program can be invoked in circumstances *other* than
589 #. when triggered by request_key(2). For example, upcalls from places such
590 #. as the DNS resolver.
591 #. type: Plain text
592 #. #-#-#-#-# debian-trixie: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
593 #. The request\-key(8) program can be invoked in circumstances *other* than
594 #. when triggered by request_key(2). For example, upcalls from places such
595 #. as the DNS resolver.
596 #. type: Plain text
597 #. #-#-#-#-# debian-unstable: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
598 #. The request\-key(8) program can be invoked in circumstances *other* than
599 #. when triggered by request_key(2). For example, upcalls from places such
600 #. as the DNS resolver.
601 #. type: Plain text
602 #. #-#-#-#-# fedora-44: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
603 #. The request\-key(8) program can be invoked in circumstances *other* than
604 #. when triggered by request_key(2). For example, upcalls from places such
605 #. as the DNS resolver.
606 #. type: Plain text
607 #. #-#-#-#-# fedora-rawhide: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
608 #. The request\-key(8) program can be invoked in circumstances *other* than
609 #. when triggered by request_key(2). For example, upcalls from places such
610 #. as the DNS resolver.
611 #. type: Plain text
612 #. #-#-#-#-# mageia-cauldron: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
613 #. The request\-key(8) program can be invoked in circumstances *other* than
614 #. when triggered by request_key(2). For example, upcalls from places such
615 #. as the DNS resolver.
616 #. type: Plain text
617 #. #-#-#-#-# opensuse-leap-16-1: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
618 #. The request\-key(8) program can be invoked in circumstances *other* than
619 #. when triggered by request_key(2). For example, upcalls from places such
620 #. as the DNS resolver.
621 #. type: Plain text
622 #. #-#-#-#-# opensuse-tumbleweed: request_key.2.pot (PACKAGE VERSION) #-#-#-#-#
623 #. The request\-key(8) program can be invoked in circumstances *other* than
624 #. when triggered by request_key(2). For example, upcalls from places such
625 #. as the DNS resolver.
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 msgid ""
630 "The kernel creates a process that executes a user-space service such as "
631 "B<request-key>(8) with a new session keyring that contains a link to the "
632 "authorization key, V."
633 msgstr ""
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 msgid "This program is supplied with the following command-line arguments:"
639 msgstr ""
640
641 #. type: IP
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "[0]"
646 msgstr ""
647
648 #. type: Plain text
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 msgid "The string I<\\[dq]/sbin/request-key\\[dq]>."
652 msgstr ""
653
654 #. type: IP
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "[1]"
659 msgstr ""
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 msgid ""
665 "The string I<\\[dq]create\\[dq]> (indicating that a key is to be created)."
666 msgstr ""
667
668 #. type: IP
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "[2]"
673 msgstr ""
674
675 #. type: Plain text
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 msgid "The ID of the key that is to be instantiated."
679 msgstr ""
680
681 #. type: IP
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid "[3]"
686 msgstr ""
687
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 msgid "The filesystem UID of the caller of B<request_key>()."
692 msgstr ""
693
694 #. type: IP
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "[4]"
699 msgstr ""
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 "The filesystem GID of the caller of B<request_key>()."
705 msgstr ""
706
707 #. type: IP
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid "[5]"
712 msgstr ""
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 msgid ""
718 "The ID of the thread keyring of the caller of B<request_key>(). This may be "
719 "zero if that keyring hasn't been created."
720 msgstr ""
721
722 #. type: IP
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid "[6]"
727 msgstr ""
728
729 #. type: Plain text
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 msgid ""
733 "The ID of the process keyring of the caller of B<request_key>(). This may "
734 "be zero if that keyring hasn't been created."
735 msgstr ""
736
737 #. type: IP
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 #, no-wrap
741 msgid "[7]"
742 msgstr ""
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid "The ID of the session keyring of the caller of B<request_key>()."
748 msgstr ""
749
750 #. type: Plain text
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 msgid ""
754 "I<Note>: each of the command-line arguments that is a key ID is encoded in "
755 "I<decimal> (unlike the key IDs shown in I</proc/keys>, which are shown as "
756 "hexadecimal values)."
757 msgstr ""
758
759 #. type: IP
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid "(4)"
764 msgstr ""
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid "The program spawned in the previous step:"
770 msgstr ""
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 msgid ""
776 "Assumes the authority to instantiate the key U using the B<keyctl>(2) "
777 "B<KEYCTL_ASSUME_AUTHORITY> operation (typically via the "
778 "B<keyctl_assume_authority>(3) function)."
779 msgstr ""
780
781 #. type: Plain text
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 msgid ""
785 "Obtains the callout data from the payload of the authorization key V (using "
786 "the B<keyctl>(2) B<KEYCTL_READ> operation (or, more commonly, the "
787 "B<keyctl_read>(3) function) with a key ID value of "
788 "B<KEY_SPEC_REQKEY_AUTH_KEY>)."
789 msgstr ""
790
791 #. Should an instantiating program be using KEY_SPEC_REQUESTOR_KEYRING?
792 #. I couldn't find a use in the keyutils git repo.
793 #. According to David Howells:
794 #. * This feature is provided, but not used at the moment.
795 #. * A key added to that ring is then owned by the requester
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "Instantiates the key (or execs another program that performs that task), "
801 "specifying the payload and destination keyring. (The destination keyring "
802 "that the requestor specified when calling B<request_key>() can be accessed "
803 "using the special key ID B<KEY_SPEC_REQUESTOR_KEYRING>.) Instantiation is "
804 "performed using the B<keyctl>(2) B<KEYCTL_INSTANTIATE> operation (or, more "
805 "commonly, the B<keyctl_instantiate>(3) function). At this point, the "
806 "B<request_key>() call completes, and the requesting program can continue "
807 "execution."
808 msgstr ""
809
810 #. type: Plain text
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 msgid ""
814 "If these steps are unsuccessful, then an B<ENOKEY> error will be returned to "
815 "the caller of B<request_key>() and a temporary, negatively instantiated key "
816 "will be installed in the keyring specified by I<dest_keyring>. This will "
817 "expire after a few seconds, but will cause subsequent calls to "
818 "B<request_key>() to fail until it does. The purpose of this negatively "
819 "instantiated key is to prevent (possibly different) processes making "
820 "repeated requests (that require expensive B<request-key>(8) upcalls) for a "
821 "key that can't (at the moment) be positively instantiated."
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "Once the key has been instantiated, the authorization key "
829 "(B<KEY_SPEC_REQKEY_AUTH_KEY>) is revoked, and the destination keyring "
830 "(B<KEY_SPEC_REQUESTOR_KEYRING>) is no longer accessible from the B<request-"
831 "key>(8) program."
832 msgstr ""
833
834 #. type: Plain text
835 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
836 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
837 msgid ""
838 "If a key is created, then\\[em]regardless of whether it is a valid key or a "
839 "negatively instantiated key\\[em]it will displace any other key with the "
840 "same type and description from the keyring specified in I<dest_keyring>."
841 msgstr ""
842
843 #. type: SH
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 #, no-wrap
847 msgid "RETURN VALUE"
848 msgstr ""
849
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid ""
854 "On success, B<request_key>() returns the serial number of the key it found "
855 "or caused to be created. On error, -1 is returned and I<errno> is set to "
856 "indicate the error."
857 msgstr ""
858
859 #. type: SH
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid "ERRORS"
864 msgstr ""
865
866 #. type: TP
867 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
868 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
869 #, no-wrap
870 msgid "B<EACCES>"
871 msgstr ""
872
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid "The keyring wasn't available for modification by the user."
877 msgstr ""
878
879 #. type: TP
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 #, no-wrap
883 msgid "B<EDQUOT>"
884 msgstr ""
885
886 #. type: Plain text
887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
889 msgid ""
890 "The key quota for this user would be exceeded by creating this key or "
891 "linking it to the keyring."
892 msgstr ""
893
894 #. type: TP
895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
897 #, no-wrap
898 msgid "B<EFAULT>"
899 msgstr ""
900
901 #. type: Plain text
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 msgid ""
905 "One of I<type>, I<description>, or I<callout_info> points outside the "
906 "process's accessible address space."
907 msgstr ""
908
909 #. type: TP
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 #, no-wrap
913 msgid "B<EINTR>"
914 msgstr ""
915
916 #. type: Plain text
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 msgid "The request was interrupted by a signal; see B<signal>(7)."
920 msgstr ""
921
922 #. type: TP
923 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
924 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
925 #, no-wrap
926 msgid "B<EINVAL>"
927 msgstr ""
928
929 #. type: Plain text
930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
932 msgid ""
933 "The size of the string (including the terminating null byte) specified in "
934 "I<type> or I<description> exceeded the limit (32 bytes and 4096 bytes "
935 "respectively)."
936 msgstr ""
937
938 #. type: Plain text
939 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
940 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
941 msgid ""
942 "The size of the string (including the terminating null byte) specified in "
943 "I<callout_info> exceeded the system page size."
944 msgstr ""
945
946 #. type: TP
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 #, no-wrap
950 msgid "B<EKEYEXPIRED>"
951 msgstr ""
952
953 #. type: Plain text
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 msgid "An expired key was found, but no replacement could be obtained."
957 msgstr ""
958
959 #. type: TP
960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
962 #, no-wrap
963 msgid "B<EKEYREJECTED>"
964 msgstr ""
965
966 #. type: Plain text
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 msgid "The attempt to generate a new key was rejected."
970 msgstr ""
971
972 #. type: TP
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 #, no-wrap
976 msgid "B<EKEYREVOKED>"
977 msgstr ""
978
979 #. type: Plain text
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 msgid "A revoked key was found, but no replacement could be obtained."
983 msgstr ""
984
985 #. type: TP
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 #, no-wrap
989 msgid "B<ENOKEY>"
990 msgstr ""
991
992 #. type: Plain text
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 msgid "No matching key was found."
996 msgstr ""
997
998 #. type: TP
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 #, no-wrap
1002 msgid "B<ENOMEM>"
1003 msgstr ""
1004
1005 #. type: Plain text
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 msgid "Insufficient memory to create a key."
1009 msgstr ""
1010
1011 #. type: TP
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 #, no-wrap
1015 msgid "B<EPERM>"
1016 msgstr ""
1017
1018 #. type: Plain text
1019 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1020 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1021 msgid "The I<type> argument started with a period (\\[aq].\\[aq])."
1022 msgstr ""
1023
1024 #. type: SH
1025 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1026 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1027 #, no-wrap
1028 msgid "STANDARDS"
1029 msgstr ""
1030
1031 #. type: Plain text
1032 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1033 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1034 msgid "Linux."
1035 msgstr ""
1036
1037 #. type: SH
1038 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1039 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1040 #, no-wrap
1041 msgid "HISTORY"
1042 msgstr ""
1043
1044 #. type: Plain text
1045 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1046 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1047 msgid "Linux 2.6.10."
1048 msgstr ""
1049
1050 #. commit 3e30148c3d524a9c1c63ca28261bc24c457eb07a
1051 #. type: Plain text
1052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1054 msgid "The ability to instantiate keys upon request was added in Linux 2.6.13."
1055 msgstr ""
1056
1057 #. type: SH
1058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1060 #, no-wrap
1061 msgid "EXAMPLES"
1062 msgstr ""
1063
1064 #. type: Plain text
1065 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1066 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1067 msgid ""
1068 "The program below demonstrates the use of B<request_key>(). The I<type>, "
1069 "I<description>, and I<callout_info> arguments for the system call are taken "
1070 "from the values supplied in the command-line arguments. The call specifies "
1071 "the session keyring as the target keyring."
1072 msgstr ""
1073
1074 #. type: Plain text
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 msgid ""
1078 "In order to demonstrate this program, we first create a suitable entry in "
1079 "the file I</etc/request-key.conf>."
1080 msgstr ""
1081
1082 #. type: Plain text
1083 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1084 #: opensuse-tumbleweed
1085 #, no-wrap
1086 msgid ""
1087 "$B< sudo sh>;\n"
1088 "#B< echo \\[aq]create user mtk:* * /bin/keyctl instantiate %k %c %S\\[aq] \\[rs]>\n"
1089 "B< E<gt> /etc/request-key.conf>;\n"
1090 "#B< exit>;\n"
1091 msgstr ""
1092
1093 #. type: Plain text
1094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1096 msgid ""
1097 "This entry specifies that when a new \"user\" key with the prefix \"mtk:\" "
1098 "must be instantiated, that task should be performed via the B<keyctl>(1) "
1099 "command's B<instantiate> operation. The arguments supplied to the "
1100 "B<instantiate> operation are: the ID of the uninstantiated key (I<%k>); the "
1101 "callout data supplied to the B<request_key>() call (I<%c>); and the session "
1102 "keyring (I<%S>) of the requestor (i.e., the caller of B<request_key>()). "
1103 "See B<request-key.conf>(5) for details of these I<%> specifiers."
1104 msgstr ""
1105
1106 #. type: Plain text
1107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1109 msgid ""
1110 "Then we run the program and check the contents of I</proc/keys> to verify "
1111 "that the requested key has been instantiated:"
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1116 #: opensuse-tumbleweed
1117 #, no-wrap
1118 msgid ""
1119 "$B< ./t_request_key user mtk:key1 \\[dq]Payload data\\[dq]>;\n"
1120 "$B< grep \\[aq]2dddaf50\\[aq] /proc/keys>;\n"
1121 "2dddaf50 I--Q--- 1 perm 3f010000 1000 1000 user mtk:key1: 12\n"
1122 msgstr ""
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid "For another example of the use of this program, see B<keyctl>(2)."
1128 msgstr ""
1129
1130 #. type: SS
1131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1133 #, no-wrap
1134 msgid "Program source"
1135 msgstr ""
1136
1137 #. type: Plain text
1138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1140 #, no-wrap
1141 msgid ""
1142 "/* t_request_key.c */\n"
1143 "\\&\n"
1144 "#include E<lt>keyutils.hE<gt>\n"
1145 "#include E<lt>stdint.hE<gt>\n"
1146 "#include E<lt>stdio.hE<gt>\n"
1147 "#include E<lt>stdlib.hE<gt>\n"
1148 "\\&\n"
1149 "int\n"
1150 "main(int argc, char *argv[])\n"
1151 "{\n"
1152 " key_serial_t key;\n"
1153 "\\&\n"
1154 " if (argc != 4) {\n"
1155 " fprintf(stderr, \"Usage: %s type description callout-data\\[rs]n\",\n"
1156 " argv[0]);\n"
1157 " exit(EXIT_FAILURE);\n"
1158 " }\n"
1159 "\\&\n"
1160 " key = request_key(argv[1], argv[2], argv[3],\n"
1161 " KEY_SPEC_SESSION_KEYRING);\n"
1162 " if (key == -1) {\n"
1163 " perror(\"request_key\");\n"
1164 " exit(EXIT_FAILURE);\n"
1165 " }\n"
1166 "\\&\n"
1167 " printf(\"Key ID is %jx\\[rs]n\", (uintmax_t) key);\n"
1168 "\\&\n"
1169 " exit(EXIT_SUCCESS);\n"
1170 "}\n"
1171 msgstr ""
1172
1173 #. SRC END
1174 #. type: SH
1175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1177 #, no-wrap
1178 msgid "SEE ALSO"
1179 msgstr ""
1180
1181 #. type: Plain text
1182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1184 msgid ""
1185 "B<keyctl>(1), B<add_key>(2), B<keyctl>(2), B<keyctl>(3), B<capabilities>(7), "
1186 "B<keyrings>(7), B<keyutils>(7), B<persistent-keyring>(7), B<process-"
1187 "keyring>(7), B<session-keyring>(7), B<thread-keyring>(7), B<user-"
1188 "keyring>(7), B<user-session-keyring>(7), B<request-key>(8)"
1189 msgstr ""
1190
1191 #. type: Plain text
1192 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1193 #: opensuse-tumbleweed
1194 msgid ""
1195 "The kernel source files I<Documentation/security/keys/core.rst> and "
1196 "I<Documentation/keys/request-key.rst>."
1197 msgstr ""
1198
1199 #. type: TH
1200 #: debian-trixie
1201 #, no-wrap
1202 msgid "2024-06-15"
1203 msgstr ""
1204
1205 #. type: TH
1206 #: debian-trixie
1207 #, no-wrap
1208 msgid "Linux man-pages 6.9.1"
1209 msgstr ""
1210
1211 #. type: Plain text
1212 #: debian-trixie
1213 msgid "Linux Key Management Utilities (I<libkeyutils>, I<-lkeyutils>)"
1214 msgstr ""
1215
1216 #. type: Plain text
1217 #: debian-trixie fedora-44 fedora-rawhide
1218 #, no-wrap
1219 msgid ""
1220 "$ sudo sh\n"
1221 "# B<echo \\[aq]create user mtk:* * /bin/keyctl instantiate %k %c %S\\[aq] \\[rs]>\n"
1222 " B<E<gt> /etc/request-key.conf>\n"
1223 "# B<exit>\n"
1224 msgstr ""
1225
1226 #. type: Plain text
1227 #: debian-trixie fedora-44 fedora-rawhide
1228 #, no-wrap
1229 msgid ""
1230 "$ B<./t_request_key user mtk:key1 \"Payload data\">\n"
1231 "$ B<grep \\[aq]2dddaf50\\[aq] /proc/keys>\n"
1232 "2dddaf50 I--Q--- 1 perm 3f010000 1000 1000 user mtk:key1: 12\n"
1233 msgstr ""
1234
1235 #. commit b68101a1e8f0263dbc7b8375d2a7c57c6216fb76
1236 #. commit 3db38ed76890565772fcca3279cc8d454ea6176b
1237 #. type: Plain text
1238 #: debian-trixie fedora-44 fedora-rawhide
1239 msgid ""
1240 "The kernel source files I<Documentation/security/keys/core.rst> and "
1241 "I<Documentation/keys/request-key.rst> (or, before Linux 4.13, in the files "
1242 "I<Documentation/security/keys.txt> and I<Documentation/security/keys-request-"
1243 "key.txt>)."
1244 msgstr ""
1245
1246 #. type: TH
1247 #: fedora-44 fedora-rawhide
1248 #, no-wrap
1249 msgid "2024-07-23"
1250 msgstr ""
1251
1252 #. type: TH
1253 #: fedora-44 fedora-rawhide
1254 #, no-wrap
1255 msgid "Linux man-pages 6.13"
1256 msgstr ""
1257
1258 #. type: TH
1259 #: mageia-cauldron
1260 #, no-wrap
1261 msgid "Linux man-pages 6.17"
1262 msgstr ""
1263
1264 #. type: TH
1265 #: opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "Linux man-pages (unreleased)"
1268 msgstr ""