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.
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2013-08-15 19:31+0900\n"
10 "PO-Revision-Date: 2013-07-30 00:28+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
19 #: build/C/man2/add_key.2:11
25 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21
26 #: build/C/man2/request_key.2:11
32 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21
33 #: build/C/man2/request_key.2:11
39 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:21
40 #: build/C/man2/request_key.2:11
42 msgid "Linux Key Management Calls"
43 msgstr "Linux Key Management Calls"
46 #: build/C/man2/add_key.2:12 build/C/man2/keyctl.2:22
47 #: build/C/man2/request_key.2:12
53 #: build/C/man2/add_key.2:14
54 msgid "add_key - add a key to the kernel's key management facility"
58 #: build/C/man2/add_key.2:14 build/C/man2/keyctl.2:24
59 #: build/C/man2/request_key.2:14
65 #: build/C/man2/add_key.2:17 build/C/man2/keyctl.2:27
66 #: build/C/man2/request_key.2:17
68 msgid "B<#include E<lt>keyutils.hE<gt>>\n"
69 msgstr "B<#include E<lt>keyutils.hE<gt>>\n"
72 #: build/C/man2/add_key.2:21
75 "B<key_serial_t add_key(const char *>I<type>B<, const char *>I<description>B<,>\n"
76 "B< const void *>I<payload>B<, size_t >I<plen>B<,>\n"
77 "B< key_serial_t >I<keyring>B<);>\n"
79 "B<key_serial_t add_key(const char *>I<type>B<, const char *>I<description>B<,>\n"
80 "B< const void *>I<payload>B<, size_t >I<plen>B<,>\n"
81 "B< key_serial_t >I<keyring>B<);>\n"
84 #: build/C/man2/add_key.2:22 build/C/man2/keyctl.2:30
85 #: build/C/man2/request_key.2:22
91 #: build/C/man2/add_key.2:35
93 "B<add_key>() asks the kernel to create or update a key of the given I<type> "
94 "and I<description>, instantiate it with the I<payload> of length I<plen>, "
95 "and to attach it to the nominated I<keyring> and to return its serial number."
99 #: build/C/man2/add_key.2:38
101 "The key type may reject the data if it's in the wrong format or in some "
106 #: build/C/man2/add_key.2:46
108 "If the destination I<keyring> already contains a key that matches the "
109 "specified I<type> and I<description> then, if the key type supports it, that "
110 "key will be updated rather than a new key being created; if not, a new key "
111 "will be created and it will displace the link to the extant key from the "
116 #: build/C/man2/add_key.2:51
118 "The destination I<keyring> serial number may be that of a valid keyring to "
119 "which the caller has write permission, or it may be a special keyring ID:"
123 #: build/C/man2/add_key.2:51 build/C/man2/request_key.2:74
125 msgid "B<KEY_SPEC_THREAD_KEYRING>"
126 msgstr "B<KEY_SPEC_THREAD_KEYRING>"
129 #: build/C/man2/add_key.2:54 build/C/man2/request_key.2:77
130 msgid "This specifies the caller's thread-specific keyring."
134 #: build/C/man2/add_key.2:54 build/C/man2/request_key.2:77
136 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
137 msgstr "B<KEY_SPEC_PROCESS_KEYRING>"
140 #: build/C/man2/add_key.2:57 build/C/man2/request_key.2:80
141 msgid "This specifies the caller's process-specific keyring."
145 #: build/C/man2/add_key.2:57 build/C/man2/request_key.2:80
147 msgid "B<KEY_SPEC_SESSION_KEYRING>"
148 msgstr "B<KEY_SPEC_SESSION_KEYRING>"
151 #: build/C/man2/add_key.2:60 build/C/man2/request_key.2:83
152 msgid "This specifies the caller's session-specific keyring."
156 #: build/C/man2/add_key.2:60 build/C/man2/request_key.2:83
158 msgid "B<KEY_SPEC_USER_KEYRING>"
159 msgstr "B<KEY_SPEC_USER_KEYRING>"
162 #: build/C/man2/add_key.2:63 build/C/man2/request_key.2:86
163 msgid "This specifies the caller's UID-specific keyring."
167 #: build/C/man2/add_key.2:63 build/C/man2/request_key.2:86
169 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
170 msgstr "B<KEY_SPEC_USER_SESSION_KEYRING>"
173 #: build/C/man2/add_key.2:66 build/C/man2/request_key.2:89
174 msgid "This specifies the caller's UID-session keyring."
178 #: build/C/man2/add_key.2:66
184 #: build/C/man2/add_key.2:69
186 "There are a number of key types available in the core key management code, "
187 "and these can be specified to this function:"
191 #: build/C/man2/add_key.2:69
197 #: build/C/man2/add_key.2:80
199 "Keys of the user-defined key type may contain a blob of arbitrary data, and "
200 "the I<description> may be any valid string, though it is preferred that the "
201 "description be prefixed with a string representing the service to which the "
202 "key is of interest and a colon (for instance ``B<afs:mykey>''). The "
203 "I<payload> may be empty or NULL for keys of this type."
207 #: build/C/man2/add_key.2:80
209 msgid "B<``keyring''>"
210 msgstr "B<``keyring''>"
213 #: build/C/man2/add_key.2:89
215 "Keyrings are special key types that may contain links to sequences of other "
216 "keys of any type. If this interface is used to create a keyring, then a "
217 "NULL I<payload> should be specified, and I<plen> should be zero."
221 #: build/C/man2/add_key.2:89 build/C/man2/keyctl.2:91
222 #: build/C/man2/request_key.2:94
228 #: build/C/man2/add_key.2:95
230 "On success B<add_key>() returns the serial number of the key it created or "
231 "updated. On error, the value -1 will be returned and errno will have been "
232 "set to an appropriate error."
236 #: build/C/man2/add_key.2:95 build/C/man2/keyctl.2:97
237 #: build/C/man2/request_key.2:100
243 #: build/C/man2/add_key.2:96 build/C/man2/keyctl.2:114
244 #: build/C/man2/request_key.2:123
250 #: build/C/man2/add_key.2:99
251 msgid "The keyring doesn't exist."
255 #: build/C/man2/add_key.2:99 build/C/man2/keyctl.2:105
256 #: build/C/man2/request_key.2:111
258 msgid "B<EKEYEXPIRED>"
259 msgstr "B<EKEYEXPIRED>"
262 #: build/C/man2/add_key.2:102
263 msgid "The keyring has expired."
267 #: build/C/man2/add_key.2:102 build/C/man2/keyctl.2:111
268 #: build/C/man2/request_key.2:117
270 msgid "B<EKEYREVOKED>"
271 msgstr "B<EKEYREVOKED>"
274 #: build/C/man2/add_key.2:105
275 msgid "The keyring has been revoked."
279 #: build/C/man2/add_key.2:105
285 #: build/C/man2/add_key.2:108
286 msgid "The payload data was invalid."
290 #: build/C/man2/add_key.2:108 build/C/man2/request_key.2:120
296 #: build/C/man2/add_key.2:111 build/C/man2/request_key.2:123
297 msgid "Insufficient memory to create a key."
301 #: build/C/man2/add_key.2:111 build/C/man2/keyctl.2:101
302 #: build/C/man2/request_key.2:107
308 #: build/C/man2/add_key.2:115 build/C/man2/request_key.2:111
310 "The key quota for this user would be exceeded by creating this key or "
311 "linking it to the keyring."
315 #: build/C/man2/add_key.2:115 build/C/man2/keyctl.2:98
316 #: build/C/man2/request_key.2:101
322 #: build/C/man2/add_key.2:118 build/C/man2/request_key.2:104
323 msgid "The keyring wasn't available for modification by the user."
327 #: build/C/man2/add_key.2:118 build/C/man2/keyctl.2:117
328 #: build/C/man2/request_key.2:126
334 #: build/C/man2/add_key.2:126 build/C/man2/keyctl.2:125
335 #: build/C/man2/request_key.2:134
337 "Although this is a Linux system call, it is not present in I<libc> but can "
338 "be found rather in I<libkeyutils>. When linking, B<-lkeyutils> should be "
339 "specified to the linker."
343 #: build/C/man2/add_key.2:126 build/C/man2/keyctl.2:125
344 #: build/C/man2/request_key.2:134
350 #: build/C/man2/add_key.2:130
351 msgid "B<keyctl>(1), B<keyctl>(2), B<request_key>(2)"
352 msgstr "B<keyctl>(1), B<keyctl>(2), B<request_key>(2)"
355 #: build/C/man2/add_key.2:130 build/C/man2/keyctl.2:151
356 #: build/C/man2/request_key.2:139
362 #: build/C/man2/add_key.2:137 build/C/man2/keyctl.2:158
363 #: build/C/man2/request_key.2:146
366 #| "This page is part of release 3.52 of the Linux I<man-pages> project. A "
367 #| "description of the project, and information about reporting bugs, can be "
368 #| "found at \\%http://www.kernel.org/doc/man-pages/."
370 "This page is part of release 3.53 of the Linux I<man-pages> project. A "
371 "description of the project, and information about reporting bugs, can be "
372 "found at \\%http://www.kernel.org/doc/man-pages/."
374 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.52 の一部\n"
375 "である。プロジェクトの説明とバグ報告に関する情報は\n"
376 "http://www.kernel.org/doc/man-pages/ に書かれている。"
379 #: build/C/man2/keyctl.2:21
385 #: build/C/man2/keyctl.2:24
386 msgid "keyctl - manipulate the kernel's key management facility"
390 #: build/C/man2/keyctl.2:29
392 msgid "B<long keyctl(int >I<cmd>B<, ...);>\n"
393 msgstr "B<long keyctl(int >I<cmd>B<, ...);>\n"
396 #: build/C/man2/keyctl.2:33
397 msgid "B<keyctl>() has a number of functions available:"
401 #: build/C/man2/keyctl.2:33
403 msgid "B<KEYCTL_GET_KEYRING_ID>"
404 msgstr "B<KEYCTL_GET_KEYRING_ID>"
407 #: build/C/man2/keyctl.2:36
408 msgid "Ask for a keyring's ID."
412 #: build/C/man2/keyctl.2:36
414 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
415 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING>"
418 #: build/C/man2/keyctl.2:39
419 msgid "Join or start named session keyring."
423 #: build/C/man2/keyctl.2:39
425 msgid "B<KEYCTL_UPDATE>"
426 msgstr "B<KEYCTL_UPDATE>"
429 #: build/C/man2/keyctl.2:42
430 msgid "Update a key."
434 #: build/C/man2/keyctl.2:42
436 msgid "B<KEYCTL_REVOKE>"
437 msgstr "B<KEYCTL_REVOKE>"
440 #: build/C/man2/keyctl.2:45
441 msgid "Revoke a key."
445 #: build/C/man2/keyctl.2:45
447 msgid "B<KEYCTL_CHOWN>"
448 msgstr "B<KEYCTL_CHOWN>"
451 #: build/C/man2/keyctl.2:48
452 msgid "Set ownership of a key."
456 #: build/C/man2/keyctl.2:48
458 msgid "B<KEYCTL_SETPERM>"
459 msgstr "B<KEYCTL_SETPERM>"
462 #: build/C/man2/keyctl.2:51
463 msgid "Set perms on a key."
467 #: build/C/man2/keyctl.2:51
469 msgid "B<KEYCTL_DESCRIBE>"
470 msgstr "B<KEYCTL_DESCRIBE>"
473 #: build/C/man2/keyctl.2:54
474 msgid "Describe a key."
478 #: build/C/man2/keyctl.2:54
480 msgid "B<KEYCTL_CLEAR>"
481 msgstr "B<KEYCTL_CLEAR>"
484 #: build/C/man2/keyctl.2:57
485 msgid "Clear contents of a keyring."
489 #: build/C/man2/keyctl.2:57
491 msgid "B<KEYCTL_LINK>"
492 msgstr "B<KEYCTL_LINK>"
495 #: build/C/man2/keyctl.2:60
496 msgid "Link a key into a keyring."
500 #: build/C/man2/keyctl.2:60
502 msgid "B<KEYCTL_UNLINK>"
503 msgstr "B<KEYCTL_UNLINK>"
506 #: build/C/man2/keyctl.2:63
507 msgid "Unlink a key from a keyring."
511 #: build/C/man2/keyctl.2:63
513 msgid "B<KEYCTL_SEARCH>"
514 msgstr "B<KEYCTL_SEARCH>"
517 #: build/C/man2/keyctl.2:66
518 msgid "Search for a key in a keyring."
522 #: build/C/man2/keyctl.2:66
524 msgid "B<KEYCTL_READ>"
525 msgstr "B<KEYCTL_READ>"
528 #: build/C/man2/keyctl.2:69
529 msgid "Read a key or keyring's contents."
533 #: build/C/man2/keyctl.2:69
535 msgid "B<KEYCTL_INSTANTIATE>"
536 msgstr "B<KEYCTL_INSTANTIATE>"
539 #: build/C/man2/keyctl.2:72
540 msgid "Instantiate a partially constructed key."
544 #: build/C/man2/keyctl.2:72
546 msgid "B<KEYCTL_NEGATE>"
547 msgstr "B<KEYCTL_NEGATE>"
550 #: build/C/man2/keyctl.2:75
551 msgid "Negate a partially constructed key."
555 #: build/C/man2/keyctl.2:75
557 msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
558 msgstr "B<KEYCTL_SET_REQKEY_KEYRING>"
561 #: build/C/man2/keyctl.2:78
562 msgid "Set default request-key keyring."
566 #: build/C/man2/keyctl.2:78
568 msgid "B<KEYCTL_SET_TIMEOUT>"
569 msgstr "B<KEYCTL_SET_TIMEOUT>"
572 #: build/C/man2/keyctl.2:81
573 msgid "Set timeout on a key."
577 #: build/C/man2/keyctl.2:81
579 msgid "B<KEYCTL_ASSUME_AUTHORITY>"
580 msgstr "B<KEYCTL_ASSUME_AUTHORITY>"
583 #: build/C/man2/keyctl.2:84
584 msgid "Assume authority to instantiate key."
588 #: build/C/man2/keyctl.2:91
590 "These are wrapped by B<libkeyutils> into individual functions to permit "
591 "compiler the compiler to check types. See the B<See Also> section at the "
596 #: build/C/man2/keyctl.2:97
598 "On success B<keyctl>() returns the serial number of the key it found. On "
599 "error, the value -1 will be returned and errno will have been set to an "
604 #: build/C/man2/keyctl.2:101
605 msgid "A key operation wasn't permitted."
609 #: build/C/man2/keyctl.2:105
611 "The key quota for the caller's user would be exceeded by creating a key or "
612 "linking it to the keyring."
616 #: build/C/man2/keyctl.2:108
617 msgid "An expired key was found or specified."
621 #: build/C/man2/keyctl.2:108 build/C/man2/request_key.2:114
623 msgid "B<EKEYREJECTED>"
624 msgstr "B<EKEYREJECTED>"
627 #: build/C/man2/keyctl.2:111
628 msgid "A rejected key was found or specified."
632 #: build/C/man2/keyctl.2:114
633 msgid "A revoked key was found or specified."
637 #: build/C/man2/keyctl.2:117
638 msgid "No matching key was found or an invalid key was specified."
642 #: build/C/man2/keyctl.2:151
644 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl_set_timeout>(3), "
645 "B<keyctl_chown>(3), B<keyctl_clear>(3), B<keyctl_describe>(3), "
646 "B<keyctl_describe_alloc>(3), B<keyctl_get_keyring_ID>(3), "
647 "B<keyctl_instantiate>(3), B<keyctl_join_session_keyring>(3), B<keyctl_link>"
648 "(3), B<keyctl_negate>(3), B<keyctl_revoke>(3), B<keyctl_search>(3), "
649 "B<keyctl_setperm>(3), B<keyctl_set_reqkey_keyring>(3), B<keyctl_set_timeout>"
650 "(3), B<keyctl_read>(3), B<keyctl_read_alloc>(3), B<keyctl_unlink>(3), "
651 "B<keyctl_update>(3), B<request-key>(8)"
655 #: build/C/man2/request_key.2:11
661 #: build/C/man2/request_key.2:14
662 msgid "request_key - request a key from the kernel's key management facility"
666 #: build/C/man2/request_key.2:21
669 "B<key_serial_t request_key(const char *>I<type>B<, const char *>I<description>B<,>\n"
670 "B< const char *>I<callout_info>B<,>\n"
671 "B< key_serial_t >I<keyring>B<);>\n"
673 "B<key_serial_t request_key(const char *>I<type>B<, const char *>I<description>B<,>\n"
674 "B< const char *>I<callout_info>B<,>\n"
675 "B< key_serial_t >I<keyring>B<);>\n"
678 #: build/C/man2/request_key.2:31
680 "B<request_key>() asks the kernel to find a key of the given I<type> that "
681 "matches the specified I<description> and, if successful, to attach it to the "
682 "nominated I<keyring> and to return its serial number."
686 #: build/C/man2/request_key.2:36
688 "B<request_key>() first recursively searches all the keyrings attached to "
689 "the calling process in the order thread-specific keyring, process-specific "
690 "keyring and then session keyring for a matching key."
694 #: build/C/man2/request_key.2:44
696 "If B<request_key>() is called from a program invoked by B<request_key>() "
697 "on behalf of some other process to generate a key, then the keyrings of that "
698 "other process will be searched next, using that other process's UID, GID, "
699 "groups and security context to control access."
703 #: build/C/man2/request_key.2:52
705 "The keys in each keyring searched are checked for a match before any child "
706 "keyrings are recursed into. Only keys that are B<searchable> for the caller "
707 "may be found, and only B<searchable> keyrings may be searched."
711 #: build/C/man2/request_key.2:61
713 "If the key is not found then, if I<callout_info> is set, this function will "
714 "attempt to look further afield. In such a case, the I<callout_info> is "
715 "passed to a user-space service such as B</sbin/request-key> to generate the "
720 #: build/C/man2/request_key.2:69
722 "If that is unsuccessful also, then an error will be returned, and a "
723 "temporary negative key will be installed in the nominated I<keyring>. This "
724 "will expire after a few seconds, but will cause subsequent calls to "
725 "B<request_key>() to fail until it does."
729 #: build/C/man2/request_key.2:74
731 "The I<keyring> serial number may be that of a valid keyring to which the "
732 "caller has write permission, or it may be a special keyring ID:"
736 #: build/C/man2/request_key.2:94
738 "If a key is created, no matter whether it's a valid key or a negative key, "
739 "it will displace any other key of the same type and description from the "
740 "destination I<keyring>."
744 #: build/C/man2/request_key.2:100
746 "On success B<request_key>() returns the serial number of the key it found. "
747 "On error, the value -1 will be returned and errno will have been set to an "
752 #: build/C/man2/request_key.2:104
758 #: build/C/man2/request_key.2:107
759 msgid "The request was interrupted by a signal."
763 #: build/C/man2/request_key.2:114
764 msgid "An expired key was found, but no replacement could be obtained."
768 #: build/C/man2/request_key.2:117
769 msgid "The attempt to generate a new key was rejected."
773 #: build/C/man2/request_key.2:120
774 msgid "A revoked key was found, but no replacement could be obtained."
778 #: build/C/man2/request_key.2:126
779 msgid "No matching key was found."
783 #: build/C/man2/request_key.2:139
784 msgid "B<keyctl>(1), B<add_key>(2), B<keyctl>(2), B<request-key>(8)"
785 msgstr "B<keyctl>(1), B<add_key>(2), B<keyctl>(2), B<request-key>(8)"