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.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-08-15 19:31+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
20 #: build/C/man2/add_key.2:11
26 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21 build/C/man2/request_key.2:11
32 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21 build/C/man2/request_key.2:11
38 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21 build/C/man2/request_key.2:11
40 msgid "Linux Key Management Calls"
44 #: build/C/man2/add_key.2:12 build/C/man2/keyctl.2:22 build/C/man2/request_key.2:12
50 #: build/C/man2/add_key.2:14
51 msgid "add_key - add a key to the kernel's key management facility"
55 #: build/C/man2/add_key.2:14 build/C/man2/keyctl.2:24 build/C/man2/request_key.2:14
61 #: build/C/man2/add_key.2:17 build/C/man2/keyctl.2:27 build/C/man2/request_key.2:17
63 msgid "B<#include E<lt>keyutils.hE<gt>>\n"
67 #: build/C/man2/add_key.2:21
70 "B<key_serial_t add_key(const char *>I<type>B<, const char "
71 "*>I<description>B<,>\n"
72 "B< const void *>I<payload>B<, size_t >I<plen>B<,>\n"
73 "B< key_serial_t >I<keyring>B<);>\n"
77 #: build/C/man2/add_key.2:22 build/C/man2/keyctl.2:30 build/C/man2/request_key.2:22
83 #: build/C/man2/add_key.2:35
85 "B<add_key>() asks the kernel to create or update a key of the given I<type> "
86 "and I<description>, instantiate it with the I<payload> of length I<plen>, "
87 "and to attach it to the nominated I<keyring> and to return its serial "
92 #: build/C/man2/add_key.2:38
94 "The key type may reject the data if it's in the wrong format or in some "
99 #: build/C/man2/add_key.2:46
101 "If the destination I<keyring> already contains a key that matches the "
102 "specified I<type> and I<description> then, if the key type supports it, that "
103 "key will be updated rather than a new key being created; if not, a new key "
104 "will be created and it will displace the link to the extant key from the "
109 #: build/C/man2/add_key.2:51
111 "The destination I<keyring> serial number may be that of a valid keyring to "
112 "which the caller has write permission, or it may be a special keyring ID:"
116 #: build/C/man2/add_key.2:51 build/C/man2/request_key.2:74
118 msgid "B<KEY_SPEC_THREAD_KEYRING>"
122 #: build/C/man2/add_key.2:54 build/C/man2/request_key.2:77
123 msgid "This specifies the caller's thread-specific keyring."
127 #: build/C/man2/add_key.2:54 build/C/man2/request_key.2:77
129 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
133 #: build/C/man2/add_key.2:57 build/C/man2/request_key.2:80
134 msgid "This specifies the caller's process-specific keyring."
138 #: build/C/man2/add_key.2:57 build/C/man2/request_key.2:80
140 msgid "B<KEY_SPEC_SESSION_KEYRING>"
144 #: build/C/man2/add_key.2:60 build/C/man2/request_key.2:83
145 msgid "This specifies the caller's session-specific keyring."
149 #: build/C/man2/add_key.2:60 build/C/man2/request_key.2:83
151 msgid "B<KEY_SPEC_USER_KEYRING>"
155 #: build/C/man2/add_key.2:63 build/C/man2/request_key.2:86
156 msgid "This specifies the caller's UID-specific keyring."
160 #: build/C/man2/add_key.2:63 build/C/man2/request_key.2:86
162 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
166 #: build/C/man2/add_key.2:66 build/C/man2/request_key.2:89
167 msgid "This specifies the caller's UID-session keyring."
171 #: build/C/man2/add_key.2:66
177 #: build/C/man2/add_key.2:69
179 "There are a number of key types available in the core key management code, "
180 "and these can be specified to this function:"
184 #: build/C/man2/add_key.2:69
190 #: build/C/man2/add_key.2:80
192 "Keys of the user-defined key type may contain a blob of arbitrary data, and "
193 "the I<description> may be any valid string, though it is preferred that the "
194 "description be prefixed with a string representing the service to which the "
195 "key is of interest and a colon (for instance ``B<afs:mykey>''). The "
196 "I<payload> may be empty or NULL for keys of this type."
200 #: build/C/man2/add_key.2:80
202 msgid "B<``keyring''>"
206 #: build/C/man2/add_key.2:89
208 "Keyrings are special key types that may contain links to sequences of other "
209 "keys of any type. If this interface is used to create a keyring, then a "
210 "NULL I<payload> should be specified, and I<plen> should be zero."
214 #: build/C/man2/add_key.2:89 build/C/man2/keyctl.2:91 build/C/man2/request_key.2:94
220 #: build/C/man2/add_key.2:95
222 "On success B<add_key>() returns the serial number of the key it created or "
223 "updated. On error, the value -1 will be returned and errno will have been "
224 "set to an appropriate error."
228 #: build/C/man2/add_key.2:95 build/C/man2/keyctl.2:97 build/C/man2/request_key.2:100
234 #: build/C/man2/add_key.2:96 build/C/man2/keyctl.2:114 build/C/man2/request_key.2:123
240 #: build/C/man2/add_key.2:99
241 msgid "The keyring doesn't exist."
245 #: build/C/man2/add_key.2:99 build/C/man2/keyctl.2:105 build/C/man2/request_key.2:111
247 msgid "B<EKEYEXPIRED>"
251 #: build/C/man2/add_key.2:102
252 msgid "The keyring has expired."
256 #: build/C/man2/add_key.2:102 build/C/man2/keyctl.2:111 build/C/man2/request_key.2:117
258 msgid "B<EKEYREVOKED>"
262 #: build/C/man2/add_key.2:105
263 msgid "The keyring has been revoked."
267 #: build/C/man2/add_key.2:105
273 #: build/C/man2/add_key.2:108
274 msgid "The payload data was invalid."
278 #: build/C/man2/add_key.2:108 build/C/man2/request_key.2:120
284 #: build/C/man2/add_key.2:111 build/C/man2/request_key.2:123
285 msgid "Insufficient memory to create a key."
289 #: build/C/man2/add_key.2:111 build/C/man2/keyctl.2:101 build/C/man2/request_key.2:107
295 #: build/C/man2/add_key.2:115 build/C/man2/request_key.2:111
297 "The key quota for this user would be exceeded by creating this key or "
298 "linking it to the keyring."
302 #: build/C/man2/add_key.2:115 build/C/man2/keyctl.2:98 build/C/man2/request_key.2:101
308 #: build/C/man2/add_key.2:118 build/C/man2/request_key.2:104
309 msgid "The keyring wasn't available for modification by the user."
313 #: build/C/man2/add_key.2:118 build/C/man2/keyctl.2:117 build/C/man2/request_key.2:126
319 #: build/C/man2/add_key.2:126 build/C/man2/keyctl.2:125 build/C/man2/request_key.2:134
321 "Although this is a Linux system call, it is not present in I<libc> but can "
322 "be found rather in I<libkeyutils>. When linking, B<-lkeyutils> should be "
323 "specified to the linker."
327 #: build/C/man2/add_key.2:126 build/C/man2/keyctl.2:125 build/C/man2/request_key.2:134
333 #: build/C/man2/add_key.2:130
334 msgid "B<keyctl>(1), B<keyctl>(2), B<request_key>(2)"
338 #: build/C/man2/add_key.2:130 build/C/man2/keyctl.2:151 build/C/man2/request_key.2:139
344 #: build/C/man2/add_key.2:137 build/C/man2/keyctl.2:158 build/C/man2/request_key.2:146
346 "This page is part of release 3.53 of the Linux I<man-pages> project. A "
347 "description of the project, and information about reporting bugs, can be "
348 "found at \\%http://www.kernel.org/doc/man-pages/."
352 #: build/C/man2/keyctl.2:21
358 #: build/C/man2/keyctl.2:24
359 msgid "keyctl - manipulate the kernel's key management facility"
363 #: build/C/man2/keyctl.2:29
365 msgid "B<long keyctl(int >I<cmd>B<, ...);>\n"
369 #: build/C/man2/keyctl.2:33
370 msgid "B<keyctl>() has a number of functions available:"
374 #: build/C/man2/keyctl.2:33
376 msgid "B<KEYCTL_GET_KEYRING_ID>"
380 #: build/C/man2/keyctl.2:36
381 msgid "Ask for a keyring's ID."
385 #: build/C/man2/keyctl.2:36
387 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
391 #: build/C/man2/keyctl.2:39
392 msgid "Join or start named session keyring."
396 #: build/C/man2/keyctl.2:39
398 msgid "B<KEYCTL_UPDATE>"
402 #: build/C/man2/keyctl.2:42
403 msgid "Update a key."
407 #: build/C/man2/keyctl.2:42
409 msgid "B<KEYCTL_REVOKE>"
413 #: build/C/man2/keyctl.2:45
414 msgid "Revoke a key."
418 #: build/C/man2/keyctl.2:45
420 msgid "B<KEYCTL_CHOWN>"
424 #: build/C/man2/keyctl.2:48
425 msgid "Set ownership of a key."
429 #: build/C/man2/keyctl.2:48
431 msgid "B<KEYCTL_SETPERM>"
435 #: build/C/man2/keyctl.2:51
436 msgid "Set perms on a key."
440 #: build/C/man2/keyctl.2:51
442 msgid "B<KEYCTL_DESCRIBE>"
446 #: build/C/man2/keyctl.2:54
447 msgid "Describe a key."
451 #: build/C/man2/keyctl.2:54
453 msgid "B<KEYCTL_CLEAR>"
457 #: build/C/man2/keyctl.2:57
458 msgid "Clear contents of a keyring."
462 #: build/C/man2/keyctl.2:57
464 msgid "B<KEYCTL_LINK>"
468 #: build/C/man2/keyctl.2:60
469 msgid "Link a key into a keyring."
473 #: build/C/man2/keyctl.2:60
475 msgid "B<KEYCTL_UNLINK>"
479 #: build/C/man2/keyctl.2:63
480 msgid "Unlink a key from a keyring."
484 #: build/C/man2/keyctl.2:63
486 msgid "B<KEYCTL_SEARCH>"
490 #: build/C/man2/keyctl.2:66
491 msgid "Search for a key in a keyring."
495 #: build/C/man2/keyctl.2:66
497 msgid "B<KEYCTL_READ>"
501 #: build/C/man2/keyctl.2:69
502 msgid "Read a key or keyring's contents."
506 #: build/C/man2/keyctl.2:69
508 msgid "B<KEYCTL_INSTANTIATE>"
512 #: build/C/man2/keyctl.2:72
513 msgid "Instantiate a partially constructed key."
517 #: build/C/man2/keyctl.2:72
519 msgid "B<KEYCTL_NEGATE>"
523 #: build/C/man2/keyctl.2:75
524 msgid "Negate a partially constructed key."
528 #: build/C/man2/keyctl.2:75
530 msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
534 #: build/C/man2/keyctl.2:78
535 msgid "Set default request-key keyring."
539 #: build/C/man2/keyctl.2:78
541 msgid "B<KEYCTL_SET_TIMEOUT>"
545 #: build/C/man2/keyctl.2:81
546 msgid "Set timeout on a key."
550 #: build/C/man2/keyctl.2:81
552 msgid "B<KEYCTL_ASSUME_AUTHORITY>"
556 #: build/C/man2/keyctl.2:84
557 msgid "Assume authority to instantiate key."
561 #: build/C/man2/keyctl.2:91
563 "These are wrapped by B<libkeyutils> into individual functions to permit "
564 "compiler the compiler to check types. See the B<See Also> section at the "
569 #: build/C/man2/keyctl.2:97
571 "On success B<keyctl>() returns the serial number of the key it found. On "
572 "error, the value -1 will be returned and errno will have been set to an "
577 #: build/C/man2/keyctl.2:101
578 msgid "A key operation wasn't permitted."
582 #: build/C/man2/keyctl.2:105
584 "The key quota for the caller's user would be exceeded by creating a key or "
585 "linking it to the keyring."
589 #: build/C/man2/keyctl.2:108
590 msgid "An expired key was found or specified."
594 #: build/C/man2/keyctl.2:108 build/C/man2/request_key.2:114
596 msgid "B<EKEYREJECTED>"
600 #: build/C/man2/keyctl.2:111
601 msgid "A rejected key was found or specified."
605 #: build/C/man2/keyctl.2:114
606 msgid "A revoked key was found or specified."
610 #: build/C/man2/keyctl.2:117
611 msgid "No matching key was found or an invalid key was specified."
615 #: build/C/man2/keyctl.2:151
617 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl_set_timeout>(3), "
618 "B<keyctl_chown>(3), B<keyctl_clear>(3), B<keyctl_describe>(3), "
619 "B<keyctl_describe_alloc>(3), B<keyctl_get_keyring_ID>(3), "
620 "B<keyctl_instantiate>(3), B<keyctl_join_session_keyring>(3), "
621 "B<keyctl_link>(3), B<keyctl_negate>(3), B<keyctl_revoke>(3), "
622 "B<keyctl_search>(3), B<keyctl_setperm>(3), B<keyctl_set_reqkey_keyring>(3), "
623 "B<keyctl_set_timeout>(3), B<keyctl_read>(3), B<keyctl_read_alloc>(3), "
624 "B<keyctl_unlink>(3), B<keyctl_update>(3), B<request-key>(8)"
628 #: build/C/man2/request_key.2:11
634 #: build/C/man2/request_key.2:14
635 msgid "request_key - request a key from the kernel's key management facility"
639 #: build/C/man2/request_key.2:21
642 "B<key_serial_t request_key(const char *>I<type>B<, const char "
643 "*>I<description>B<,>\n"
644 "B< const char *>I<callout_info>B<,>\n"
645 "B< key_serial_t >I<keyring>B<);>\n"
649 #: build/C/man2/request_key.2:31
651 "B<request_key>() asks the kernel to find a key of the given I<type> that "
652 "matches the specified I<description> and, if successful, to attach it to the "
653 "nominated I<keyring> and to return its serial number."
657 #: build/C/man2/request_key.2:36
659 "B<request_key>() first recursively searches all the keyrings attached to "
660 "the calling process in the order thread-specific keyring, process-specific "
661 "keyring and then session keyring for a matching key."
665 #: build/C/man2/request_key.2:44
667 "If B<request_key>() is called from a program invoked by B<request_key>() "
668 "on behalf of some other process to generate a key, then the keyrings of that "
669 "other process will be searched next, using that other process's UID, GID, "
670 "groups and security context to control access."
674 #: build/C/man2/request_key.2:52
676 "The keys in each keyring searched are checked for a match before any child "
677 "keyrings are recursed into. Only keys that are B<searchable> for the caller "
678 "may be found, and only B<searchable> keyrings may be searched."
682 #: build/C/man2/request_key.2:61
684 "If the key is not found then, if I<callout_info> is set, this function will "
685 "attempt to look further afield. In such a case, the I<callout_info> is "
686 "passed to a user-space service such as B</sbin/request-key> to generate the "
691 #: build/C/man2/request_key.2:69
693 "If that is unsuccessful also, then an error will be returned, and a "
694 "temporary negative key will be installed in the nominated I<keyring>. This "
695 "will expire after a few seconds, but will cause subsequent calls to "
696 "B<request_key>() to fail until it does."
700 #: build/C/man2/request_key.2:74
702 "The I<keyring> serial number may be that of a valid keyring to which the "
703 "caller has write permission, or it may be a special keyring ID:"
707 #: build/C/man2/request_key.2:94
709 "If a key is created, no matter whether it's a valid key or a negative key, "
710 "it will displace any other key of the same type and description from the "
711 "destination I<keyring>."
715 #: build/C/man2/request_key.2:100
717 "On success B<request_key>() returns the serial number of the key it found. "
718 "On error, the value -1 will be returned and errno will have been set to an "
723 #: build/C/man2/request_key.2:104
729 #: build/C/man2/request_key.2:107
730 msgid "The request was interrupted by a signal."
734 #: build/C/man2/request_key.2:114
735 msgid "An expired key was found, but no replacement could be obtained."
739 #: build/C/man2/request_key.2:117
740 msgid "The attempt to generate a new key was rejected."
744 #: build/C/man2/request_key.2:120
745 msgid "A revoked key was found, but no replacement could be obtained."
749 #: build/C/man2/request_key.2:126
750 msgid "No matching key was found."
754 #: build/C/man2/request_key.2:139
755 msgid "B<keyctl>(1), B<add_key>(2), B<keyctl>(2), B<request-key>(8)"