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: 2012-04-25 05:36+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:10
26 #: build/C/man2/add_key.2:10 build/C/man2/keyctl.2:10 build/C/man2/request_key.2:10
32 #: build/C/man2/add_key.2:10 build/C/man2/keyctl.2:10 build/C/man2/request_key.2:10
38 #: build/C/man2/add_key.2:10 build/C/man2/keyctl.2:10 build/C/man2/request_key.2:10
40 msgid "Linux Key Management Calls"
44 #: build/C/man2/add_key.2:11 build/C/man2/keyctl.2:11 build/C/man2/request_key.2:11
50 #: build/C/man2/add_key.2:13
51 msgid "add_key - Add a key to the kernel's key management facility"
55 #: build/C/man2/add_key.2:13 build/C/man2/keyctl.2:13 build/C/man2/request_key.2:13
61 #: build/C/man2/add_key.2:16 build/C/man2/keyctl.2:16 build/C/man2/request_key.2:16
63 msgid "B<#include E<lt>keyutils.hE<gt>>\n"
67 #: build/C/man2/add_key.2:20
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:21 build/C/man2/keyctl.2:19 build/C/man2/request_key.2:21
83 #: build/C/man2/add_key.2:34
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:37
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:45
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:50
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:50 build/C/man2/request_key.2:71
118 msgid "B<KEY_SPEC_THREAD_KEYRING>"
122 #: build/C/man2/add_key.2:53 build/C/man2/request_key.2:74
123 msgid "This specifies the caller's thread-specific keyring."
127 #: build/C/man2/add_key.2:53 build/C/man2/request_key.2:74
129 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
133 #: build/C/man2/add_key.2:56 build/C/man2/request_key.2:77
134 msgid "This specifies the caller's process-specific keyring."
138 #: build/C/man2/add_key.2:56 build/C/man2/request_key.2:77
140 msgid "B<KEY_SPEC_SESSION_KEYRING>"
144 #: build/C/man2/add_key.2:59 build/C/man2/request_key.2:80
145 msgid "This specifies the caller's session-specific keyring."
149 #: build/C/man2/add_key.2:59 build/C/man2/request_key.2:80
151 msgid "B<KEY_SPEC_USER_KEYRING>"
155 #: build/C/man2/add_key.2:62 build/C/man2/request_key.2:83
156 msgid "This specifies the caller's UID-specific keyring."
160 #: build/C/man2/add_key.2:62 build/C/man2/request_key.2:83
162 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
166 #: build/C/man2/add_key.2:65 build/C/man2/request_key.2:86
167 msgid "This specifies the caller's UID-session keyring."
171 #: build/C/man2/add_key.2:65
177 #: build/C/man2/add_key.2:68
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:68
190 #: build/C/man2/add_key.2:81
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 B<NULL> for keys of this type."
200 #: build/C/man2/add_key.2:81
202 msgid "B<``keyring''>"
206 #: build/C/man2/add_key.2:90
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 "B<NULL> I<payload> should be specified, and I<plen> should be zero."
214 #: build/C/man2/add_key.2:90 build/C/man2/keyctl.2:80 build/C/man2/request_key.2:91
220 #: build/C/man2/add_key.2:97
222 "On success B<add_key>() returns the serial number of the key it created or "
223 "updated. On error, the value B<-1> will be returned and errno will have "
224 "been set to an appropriate error."
228 #: build/C/man2/add_key.2:97 build/C/man2/keyctl.2:87 build/C/man2/request_key.2:98
234 #: build/C/man2/add_key.2:98 build/C/man2/keyctl.2:104 build/C/man2/request_key.2:121
240 #: build/C/man2/add_key.2:101
241 msgid "The keyring doesn't exist."
245 #: build/C/man2/add_key.2:101 build/C/man2/keyctl.2:95 build/C/man2/request_key.2:109
247 msgid "B<EKEYEXPIRED>"
251 #: build/C/man2/add_key.2:104
252 msgid "The keyring has expired."
256 #: build/C/man2/add_key.2:104 build/C/man2/keyctl.2:101 build/C/man2/request_key.2:115
258 msgid "B<EKEYREVOKED>"
262 #: build/C/man2/add_key.2:107
263 msgid "The keyring has been revoked."
267 #: build/C/man2/add_key.2:107
273 #: build/C/man2/add_key.2:110
274 msgid "The payload data was invalid."
278 #: build/C/man2/add_key.2:110 build/C/man2/request_key.2:118
284 #: build/C/man2/add_key.2:113 build/C/man2/request_key.2:121
285 msgid "Insufficient memory to create a key."
289 #: build/C/man2/add_key.2:113 build/C/man2/keyctl.2:91 build/C/man2/request_key.2:105
295 #: build/C/man2/add_key.2:117 build/C/man2/request_key.2:109
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:117 build/C/man2/keyctl.2:88 build/C/man2/request_key.2:99
308 #: build/C/man2/add_key.2:120 build/C/man2/request_key.2:102
309 msgid "The keyring wasn't available for modification by the user."
313 #: build/C/man2/add_key.2:120 build/C/man2/keyctl.2:107 build/C/man2/request_key.2:124
319 #: build/C/man2/add_key.2:128 build/C/man2/keyctl.2:115 build/C/man2/request_key.2:132
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:128 build/C/man2/keyctl.2:115 build/C/man2/request_key.2:132
333 #: build/C/man2/add_key.2:131
334 msgid "B<keyctl>(1), B<keyctl>(2), B<request_key>(2)"
338 #: build/C/man2/keyctl.2:10
344 #: build/C/man2/keyctl.2:13
345 msgid "keyctl - Manipulate the kernel's key management facility"
349 #: build/C/man2/keyctl.2:18
351 msgid "B<long keyctl(int >I<cmd>B<, ...);>\n"
355 #: build/C/man2/keyctl.2:22
356 msgid "B<keyctl>() has a number of functions available:"
360 #: build/C/man2/keyctl.2:22
362 msgid "B<KEYCTL_GET_KEYRING_ID>"
366 #: build/C/man2/keyctl.2:25
367 msgid "Ask for a keyring's ID."
371 #: build/C/man2/keyctl.2:25
373 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
377 #: build/C/man2/keyctl.2:28
378 msgid "Join or start named session keyring."
382 #: build/C/man2/keyctl.2:28
384 msgid "B<KEYCTL_UPDATE>"
388 #: build/C/man2/keyctl.2:31
389 msgid "Update a key."
393 #: build/C/man2/keyctl.2:31
395 msgid "B<KEYCTL_REVOKE>"
399 #: build/C/man2/keyctl.2:34
400 msgid "Revoke a key."
404 #: build/C/man2/keyctl.2:34
406 msgid "B<KEYCTL_CHOWN>"
410 #: build/C/man2/keyctl.2:37
411 msgid "Set ownership of a key."
415 #: build/C/man2/keyctl.2:37
417 msgid "B<KEYCTL_SETPERM>"
421 #: build/C/man2/keyctl.2:40
422 msgid "Set perms on a key."
426 #: build/C/man2/keyctl.2:40
428 msgid "B<KEYCTL_DESCRIBE>"
432 #: build/C/man2/keyctl.2:43
433 msgid "Describe a key."
437 #: build/C/man2/keyctl.2:43
439 msgid "B<KEYCTL_CLEAR>"
443 #: build/C/man2/keyctl.2:46
444 msgid "Clear contents of a keyring."
448 #: build/C/man2/keyctl.2:46
450 msgid "B<KEYCTL_LINK>"
454 #: build/C/man2/keyctl.2:49
455 msgid "Link a key into a keyring."
459 #: build/C/man2/keyctl.2:49
461 msgid "B<KEYCTL_UNLINK>"
465 #: build/C/man2/keyctl.2:52
466 msgid "Unlink a key from a keyring."
470 #: build/C/man2/keyctl.2:52
472 msgid "B<KEYCTL_SEARCH>"
476 #: build/C/man2/keyctl.2:55
477 msgid "Search for a key in a keyring."
481 #: build/C/man2/keyctl.2:55
483 msgid "B<KEYCTL_READ>"
487 #: build/C/man2/keyctl.2:58
488 msgid "Read a key or keyring's contents."
492 #: build/C/man2/keyctl.2:58
494 msgid "B<KEYCTL_INSTANTIATE>"
498 #: build/C/man2/keyctl.2:61
499 msgid "Instantiate a partially constructed key."
503 #: build/C/man2/keyctl.2:61
505 msgid "B<KEYCTL_NEGATE>"
509 #: build/C/man2/keyctl.2:64
510 msgid "Negate a partially constructed key."
514 #: build/C/man2/keyctl.2:64
516 msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
520 #: build/C/man2/keyctl.2:67
521 msgid "Set default request-key keyring."
525 #: build/C/man2/keyctl.2:67
527 msgid "B<KEYCTL_SET_TIMEOUT>"
531 #: build/C/man2/keyctl.2:70
532 msgid "Set timeout on a key."
536 #: build/C/man2/keyctl.2:70
538 msgid "B<KEYCTL_ASSUME_AUTHORITY>"
542 #: build/C/man2/keyctl.2:73
543 msgid "Assume authority to instantiate key."
547 #: build/C/man2/keyctl.2:80
549 "These are wrapped by B<libkeyutils> into individual functions to permit "
550 "compiler the compiler to check types. See the B<See Also> section at the "
555 #: build/C/man2/keyctl.2:87
557 "On success B<keyctl>() returns the serial number of the key it found. On "
558 "error, the value B<-1> will be returned and errno will have been set to an "
563 #: build/C/man2/keyctl.2:91
564 msgid "A key operation wasn't permitted."
568 #: build/C/man2/keyctl.2:95
570 "The key quota for the caller's user would be exceeded by creating a key or "
571 "linking it to the keyring."
575 #: build/C/man2/keyctl.2:98
576 msgid "An expired key was found or specified."
580 #: build/C/man2/keyctl.2:98 build/C/man2/request_key.2:112
582 msgid "B<EKEYREJECTED>"
586 #: build/C/man2/keyctl.2:101
587 msgid "A rejected key was found or specified."
591 #: build/C/man2/keyctl.2:104
592 msgid "A revoked key was found or specified."
596 #: build/C/man2/keyctl.2:107
597 msgid "No matching key was found or an invalid key was specified."
601 #: build/C/man2/keyctl.2:117
602 msgid "B<keyctl>(1),"
606 #: build/C/man2/keyctl.2:119
607 msgid "B<add_key>(2),"
611 #: build/C/man2/keyctl.2:121
612 msgid "B<request_key>(2),"
616 #: build/C/man2/keyctl.2:123
617 msgid "B<keyctl_get_keyring_ID>(3),"
621 #: build/C/man2/keyctl.2:125
622 msgid "B<keyctl_join_session_keyring>(3),"
626 #: build/C/man2/keyctl.2:127
627 msgid "B<keyctl_update>(3),"
631 #: build/C/man2/keyctl.2:129
632 msgid "B<keyctl_revoke>(3),"
636 #: build/C/man2/keyctl.2:131
637 msgid "B<keyctl_chown>(3),"
641 #: build/C/man2/keyctl.2:133
642 msgid "B<keyctl_setperm>(3),"
646 #: build/C/man2/keyctl.2:135
647 msgid "B<keyctl_describe>(3),"
651 #: build/C/man2/keyctl.2:137
652 msgid "B<keyctl_clear>(3),"
656 #: build/C/man2/keyctl.2:139
657 msgid "B<keyctl_link>(3),"
661 #: build/C/man2/keyctl.2:141
662 msgid "B<keyctl_unlink>(3),"
666 #: build/C/man2/keyctl.2:143
667 msgid "B<keyctl_search>(3),"
671 #: build/C/man2/keyctl.2:145
672 msgid "B<keyctl_read>(3),"
676 #: build/C/man2/keyctl.2:147
677 msgid "B<keyctl_instantiate>(3),"
681 #: build/C/man2/keyctl.2:149
682 msgid "B<keyctl_negate>(3),"
686 #: build/C/man2/keyctl.2:151
687 msgid "B<keyctl_set_reqkey_keyring>(3),"
691 #: build/C/man2/keyctl.2:153
692 msgid "B<keyctl_set_timeout>(3),"
696 #: build/C/man2/keyctl.2:155
697 msgid "B<keyctl_assume_authority>(3),"
701 #: build/C/man2/keyctl.2:157
702 msgid "B<keyctl_describe_alloc>(3),"
706 #: build/C/man2/keyctl.2:159
707 msgid "B<keyctl_read_alloc>(3),"
711 #: build/C/man2/keyctl.2:160
712 msgid "B<request-key>(8)"
716 #: build/C/man2/request_key.2:10
722 #: build/C/man2/request_key.2:13
723 msgid "request_key - Request a key from the kernel's key management facility"
727 #: build/C/man2/request_key.2:20
730 "B<key_serial_t request_key(const char *>I<type>B<, const char "
731 "*>I<description>B<,>\n"
732 "B< const char *>I<callout_info>B<,>\n"
733 "B< key_serial_t >I<keyring>B<);>\n"
737 #: build/C/man2/request_key.2:30
739 "B<request_key>() asks the kernel to find a key of the given I<type> that "
740 "matches the specified I<description> and, if successful, to attach it to the "
741 "nominated I<keyring> and to return its serial number."
745 #: build/C/man2/request_key.2:35
747 "B<request_key>() first recursively searches all the keyrings attached to "
748 "the calling process in the order thread-specific keyring, process-specific "
749 "keyring and then session keyring for a matching key."
753 #: build/C/man2/request_key.2:43
755 "If B<request_key>() is called from a program invoked by B<request_key>() "
756 "on behalf of some other process to generate a key, then the keyrings of that "
757 "other process will be searched next, using that other process's UID, GID, "
758 "groups and security context to control access."
762 #: build/C/man2/request_key.2:50
764 "The keys in each keyring searched are checked for a match before any child "
765 "keyrings are recursed into. Only keys that are B<searchable> for the caller "
766 "may be found, and only B<searchable> keyrings may be searched."
770 #: build/C/man2/request_key.2:58
772 "If the key is not found then, if I<callout_info> is set, this function will "
773 "attempt to look further afield. In such a case, the I<callout_info> is "
774 "passed to a userspace service such as B</sbin/request-key> to generate the "
779 #: build/C/man2/request_key.2:66
781 "If that is unsuccessful also, then an error will be returned, and a "
782 "temporary negative key will be installed in the nominated I<keyring>. This "
783 "will expire after a few seconds, but will cause subsequent calls to "
784 "B<request_key>() to fail until it does."
788 #: build/C/man2/request_key.2:71
790 "The I<keyring> serial number may be that of a valid keyring to which the "
791 "caller has write permission, or it may be a special keyring ID:"
795 #: build/C/man2/request_key.2:91
797 "If a key is created, no matter whether it's a valid key or a negative key, "
798 "it will displace any other key of the same type and description from the "
799 "destination I<keyring>."
803 #: build/C/man2/request_key.2:98
805 "On success B<request_key>() returns the serial number of the key it found. "
806 "On error, the value B<-1> will be returned and errno will have been set to "
807 "an appropriate error."
811 #: build/C/man2/request_key.2:102
817 #: build/C/man2/request_key.2:105
818 msgid "The request was interrupted by a signal."
822 #: build/C/man2/request_key.2:112
823 msgid "An expired key was found, but no replacement could be obtained."
827 #: build/C/man2/request_key.2:115
828 msgid "The attempt to generate a new key was rejected."
832 #: build/C/man2/request_key.2:118
833 msgid "A revoked key was found, but no replacement could be obtained."
837 #: build/C/man2/request_key.2:124
838 msgid "No matching key was found."
842 #: build/C/man2/request_key.2:136
843 msgid "B<keyctl>(1), B<add_key>(2), B<keyctl>(2), B<request-key>(8)"