Debian Codegraph @

po/ru/man2/keyctl.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alex Nik <[email protected]>, 2013.
5 # Azamat Hackimov <[email protected]>, 2017.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "keyctl"
29 msgstr "keyctl"
30
31 #. type: TH
32 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
33 #: opensuse-tumbleweed
34 #, no-wrap
35 msgid "2026-02-08"
36 msgstr "8 февраля 2026 г."
37
38 #. type: TH
39 #: archlinux debian-unstable
40 #, fuzzy, no-wrap
41 #| msgid "Linux man-pages 6.17"
42 msgid "Linux man-pages 6.18"
43 msgstr "Справочные страницы Linux 6.17"
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr "НАИМЕНОВАНИЕ"
51
52 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid "keyctl - manipulate the kernel's key management facility"
56 msgstr "keyctl - работа с системой управления ключами ядра"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "БИБЛИОТЕКА"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr "СИНТАКСИС"
77
78 #. type: Plain text
79 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
80 #: opensuse-leap-16-1 opensuse-tumbleweed
81 #, fuzzy, no-wrap
82 #| msgid ""
83 #| "B<#include E<lt>linux/keyctl.hE<gt>> /* Definition of B<KEY*> constants */\n"
84 #| "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
85 #| "B<#include E<lt>unistd.hE<gt>>\n"
86 msgid ""
87 "B<#include E<lt>linux/keyctl.hE<gt>> /* Definition of B<KEY*> constants */\n"
88 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
89 "B<#include E<lt>unistd.hE<gt>>\n"
90 msgstr ""
91 "B<#include E<lt>linux/keyctl.hE<gt>> /* определения констант B<KEY*> */\n"
92 "B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n"
93 "B<#include E<lt>unistd.hE<gt>>\n"
94
95 #. type: Plain text
96 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
97 #: opensuse-leap-16-1 opensuse-tumbleweed
98 #, fuzzy, no-wrap
99 #| msgid "B<int ioctl(int >I<fd>B<, int >I<op>B<, ...);>\n"
100 msgid "B<long syscall(SYS_keyctl, int >I<op>B<, ...);>\n"
101 msgstr "B<int ioctl(int >I<fd>B<, int >I<op>B<, ...);>\n"
102
103 #. type: SH
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "DESCRIPTION"
108 msgstr "ОПИСАНИЕ"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid "B<keyctl>() allows user-space programs to perform key manipulation."
114 msgstr ""
115 "B<keyctl>() позволяет программам пользовательского пространства выполнять "
116 "операции с ключами."
117
118 #. type: Plain text
119 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
120 #: opensuse-leap-16-1 opensuse-tumbleweed
121 #, fuzzy
122 #| msgid ""
123 #| "The operation performed by B<keyctl>() is determined by the value of the "
124 #| "I<operation> argument. Each of these operations is wrapped by the "
125 #| "I<libkeyutils> library (provided by the I<keyutils> package) into "
126 #| "individual functions (noted below) to permit the compiler to check types."
127 msgid ""
128 "The operation performed by B<keyctl>() is determined by the value of the "
129 "I<op> argument. Each of these operations is wrapped by the I<libkeyutils> "
130 "library (provided by the I<keyutils> package) into individual functions (see "
131 "B<keyctl>(3)) to permit the compiler to check types."
132 msgstr ""
133 "Операция, выполняемая B<keyctl>(), определяется значением аргумента "
134 "I<operation>. Каждая операция обёрнута библиотекой I<libkeyutils> (из пакета "
135 "I<keyutils>) в отдельную функцию (описаны далее), чтобы компилятор мог "
136 "выполнять проверку типов."
137
138 #. type: Plain text
139 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
140 #: opensuse-leap-16-1 opensuse-tumbleweed
141 #, fuzzy
142 #| msgid "The permitted values for I<operation> are:"
143 msgid "The permitted values for I<op> are:"
144 msgstr "Возможные значения I<operation>:"
145
146 #. type: TP
147 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
148 #: opensuse-leap-16-1 opensuse-tumbleweed
149 #, fuzzy, no-wrap
150 #| msgid "B<KEYCTL_GET_KEYRING_ID>"
151 msgid "B<KEYCTL_GET_KEYRING_ID>(2const)"
152 msgstr "B<KEYCTL_GET_KEYRING_ID>"
153
154 #. type: TQ
155 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
156 #: opensuse-leap-16-1 opensuse-tumbleweed
157 #, fuzzy, no-wrap
158 #| msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
159 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>(2const)"
160 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING>"
161
162 #. type: TQ
163 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
164 #: opensuse-leap-16-1 opensuse-tumbleweed
165 #, fuzzy, no-wrap
166 #| msgid "B<KEYCTL_UPDATE> (since Linux 2.6.10)"
167 msgid "B<KEYCTL_UPDATE>(2const)"
168 msgstr "B<KEYCTL_UPDATE> (начиная с Linux 2.6.10)"
169
170 #. type: TQ
171 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
172 #: opensuse-leap-16-1 opensuse-tumbleweed
173 #, fuzzy, no-wrap
174 #| msgid "B<KEYCTL_REVOKE> (since Linux 2.6.10)"
175 msgid "B<KEYCTL_REVOKE>(2const)"
176 msgstr "B<KEYCTL_REVOKE> (начиная с Linux 2.6.10)"
177
178 #. type: TQ
179 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
180 #: opensuse-leap-16-1 opensuse-tumbleweed
181 #, fuzzy, no-wrap
182 #| msgid "B<KEYCTL_CHOWN> (since Linux 2.6.10)"
183 msgid "B<KEYCTL_CHOWN>(2const)"
184 msgstr "B<KEYCTL_CHOWN> (начиная с Linux 2.6.10)"
185
186 #. type: TQ
187 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
188 #: opensuse-leap-16-1 opensuse-tumbleweed
189 #, fuzzy, no-wrap
190 #| msgid "B<KEYCTL_SETPERM> (since Linux 2.6.10)"
191 msgid "B<KEYCTL_SETPERM>(2const)"
192 msgstr "B<KEYCTL_SETPERM> (начиная с Linux 2.6.10)"
193
194 #. type: TQ
195 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
196 #: opensuse-leap-16-1 opensuse-tumbleweed
197 #, fuzzy, no-wrap
198 #| msgid "B<KEYCTL_DESCRIBE>"
199 msgid "B<KEYCTL_DESCRIBE>(2const)"
200 msgstr "B<KEYCTL_DESCRIBE>"
201
202 #. type: TQ
203 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
204 #: opensuse-leap-16-1 opensuse-tumbleweed
205 #, fuzzy, no-wrap
206 #| msgid "B<KEYCTL_CLEAR>"
207 msgid "B<KEYCTL_CLEAR>(2const)"
208 msgstr "B<KEYCTL_CLEAR>"
209
210 #. type: TQ
211 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
212 #: opensuse-leap-16-1 opensuse-tumbleweed
213 #, fuzzy, no-wrap
214 #| msgid "B<KEYCTL_LINK> (since Linux 2.6.10)"
215 msgid "B<KEYCTL_LINK>(2const)"
216 msgstr "B<KEYCTL_LINK> (начиная с Linux 2.6.10)"
217
218 #. type: TQ
219 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
220 #: opensuse-leap-16-1 opensuse-tumbleweed
221 #, fuzzy, no-wrap
222 #| msgid "B<KEYCTL_UNLINK> (since Linux 2.6.10)"
223 msgid "B<KEYCTL_UNLINK>(2const)"
224 msgstr "B<KEYCTL_UNLINK> (начиная с Linux 2.6.10)"
225
226 #. type: TQ
227 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
228 #: opensuse-leap-16-1 opensuse-tumbleweed
229 #, fuzzy, no-wrap
230 #| msgid "B<KEYCTL_SEARCH>"
231 msgid "B<KEYCTL_SEARCH>(2const)"
232 msgstr "B<KEYCTL_SEARCH>"
233
234 #. type: TQ
235 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
236 #: opensuse-leap-16-1 opensuse-tumbleweed
237 #, fuzzy, no-wrap
238 #| msgid "B<KEYCTL_READ>"
239 msgid "B<KEYCTL_READ>(2const)"
240 msgstr "B<KEYCTL_READ>"
241
242 #. type: TQ
243 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
244 #: opensuse-leap-16-1 opensuse-tumbleweed
245 #, fuzzy, no-wrap
246 #| msgid "B<KEYCTL_INSTANTIATE> (since Linux 2.6.10)"
247 msgid "B<KEYCTL_INSTANTIATE>(2const)"
248 msgstr "B<KEYCTL_INSTANTIATE> (начиная с Linux 2.6.10)"
249
250 #. type: TQ
251 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
252 #: opensuse-leap-16-1 opensuse-tumbleweed
253 #, fuzzy, no-wrap
254 #| msgid "B<KEYCTL_INSTANTIATE_IOV> (since Linux 2.6.39)"
255 msgid "B<KEYCTL_INSTANTIATE_IOV>(2const)"
256 msgstr "B<KEYCTL_INSTANTIATE_IOV> (начиная с Linux 2.6.39)"
257
258 #. type: TQ
259 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
260 #: opensuse-leap-16-1 opensuse-tumbleweed
261 #, fuzzy, no-wrap
262 #| msgid "B<KEYCTL_NEGATE> (since Linux 2.6.10)"
263 msgid "B<KEYCTL_NEGATE>(2const)"
264 msgstr "B<KEYCTL_NEGATE> (начиная с Linux 2.6.10)"
265
266 #. type: TQ
267 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
268 #: opensuse-leap-16-1 opensuse-tumbleweed
269 #, fuzzy, no-wrap
270 #| msgid "B<KEYCTL_REJECT> (since Linux 2.6.39)"
271 msgid "B<KEYCTL_REJECT>(2const)"
272 msgstr "B<KEYCTL_REJECT> (начиная с Linux 2.6.39)"
273
274 #. type: TQ
275 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
276 #: opensuse-leap-16-1 opensuse-tumbleweed
277 #, fuzzy, no-wrap
278 #| msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
279 msgid "B<KEYCTL_SET_REQKEY_KEYRING>(2const)"
280 msgstr "B<KEYCTL_SET_REQKEY_KEYRING>"
281
282 #. type: TQ
283 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
284 #: opensuse-leap-16-1 opensuse-tumbleweed
285 #, fuzzy, no-wrap
286 #| msgid "B<KEYCTL_SET_TIMEOUT> (since Linux 2.6.16)"
287 msgid "B<KEYCTL_SET_TIMEOUT>(2const)"
288 msgstr "B<KEYCTL_SET_TIMEOUT> (начиная с Linux 2.6.16)"
289
290 #. type: TQ
291 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
292 #: opensuse-leap-16-1 opensuse-tumbleweed
293 #, fuzzy, no-wrap
294 #| msgid "B<KEYCTL_ASSUME_AUTHORITY>"
295 msgid "B<KEYCTL_ASSUME_AUTHORITY>(2const)"
296 msgstr "B<KEYCTL_ASSUME_AUTHORITY>"
297
298 #. type: TQ
299 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
300 #: opensuse-leap-16-1 opensuse-tumbleweed
301 #, fuzzy, no-wrap
302 #| msgid "B<KEYCTL_GET_SECURITY>"
303 msgid "B<KEYCTL_GET_SECURITY>(2const)"
304 msgstr "B<KEYCTL_GET_SECURITY>"
305
306 #. type: TQ
307 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
308 #: opensuse-leap-16-1 opensuse-tumbleweed
309 #, fuzzy, no-wrap
310 #| msgid "B<KEYCTL_SESSION_TO_PARENT> (since Linux 2.6.32)"
311 msgid "B<KEYCTL_SESSION_TO_PARENT>(2const)"
312 msgstr "B<KEYCTL_SESSION_TO_PARENT> (начиная с Linux 2.6.32)"
313
314 #. type: TQ
315 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
316 #: opensuse-leap-16-1 opensuse-tumbleweed
317 #, fuzzy, no-wrap
318 #| msgid "B<KEYCTL_INVALIDATE> (since Linux 3.5)"
319 msgid "B<KEYCTL_INVALIDATE>(2const)"
320 msgstr "B<KEYCTL_INVALIDATE> (начиная с Linux 3.5)"
321
322 #. type: TQ
323 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
324 #: opensuse-leap-16-1 opensuse-tumbleweed
325 #, fuzzy, no-wrap
326 #| msgid "B<KEYCTL_GET_PERSISTENT>"
327 msgid "B<KEYCTL_GET_PERSISTENT>(2const)"
328 msgstr "B<KEYCTL_GET_PERSISTENT>"
329
330 #. type: TQ
331 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
332 #: opensuse-leap-16-1 opensuse-tumbleweed
333 #, fuzzy, no-wrap
334 #| msgid "B<KEYCTL_DH_COMPUTE>"
335 msgid "B<KEYCTL_DH_COMPUTE>(2const)"
336 msgstr "B<KEYCTL_DH_COMPUTE>"
337
338 #. type: TQ
339 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
340 #: opensuse-leap-16-1 opensuse-tumbleweed
341 #, fuzzy, no-wrap
342 #| msgid "B<KEYCTL_RESTRICT_KEYRING> (since Linux 4.12)"
343 msgid "B<KEYCTL_RESTRICT_KEYRING>(2const)"
344 msgstr "B<KEYCTL_RESTRICT_KEYRING> (начиная с Linux 4.12)"
345
346 #. type: SH
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "RETURN VALUE"
351 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
352
353 #. type: Plain text
354 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
355 #: opensuse-leap-16-1 opensuse-tumbleweed
356 #, fuzzy
357 #| msgid "For a successful call, the return value depends on the operation:"
358 msgid "For a successful call, the return value depends on the operation."
359 msgstr ""
360 "При успешном выполнении возвращаемое значение зависит от используемой "
361 "команды:"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
367 msgstr ""
368 "В случае ошибки возвращается -1, а I<errno> устанавливается в значение "
369 "ошибки."
370
371 #. type: SH
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "ERRORS"
376 msgstr "ОШИБКИ"
377
378 #. type: TP
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "B<EACCES>"
383 msgstr "B<EACCES>"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid "The requested operation wasn't permitted."
389 msgstr "Запрошенная операция не разрешена."
390
391 #. type: TP
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<EDQUOT>"
396 msgstr "B<EDQUOT>"
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 key quota for the caller's user would be exceeded by creating a key or "
403 "linking it to the keyring."
404 msgstr ""
405 "Квота на ключи для данного пользователя была бы превышена, если бы этот ключ "
406 "создался или был бы прицеплен в связку ключей."
407
408 #. type: TP
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "B<EINVAL>"
413 msgstr "B<EINVAL>"
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, fuzzy
419 #| msgid ""
420 #| "The size of the string (including the terminating null byte) specified in "
421 #| "I<type> or I<description> exceeded the limit (32 bytes and 4096 bytes "
422 #| "respectively)."
423 msgid ""
424 "size of the string (including the terminating null byte) specified in "
425 "I<arg3> (the key type) or I<arg4> (the key description) exceeded the limit "
426 "(32 bytes and 4096 bytes respectively)."
427 msgstr ""
428 "Размер строки (включая конечный байт null), заданной в I<type> или "
429 "I<description>, превышает ограничение (32 байта и 4096 байт, соответственно)."
430
431 #. type: TP
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, no-wrap
435 msgid "B<EKEYEXPIRED>"
436 msgstr "B<EKEYEXPIRED>"
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 msgid "An expired key was found or specified."
442 msgstr "Найден или указан просроченный ключ."
443
444 #. type: TP
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<EKEYREJECTED>"
449 msgstr "B<EKEYREJECTED>"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid "A rejected key was found or specified."
455 msgstr "Найден или указан отклонённый (rejected) ключ."
456
457 #. type: TP
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "B<EKEYREVOKED>"
462 msgstr "B<EKEYREVOKED>"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "A revoked key was found or specified."
468 msgstr "Найден или указан отозванный ключ."
469
470 #. type: TP
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "B<ENOKEY>"
475 msgstr "B<ENOKEY>"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid "No matching key was found or an invalid key was specified."
481 msgstr "Искомый ключ не найден или указан неверный ключ."
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "B<ENOMEM>"
488 msgstr "B<ENOMEM>"
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "One of kernel memory allocation routines failed during the execution of the "
495 "syscall."
496 msgstr ""
497 "При выполнении вызова одна из процедур выделения памяти ядра завершилась "
498 "ошибкой."
499
500 #. type: TP
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "B<ENOTDIR>"
505 msgstr "B<ENOTDIR>"
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "A key of keyring type was expected but the ID of a key with a different type "
512 "was provided."
513 msgstr ""
514 "Ожидался ключ с типом связки ключей, но указан идентификатор ключа с другим "
515 "типом."
516
517 #. type: SH
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "VERSIONS"
522 msgstr "ВЕРСИИ"
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, fuzzy
528 #| msgid ""
529 #| "No wrapper for this system call is provided in glibc. A wrapper is "
530 #| "provided in the I<libkeyutils> library. When employing the wrapper in "
531 #| "that library, link with I<-lkeyutils>. However, rather than using this "
532 #| "system call directly, you probably want to use the various library "
533 #| "functions mentioned in the descriptions of individual operations above."
534 msgid ""
535 "A wrapper is provided in the I<libkeyutils> library. (The accompanying "
536 "package provides the I<E<lt>keyutils.hE<gt>> header file.) However, rather "
537 "than using this system call directly, you probably want to use the various "
538 "library functions mentioned in the descriptions of individual operations "
539 "above."
540 msgstr ""
541 "Для этого системного вызова нет обёрточной функции в glibc. Обёрточная "
542 "функция предоставляется библиотекой I<libkeyutils>. Для вызова нужно "
543 "выполнить компоновку с библиотекой, указав I<-lkeyutils>. Несмотря на то, "
544 "что можно вызывать системные вызова напрямую, для выполнения отдельных "
545 "операций, вероятно, лучше использовать различные библиотечные функции, "
546 "описанные выше."
547
548 #. type: SH
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "STANDARDS"
553 msgstr "СТАНДАРТЫ"
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid "Linux."
559 msgstr "Linux."
560
561 #. type: SH
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 #, no-wrap
565 msgid "HISTORY"
566 msgstr "ИСТОРИЯ"
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid "Linux 2.6.10."
572 msgstr "Linux 2.6.10."
573
574 #. type: SH
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, no-wrap
578 msgid "EXAMPLES"
579 msgstr "ПРИМЕРЫ"
580
581 #. type: Plain text
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 msgid ""
585 "The program below provide subset of the functionality of the B<request-"
586 "key>(8) program provided by the I<keyutils> package. For informational "
587 "purposes, the program records various information in a log file."
588 msgstr ""
589 "Программа, показанная далее, предоставляет сокращённый набор возможностей "
590 "программы B<request-key>(8) из пакета I<keyutils>. Для информирования "
591 "программа записывает различные данные в файл журнала."
592
593 #. type: Plain text
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 msgid ""
597 "As described in B<request_key>(2), the B<request-key>(8) program is invoked "
598 "with command-line arguments that describe a key that is to be instantiated. "
599 "The example program fetches and logs these arguments. The program assumes "
600 "authority to instantiate the requested key, and then instantiates that key."
601 msgstr ""
602 "Согласно B<request_key>(2), программа B<request-key>(8) вызывается с "
603 "аргументами командной строки, которые описывают инициализируемый ключ. "
604 "Программа из примера запрашивает и протоколирует эти аргументы. Программа "
605 "авторизует на инициализацию запрашиваемого ключа и затем инициализирует этот "
606 "ключ."
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid ""
612 "The following shell session demonstrates the use of this program. In the "
613 "session, we compile the program and then use it to temporarily replace the "
614 "standard B<request-key>(8) program. (Note that temporarily disabling the "
615 "standard B<request-key>(8) program may not be safe on some systems.) While "
616 "our example program is installed, we use the example program shown in "
617 "B<request_key>(2) to request a key."
618 msgstr ""
619 "Следующий сеанс оболочки показывает использование этой программы. В сеансе "
620 "мы компилируем программу, а затем используем её как временную замены "
621 "стандартной программы B<request-key>(8) (заметим, что временное отключение "
622 "стандартной программы B<request-key>(8) может быть небезопасно на некоторых "
623 "системах). После того, как наша программа установлена, мы показываем её "
624 "работу с B<request_key>(2) для запроса ключа."
625
626 #. type: Plain text
627 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
628 #: opensuse-tumbleweed
629 #, fuzzy, no-wrap
630 #| msgid ""
631 #| "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
632 #| "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
633 #| "$ B<sudo cp key_instantiate /sbin/request-key>\n"
634 #| "$ B<./t_request_key user mykey somepayloaddata>\n"
635 #| "Key ID is 20d035bf\n"
636 #| "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
637 msgid ""
638 "$B< cc -o key_instantiate key_instantiate.c -lkeyutils>;\n"
639 "$B< sudo mv /sbin/request-key /sbin/request-key.backup>;\n"
640 "$B< sudo cp key_instantiate /sbin/request-key>;\n"
641 "$B< ./t_request_key user mykey somepayloaddata>;\n"
642 "Key ID is 20d035bf\n"
643 "$B< sudo mv /sbin/request-key.backup /sbin/request-key>;\n"
644 msgstr ""
645 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
646 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
647 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
648 "$ B<./t_request_key user mykey somepayloaddata>\n"
649 "Идентификатор ключа равен 20d035bf\n"
650 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid ""
656 "Looking at the log file created by this program, we can see the command-line "
657 "arguments supplied to our example program:"
658 msgstr ""
659 "Заглянув в файл журнала, созданный программой, мы увидим аргументы командной "
660 "строки, переданные нашей программе:"
661
662 #. type: Plain text
663 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
664 #: opensuse-tumbleweed
665 #, fuzzy, no-wrap
666 #| msgid ""
667 #| "Command line arguments:\n"
668 #| " argv[0]: /sbin/request-key\n"
669 #| " operation: create\n"
670 #| " key_to_instantiate: 20d035bf\n"
671 #| " UID: 1000\n"
672 #| " GID: 1000\n"
673 #| " thread_keyring: 0\n"
674 #| " process_keyring: 0\n"
675 #| " session_keyring: 256e6a6\n"
676 msgid ""
677 "$B< cat /tmp/key_instantiate.log>;\n"
678 "Time: Mon Nov 7 13:06:47 2016\n"
679 "\\&\n"
680 "Command line arguments:\n"
681 " argv[0]: /sbin/request-key\n"
682 " operation: create\n"
683 " key_to_instantiate: 20d035bf\n"
684 " UID: 1000\n"
685 " GID: 1000\n"
686 " thread_keyring: 0\n"
687 " process_keyring: 0\n"
688 " session_keyring: 256e6a6\n"
689 "\\&\n"
690 "Key description: user;1000;1000;3f010000;mykey\n"
691 "Auth key payload: somepayloaddata\n"
692 "Destination keyring: 256e6a6\n"
693 "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
694 msgstr ""
695 "Аргументы командной строки:\n"
696 " argv[0]: /sbin/request-key\n"
697 " operation: create\n"
698 " key_to_instantiate: 20d035bf\n"
699 " UID: 1000\n"
700 " GID: 1000\n"
701 " thread_keyring: 0\n"
702 " process_keyring: 0\n"
703 " session_keyring: 256e6a6\n"
704
705 #. type: Plain text
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 msgid ""
709 "The last few lines of the above output show that the example program was "
710 "able to fetch:"
711 msgstr ""
712 "Последние несколько строк вывода показывают, что программа смогла получить:"
713
714 #. type: IP
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid "\\[bu]"
719 msgstr "\\[bu]"
720
721 #. type: Plain text
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 msgid ""
725 "the description of the key to be instantiated, which included the name of "
726 "the key (I<mykey>);"
727 msgstr ""
728 "описание инициализируемого ключа, которое содержит имя ключа (I<mykey>);"
729
730 #. type: Plain text
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 msgid ""
734 "the payload of the authorization key, which consisted of the data "
735 "(I<somepayloaddata>) passed to B<request_key>(2);"
736 msgstr ""
737 "полезные данные ключа авторизации, которые содержат данные "
738 "(I<somepayloaddata>), переданные в B<request_key>(2);"
739
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid ""
744 "the destination keyring that was specified in the call to B<request_key>(2); "
745 "and"
746 msgstr ""
747 "связку ключей назначения, которая была указана в вызове B<request_key>(2); и "
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "the description of the authorization key, where we can see that the name of "
754 "the authorization key matches the ID of the key that is to be instantiated "
755 "(I<20d035bf>)."
756 msgstr ""
757 "описание ключа авторизации, где мы можем увидеть, что имя ключа авторизации "
758 "совпадает с идентификатором ключа, который будет инициализирован "
759 "(I<20d035bf>)."
760
761 #. type: Plain text
762 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
763 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
764 msgid ""
765 "The example program in B<request_key>(2) specified the destination keyring "
766 "as B<KEY_SPEC_SESSION_KEYRING>. By examining the contents of I</proc/keys>, "
767 "we can see that this was translated to the ID of the destination keyring "
768 "(I<0256e6a6>) shown in the log output above; we can also see the newly "
769 "created key with the name I<mykey> and ID I<20d035bf>."
770 msgstr ""
771 "Пример программы в B<request_key>(2) задаёт связку ключей назначения как "
772 "B<KEY_SPEC_SESSION_KEYRING>. Просмотрев содержимое I</proc/keys>, мы можем "
773 "увидеть, что он транслировался в идентификатор связки ключей назначения "
774 "(I<0256e6a6>), показанный в журнале выше; мы также может увидеть только что "
775 "созданный ключ с именем I<mykey> и идентификатором I<20d035bf>."
776
777 #. type: Plain text
778 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
779 #: opensuse-tumbleweed
780 #, fuzzy, no-wrap
781 #| msgid ""
782 #| "$ B<cat /proc/keys | egrep \\(aqmykey|256e6a6\\(aq>\n"
783 #| "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
784 #| "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
785 msgid ""
786 "$B< cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>;\n"
787 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
788 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
789 msgstr ""
790 "$ B<cat /proc/keys | egrep \\(aqmykey|256e6a6\\(aq>\n"
791 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
792 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
793
794 #. type: SS
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 #, no-wrap
798 msgid "Program source"
799 msgstr "Исходный код программы"
800
801 #. type: Plain text
802 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
803 #: opensuse-tumbleweed
804 #, no-wrap
805 msgid ""
806 "/* key_instantiate.c */\n"
807 "\\&\n"
808 "#include E<lt>errno.hE<gt>\n"
809 "#include E<lt>keyutils.hE<gt>\n"
810 "#include E<lt>stdint.hE<gt>\n"
811 "#include E<lt>stdio.hE<gt>\n"
812 "#include E<lt>stdlib.hE<gt>\n"
813 "#include E<lt>string.hE<gt>\n"
814 "#include E<lt>sys/types.hE<gt>\n"
815 "#include E<lt>time.hE<gt>\n"
816 "\\&\n"
817 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
818 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
819 "#endif\n"
820 "\\&\n"
821 "int\n"
822 "main(int argc, char *argv[])\n"
823 "{\n"
824 " int akp_size; /* Size of auth_key_payload */\n"
825 " int auth_key;\n"
826 " char dbuf[256];\n"
827 " char auth_key_payload[256];\n"
828 " char *operation;\n"
829 " FILE *fp;\n"
830 " gid_t gid;\n"
831 " uid_t uid;\n"
832 " time_t t;\n"
833 " key_serial_t key_to_instantiate, dest_keyring;\n"
834 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
835 "\\&\n"
836 " if (argc != 8) {\n"
837 " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
838 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
839 " exit(EXIT_FAILURE);\n"
840 " }\n"
841 "\\&\n"
842 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
843 " if (fp == NULL)\n"
844 " exit(EXIT_FAILURE);\n"
845 "\\&\n"
846 " setbuf(fp, NULL);\n"
847 "\\&\n"
848 " t = time(NULL);\n"
849 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
850 "\\&\n"
851 " /*\n"
852 " * The kernel passes a fixed set of arguments to the program\n"
853 " * that it execs; fetch them.\n"
854 " */\n"
855 " operation = argv[1];\n"
856 " key_to_instantiate = atoi(argv[2]);\n"
857 " uid = atoi(argv[3]);\n"
858 " gid = atoi(argv[4]);\n"
859 " thread_keyring = atoi(argv[5]);\n"
860 " process_keyring = atoi(argv[6]);\n"
861 " session_keyring = atoi(argv[7]);\n"
862 "\\&\n"
863 " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
864 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
865 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
866 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
867 " (uintmax_t) key_to_instantiate);\n"
868 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
869 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
870 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
871 " (uintmax_t) thread_keyring);\n"
872 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
873 " (uintmax_t) process_keyring);\n"
874 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
875 " (uintmax_t) session_keyring);\n"
876 " fprintf(fp, \"\\[rs]n\");\n"
877 "\\&\n"
878 " /*\n"
879 " * Assume the authority to instantiate the key named in argv[2].\n"
880 " */\n"
881 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
882 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
883 " strerror(errno));\n"
884 " exit(EXIT_FAILURE);\n"
885 " }\n"
886 "\\&\n"
887 " /*\n"
888 " * Fetch the description of the key that is to be instantiated.\n"
889 " */\n"
890 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
891 " dbuf, sizeof(dbuf)) == -1) {\n"
892 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
893 " exit(EXIT_FAILURE);\n"
894 " }\n"
895 "\\&\n"
896 " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
897 "\\&\n"
898 " /*\n"
899 " * Fetch the payload of the authorization key, which is\n"
900 " * actually the callout data given to request_key().\n"
901 " */\n"
902 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
903 " auth_key_payload, sizeof(auth_key_payload));\n"
904 " if (akp_size == -1) {\n"
905 " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
906 " exit(EXIT_FAILURE);\n"
907 " }\n"
908 "\\&\n"
909 " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
910 " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
911 "\\&\n"
912 " /*\n"
913 " * For interest, get the ID of the authorization key and\n"
914 " * display it.\n"
915 " */\n"
916 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
917 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
918 " if (auth_key == -1) {\n"
919 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
920 " strerror(errno));\n"
921 " exit(EXIT_FAILURE);\n"
922 " }\n"
923 "\\&\n"
924 " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
925 "\\&\n"
926 " /*\n"
927 " * Fetch key ID for the request_key(2) destination keyring.\n"
928 " */\n"
929 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
930 " KEY_SPEC_REQUESTOR_KEYRING);\n"
931 " if (dest_keyring == -1) {\n"
932 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
933 " strerror(errno));\n"
934 " exit(EXIT_FAILURE);\n"
935 " }\n"
936 "\\&\n"
937 " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
938 "\\&\n"
939 " /*\n"
940 " * Fetch the description of the authorization key. This\n"
941 " * allows us to see the key type, UID, GID, permissions,\n"
942 " * and description (name) of the key. Among other things,\n"
943 " * we will see that the name of the key is a hexadecimal\n"
944 " * string representing the ID of the key to be instantiated.\n"
945 " */\n"
946 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
947 " dbuf, sizeof(dbuf)) == -1)\n"
948 " {\n"
949 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
950 " exit(EXIT_FAILURE);\n"
951 " }\n"
952 "\\&\n"
953 " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
954 "\\&\n"
955 " /*\n"
956 " * Instantiate the key using the callout data that was supplied\n"
957 " * in the payload of the authorization key.\n"
958 " */\n"
959 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
960 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
961 " {\n"
962 " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
963 " strerror(errno));\n"
964 " exit(EXIT_FAILURE);\n"
965 " }\n"
966 "\\&\n"
967 " exit(EXIT_SUCCESS);\n"
968 "}\n"
969 msgstr ""
970
971 #. SRC END
972 #. type: SH
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 #, no-wrap
976 msgid "SEE ALSO"
977 msgstr "СМОТРИТЕ ТАКЖЕ"
978
979 #. .BR find_key_by_type_and_name (3)
980 #. There is a man page, but this function seems not to exist
981 #. type: Plain text
982 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
983 #: opensuse-leap-16-1 opensuse-tumbleweed
984 msgid ""
985 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
986 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
987 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
988 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
989 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
990 "session-keyring>(7), B<request-key>(8)"
991 msgstr ""
992
993 #. type: Plain text
994 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
995 #: opensuse-tumbleweed
996 #, fuzzy
997 #| msgid "The kernel source file I<Documentation/networking/ip-sysctl.txt>."
998 msgid "The kernel source files under I<Documentation/security/keys/>."
999 msgstr "Исходный файл ядра I<Documentation/networking/ip-sysctl.txt>."
1000
1001 #. type: TH
1002 #: debian-trixie
1003 #, no-wrap
1004 msgid "2024-06-15"
1005 msgstr "15 июня 2024 г."
1006
1007 #. type: TH
1008 #: debian-trixie
1009 #, no-wrap
1010 msgid "Linux man-pages 6.9.1"
1011 msgstr "Страницы руководства Linux 6.9.1"
1012
1013 #. type: Plain text
1014 #: debian-trixie
1015 msgid "Standard C library (I<libc>, I<-lc>)"
1016 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1017
1018 #. type: Plain text
1019 #: debian-trixie
1020 msgid ""
1021 "Alternatively, Linux Key Management Utilities (I<libkeyutils>, I<-"
1022 "lkeyutils>); see VERSIONS."
1023 msgstr ""
1024
1025 #. type: Plain text
1026 #: debian-trixie
1027 #, no-wrap
1028 msgid ""
1029 "B<#include E<lt>linux/keyctl.hE<gt>> /* Definition of B<KEY*> constants */\n"
1030 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
1031 "B<#include E<lt>unistd.hE<gt>>\n"
1032 msgstr ""
1033 "B<#include E<lt>linux/keyctl.hE<gt>> /* определения констант B<KEY*> */\n"
1034 "B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n"
1035 "B<#include E<lt>unistd.hE<gt>>\n"
1036
1037 #. type: Plain text
1038 #: debian-trixie
1039 #, no-wrap
1040 msgid ""
1041 "B<long syscall(SYS_keyctl, int >I<operation>B<, unsigned long >I<arg2>B<,>\n"
1042 "B< unsigned long >I<arg3>B<, unsigned long >I<arg4>B<,>\n"
1043 "B< unsigned long >I<arg5>B<);>\n"
1044 msgstr ""
1045 "B<long syscall(SYS_keyctl, int >I<operation>B<, unsigned long >I<arg2>B<,>\n"
1046 "B< unsigned long >I<arg3>B<, unsigned long >I<arg4>B<,>\n"
1047 "B< unsigned long >I<arg5>B<);>\n"
1048
1049 #. type: Plain text
1050 #: debian-trixie
1051 msgid ""
1052 "I<Note>: glibc provides no wrapper for B<keyctl>(), necessitating the use of "
1053 "B<syscall>(2)."
1054 msgstr ""
1055
1056 #. type: Plain text
1057 #: debian-trixie
1058 msgid ""
1059 "The operation performed by B<keyctl>() is determined by the value of the "
1060 "I<operation> argument. Each of these operations is wrapped by the "
1061 "I<libkeyutils> library (provided by the I<keyutils> package) into individual "
1062 "functions (noted below) to permit the compiler to check types."
1063 msgstr ""
1064 "Операция, выполняемая B<keyctl>(), определяется значением аргумента "
1065 "I<operation>. Каждая операция обёрнута библиотекой I<libkeyutils> (из пакета "
1066 "I<keyutils>) в отдельную функцию (описаны далее), чтобы компилятор мог "
1067 "выполнять проверку типов."
1068
1069 #. type: Plain text
1070 #: debian-trixie
1071 msgid "The permitted values for I<operation> are:"
1072 msgstr "Возможные значения I<operation>:"
1073
1074 #. type: TP
1075 #: debian-trixie
1076 #, no-wrap
1077 msgid "B<KEYCTL_GET_KEYRING_ID> (since Linux 2.6.10)"
1078 msgstr "B<KEYCTL_GET_KEYRING_ID> (начиная с Linux 2.6.10)"
1079
1080 #. type: Plain text
1081 #: debian-trixie
1082 msgid "Map a special key ID to a real key ID for this process."
1083 msgstr ""
1084 "Отобразить идентификатор специального ключа в идентификатор реального ключа "
1085 "для этого процесса."
1086
1087 #. type: Plain text
1088 #: debian-trixie
1089 msgid ""
1090 "This operation looks up the special key whose ID is provided in I<arg2> "
1091 "(cast to I<key_serial_t>). If the special key is found, the ID of the "
1092 "corresponding real key is returned as the function result. The following "
1093 "values may be specified in I<arg2>:"
1094 msgstr ""
1095 "Эта операция ищет специальный ключ, чей идентификатор указан в I<arg2> "
1096 "(приводится к I<key_serial_t>). Если специальный ключ найден, то функция "
1097 "возвращает идентификатор соответствующего реального ключа. В аргументе "
1098 "I<arg2> могут задаваться следующие значения:"
1099
1100 #. type: TP
1101 #: debian-trixie
1102 #, no-wrap
1103 msgid "B<KEY_SPEC_THREAD_KEYRING>"
1104 msgstr "B<KEY_SPEC_THREAD_KEYRING>"
1105
1106 #. type: Plain text
1107 #: debian-trixie
1108 msgid ""
1109 "This specifies the calling thread's thread-specific keyring. See B<thread-"
1110 "keyring>(7)."
1111 msgstr "Связка ключей вызывающей нити. Смотрите B<thread-keyring>(7)."
1112
1113 #. type: TP
1114 #: debian-trixie
1115 #, no-wrap
1116 msgid "B<KEY_SPEC_PROCESS_KEYRING>"
1117 msgstr "B<KEY_SPEC_PROCESS_KEYRING>"
1118
1119 #. type: Plain text
1120 #: debian-trixie
1121 msgid ""
1122 "This specifies the caller's process-specific keyring. See B<process-"
1123 "keyring>(7)."
1124 msgstr "Связка ключей вызывающего процесса. Смотрите B<process-keyring>(7)."
1125
1126 #. type: TP
1127 #: debian-trixie
1128 #, no-wrap
1129 msgid "B<KEY_SPEC_SESSION_KEYRING>"
1130 msgstr "B<KEY_SPEC_SESSION_KEYRING>"
1131
1132 #. type: Plain text
1133 #: debian-trixie
1134 msgid ""
1135 "This specifies the caller's session-specific keyring. See B<session-"
1136 "keyring>(7)."
1137 msgstr "Связка ключей сеанса вызывающего. Смотрите B<session-keyring>(7)."
1138
1139 #. type: TP
1140 #: debian-trixie
1141 #, no-wrap
1142 msgid "B<KEY_SPEC_USER_KEYRING>"
1143 msgstr "B<KEY_SPEC_USER_KEYRING>"
1144
1145 #. type: Plain text
1146 #: debian-trixie
1147 msgid ""
1148 "This specifies the caller's UID-specific keyring. See B<user-keyring>(7)."
1149 msgstr "Связка ключей по UID вызывающего. Смотрите B<user-keyring>(7)."
1150
1151 #. type: TP
1152 #: debian-trixie
1153 #, no-wrap
1154 msgid "B<KEY_SPEC_USER_SESSION_KEYRING>"
1155 msgstr "B<KEY_SPEC_USER_SESSION_KEYRING>"
1156
1157 #. type: Plain text
1158 #: debian-trixie
1159 msgid ""
1160 "This specifies the caller's UID-session keyring. See B<user-session-"
1161 "keyring>(7)."
1162 msgstr ""
1163 "Связка ключей по UID сеанса вызывающего. Смотрите B<user-session-keyring>(7)."
1164
1165 #. type: TP
1166 #: debian-trixie
1167 #, no-wrap
1168 msgid "B<KEY_SPEC_REQKEY_AUTH_KEY> (since Linux 2.6.16)"
1169 msgstr "B<KEY_SPEC_REQKEY_AUTH_KEY> (начиная с Linux 2.6.16)"
1170
1171 #. commit b5f545c880a2a47947ba2118b2509644ab7a2969
1172 #. type: Plain text
1173 #: debian-trixie
1174 msgid ""
1175 "This specifies the authorization key created by B<request_key>(2) and "
1176 "passed to the process it spawns to generate a key. This key is available "
1177 "only in a B<request-key>(8)-style program that was passed an authorization "
1178 "key by the kernel and ceases to be available once the requested key has been "
1179 "instantiated; see B<request_key>(2)."
1180 msgstr ""
1181 "Ключ авторизации, созданный B<request_key>(2) и переданный процессу, который "
1182 "был создан для генерации ключа. Этот ключ доступен только в программах, "
1183 "подобных B<request-key>(8), которым передаётся ключ авторизации из ядра, и "
1184 "ключ становится недоступен сразу после того, как запрошенный ключ был "
1185 "инициализирован; смотрите B<request_key>(2)."
1186
1187 #. type: TP
1188 #: debian-trixie
1189 #, no-wrap
1190 msgid "B<KEY_SPEC_REQUESTOR_KEYRING> (since Linux 2.6.29)"
1191 msgstr "B<KEY_SPEC_REQUESTOR_KEYRING> (начиная с Linux 2.6.29)"
1192
1193 #. commit 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
1194 #. type: Plain text
1195 #: debian-trixie
1196 msgid ""
1197 "This specifies the key ID for the B<request_key>(2) destination keyring. "
1198 "This keyring is available only in a B<request-key>(8)-style program that was "
1199 "passed an authorization key by the kernel and ceases to be available once "
1200 "the requested key has been instantiated; see B<request_key>(2)."
1201 msgstr ""
1202 "Идентификатор связки ключей назначения у B<request_key>(2). Эта связка "
1203 "ключей доступна только в программах, подобных B<request-key>(8), которым "
1204 "передаётся ключ авторизации из ядра, и ключ становится недоступен сразу "
1205 "после того, как запрошенный ключ был инициализирован; смотрите "
1206 "B<request_key>(2)."
1207
1208 #. The keyctl_get_keyring_ID.3 page says that a new key
1209 #. "will be created *if it is appropriate to do so**. What is the
1210 #. determiner for appropriate?
1211 #. David Howells: Some special keys such as KEY_SPEC_REQKEY_AUTH_KEY
1212 #. wouldn't get created but user/user-session/session keyring would
1213 #. be created.
1214 #. type: Plain text
1215 #: debian-trixie
1216 #, fuzzy
1217 #| msgid ""
1218 #| "The behavior if the key specified in I<arg2> does not exist depends on "
1219 #| "the value of I<arg3> (cast to I<int>). If I<arg3> contains a nonzero "
1220 #| "value, then\\(emif it is appropriate to do so (e.g., when looking up the "
1221 #| "user, user-session, or session key)\\(ema new key is created and its real "
1222 #| "key ID returned as the function result. Otherwise, the operation fails "
1223 #| "with the error B<ENOKEY>."
1224 msgid ""
1225 "The behavior if the key specified in I<arg2> does not exist depends on the "
1226 "value of I<arg3> (cast to I<int>). If I<arg3> contains a nonzero value, "
1227 "then\\[em]if it is appropriate to do so (e.g., when looking up the user, "
1228 "user-session, or session key)\\[em]a new key is created and its real key ID "
1229 "returned as the function result. Otherwise, the operation fails with the "
1230 "error B<ENOKEY>."
1231 msgstr ""
1232 "Если ключ, указанный в I<arg2>, не существует, то дальнейшая работа зависит "
1233 "от значения аргумента I<arg3> (приводится к I<int>). Если I<arg3> содержит "
1234 "ненулевое значение, то — если так надлежит делать (например, когда ищется "
1235 "пользовательский, сеанса пользователя или сеансовый) — создаётся новый ключ "
1236 "и функция возвращает его реальный идентификатор. В противном случае, "
1237 "операция завершается ошибкой B<ENOKEY>."
1238
1239 #. type: Plain text
1240 #: debian-trixie
1241 msgid ""
1242 "If a valid key ID is specified in I<arg2>, and the key exists, then this "
1243 "operation simply returns the key ID. If the key does not exist, the call "
1244 "fails with error B<ENOKEY>."
1245 msgstr ""
1246 "Если в I<arg2> задан действительный идентификатор ключа и ключ существует, "
1247 "то эта операция просто возвращает идентификатор ключа. Если ключ не "
1248 "существует, то вызов завершается ошибкой B<ENOKEY>."
1249
1250 #. type: Plain text
1251 #: debian-trixie
1252 msgid ""
1253 "The caller must have I<search> permission on a keyring in order for it to be "
1254 "found."
1255 msgstr ""
1256 "Чтобы найти ключ вызывающий должен иметь право I<поиска> в связке ключей."
1257
1258 #. type: Plain text
1259 #: debian-trixie
1260 msgid "The arguments I<arg4> and I<arg5> are ignored."
1261 msgstr "Аргументы I<arg4> и I<arg5> игнорируются."
1262
1263 #. type: Plain text
1264 #: debian-trixie
1265 msgid ""
1266 "This operation is exposed by I<libkeyutils> via the function "
1267 "B<keyctl_get_keyring_ID>(3)."
1268 msgstr ""
1269 "Эта операция доступна в I<libkeyutils> через функцию "
1270 "B<keyctl_get_keyring_ID>(3)."
1271
1272 #. type: TP
1273 #: debian-trixie
1274 #, no-wrap
1275 msgid "B<KEYCTL_JOIN_SESSION_KEYRING> (since Linux 2.6.10)"
1276 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING> (начиная с Linux 2.6.10)"
1277
1278 #. This may be useful in conjunction with some sort of
1279 #. session management framework that is employed by the application.
1280 #. type: Plain text
1281 #: debian-trixie
1282 msgid ""
1283 "Replace the session keyring this process subscribes to with a new session "
1284 "keyring."
1285 msgstr ""
1286 "Заменить связку ключей сеанса этого процесса новой связкой ключей сеанса."
1287
1288 #. type: Plain text
1289 #: debian-trixie
1290 msgid ""
1291 "If I<arg2> is NULL, an anonymous keyring with the description \"_ses\" is "
1292 "created and the process is subscribed to that keyring as its session "
1293 "keyring, displacing the previous session keyring."
1294 msgstr ""
1295 "Если I<arg2> равно NULL, то создаётся анонимная связка ключей с описанием "
1296 "«_ses» и процесс подписывается на эту связку ключей как на свою связку "
1297 "ключей сеанса, вытесняя предыдущую связку ключей сеанса."
1298
1299 #. type: Plain text
1300 #: debian-trixie
1301 msgid ""
1302 "Otherwise, I<arg2> (cast to I<char\\ *>) is treated as the description "
1303 "(name) of a keyring, and the behavior is as follows:"
1304 msgstr ""
1305 "В противном случае, I<arg2> (приводится к I<char\\ *>) считается описанием "
1306 "(именем) связки ключей и происходит следующее:"
1307
1308 #. type: Plain text
1309 #: debian-trixie
1310 msgid ""
1311 "If a keyring with a matching description exists, the process will attempt to "
1312 "subscribe to that keyring as its session keyring if possible; if that is not "
1313 "possible, an error is returned. In order to subscribe to the keyring, the "
1314 "caller must have I<search> permission on the keyring."
1315 msgstr ""
1316 "Если связка ключей с таким описанием существует, то процесс, если возможно, "
1317 "попытается подписаться на эту связку ключей как на сеансовую; если это "
1318 "невозможно, то возвращается ошибка. Чтобы подписаться на связку ключей, "
1319 "вызывающий должен иметь право I<поиска> в связке ключей."
1320
1321 #. type: Plain text
1322 #: debian-trixie
1323 msgid ""
1324 "If a keyring with a matching description does not exist, then a new keyring "
1325 "with the specified description is created, and the process is subscribed to "
1326 "that keyring as its session keyring."
1327 msgstr ""
1328 "Если связка ключей с таким описанием не существует, то создаётся новая "
1329 "связка ключей с заданным описанием, и процесс подписывается на эту связку "
1330 "ключей как на сеансовую."
1331
1332 #. type: Plain text
1333 #: debian-trixie
1334 msgid "The arguments I<arg3>, I<arg4>, and I<arg5> are ignored."
1335 msgstr "Аргументы I<arg3>, I<arg4> и I<arg5> игнорируются."
1336
1337 #. type: Plain text
1338 #: debian-trixie
1339 msgid ""
1340 "This operation is exposed by I<libkeyutils> via the function "
1341 "B<keyctl_join_session_keyring>(3)."
1342 msgstr ""
1343 "Эта операция доступна в I<libkeyutils> через функцию "
1344 "B<keyctl_join_session_keyring>(3)."
1345
1346 #. type: TP
1347 #: debian-trixie
1348 #, no-wrap
1349 msgid "B<KEYCTL_UPDATE> (since Linux 2.6.10)"
1350 msgstr "B<KEYCTL_UPDATE> (начиная с Linux 2.6.10)"
1351
1352 #. type: Plain text
1353 #: debian-trixie
1354 msgid "Update a key's data payload."
1355 msgstr "Изменить полезные данные ключа."
1356
1357 #. type: Plain text
1358 #: debian-trixie
1359 msgid ""
1360 "The I<arg2> argument (cast to I<key_serial_t>) specifies the ID of the key "
1361 "to be updated. The I<arg3> argument (cast to I<void\\ *>) points to the "
1362 "new payload and I<arg4> (cast to I<size_t>) contains the new payload size "
1363 "in bytes."
1364 msgstr ""
1365 "В аргументе I<arg2> (приводится к I<key_serial_t>) указывается идентификатор "
1366 "изменяемого ключа. Аргумент I<arg3> (приводится к I<void\\ *>) указывает на "
1367 "новые полезные данные, а в аргументе I<arg4> (приводится к I<size_t>) "
1368 "содержится размер новых полезных данных в байтах."
1369
1370 #. type: Plain text
1371 #: debian-trixie
1372 msgid ""
1373 "The caller must have I<write> permission on the key specified and the key "
1374 "type must support updating."
1375 msgstr ""
1376 "Чтобы изменить ключ вызывающий должен иметь право I<записи> в ключ, и запись "
1377 "должна поддерживаться типом ключа."
1378
1379 #. type: Plain text
1380 #: debian-trixie
1381 msgid ""
1382 "A negatively instantiated key (see the description of B<KEYCTL_REJECT>) can "
1383 "be positively instantiated with this operation."
1384 msgstr ""
1385 "С помощью этой операции отрицательно инициализированный ключ (смотрите "
1386 "описание B<KEYCTL_REJECT>) может быть положительно инициализирован."
1387
1388 #. type: Plain text
1389 #: debian-trixie
1390 msgid "The I<arg5> argument is ignored."
1391 msgstr "Аргумент I<arg5> игнорируется."
1392
1393 #. type: Plain text
1394 #: debian-trixie
1395 msgid ""
1396 "This operation is exposed by I<libkeyutils> via the function "
1397 "B<keyctl_update>(3)."
1398 msgstr ""
1399 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_update>(3)."
1400
1401 #. type: TP
1402 #: debian-trixie
1403 #, no-wrap
1404 msgid "B<KEYCTL_REVOKE> (since Linux 2.6.10)"
1405 msgstr "B<KEYCTL_REVOKE> (начиная с Linux 2.6.10)"
1406
1407 #. type: Plain text
1408 #: debian-trixie
1409 msgid ""
1410 "Revoke the key with the ID provided in I<arg2> (cast to I<key_serial_t>). "
1411 "The key is scheduled for garbage collection; it will no longer be findable, "
1412 "and will be unavailable for further operations. Further attempts to use the "
1413 "key will fail with the error B<EKEYREVOKED>."
1414 msgstr ""
1415 "Отозвать ключ с идентификатором из аргумента I<arg2> (приводится к "
1416 "I<key_serial_t>). Ключ планируется к удалению сборщиком мусора; его больше "
1417 "нельзя найти, и он недоступен для последующих операций. Дальнейшие попытки "
1418 "использования ключа будут приводить к ошибке B<EKEYREVOKED>."
1419
1420 #. Keys with the KEY_FLAG_KEEP bit set cause an EPERM
1421 #. error for KEYCTL_REVOKE. Does this need to be documented?
1422 #. David Howells: No significance for user space.
1423 #. type: Plain text
1424 #: debian-trixie
1425 msgid "The caller must have I<write> or I<setattr> permission on the key."
1426 msgstr ""
1427 "Вызывающий должен иметь право I<записи> и I<изменения атрибута> в ключе."
1428
1429 #. type: Plain text
1430 #: debian-trixie
1431 msgid ""
1432 "This operation is exposed by I<libkeyutils> via the function "
1433 "B<keyctl_revoke>(3)."
1434 msgstr ""
1435 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_revoke>(3)."
1436
1437 #. type: TP
1438 #: debian-trixie
1439 #, no-wrap
1440 msgid "B<KEYCTL_CHOWN> (since Linux 2.6.10)"
1441 msgstr "B<KEYCTL_CHOWN> (начиная с Linux 2.6.10)"
1442
1443 #. type: Plain text
1444 #: debian-trixie
1445 msgid "Change the ownership (user and group ID) of a key."
1446 msgstr "Изменить владельца (идентификатор пользователя и группы) ключа."
1447
1448 #. type: Plain text
1449 #: debian-trixie
1450 msgid ""
1451 "The I<arg2> argument (cast to I<key_serial_t>) contains the key ID. The "
1452 "I<arg3> argument (cast to I<uid_t>) contains the new user ID (or -1 in case "
1453 "the user ID shouldn't be changed). The I<arg4> argument (cast to I<gid_t>) "
1454 "contains the new group ID (or -1 in case the group ID shouldn't be changed)."
1455 msgstr ""
1456 "В аргументе I<arg2> (приводится к I<key_serial_t>) содержится идентификатор "
1457 "ключа. В аргументе I<arg3> (приводится к I<uid_t>) содержится идентификатор "
1458 "нового пользователя (или -1, если идентификатор пользователя не меняется). В "
1459 "аргументе I<arg4> (приводится к I<gid_t>) содержится идентификатор новой "
1460 "группы (или -1, если идентификатор группы не меняется)."
1461
1462 #. type: Plain text
1463 #: debian-trixie
1464 msgid "The key must grant the caller I<setattr> permission."
1465 msgstr "Ключ должен давать разрешение на I<изменения атрибута> вызывающему."
1466
1467 #. type: Plain text
1468 #: debian-trixie
1469 msgid ""
1470 "For the UID to be changed, or for the GID to be changed to a group the "
1471 "caller is not a member of, the caller must have the B<CAP_SYS_ADMIN> "
1472 "capability (see B<capabilities>(7))."
1473 msgstr ""
1474 "Для смены на новый UID или новый GID, если вызывающий не является её членом, "
1475 "у вызывающего должен быть мандат B<CAP_SYS_ADMIN> (смотрите "
1476 "B<capabilities>(7))."
1477
1478 #. type: Plain text
1479 #: debian-trixie
1480 msgid ""
1481 "If the UID is to be changed, the new user must have sufficient quota to "
1482 "accept the key. The quota deduction will be removed from the old user to "
1483 "the new user should the UID be changed."
1484 msgstr ""
1485 "Если изменяется UID, то у нового пользователя должно быть достаточно квоты "
1486 "для принятия ключа. Уменьшение квоты будет удалено у старого пользователя, "
1487 "который заменяется на идентификатор нового пользователя."
1488
1489 #. type: Plain text
1490 #: debian-trixie
1491 msgid ""
1492 "This operation is exposed by I<libkeyutils> via the function "
1493 "B<keyctl_chown>(3)."
1494 msgstr ""
1495 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_chown>(3)."
1496
1497 #. type: TP
1498 #: debian-trixie
1499 #, no-wrap
1500 msgid "B<KEYCTL_SETPERM> (since Linux 2.6.10)"
1501 msgstr "B<KEYCTL_SETPERM> (начиная с Linux 2.6.10)"
1502
1503 #. type: Plain text
1504 #: debian-trixie
1505 msgid ""
1506 "Change the permissions of the key with the ID provided in the I<arg2> "
1507 "argument (cast to I<key_serial_t>) to the permissions provided in the "
1508 "I<arg3> argument (cast to I<key_perm_t>)."
1509 msgstr ""
1510 "Изменить права ключа с идентификатором из аргумента I<arg2> (приводится к "
1511 "I<key_serial_t>) на права, указанные в аргументе I<arg3> (приводится к "
1512 "I<key_perm_t>)."
1513
1514 #. type: Plain text
1515 #: debian-trixie
1516 msgid ""
1517 "If the caller doesn't have the B<CAP_SYS_ADMIN> capability, it can change "
1518 "permissions only for the keys it owns. (More precisely: the caller's "
1519 "filesystem UID must match the UID of the key.)"
1520 msgstr ""
1521 "Если вызывающий не имеет мандата B<CAP_SYS_ADMIN>, то он может изменять "
1522 "права только у ключей, которые ему принадлежат (точнее, UID файловой системы "
1523 "вызывающего должен совпадать с UID ключа)."
1524
1525 #. FIXME Above, is it really intended that a privileged process can't
1526 #. override the lack of the 'setattr' permission?
1527 #. type: Plain text
1528 #: debian-trixie
1529 msgid ""
1530 "The key must grant I<setattr> permission to the caller I<regardless> of the "
1531 "caller's capabilities."
1532 msgstr ""
1533 "Ключ должен давать разрешение на I<изменения атрибута> независимо от "
1534 "мандатов вызывающего."
1535
1536 #. type: Plain text
1537 #: debian-trixie
1538 msgid ""
1539 "The permissions in I<arg3> specify masks of available operations for each of "
1540 "the following user categories:"
1541 msgstr ""
1542 "Права I<arg3> определяются маской доступных операций для каждой из следующих "
1543 "пользовательских категорий:"
1544
1545 #. type: TP
1546 #: debian-trixie
1547 #, no-wrap
1548 msgid "I<possessor> (since Linux 2.6.14)"
1549 msgstr "I<владение> (начиная с Linux 2.6.14)"
1550
1551 #. commit 664cceb0093b755739e56572b836a99104ee8a75
1552 #. type: Plain text
1553 #: debian-trixie
1554 msgid ""
1555 "This is the permission granted to a process that possesses the key (has it "
1556 "attached searchably to one of the process's keyrings); see B<keyrings>(7)."
1557 msgstr ""
1558 "Это право предоставляется процессу, который владеет ключом (прицеплен с "
1559 "возможностью поиска к одной из связок ключей процесса); смотрите "
1560 "B<keyrings>(7)."
1561
1562 #. type: TP
1563 #: debian-trixie
1564 #, no-wrap
1565 msgid "I<user>"
1566 msgstr "I<пользователь>"
1567
1568 #. type: Plain text
1569 #: debian-trixie
1570 msgid ""
1571 "This is the permission granted to a process whose filesystem UID matches the "
1572 "UID of the key."
1573 msgstr ""
1574 "Это право предоставляется процессу, чей UID файловой системы совпадает с UID "
1575 "ключа."
1576
1577 #. type: TP
1578 #: debian-trixie
1579 #, no-wrap
1580 msgid "I<group>"
1581 msgstr "I<группа>"
1582
1583 #. type: Plain text
1584 #: debian-trixie
1585 msgid ""
1586 "This is the permission granted to a process whose filesystem GID or any of "
1587 "its supplementary GIDs matches the GID of the key."
1588 msgstr ""
1589 "Это право предоставляется процессу, чей GID файловой системы или любой GID "
1590 "из дополнительных групп совпадает с GID ключа."
1591
1592 #. type: TP
1593 #: debian-trixie
1594 #, no-wrap
1595 msgid "I<other>"
1596 msgstr "I<остальные>"
1597
1598 #. type: Plain text
1599 #: debian-trixie
1600 msgid ""
1601 "This is the permission granted to other processes that do not match the "
1602 "I<user> and I<group> categories."
1603 msgstr ""
1604 "Это право предоставляется остальным процессам, которые не относятся к к "
1605 "категориям I<пользователь> и I<группа>."
1606
1607 #. type: Plain text
1608 #: debian-trixie
1609 msgid ""
1610 "The I<user>, I<group>, and I<other> categories are exclusive: if a process "
1611 "matches the I<user> category, it will not receive permissions granted in the "
1612 "I<group> category; if a process matches the I<user> or I<group> category, "
1613 "then it will not receive permissions granted in the I<other> category."
1614 msgstr ""
1615 "Категории I<пользователь>, I<группа> и I<остальные> взаимоисключающие: если "
1616 "процесс попадает в категорию I<пользователь>, то он не получит прав, "
1617 "предоставленных для категории I<группа>; если процесс попадает в категорию "
1618 "I<пользователь> или I<группа>, то он не получит прав, предоставляемых для "
1619 "категории I<остальные>."
1620
1621 #. type: Plain text
1622 #: debian-trixie
1623 msgid ""
1624 "The I<possessor> category grants permissions that are cumulative with the "
1625 "grants from the I<user>, I<group>, or I<other> category."
1626 msgstr ""
1627 "Категория I<владелец> предоставляет права, складываемые из прав категории "
1628 "I<пользователь>, I<группа> или I<остальные>."
1629
1630 #. type: Plain text
1631 #: debian-trixie
1632 msgid ""
1633 "Each permission mask is eight bits in size, with only six bits currently "
1634 "used. The available permissions are:"
1635 msgstr ""
1636 "Каждая маска прав имеет размер в восемь бит, но используются только шесть. "
1637 "Доступные права:"
1638
1639 #. type: TP
1640 #: debian-trixie
1641 #, no-wrap
1642 msgid "I<view>"
1643 msgstr "I<просмотр>"
1644
1645 #. type: Plain text
1646 #: debian-trixie
1647 msgid "This permission allows reading attributes of a key."
1648 msgstr "Позволяет читать атрибуты ключа."
1649
1650 #. type: Plain text
1651 #: debian-trixie
1652 msgid "This permission is required for the B<KEYCTL_DESCRIBE> operation."
1653 msgstr "Это право требуется для операции B<KEYCTL_DESCRIBE>."
1654
1655 #. type: Plain text
1656 #: debian-trixie
1657 msgid ""
1658 "The permission bits for each category are B<KEY_POS_VIEW>, B<KEY_USR_VIEW>, "
1659 "B<KEY_GRP_VIEW>, and B<KEY_OTH_VIEW>."
1660 msgstr ""
1661 "Биты прав для каждой категории B<KEY_POS_VIEW>, B<KEY_USR_VIEW>, "
1662 "B<KEY_GRP_VIEW> и B<KEY_OTH_VIEW>."
1663
1664 #. type: TP
1665 #: debian-trixie
1666 #, no-wrap
1667 msgid "I<read>"
1668 msgstr "I<чтение>"
1669
1670 #. type: Plain text
1671 #: debian-trixie
1672 msgid "This permission allows reading a key's payload."
1673 msgstr "Позволяет читать полезные данные ключа."
1674
1675 #. type: Plain text
1676 #: debian-trixie
1677 msgid "This permission is required for the B<KEYCTL_READ> operation."
1678 msgstr "Это право требуется для операции B<KEYCTL_READ>."
1679
1680 #. type: Plain text
1681 #: debian-trixie
1682 msgid ""
1683 "The permission bits for each category are B<KEY_POS_READ>, B<KEY_USR_READ>, "
1684 "B<KEY_GRP_READ>, and B<KEY_OTH_READ>."
1685 msgstr ""
1686 "Биты прав для каждой категории B<KEY_POS_READ>, B<KEY_USR_READ>, "
1687 "B<KEY_GRP_READ> и B<KEY_OTH_READ>."
1688
1689 #. type: TP
1690 #: debian-trixie
1691 #, no-wrap
1692 msgid "I<write>"
1693 msgstr "I<запись>"
1694
1695 #. type: Plain text
1696 #: debian-trixie
1697 msgid ""
1698 "This permission allows update or instantiation of a key's payload. For a "
1699 "keyring, it allows keys to be linked and unlinked from the keyring,"
1700 msgstr ""
1701 "Позволяет изменять или добавлять полезные данные ключа. Для связки ключей "
1702 "позволяет добавление и удаление ключей из связки."
1703
1704 #. type: Plain text
1705 #: debian-trixie
1706 msgid ""
1707 "This permission is required for the B<KEYCTL_UPDATE>, B<KEYCTL_REVOKE>, "
1708 "B<KEYCTL_CLEAR>, B<KEYCTL_LINK>, and B<KEYCTL_UNLINK> operations."
1709 msgstr ""
1710 "Это право требуется для операций B<KEYCTL_UPDATE>, B<KEYCTL_REVOKE>, "
1711 "B<KEYCTL_CLEAR>, B<KEYCTL_LINK> и B<KEYCTL_UNLINK>."
1712
1713 #. type: Plain text
1714 #: debian-trixie
1715 msgid ""
1716 "The permission bits for each category are B<KEY_POS_WRITE>, "
1717 "B<KEY_USR_WRITE>, B<KEY_GRP_WRITE>, and B<KEY_OTH_WRITE>."
1718 msgstr ""
1719 "Биты прав для каждой категории B<KEY_POS_WRITE>, B<KEY_USR_WRITE>, "
1720 "B<KEY_GRP_WRITE> и B<KEY_OTH_WRITE>."
1721
1722 #. type: TP
1723 #: debian-trixie
1724 #, no-wrap
1725 msgid "I<search>"
1726 msgstr "I<поиск>"
1727
1728 #. type: Plain text
1729 #: debian-trixie
1730 msgid ""
1731 "This permission allows keyrings to be searched and keys to be found. "
1732 "Searches can recurse only into nested keyrings that have I<search> "
1733 "permission set."
1734 msgstr ""
1735 "Позволяет искать связки ключей и ключи. Поиск может быть рекурсивным только "
1736 "во вложенных связках, на которые есть право I<поиска>."
1737
1738 #. type: Plain text
1739 #: debian-trixie
1740 msgid ""
1741 "This permission is required for the B<KEYCTL_GET_KEYRING_ID>, "
1742 "B<KEYCTL_JOIN_SESSION_KEYRING>, B<KEYCTL_SEARCH>, and B<KEYCTL_INVALIDATE> "
1743 "operations."
1744 msgstr ""
1745 "Это право требуется для операций B<KEYCTL_GET_KEYRING_ID>, "
1746 "B<KEYCTL_JOIN_SESSION_KEYRING>, B<KEYCTL_SEARCH> и B<KEYCTL_INVALIDATE>."
1747
1748 #. type: Plain text
1749 #: debian-trixie
1750 msgid ""
1751 "The permission bits for each category are B<KEY_POS_SEARCH>, "
1752 "B<KEY_USR_SEARCH>, B<KEY_GRP_SEARCH>, and B<KEY_OTH_SEARCH>."
1753 msgstr ""
1754 "Биты прав для каждой категории B<KEY_POS_SEARCH>, B<KEY_USR_SEARCH>, "
1755 "B<KEY_GRP_SEARCH> и B<KEY_OTH_SEARCH>."
1756
1757 #. type: TP
1758 #: debian-trixie
1759 #, no-wrap
1760 msgid "I<link>"
1761 msgstr "I<связь>"
1762
1763 #. type: Plain text
1764 #: debian-trixie
1765 msgid "This permission allows a key or keyring to be linked to."
1766 msgstr "Позволяет прицеплять ключ или связку ключей."
1767
1768 #. type: Plain text
1769 #: debian-trixie
1770 msgid ""
1771 "This permission is required for the B<KEYCTL_LINK> and "
1772 "B<KEYCTL_SESSION_TO_PARENT> operations."
1773 msgstr ""
1774 "Это право требуется для операций B<KEYCTL_LINK> и "
1775 "B<KEYCTL_SESSION_TO_PARENT>."
1776
1777 #. type: Plain text
1778 #: debian-trixie
1779 msgid ""
1780 "The permission bits for each category are B<KEY_POS_LINK>, B<KEY_USR_LINK>, "
1781 "B<KEY_GRP_LINK>, and B<KEY_OTH_LINK>."
1782 msgstr ""
1783 "Биты прав для каждой категории B<KEY_POS_LINK>, B<KEY_USR_LINK>, "
1784 "B<KEY_GRP_LINK> и B<KEY_OTH_LINK>."
1785
1786 #. type: TP
1787 #: debian-trixie
1788 #, no-wrap
1789 msgid "I<setattr> (since Linux 2.6.15)."
1790 msgstr "I<setattr> (начиная с Linux 2.6.15)."
1791
1792 #. type: Plain text
1793 #: debian-trixie
1794 msgid ""
1795 "This permission allows a key's UID, GID, and permissions mask to be changed."
1796 msgstr "Позволяет изменять UID, GID и маску прав ключа."
1797
1798 #. type: Plain text
1799 #: debian-trixie
1800 msgid ""
1801 "This permission is required for the B<KEYCTL_REVOKE>, B<KEYCTL_CHOWN>, and "
1802 "B<KEYCTL_SETPERM> operations."
1803 msgstr ""
1804 "Это право требуется для операций B<KEYCTL_REVOKE>, B<KEYCTL_CHOWN> и "
1805 "B<KEYCTL_SETPERM>."
1806
1807 #. type: Plain text
1808 #: debian-trixie
1809 msgid ""
1810 "The permission bits for each category are B<KEY_POS_SETATTR>, "
1811 "B<KEY_USR_SETATTR>, B<KEY_GRP_SETATTR>, and B<KEY_OTH_SETATTR>."
1812 msgstr ""
1813 "Биты прав для каждой категории B<KEY_POS_SETATTR>, B<KEY_USR_SETATTR>, "
1814 "B<KEY_GRP_SETATTR> и B<KEY_OTH_SETATTR>."
1815
1816 #. type: Plain text
1817 #: debian-trixie
1818 msgid ""
1819 "As a convenience, the following macros are defined as masks for all of the "
1820 "permission bits in each of the user categories: B<KEY_POS_ALL>, "
1821 "B<KEY_USR_ALL>, B<KEY_GRP_ALL>, and B<KEY_OTH_ALL>."
1822 msgstr ""
1823 "Для удобства, следующие макросы определены как маски всех бит прав для "
1824 "каждой пользовательской категории: B<KEY_POS_ALL>, B<KEY_USR_ALL> "
1825 "B<KEY_GRP_ALL> и B<KEY_OTH_ALL>."
1826
1827 #. type: Plain text
1828 #: debian-trixie
1829 msgid "The I<arg4> and I<arg5> arguments are ignored."
1830 msgstr "Аргументы I<arg4> и I<arg5> игнорируются."
1831
1832 #. type: Plain text
1833 #: debian-trixie
1834 msgid ""
1835 "This operation is exposed by I<libkeyutils> via the function "
1836 "B<keyctl_setperm>(3)."
1837 msgstr ""
1838 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_setperm>(3)."
1839
1840 #. type: TP
1841 #: debian-trixie
1842 #, no-wrap
1843 msgid "B<KEYCTL_DESCRIBE> (since Linux 2.6.10)"
1844 msgstr "B<KEYCTL_DESCRIBE> (начиная с Linux 2.6.10)"
1845
1846 #. type: Plain text
1847 #: debian-trixie
1848 msgid "Obtain a string describing the attributes of a specified key."
1849 msgstr "Получить строку, описывающую атрибуты указанного ключа."
1850
1851 #. type: Plain text
1852 #: debian-trixie
1853 #, fuzzy
1854 #| msgid ""
1855 #| "The ID of the key to be described is specified in I<arg2> (cast to "
1856 #| "I<key_serial_t>). The descriptive string is returned in the buffer "
1857 #| "pointed to by I<arg3> (cast to I<char\\~*>); I<arg4> (cast to I<size_t>) "
1858 #| "specifies the size of that buffer in bytes."
1859 msgid ""
1860 "The ID of the key to be described is specified in I<arg2> (cast to "
1861 "I<key_serial_t>). The descriptive string is returned in the buffer pointed "
1862 "to by I<arg3> (cast to I<char\\ *>); I<arg4> (cast to I<size_t>) specifies "
1863 "the size of that buffer in bytes."
1864 msgstr ""
1865 "Описываемый идентификатор ключа задаётся в I<arg2> (приводится к "
1866 "I<key_serial_t>). Описывающая строка возвращается в буфере, на который "
1867 "указывает I<arg3> (приводится к I<char\\~*>); в I<arg4> (приводится к "
1868 "I<size_t>) задаётся размер этого буфера в байтах."
1869
1870 #. type: Plain text
1871 #: debian-trixie
1872 msgid "The key must grant the caller I<view> permission."
1873 msgstr "Ключ должен давать вызывающему разрешение на I<просмотр>."
1874
1875 #. type: Plain text
1876 #: debian-trixie
1877 msgid ""
1878 "The returned string is null-terminated and contains the following "
1879 "information about the key:"
1880 msgstr ""
1881 "Возвращаемая строка оканчивается null и содержит следующую информацию о "
1882 "ключе:"
1883
1884 #. type: Plain text
1885 #: debian-trixie
1886 msgid "I<type>;I<uid>;I<gid>;I<perm>;I<description>"
1887 msgstr "I<тип>;I<uid>;I<gid>;I<права>;I<описание>"
1888
1889 #. type: Plain text
1890 #: debian-trixie
1891 msgid ""
1892 "In the above, I<type> and I<description> are strings, I<uid> and I<gid> are "
1893 "decimal strings, and I<perm> is a hexadecimal permissions mask. The "
1894 "descriptive string is written with the following format:"
1895 msgstr ""
1896 "Здесь I<тип> и I<описание> являются строками, I<uid> и I<gid> — десятичным "
1897 "числом в виде строки, а I<права> — шестнадцатеричной маской прав. "
1898 "Описывающая строка записывается в следующем формате:"
1899
1900 #. type: Plain text
1901 #: debian-trixie
1902 #, no-wrap
1903 msgid "%s;%d;%d;%08x;%s\n"
1904 msgstr "%s;%d;%d;%08x;%s\n"
1905
1906 #. FIXME But, the kernel does not enforce the requirement
1907 #. that the key description contains no semicolons!
1908 #. So, user space has no guarantee here??
1909 #. Either something more needs to be said here,
1910 #. or a kernel fix is required.
1911 #. type: Plain text
1912 #: debian-trixie
1913 msgid ""
1914 "B<Note: the intention is that the descriptive string should> B<be extensible "
1915 "in future kernel versions.> In particular, the I<description> field will not "
1916 "contain semicolons; it should be parsed by working backwards from the end of "
1917 "the string to find the last semicolon. This allows future semicolon-"
1918 "delimited fields to be inserted in the descriptive string in the future."
1919 msgstr ""
1920 "B<Замечание: описывающая строка представлена в таком виде, чтобы её можно> "
1921 "B<было расширить в будущих версиях ядра>. В частности, поле I<описание> не "
1922 "будет содержать точек с запятой; его нужно отделять проходя с конца строки в "
1923 "поиске последней точки с запятой. Это позволяет вставить в будущих версиях "
1924 "новые поля."
1925
1926 #. Function commentary says it copies up to buflen bytes, but see the
1927 #. (buffer && buflen >= ret) condition in keyctl_describe_key() in
1928 #. security/keyctl.c
1929 #. type: Plain text
1930 #: debian-trixie
1931 msgid ""
1932 "Writing to the buffer is attempted only when I<arg3> is non-NULL and the "
1933 "specified buffer size is large enough to accept the descriptive string "
1934 "(including the terminating null byte). In order to determine whether the "
1935 "buffer size was too small, check to see if the return value of the operation "
1936 "is greater than I<arg4>."
1937 msgstr ""
1938 "Запись в буфер производится только если I<arg3> не равно NULL и указанный "
1939 "размер буфера достаточен для описывающей строки (включая конечный байт "
1940 "null). Чтобы понять, что буфер был мал, проверьте, что возвращаемое значение "
1941 "больше I<arg4>."
1942
1943 #. type: Plain text
1944 #: debian-trixie
1945 msgid ""
1946 "This operation is exposed by I<libkeyutils> via the function "
1947 "B<keyctl_describe>(3)."
1948 msgstr ""
1949 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_describe>(3)."
1950
1951 #. type: TP
1952 #: debian-trixie
1953 #, no-wrap
1954 msgid "B<KEYCTL_CLEAR>"
1955 msgstr "B<KEYCTL_CLEAR>"
1956
1957 #. type: Plain text
1958 #: debian-trixie
1959 msgid "Clear the contents of (i.e., unlink all keys from) a keyring."
1960 msgstr "Стереть содержимое связки ключей (т. е., удалить из неё все ключи)."
1961
1962 #. or the error ENOTDIR results
1963 #. According to Documentation/security/keys.txt:
1964 #. This function can also be used to clear special kernel keyrings if they
1965 #. are appropriately marked if the user has CAP_SYS_ADMIN capability. The
1966 #. DNS resolver cache keyring is an example of this.
1967 #. type: Plain text
1968 #: debian-trixie
1969 msgid ""
1970 "The ID of the key (which must be of keyring type) is provided in I<arg2> "
1971 "(cast to I<key_serial_t>)."
1972 msgstr ""
1973 "Идентификатор ключа (должен иметь тип связки ключей) задаётся в I<arg2> "
1974 "(приводится к I<key_serial_t>)."
1975
1976 #. type: Plain text
1977 #: debian-trixie
1978 msgid "The caller must have I<write> permission on the keyring."
1979 msgstr "Вызывающий должен иметь право I<записи> в связку ключей."
1980
1981 #. type: Plain text
1982 #: debian-trixie
1983 msgid ""
1984 "This operation is exposed by I<libkeyutils> via the function "
1985 "B<keyctl_clear>(3)."
1986 msgstr ""
1987 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_clear>(3)."
1988
1989 #. type: TP
1990 #: debian-trixie
1991 #, no-wrap
1992 msgid "B<KEYCTL_LINK> (since Linux 2.6.10)"
1993 msgstr "B<KEYCTL_LINK> (начиная с Linux 2.6.10)"
1994
1995 #. type: Plain text
1996 #: debian-trixie
1997 msgid "Create a link from a keyring to a key."
1998 msgstr "Прицепить ключ к связке ключей."
1999
2000 #. type: Plain text
2001 #: debian-trixie
2002 msgid ""
2003 "The key to be linked is specified in I<arg2> (cast to I<key_serial_t>); the "
2004 "keyring is specified in I<arg3> (cast to I<key_serial_t>)."
2005 msgstr ""
2006 "Прицепляемый ключ указывается в I<arg2> (приводится к I<key_serial_t>); "
2007 "связка ключей указывается в I<arg3> (приводится к I<key_serial_t>)."
2008
2009 #. type: Plain text
2010 #: debian-trixie
2011 msgid ""
2012 "If a key with the same type and description is already linked in the "
2013 "keyring, then that key is displaced from the keyring."
2014 msgstr ""
2015 "Если ключ с тем же типом и описанием уже прицеплен к связке ключей, то этот "
2016 "ключ отцепляется от связки ключей."
2017
2018 #. type: Plain text
2019 #: debian-trixie
2020 msgid ""
2021 "Before creating the link, the kernel checks the nesting of the keyrings and "
2022 "returns appropriate errors if the link would produce a cycle or if the "
2023 "nesting of keyrings would be too deep (The limit on the nesting of keyrings "
2024 "is determined by the kernel constant B<KEYRING_SEARCH_MAX_DEPTH>, defined "
2025 "with the value 6, and is necessary to prevent overflows on the kernel stack "
2026 "when recursively searching keyrings)."
2027 msgstr ""
2028 "Перед созданием связи, ядро проверяет вложенность связок ключей и возвращает "
2029 "соответствующие ошибки, если связь создала был кольцо или если вложенность "
2030 "связок ключей слишком глубока (ограничение вложенности связок ключей "
2031 "определяется константой ядра B<KEYRING_SEARCH_MAX_DEPTH>, равна 6 и это "
2032 "необходимо для предотвращения переполнения стека ядра при выполнении "
2033 "рекурсивного поиска в связках ключей)."
2034
2035 #. type: Plain text
2036 #: debian-trixie
2037 msgid ""
2038 "The caller must have I<link> permission on the key being added and I<write> "
2039 "permission on the keyring."
2040 msgstr ""
2041 "Вызывающий должен иметь право I<зацепки> (link) у добавляемого ключа и право "
2042 "I<записи> у связки ключей."
2043
2044 #. type: Plain text
2045 #: debian-trixie
2046 msgid ""
2047 "This operation is exposed by I<libkeyutils> via the function "
2048 "B<keyctl_link>(3)."
2049 msgstr ""
2050 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_link>(3)."
2051
2052 #. type: TP
2053 #: debian-trixie
2054 #, no-wrap
2055 msgid "B<KEYCTL_UNLINK> (since Linux 2.6.10)"
2056 msgstr "B<KEYCTL_UNLINK> (начиная с Linux 2.6.10)"
2057
2058 #. type: Plain text
2059 #: debian-trixie
2060 msgid "Unlink a key from a keyring."
2061 msgstr "Отцепить ключ от связки ключей."
2062
2063 #. type: Plain text
2064 #: debian-trixie
2065 msgid ""
2066 "The ID of the key to be unlinked is specified in I<arg2> (cast to "
2067 "I<key_serial_t>); the ID of the keyring from which it is to be unlinked is "
2068 "specified in I<arg3> (cast to I<key_serial_t>)."
2069 msgstr ""
2070 "Идентификатор отцепляемого ключа указывается в I<arg2> (приводится к "
2071 "I<key_serial_t>); идентификатор связки ключей, от которой отцепляется ключ, "
2072 "указывается в I<arg3> (приводится к I<key_serial_t>)."
2073
2074 #. type: Plain text
2075 #: debian-trixie
2076 msgid "If the key is not currently linked into the keyring, an error results."
2077 msgstr "Если ключ не прицеплен к связке ключей, то возвращается ошибка."
2078
2079 #. type: Plain text
2080 #: debian-trixie
2081 msgid ""
2082 "The caller must have I<write> permission on the keyring from which the key "
2083 "is being removed."
2084 msgstr ""
2085 "Вызывающий должен иметь право I<записи> в связку ключей, из которой "
2086 "удаляется ключ."
2087
2088 #. type: Plain text
2089 #: debian-trixie
2090 msgid ""
2091 "If the last link to a key is removed, then that key will be scheduled for "
2092 "destruction."
2093 msgstr ""
2094 "Если удаляется последняя ссылка на ключ, то этот ключ планируется к "
2095 "уничтожению."
2096
2097 #. type: Plain text
2098 #: debian-trixie
2099 msgid ""
2100 "This operation is exposed by I<libkeyutils> via the function "
2101 "B<keyctl_unlink>(3)."
2102 msgstr ""
2103 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_unlink>(3)."
2104
2105 #. type: TP
2106 #: debian-trixie
2107 #, no-wrap
2108 msgid "B<KEYCTL_SEARCH> (since Linux 2.6.10)"
2109 msgstr "B<KEYCTL_SEARCH> (начиная с Linux 2.6.10)"
2110
2111 #. type: Plain text
2112 #: debian-trixie
2113 msgid ""
2114 "Search for a key in a keyring tree, returning its ID and optionally linking "
2115 "it to a specified keyring."
2116 msgstr ""
2117 "Найти ключ в дереве связок ключей, вернуть его идентификатор и, при "
2118 "необходимости, прицепить его к заданной связке ключей."
2119
2120 #. type: Plain text
2121 #: debian-trixie
2122 msgid ""
2123 "The tree to be searched is specified by passing the ID of the head keyring "
2124 "in I<arg2> (cast to I<key_serial_t>). The search is performed breadth-first "
2125 "and recursively."
2126 msgstr ""
2127 "Идентификатор начала дерева ключей, в котором производится поиск, задаётся в "
2128 "I<arg2> (приводится к I<key_serial_t>). Поиск выполняется сначала вширь и "
2129 "рекурсивно."
2130
2131 #. type: Plain text
2132 #: debian-trixie
2133 #, fuzzy
2134 #| msgid ""
2135 #| "The I<arg3> and I<arg4> arguments specify the key to be searched for: "
2136 #| "I<arg3> (cast as I<char\\~*>) contains the key type (a null-terminated "
2137 #| "character string up to 32 bytes in size, including the terminating null "
2138 #| "byte), and I<arg4> (cast as I<char\\~*>) contains the description of the "
2139 #| "key (a null-terminated character string up to 4096 bytes in size, "
2140 #| "including the terminating null byte)."
2141 msgid ""
2142 "The I<arg3> and I<arg4> arguments specify the key to be searched for: "
2143 "I<arg3> (cast as I<char\\ *>) contains the key type (a null-terminated "
2144 "character string up to 32 bytes in size, including the terminating null "
2145 "byte), and I<arg4> (cast as I<char\\ *>) contains the description of the "
2146 "key (a null-terminated character string up to 4096 bytes in size, including "
2147 "the terminating null byte)."
2148 msgstr ""
2149 "В аргументах I<arg3> и I<arg4> задаётся искомый ключ: в I<arg3> (приводится "
2150 "к I<char\\~*>) содержится тип ключа (строка символов длиной до 32 байт с "
2151 "учётом конечного байта null), а в I<arg4> (приводится к I<char\\~*>) "
2152 "содержится описание ключа (строка символов до 4096 байт с учётом конечного "
2153 "байта null)."
2154
2155 #. type: Plain text
2156 #: debian-trixie
2157 msgid ""
2158 "The source keyring must grant I<search> permission to the caller. When "
2159 "performing the recursive search, only keyrings that grant the caller "
2160 "I<search> permission will be searched. Only keys with for which the caller "
2161 "has I<search> permission can be found."
2162 msgstr ""
2163 "Связка ключей источник должна представлять право I<поиска> вызывающему. При "
2164 "выполнении рекурсивного поиска будут просматриваться только связки ключей, "
2165 "представляющие право I<поиска> вызывающему. Могут быть найдены только ключи, "
2166 "на которые у вызывающего есть право I<поиска>."
2167
2168 #. type: Plain text
2169 #: debian-trixie
2170 msgid "If the key is found, its ID is returned as the function result."
2171 msgstr ""
2172 "Если ключ найден, то его идентификатор возвращается как результат функции."
2173
2174 #. type: Plain text
2175 #: debian-trixie
2176 msgid ""
2177 "If the key is found and I<arg5> (cast to I<key_serial_t>) is nonzero, then, "
2178 "subject to the same constraints and rules as B<KEYCTL_LINK>, the key is "
2179 "linked into the keyring whose ID is specified in I<arg5>. If the "
2180 "destination keyring specified in I<arg5> already contains a link to a key "
2181 "that has the same type and description, then that link will be displaced by "
2182 "a link to the key found by this operation."
2183 msgstr ""
2184 "Если ключ найден и значение I<arg5> (приводится к I<key_serial_t>) не равно "
2185 "нулю, то с теми же ограничениями и правилами как у B<KEYCTL_LINK> ключ "
2186 "прицепляется в связку ключей, идентификатор которой указан в I<arg5>. Если "
2187 "связка ключей назначения, указанная в I<arg5>, уже содержит ключ того же "
2188 "типа и с тем же описанием, то связь будет замещена новой с ключом, найденным "
2189 "этой операцией."
2190
2191 #. type: Plain text
2192 #: debian-trixie
2193 msgid ""
2194 "Instead of valid existing keyring IDs, the source (I<arg2>) and destination "
2195 "(I<arg5>) keyrings can be one of the special keyring IDs listed under "
2196 "B<KEYCTL_GET_KEYRING_ID>."
2197 msgstr ""
2198 "Вместо корректных существующих идентификаторов связок ключей источника "
2199 "(I<arg2>) и приёмника (I<arg5>) можно указывать специальные идентификаторы "
2200 "связок ключей, описанных в B<KEYCTL_GET_KEYRING_ID>."
2201
2202 #. type: Plain text
2203 #: debian-trixie
2204 msgid ""
2205 "This operation is exposed by I<libkeyutils> via the function "
2206 "B<keyctl_search>(3)."
2207 msgstr ""
2208 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_search>(3)."
2209
2210 #. type: TP
2211 #: debian-trixie
2212 #, no-wrap
2213 msgid "B<KEYCTL_READ> (since Linux 2.6.10)"
2214 msgstr "B<KEYCTL_READ> (начиная с Linux 2.6.10)"
2215
2216 #. type: Plain text
2217 #: debian-trixie
2218 msgid "Read the payload data of a key."
2219 msgstr "Прочитать полезные данные ключа."
2220
2221 #. including KEY_SPEC_REQKEY_AUTH_KEY
2222 #. type: Plain text
2223 #: debian-trixie
2224 msgid ""
2225 "The ID of the key whose payload is to be read is specified in I<arg2> (cast "
2226 "to I<key_serial_t>). This can be the ID of an existing key, or any of the "
2227 "special key IDs listed for B<KEYCTL_GET_KEYRING_ID>."
2228 msgstr ""
2229 "Идентификатор ключа, из которого читаются полезные данные, задаётся в "
2230 "I<arg2> (приводится к I<key_serial_t>). Это может быть идентификатор "
2231 "существующего ключа или любой специальный идентификатор ключа, описанный в "
2232 "B<KEYCTL_GET_KEYRING_ID>."
2233
2234 #. type: Plain text
2235 #: debian-trixie
2236 msgid ""
2237 "The payload is placed in the buffer pointed by I<arg3> (cast to I<char\\ "
2238 "*>); the size of that buffer must be specified in I<arg4> (cast to "
2239 "I<size_t>)."
2240 msgstr ""
2241 "Полезные данные помещаются в буфер, указываемый в I<arg3> (приводится к "
2242 "I<char\\ *>); размер буфера должен быть указан в I<arg4> (приводится к "
2243 "I<size_t>)."
2244
2245 #. type: Plain text
2246 #: debian-trixie
2247 msgid ""
2248 "The returned data will be processed for presentation according to the key "
2249 "type. For example, a keyring will return an array of I<key_serial_t> "
2250 "entries representing the IDs of all the keys that are linked to it. The "
2251 "I<user> key type will return its data as is. If a key type does not "
2252 "implement this function, the operation fails with the error B<EOPNOTSUPP>."
2253 msgstr ""
2254 "Возвращаемые данные будут обработаны для представления согласно типу ключа. "
2255 "Например, связка ключей будет возвращена как массив элементов "
2256 "I<key_serial_t>, представляющих идентификаторы всех ключей связки. Данные "
2257 "типа ключа I<user> будут возвращены как есть. Если для типа ключа эта "
2258 "функция не реализована, то операция завершается ошибкой B<EOPNOTSUPP>."
2259
2260 #. type: Plain text
2261 #: debian-trixie
2262 msgid ""
2263 "If I<arg3> is not NULL, as much of the payload data as will fit is copied "
2264 "into the buffer. On a successful return, the return value is always the "
2265 "total size of the payload data. To determine whether the buffer was of "
2266 "sufficient size, check to see that the return value is less than or equal to "
2267 "the value supplied in I<arg4>."
2268 msgstr ""
2269 "Если I<arg3> не равно NULL, то копируется столько полезных данных сколько "
2270 "вмещается в буфер. При успешном выполнении возвращаемое значение всегда "
2271 "равно полному размеру полезных данных. Чтобы удостовериться что буфер был "
2272 "достаточного размера, убедитесь, что возвращаемое значение меньше или равно "
2273 "значению, указанному в I<arg4>."
2274
2275 #. type: Plain text
2276 #: debian-trixie
2277 msgid ""
2278 "The key must either grant the caller I<read> permission, or grant the caller "
2279 "I<search> permission when searched for from the process keyrings (i.e., the "
2280 "key is possessed)."
2281 msgstr ""
2282 "Ключ должен предоставлять вызывающему право I<чтения> или I<поиска>, если "
2283 "поиск ведётся из связки ключей процесса (т. е., это обладатель ключа)."
2284
2285 #. type: Plain text
2286 #: debian-trixie
2287 msgid ""
2288 "This operation is exposed by I<libkeyutils> via the function "
2289 "B<keyctl_read>(3)."
2290 msgstr ""
2291 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_read>(3)."
2292
2293 #. type: TP
2294 #: debian-trixie
2295 #, no-wrap
2296 msgid "B<KEYCTL_INSTANTIATE> (since Linux 2.6.10)"
2297 msgstr "B<KEYCTL_INSTANTIATE> (начиная с Linux 2.6.10)"
2298
2299 #. type: Plain text
2300 #: debian-trixie
2301 msgid ""
2302 "(Positively) instantiate an uninstantiated key with a specified payload."
2303 msgstr ""
2304 "Положительно инициализировать неинициализированный ключ заданными полезными "
2305 "данными."
2306
2307 #. type: Plain text
2308 #: debian-trixie
2309 msgid ""
2310 "The ID of the key to be instantiated is provided in I<arg2> (cast to "
2311 "I<key_serial_t>)."
2312 msgstr ""
2313 "Идентификатор инициализированного ключа задаётся в I<arg2> (приводится к "
2314 "I<key_serial_t>)."
2315
2316 #. type: Plain text
2317 #: debian-trixie
2318 msgid ""
2319 "The key payload is specified in the buffer pointed to by I<arg3> (cast to "
2320 "I<void\\ *>); the size of that buffer is specified in I<arg4> (cast to "
2321 "I<size_t>)."
2322 msgstr ""
2323 "Полезные данные ключа задаются в буфере, указанном в I<arg3> (приводится к "
2324 "I<void\\ *>); размер буфера задаётся в I<arg4> (приводится к I<size_t>)."
2325
2326 #. type: Plain text
2327 #: debian-trixie
2328 #, fuzzy
2329 #| msgid ""
2330 #| "The payload may be a NULL pointer and the buffer size may be 0 if this is "
2331 #| "supported by the key type (e.g., it is a keyring)."
2332 msgid ""
2333 "The payload may be a null pointer and the buffer size may be 0 if this is "
2334 "supported by the key type (e.g., it is a keyring)."
2335 msgstr ""
2336 "Ссылка на полезные данные может быть равна NULL и размер буфера может "
2337 "равняться 0, если это поддерживается типом ключа (например, если это связка "
2338 "ключей)."
2339
2340 #. type: Plain text
2341 #: debian-trixie
2342 msgid ""
2343 "The operation may be fail if the payload data is in the wrong format or is "
2344 "otherwise invalid."
2345 msgstr ""
2346 "Операция может завершиться с ошибкой, если полезные данные заданы в "
2347 "неправильном формате или содержат ошибки."
2348
2349 #. type: Plain text
2350 #: debian-trixie
2351 msgid ""
2352 "If I<arg5> (cast to I<key_serial_t>) is nonzero, then, subject to the same "
2353 "constraints and rules as B<KEYCTL_LINK>, the instantiated key is linked into "
2354 "the keyring whose ID specified in I<arg5>."
2355 msgstr ""
2356 "Если I<arg5> (приводится к I<key_serial_t>) не равно нулю, то с теми же "
2357 "ограничениями и правилами как у B<KEYCTL_LINK> инициализированный ключ "
2358 "прицепляется в связку ключей, идентификатор которой указан в I<arg5>."
2359
2360 #. type: Plain text
2361 #: debian-trixie
2362 msgid ""
2363 "The caller must have the appropriate authorization key, and once the "
2364 "uninstantiated key has been instantiated, the authorization key is revoked. "
2365 "In other words, this operation is available only from a B<request-key>(8)-"
2366 "style program. See B<request_key>(2) for an explanation of uninstantiated "
2367 "keys and key instantiation."
2368 msgstr ""
2369 "Вызывающий должен иметь соответствующий ключ авторизации и после "
2370 "инициализации ключа ключ авторизации отзывается. Иначе говоря, эта операция "
2371 "доступна только из программ, подобных B<request-key>(8). В "
2372 "B<request_key>(2) смотрите описание неинициализированных ключей и их "
2373 "инициализацию."
2374
2375 #. type: Plain text
2376 #: debian-trixie
2377 msgid ""
2378 "This operation is exposed by I<libkeyutils> via the function "
2379 "B<keyctl_instantiate>(3)."
2380 msgstr ""
2381 "Эта операция доступна в I<libkeyutils> через функцию "
2382 "B<keyctl_instantiate>(3)."
2383
2384 #. type: TP
2385 #: debian-trixie
2386 #, no-wrap
2387 msgid "B<KEYCTL_NEGATE> (since Linux 2.6.10)"
2388 msgstr "B<KEYCTL_NEGATE> (начиная с Linux 2.6.10)"
2389
2390 #. type: Plain text
2391 #: debian-trixie
2392 msgid "Negatively instantiate an uninstantiated key."
2393 msgstr "Отрицательно инициализировать неинициализированный ключ."
2394
2395 #. type: Plain text
2396 #: debian-trixie
2397 msgid "This operation is equivalent to the call:"
2398 msgstr "Данная операция эквивалентен вызову:"
2399
2400 #. type: Plain text
2401 #: debian-trixie
2402 #, no-wrap
2403 msgid "keyctl(KEYCTL_REJECT, arg2, arg3, ENOKEY, arg4);\n"
2404 msgstr "keyctl(KEYCTL_REJECT, arg2, arg3, ENOKEY, arg4);\n"
2405
2406 #. type: Plain text
2407 #: debian-trixie
2408 msgid ""
2409 "This operation is exposed by I<libkeyutils> via the function "
2410 "B<keyctl_negate>(3)."
2411 msgstr ""
2412 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_negate>(3)."
2413
2414 #. type: TP
2415 #: debian-trixie
2416 #, no-wrap
2417 msgid "B<KEYCTL_SET_REQKEY_KEYRING> (since Linux 2.6.13)"
2418 msgstr "B<KEYCTL_SET_REQKEY_KEYRING> (начиная с Linux 2.6.13)"
2419
2420 #. I.e., calls to the kernel's internal request_key() interface,
2421 #. which is distinct from the request_key(2) system call (which
2422 #. ultimately employs the kernel-internal interface).
2423 #. type: Plain text
2424 #: debian-trixie
2425 msgid ""
2426 "Set the default keyring to which implicitly requested keys will be linked "
2427 "for this thread, and return the previous setting. Implicit key requests are "
2428 "those made by internal kernel components, such as can occur when, for "
2429 "example, opening files on an AFS or NFS filesystem. Setting the default "
2430 "keyring also has an effect when requesting a key from user space; see "
2431 "B<request_key>(2) for details."
2432 msgstr ""
2433 "Задать связку ключей по умолчанию, в которую будут цепляться неявно "
2434 "запрашиваемые ключи для этой нити, и вернуть предыдущее значение. Неявные "
2435 "запросы ключа делаются внутренними компонентами ядра, такое может "
2436 "происходить, например, при открытии файлов в файловой системе AFS или NFS. "
2437 "Задание связки ключей по умолчанию также учитывается при запросе ключа из "
2438 "пользовательского пространства; подробности смотрите в B<request_key>(2)."
2439
2440 #. type: Plain text
2441 #: debian-trixie
2442 msgid ""
2443 "The I<arg2> argument (cast to I<int>) should contain one of the following "
2444 "values, to specify the new default keyring:"
2445 msgstr ""
2446 "В аргументе I<arg2> (приводится к I<int>) должно содержаться одно из "
2447 "следующих значений, задающих новую связку ключей по умолчанию:"
2448
2449 #. type: TP
2450 #: debian-trixie
2451 #, no-wrap
2452 msgid "B<KEY_REQKEY_DEFL_NO_CHANGE>"
2453 msgstr "B<KEY_REQKEY_DEFL_NO_CHANGE>"
2454
2455 #. type: Plain text
2456 #: debian-trixie
2457 msgid ""
2458 "Don't change the default keyring. This can be used to discover the current "
2459 "default keyring (without changing it)."
2460 msgstr ""
2461 "Не изменять связку ключей по умолчанию. Используется для определения текущей "
2462 "связки ключей по умолчанию (без её изменения)."
2463
2464 #. type: TP
2465 #: debian-trixie
2466 #, no-wrap
2467 msgid "B<KEY_REQKEY_DEFL_DEFAULT>"
2468 msgstr "B<KEY_REQKEY_DEFL_DEFAULT>"
2469
2470 #. type: Plain text
2471 #: debian-trixie
2472 msgid ""
2473 "This selects the default behaviour, which is to use the thread-specific "
2474 "keyring if there is one, otherwise the process-specific keyring if there is "
2475 "one, otherwise the session keyring if there is one, otherwise the UID-"
2476 "specific session keyring, otherwise the user-specific keyring."
2477 msgstr ""
2478 "Применить действие по умолчанию, то есть использовать связку ключей, "
2479 "привязанную к нити, если есть, в противном случае привязанную к процессу, "
2480 "если есть, иначе привязанную к сеансу, если есть, иначе привязанную к сеансу "
2481 "UID, иначе привязанную к пользователю."
2482
2483 #. type: TP
2484 #: debian-trixie
2485 #, no-wrap
2486 msgid "B<KEY_REQKEY_DEFL_THREAD_KEYRING>"
2487 msgstr "B<KEY_REQKEY_DEFL_THREAD_KEYRING>"
2488
2489 #. type: Plain text
2490 #: debian-trixie
2491 msgid ""
2492 "Use the thread-specific keyring (B<thread-keyring>(7)) as the new default "
2493 "keyring."
2494 msgstr ""
2495 "В качестве новой связки ключей по умолчанию использовать связку ключей нити "
2496 "(B<thread-keyring>(7))."
2497
2498 #. type: TP
2499 #: debian-trixie
2500 #, no-wrap
2501 msgid "B<KEY_REQKEY_DEFL_PROCESS_KEYRING>"
2502 msgstr "B<KEY_REQKEY_DEFL_PROCESS_KEYRING>"
2503
2504 #. type: Plain text
2505 #: debian-trixie
2506 msgid ""
2507 "Use the process-specific keyring (B<process-keyring>(7)) as the new default "
2508 "keyring."
2509 msgstr ""
2510 "В качестве новой связки ключей по умолчанию использовать связку ключей "
2511 "процесса (B<process-keyring>(7))."
2512
2513 #. type: TP
2514 #: debian-trixie
2515 #, no-wrap
2516 msgid "B<KEY_REQKEY_DEFL_SESSION_KEYRING>"
2517 msgstr "B<KEY_REQKEY_DEFL_SESSION_KEYRING>"
2518
2519 #. type: Plain text
2520 #: debian-trixie
2521 msgid ""
2522 "Use the session-specific keyring (B<session-keyring>(7)) as the new default "
2523 "keyring."
2524 msgstr ""
2525 "В качестве новой связки ключей по умолчанию использовать связку ключей "
2526 "сеанса (B<session-keyring>(7))."
2527
2528 #. type: TP
2529 #: debian-trixie
2530 #, no-wrap
2531 msgid "B<KEY_REQKEY_DEFL_USER_KEYRING>"
2532 msgstr "B<KEY_REQKEY_DEFL_USER_KEYRING>"
2533
2534 #. type: Plain text
2535 #: debian-trixie
2536 msgid ""
2537 "Use the UID-specific keyring (B<user-keyring>(7)) as the new default "
2538 "keyring."
2539 msgstr ""
2540 "В качестве новой связки ключей по умолчанию использовать связку ключей UID "
2541 "(B<user-keyring>(7))."
2542
2543 #. type: TP
2544 #: debian-trixie
2545 #, no-wrap
2546 msgid "B<KEY_REQKEY_DEFL_USER_SESSION_KEYRING>"
2547 msgstr "B<KEY_REQKEY_DEFL_USER_SESSION_KEYRING>"
2548
2549 #. type: Plain text
2550 #: debian-trixie
2551 msgid ""
2552 "Use the UID-specific session keyring (B<user-session-keyring>(7)) as the "
2553 "new default keyring."
2554 msgstr ""
2555 "В качестве новой связки ключей по умолчанию использовать связку ключей UID "
2556 "сеанса (B<user-session-keyring>(7))."
2557
2558 #. type: TP
2559 #: debian-trixie
2560 #, no-wrap
2561 msgid "B<KEY_REQKEY_DEFL_REQUESTOR_KEYRING> (since Linux 2.6.29)"
2562 msgstr "B<KEY_REQKEY_DEFL_REQUESTOR_KEYRING> (начиная с Linux 2.6.29)"
2563
2564 #. 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
2565 #. FIXME The preceding explanation needs to be expanded.
2566 #. Is the following correct:
2567 #. The requestor keyring is the dest_keyring that
2568 #. was supplied to a call to request_key(2)?
2569 #. David Howells said: to be checked
2570 #. type: Plain text
2571 #: debian-trixie
2572 msgid "Use the requestor keyring."
2573 msgstr "Использовать связку ключей запрашивающего."
2574
2575 #. (including the still-unsupported KEY_REQKEY_DEFL_GROUP_KEYRING)
2576 #. type: Plain text
2577 #: debian-trixie
2578 msgid "All other values are invalid."
2579 msgstr "Любые другие значения недопустимы."
2580
2581 #. type: Plain text
2582 #: debian-trixie
2583 msgid ""
2584 "The setting controlled by this operation is inherited by the child of "
2585 "B<fork>(2) and preserved across B<execve>(2)."
2586 msgstr ""
2587 "Параметр, контролируемый данной операцией, наследуется потомком при "
2588 "B<fork>(2) и сохраняется при B<execve>(2)."
2589
2590 #. type: Plain text
2591 #: debian-trixie
2592 msgid ""
2593 "This operation is exposed by I<libkeyutils> via the function "
2594 "B<keyctl_set_reqkey_keyring>(3)."
2595 msgstr ""
2596 "Эта операция доступна в I<libkeyutils> через функцию "
2597 "B<keyctl_set_reqkey_keyring>(3)."
2598
2599 #. type: TP
2600 #: debian-trixie
2601 #, no-wrap
2602 msgid "B<KEYCTL_SET_TIMEOUT> (since Linux 2.6.16)"
2603 msgstr "B<KEYCTL_SET_TIMEOUT> (начиная с Linux 2.6.16)"
2604
2605 #. type: Plain text
2606 #: debian-trixie
2607 msgid "Set a timeout on a key."
2608 msgstr "Назначить время ожидания ключа."
2609
2610 #. type: Plain text
2611 #: debian-trixie
2612 msgid ""
2613 "The ID of the key is specified in I<arg2> (cast to I<key_serial_t>). The "
2614 "timeout value, in seconds from the current time, is specified in I<arg3> "
2615 "(cast to I<unsigned int>). The timeout is measured against the realtime "
2616 "clock."
2617 msgstr ""
2618 "Идентификатор ключа задаётся в I<arg2> (приводится к I<key_serial_t>). Время "
2619 "ожидания в секундах отсчитывается от текущего времени и задаётся в I<arg3> "
2620 "(приводится к I<unsigned int>). Время ожидания изменяется по часам реального "
2621 "времени."
2622
2623 #. type: Plain text
2624 #: debian-trixie
2625 msgid ""
2626 "Specifying the timeout value as 0 clears any existing timeout on the key."
2627 msgstr "Значение времени ожидания 0 очищается существующее ожидание ключа."
2628
2629 #. type: Plain text
2630 #: debian-trixie
2631 msgid ""
2632 "The I</proc/keys> file displays the remaining time until each key will "
2633 "expire. (This is the only method of discovering the timeout on a key.)"
2634 msgstr ""
2635 "В файле I</proc/keys> показывается оставшееся время до момента просрочки "
2636 "каждого ключа (это единственной способ узнать время ожидания ключа)."
2637
2638 #. type: Plain text
2639 #: debian-trixie
2640 msgid ""
2641 "The caller must either have the I<setattr> permission on the key or hold an "
2642 "instantiation authorization token for the key (see B<request_key>(2))."
2643 msgstr ""
2644 "Вызывающий должен иметь право I<изменения атрибута> в ключе или быть "
2645 "держателем авторизационного токена инициализации ключа (смотрите "
2646 "B<request_key>(2))."
2647
2648 #. type: Plain text
2649 #: debian-trixie
2650 msgid ""
2651 "The key and any links to the key will be automatically garbage collected "
2652 "after the timeout expires. Subsequent attempts to access the key will then "
2653 "fail with the error B<EKEYEXPIRED>."
2654 msgstr ""
2655 "Ключ и все ссылки на него будут автоматически удалены сборщиком мусора после "
2656 "истечения времени ожидания. Последующие попытки доступа к ключу будут "
2657 "завершаться ошибкой B<EKEYEXPIRED>."
2658
2659 #. type: Plain text
2660 #: debian-trixie
2661 msgid ""
2662 "This operation cannot be used to set timeouts on revoked, expired, or "
2663 "negatively instantiated keys."
2664 msgstr ""
2665 "Данную операцию невозможно применить для задания ожидания отозванного, "
2666 "просроченного или отрицательно инициализированного ключа."
2667
2668 #. type: Plain text
2669 #: debian-trixie
2670 msgid ""
2671 "This operation is exposed by I<libkeyutils> via the function "
2672 "B<keyctl_set_timeout>(3)."
2673 msgstr ""
2674 "Эта операция доступна в I<libkeyutils> через функцию "
2675 "B<keyctl_set_timeout>(3)."
2676
2677 #. type: TP
2678 #: debian-trixie
2679 #, no-wrap
2680 msgid "B<KEYCTL_ASSUME_AUTHORITY> (since Linux 2.6.16)"
2681 msgstr "B<KEYCTL_ASSUME_AUTHORITY> (начиная с Linux 2.6.16)"
2682
2683 #. type: Plain text
2684 #: debian-trixie
2685 msgid ""
2686 "Assume (or divest) the authority for the calling thread to instantiate a key."
2687 msgstr "Выдать (или отозвать) право вызывающей нити на инициализацию ключа."
2688
2689 #. type: Plain text
2690 #: debian-trixie
2691 msgid ""
2692 "The I<arg2> argument (cast to I<key_serial_t>) specifies either a nonzero "
2693 "key ID to assume authority, or the value 0 to divest authority."
2694 msgstr ""
2695 "В аргументе I<arg2> (приводится к I<key_serial_t>) указывается ненулевое "
2696 "идентификатор ключа для выдачи права допуска или 0 для отмены права допуска."
2697
2698 #. type: Plain text
2699 #: debian-trixie
2700 msgid ""
2701 "If I<arg2> is nonzero, then it specifies the ID of an uninstantiated key for "
2702 "which authority is to be assumed. That key can then be instantiated using "
2703 "one of B<KEYCTL_INSTANTIATE>, B<KEYCTL_INSTANTIATE_IOV>, B<KEYCTL_REJECT>, "
2704 "or B<KEYCTL_NEGATE>. Once the key has been instantiated, the thread is "
2705 "automatically divested of authority to instantiate the key."
2706 msgstr ""
2707 "Если I<arg2> не равно нулю, то будет выдано право допуска к указанному "
2708 "идентификатору неинициализированного ключа. Далее этот ключ может быть "
2709 "инициализирован посредством операций B<KEYCTL_INSTANTIATE>, "
2710 "B<KEYCTL_INSTANTIATE_IOV>, B<KEYCTL_REJECT> или B<KEYCTL_NEGATE>. После "
2711 "инициализации ключа, у нити автоматически отменяется право доступа для "
2712 "инициализации ключа."
2713
2714 #. type: Plain text
2715 #: debian-trixie
2716 msgid ""
2717 "Authority over a key can be assumed only if the calling thread has present "
2718 "in its keyrings the authorization key that is associated with the specified "
2719 "key. (In other words, the B<KEYCTL_ASSUME_AUTHORITY> operation is available "
2720 "only from a B<request-key>(8)-style program; see B<request_key>(2) for an "
2721 "explanation of how this operation is used.) The caller must have I<search> "
2722 "permission on the authorization key."
2723 msgstr ""
2724 "Право доступа на ключ может быть выдано только, если вызывающая нить "
2725 "содержит в своих связках ключей ключ авторизации, который связан с указанным "
2726 "ключом (иначе говоря, операция B<KEYCTL_ASSUME_AUTHORITY> доступна только из "
2727 "программ, подобных B<request-key>(8); в B<request_key>(2) смотрите описание "
2728 "как используется эта операция). Вызывающий должен иметь право I<поиска> "
2729 "ключа авторизации."
2730
2731 #. type: Plain text
2732 #: debian-trixie
2733 msgid ""
2734 "If the specified key has a matching authorization key, then the ID of that "
2735 "key is returned. The authorization key can be read (B<KEYCTL_READ>) to "
2736 "obtain the callout information passed to B<request_key>(2)."
2737 msgstr ""
2738 "Если указанный ключ совпадает с ключом авторизации, то возвращается "
2739 "идентификатор этого ключа. Ключ авторизации можно прочитать (B<KEYCTL_READ>) "
2740 "для получения исходящей информации, переданной в B<request_key>(2)."
2741
2742 #. type: Plain text
2743 #: debian-trixie
2744 msgid ""
2745 "If the ID given in I<arg2> is 0, then the currently assumed authority is "
2746 "cleared (divested), and the value 0 is returned."
2747 msgstr ""
2748 "Если идентификатор в I<arg2> равен 0, то имеющееся в настоящее время право "
2749 "выдачи очищается (отменяется и возвращается 0."
2750
2751 #. type: Plain text
2752 #: debian-trixie
2753 msgid ""
2754 "The B<KEYCTL_ASSUME_AUTHORITY> mechanism allows a program such as B<request-"
2755 "key>(8) to assume the necessary authority to instantiate a new "
2756 "uninstantiated key that was created as a consequence of a call to "
2757 "B<request_key>(2). For further information, see B<request_key>(2) and the "
2758 "kernel source file I<Documentation/security/keys-request-key.txt>."
2759 msgstr ""
2760 "Механизм B<KEYCTL_ASSUME_AUTHORITY> позволяет программе, такой как B<request-"
2761 "key>(8) выдать необходимые права для инициализации нового "
2762 "неинициализированного ключа, который был создан предшествующим вызовом "
2763 "B<request_key>(2). Дополнительную информацию смотрите в B<request_key>(2) и "
2764 "в файле исходного кода ядра I<Documentation/security/keys-request-key.txt>."
2765
2766 #. type: Plain text
2767 #: debian-trixie
2768 msgid ""
2769 "This operation is exposed by I<libkeyutils> via the function "
2770 "B<keyctl_assume_authority>(3)."
2771 msgstr ""
2772 "Эта операция доступна в I<libkeyutils> через функцию "
2773 "B<keyctl_assume_authority>(3)."
2774
2775 #. type: TP
2776 #: debian-trixie
2777 #, no-wrap
2778 msgid "B<KEYCTL_GET_SECURITY> (since Linux 2.6.26)"
2779 msgstr "B<KEYCTL_GET_SECURITY> (начиная с Linux 2.6.26)"
2780
2781 #. commit 70a5bb72b55e82fbfbf1e22cae6975fac58a1e2d
2782 #. type: Plain text
2783 #: debian-trixie
2784 msgid ""
2785 "Get the LSM (Linux Security Module) security label of the specified key."
2786 msgstr ""
2787 "Получить метку безопасности LSM (модуль безопасности Linux) указанного ключа."
2788
2789 #. type: Plain text
2790 #: debian-trixie
2791 msgid ""
2792 "The ID of the key whose security label is to be fetched is specified in "
2793 "I<arg2> (cast to I<key_serial_t>). The security label (terminated by a null "
2794 "byte) will be placed in the buffer pointed to by I<arg3> argument (cast to "
2795 "I<char\\ *>); the size of the buffer must be provided in I<arg4> (cast to "
2796 "I<size_t>)."
2797 msgstr ""
2798 "В I<arg2> (приводится к I<key_serial_t>) задаётся идентификатор ключа, чью "
2799 "метку безопасности нужно получить. Метка безопасности (завершается байтом "
2800 "null) будет помещена в буфер, указанный в аргументе I<arg3> (приводится к "
2801 "I<char\\ *>); размер буфера должен быть указан в I<arg4> (приводится к "
2802 "I<size_t>)."
2803
2804 #. type: Plain text
2805 #: debian-trixie
2806 msgid ""
2807 "If I<arg3> is specified as NULL or the buffer size specified in I<arg4> is "
2808 "too small, the full size of the security label string (including the "
2809 "terminating null byte) is returned as the function result, and nothing is "
2810 "copied to the buffer."
2811 msgstr ""
2812 "Если I<arg3> равно NULL или размер буфера, указанный в I<arg4>, мал, то в "
2813 "качестве результата функции возвращается полный размер строки метки "
2814 "безопасности (включая конечный байт null) и в буфер ничего не копируется."
2815
2816 #. type: Plain text
2817 #: debian-trixie
2818 msgid "The caller must have I<view> permission on the specified key."
2819 msgstr "Вызывающий должен иметь право I<просмотра> указанного ключа."
2820
2821 #. type: Plain text
2822 #: debian-trixie
2823 msgid ""
2824 "The returned security label string will be rendered in a form appropriate to "
2825 "the LSM in force. For example, with SELinux, it may look like:"
2826 msgstr ""
2827 "Возвращаемая строка метки безопасности имеет формат, определяемый в "
2828 "соответствии с действующим LSM. Например, при используемом SELinux она может "
2829 "выглядеть так:"
2830
2831 #. type: Plain text
2832 #: debian-trixie
2833 #, no-wrap
2834 msgid "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n"
2835 msgstr "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023\n"
2836
2837 #. type: Plain text
2838 #: debian-trixie
2839 msgid ""
2840 "If no LSM is currently in force, then an empty string is placed in the "
2841 "buffer."
2842 msgstr ""
2843 "Если в данный момент LSM не работает, то в буфер помещается пустая строка."
2844
2845 #. type: Plain text
2846 #: debian-trixie
2847 msgid ""
2848 "This operation is exposed by I<libkeyutils> via the functions "
2849 "B<keyctl_get_security>(3) and B<keyctl_get_security_alloc>(3)."
2850 msgstr ""
2851 "Эта операция доступна в I<libkeyutils> через функции "
2852 "B<keyctl_get_security>(3) и B<keyctl_get_security_alloc>(3)."
2853
2854 #. type: TP
2855 #: debian-trixie
2856 #, no-wrap
2857 msgid "B<KEYCTL_SESSION_TO_PARENT> (since Linux 2.6.32)"
2858 msgstr "B<KEYCTL_SESSION_TO_PARENT> (начиная с Linux 2.6.32)"
2859
2860 #. commit ee18d64c1f632043a02e6f5ba5e045bb26a5465f
2861 #. What is the use case for KEYCTL_SESSION_TO_PARENT?
2862 #. David Howells: the Process Authentication Groups people requested this,
2863 #. but then didn't use it; maybe there are no users.
2864 #. type: Plain text
2865 #: debian-trixie
2866 msgid ""
2867 "Replace the session keyring to which the I<parent> of the calling process "
2868 "subscribes with the session keyring of the calling process."
2869 msgstr ""
2870 "Заменить связку ключей сеанса у I<родителя> вызывающего процесса на связку "
2871 "ключей сеанса вызывающего процесса."
2872
2873 #. type: Plain text
2874 #: debian-trixie
2875 msgid ""
2876 "The keyring will be replaced in the parent process at the point where the "
2877 "parent next transitions from kernel space to user space."
2878 msgstr ""
2879 "Связка ключей родительского процесса будет заменена в момент следующего "
2880 "перехода родителя из пространства ядра в пространство пользователя."
2881
2882 #. type: Plain text
2883 #: debian-trixie
2884 msgid ""
2885 "The keyring must exist and must grant the caller I<link> permission. The "
2886 "parent process must be single-threaded and have the same effective ownership "
2887 "as this process and must not be set-user-ID or set-group-ID. The UID of the "
2888 "parent process's existing session keyring (f it has one), as well as the UID "
2889 "of the caller's session keyring much match the caller's effective UID."
2890 msgstr ""
2891 "Связка ключей должна существовать и позволять вызывающему выполнять "
2892 "I<сцепку>. Родительский процесс должен быть с одной нитью и иметь те же "
2893 "действующие права как этот процесс и не быть set-user-ID или set-group-ID. "
2894 "UID связки ключей сеанса родительского процесса (если есть), а также UID "
2895 "связки ключей сеанса вызывающего должны совпадать с действующим UID "
2896 "вызывающего."
2897
2898 #. type: Plain text
2899 #: debian-trixie
2900 msgid ""
2901 "The fact that it is the parent process that is affected by this operation "
2902 "allows a program such as the shell to start a child process that uses this "
2903 "operation to change the shell's session keyring. (This is what the "
2904 "B<keyctl>(1) B<new_session> command does.)"
2905 msgstr ""
2906 "Факт того, что эта операция затрагивает родительский процесс, позволяет "
2907 "программе, такой как оболочка, запускать дочерний процесс, который с помощью "
2908 "этой операции изменит связку ключей сеанса оболочки (это то, что делает "
2909 "команда B<new_session> B<keyctl>(1))."
2910
2911 #. type: Plain text
2912 #: debian-trixie
2913 msgid "The arguments I<arg2>, I<arg3>, I<arg4>, and I<arg5> are ignored."
2914 msgstr "Аргументы I<arg2>, I<arg3>, I<arg4> и I<arg5> игнорируются."
2915
2916 #. type: Plain text
2917 #: debian-trixie
2918 msgid ""
2919 "This operation is exposed by I<libkeyutils> via the function "
2920 "B<keyctl_session_to_parent>(3)."
2921 msgstr ""
2922 "Эта операция доступна в I<libkeyutils> через функцию "
2923 "B<keyctl_session_to_parent>(3)."
2924
2925 #. type: TP
2926 #: debian-trixie
2927 #, no-wrap
2928 msgid "B<KEYCTL_REJECT> (since Linux 2.6.39)"
2929 msgstr "B<KEYCTL_REJECT> (начиная с Linux 2.6.39)"
2930
2931 #. commit fdd1b94581782a2ddf9124414e5b7a5f48ce2f9c
2932 #. type: Plain text
2933 #: debian-trixie
2934 msgid ""
2935 "Mark a key as negatively instantiated and set an expiration timer on the "
2936 "key. This operation provides a superset of the functionality of the earlier "
2937 "B<KEYCTL_NEGATE> operation."
2938 msgstr ""
2939 "Пометить ключ как отрицательно инициализированный и задать таймер действия "
2940 "ключа. Эта операция предоставляет собой надмножество возможности операции "
2941 "B<KEYCTL_NEGATE>, представленной ранее."
2942
2943 #. type: Plain text
2944 #: debian-trixie
2945 msgid ""
2946 "The ID of the key that is to be negatively instantiated is specified in "
2947 "I<arg2> (cast to I<key_serial_t>). The I<arg3> (cast to I<unsigned int>) "
2948 "argument specifies the lifetime of the key, in seconds. The I<arg4> "
2949 "argument (cast to I<unsigned int>) specifies the error to be returned when "
2950 "a search hits this key; typically, this is one of B<EKEYREJECTED>, "
2951 "B<EKEYREVOKED>, or B<EKEYEXPIRED>."
2952 msgstr ""
2953 "Идентификатор отрицательно инициализируемого ключа указывается в I<arg2> "
2954 "(приводится к I<key_serial_t>). В I<arg3> (приводится к I<unsigned int>) "
2955 "указывается срок жизни ключа в секундах. В I<arg4> (приводится к I<unsigned "
2956 "int>) указывается ошибка, возвращаемая при нахождении этого ключа — обычно "
2957 "равно B<EKEYREJECTED>, B<EKEYREVOKED> или B<EKEYEXPIRED>."
2958
2959 #. type: Plain text
2960 #: debian-trixie
2961 msgid ""
2962 "If I<arg5> (cast to I<key_serial_t>) is nonzero, then, subject to the same "
2963 "constraints and rules as B<KEYCTL_LINK>, the negatively instantiated key is "
2964 "linked into the keyring whose ID is specified in I<arg5>."
2965 msgstr ""
2966 "Если I<arg5> (приводится к I<key_serial_t>) не равно нулю, то с теми же "
2967 "ограничениями и правилами как у B<KEYCTL_LINK> отрицательно "
2968 "инициализированный ключ прицепляется в связку ключей, идентификатор которой "
2969 "указан в I<arg5>."
2970
2971 #. type: Plain text
2972 #: debian-trixie
2973 msgid ""
2974 "The caller must have the appropriate authorization key. In other words, "
2975 "this operation is available only from a B<request-key>(8)-style program. "
2976 "See B<request_key>(2)."
2977 msgstr ""
2978 "Вызывающий должен иметь соответствующий ключ авторизации. Иначе говоря, эта "
2979 "операция доступна только из программ, подобных B<request-key>(8). Смотрите "
2980 "B<request_key>(2)."
2981
2982 #. type: Plain text
2983 #: debian-trixie
2984 msgid ""
2985 "This operation is exposed by I<libkeyutils> via the function "
2986 "B<keyctl_reject>(3)."
2987 msgstr ""
2988 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_reject>(3)."
2989
2990 #. type: TP
2991 #: debian-trixie
2992 #, no-wrap
2993 msgid "B<KEYCTL_INSTANTIATE_IOV> (since Linux 2.6.39)"
2994 msgstr "B<KEYCTL_INSTANTIATE_IOV> (начиная с Linux 2.6.39)"
2995
2996 #. commit ee009e4a0d4555ed522a631bae9896399674f063
2997 #. type: Plain text
2998 #: debian-trixie
2999 msgid ""
3000 "Instantiate an uninstantiated key with a payload specified via a vector of "
3001 "buffers."
3002 msgstr ""
3003 "Инициализировать неинициализированный ключ заданными полезными данными, "
3004 "указанными в векторе буферов."
3005
3006 #. type: Plain text
3007 #: debian-trixie
3008 #, fuzzy
3009 #| msgid ""
3010 #| "This operation is the same as B<KEYCTL_INSTANTIATE>, but the payload data "
3011 #| "is specified as an array of I<iovec> structures:"
3012 msgid ""
3013 "This operation is the same as B<KEYCTL_INSTANTIATE>, but the payload data is "
3014 "specified as an array of I<iovec> structures (see B<iovec>(3type))."
3015 msgstr ""
3016 "Эта операция подобна B<KEYCTL_INSTANTIATE>, но полезные данные указываются в "
3017 "виде массива структур I<iovec>:"
3018
3019 #. type: Plain text
3020 #: debian-trixie
3021 #, fuzzy
3022 #| msgid ""
3023 #| "The pointer to the payload vector is specified in I<arg3> (cast as "
3024 #| "I<const struct iovec\\~*>). The number of items in the vector is "
3025 #| "specified in I<arg4> (cast as I<unsigned int>)."
3026 msgid ""
3027 "The pointer to the payload vector is specified in I<arg3> (cast as I<const "
3028 "struct iovec\\ *>). The number of items in the vector is specified in "
3029 "I<arg4> (cast as I<unsigned int>)."
3030 msgstr ""
3031 "Указатель на вектор полезных данных передаётся в I<arg3> (приводится к "
3032 "I<const struct iovec\\~*>). Количество элементов в векторе задаётся в "
3033 "I<arg4> (приводится к I<unsigned int>)."
3034
3035 #. type: Plain text
3036 #: debian-trixie
3037 msgid ""
3038 "The I<arg2> (key ID) and I<arg5> (keyring ID) are interpreted as for "
3039 "B<KEYCTL_INSTANTIATE>."
3040 msgstr ""
3041 "Значение аргумента I<arg2> (идентификатор ключа) и I<arg5> (идентификатор "
3042 "связки ключей) рассматриваются также как у B<KEYCTL_INSTANTIATE>."
3043
3044 #. type: Plain text
3045 #: debian-trixie
3046 msgid ""
3047 "This operation is exposed by I<libkeyutils> via the function "
3048 "B<keyctl_instantiate_iov>(3)."
3049 msgstr ""
3050 "Эта операция доступна в I<libkeyutils> через функцию "
3051 "B<keyctl_instantiate_iov>(3)."
3052
3053 #. type: TP
3054 #: debian-trixie
3055 #, no-wrap
3056 msgid "B<KEYCTL_INVALIDATE> (since Linux 3.5)"
3057 msgstr "B<KEYCTL_INVALIDATE> (начиная с Linux 3.5)"
3058
3059 #. commit fd75815f727f157a05f4c96b5294a4617c0557da
3060 #. type: Plain text
3061 #: debian-trixie
3062 msgid "Mark a key as invalid."
3063 msgstr "Пометить ключ как недействительный."
3064
3065 #. type: Plain text
3066 #: debian-trixie
3067 msgid ""
3068 "The ID of the key to be invalidated is specified in I<arg2> (cast to "
3069 "I<key_serial_t>)."
3070 msgstr ""
3071 "Идентификатор ключа, отмечаемого недействительным, задаётся в I<arg2> "
3072 "(приводится к I<key_serial_t>)."
3073
3074 #. CAP_SYS_ADMIN is permitted to invalidate certain special keys
3075 #. type: Plain text
3076 #: debian-trixie
3077 msgid ""
3078 "To invalidate a key, the caller must have I<search> permission on the key."
3079 msgstr ""
3080 "Чтобы сделать ключ недействительным, вызывающий должен иметь на ключ право "
3081 "I<поиска>."
3082
3083 #. type: Plain text
3084 #: debian-trixie
3085 msgid ""
3086 "This operation marks the key as invalid and schedules immediate garbage "
3087 "collection. The garbage collector removes the invalidated key from all "
3088 "keyrings and deletes the key when its reference count reaches zero. After "
3089 "this operation, the key will be ignored by all searches, even if it is not "
3090 "yet deleted."
3091 msgstr ""
3092 "Эта операция помечает ключ как недействительный и планирует его к "
3093 "немедленной сборке мусорщиком. Сборщик мусора удаляет недействительный ключ "
3094 "из всех связок ключей и удаляет ключ после того, как количество ссылок на "
3095 "него станет равным 0. После этой операции ключ будет игнорироваться при "
3096 "поиске, даже если он ещё не удалён."
3097
3098 #. type: Plain text
3099 #: debian-trixie
3100 msgid ""
3101 "Keys that are marked invalid become invisible to normal key operations "
3102 "immediately, though they are still visible in I</proc/keys> (marked with an "
3103 "'i' flag) until they are actually removed."
3104 msgstr ""
3105 "Ключи, помеченный как недействительные, сразу становятся невидимыми для "
3106 "обычных операций с ключами, хотя их видно в I</proc/keys> (отмечены флагом "
3107 "«i») до действительного удаления."
3108
3109 #. type: Plain text
3110 #: debian-trixie
3111 msgid ""
3112 "This operation is exposed by I<libkeyutils> via the function "
3113 "B<keyctl_invalidate>(3)."
3114 msgstr ""
3115 "Эта операция доступна в I<libkeyutils> через функцию B<keyctl_invalidate>(3)."
3116
3117 #. type: TP
3118 #: debian-trixie
3119 #, no-wrap
3120 msgid "B<KEYCTL_GET_PERSISTENT> (since Linux 3.13)"
3121 msgstr "B<KEYCTL_GET_PERSISTENT> (начиная с Linux 3.13)"
3122
3123 #. commit f36f8c75ae2e7d4da34f4c908cebdb4aa42c977e
3124 #. type: Plain text
3125 #: debian-trixie
3126 msgid ""
3127 "Get the persistent keyring (B<persistent-keyring>(7)) for a specified user "
3128 "and link it to a specified keyring."
3129 msgstr ""
3130 "Получить постоянную связку ключей (B<persistent-keyring>(7)) заданного "
3131 "пользователя и прицепить её к указанную связку ключей."
3132
3133 #. type: Plain text
3134 #: debian-trixie
3135 msgid ""
3136 "The user ID is specified in I<arg2> (cast to I<uid_t>). If the value -1 is "
3137 "specified, the caller's real user ID is used. The ID of the destination "
3138 "keyring is specified in I<arg3> (cast to I<key_serial_t>)."
3139 msgstr ""
3140 "Идентификатор пользователя указывается в I<arg2> (приводится к I<uid_t>). "
3141 "Если указано значение -1, то используется реальный идентификатор "
3142 "пользователя вызывающего. Идентификатор связки ключей назначения указывается "
3143 "в I<arg3> (приводится к I<key_serial_t>)."
3144
3145 #. type: Plain text
3146 #: debian-trixie
3147 msgid ""
3148 "The caller must have the B<CAP_SETUID> capability in its user namespace in "
3149 "order to fetch the persistent keyring for a user ID that does not match "
3150 "either the real or effective user ID of the caller."
3151 msgstr ""
3152 "Вызывающий должен иметь мандат B<CAP_SETUID> в своём пространстве имён "
3153 "пользователя чтобы получить постоянную связку ключей для идентификатора "
3154 "пользователя, который не совпадает с реальным или действующим идентификатора "
3155 "пользователя вызывающего."
3156
3157 #. type: Plain text
3158 #: debian-trixie
3159 msgid ""
3160 "If the call is successful, a link to the persistent keyring is added to the "
3161 "keyring whose ID was specified in I<arg3>."
3162 msgstr ""
3163 "При успешном выполнении вызова добавляет ссылка на постоянную связку ключей "
3164 "в связку ключей с идентификатором, указанном I<arg3>."
3165
3166 #. type: Plain text
3167 #: debian-trixie
3168 msgid ""
3169 "The persistent keyring will be created by the kernel if it does not yet "
3170 "exist."
3171 msgstr ""
3172 "Если постоянная связка ключей не существует, то она будет создана ядром."
3173
3174 #. type: Plain text
3175 #: debian-trixie
3176 msgid ""
3177 "Each time the B<KEYCTL_GET_PERSISTENT> operation is performed, the "
3178 "persistent keyring will have its expiration timeout reset to the value in:"
3179 msgstr ""
3180 "Каждый раз при выполнении операции B<KEYCTL_GET_PERSISTENT> срок действия "
3181 "постоянной связки ключей сбрасывается в значение:"
3182
3183 #. type: Plain text
3184 #: debian-trixie
3185 #, no-wrap
3186 msgid "/proc/sys/kernel/keys/persistent_keyring_expiry\n"
3187 msgstr "/proc/sys/kernel/keys/persistent_keyring_expiry\n"
3188
3189 #. type: Plain text
3190 #: debian-trixie
3191 msgid ""
3192 "Should the timeout be reached, the persistent keyring will be removed and "
3193 "everything it pins can then be garbage collected."
3194 msgstr ""
3195 "По истечению срока действия постоянная связка ключей удаляется и все ссылки "
3196 "на неё затем удаляются сборщиком мусора."
3197
3198 #. type: Plain text
3199 #: debian-trixie
3200 #, fuzzy
3201 #| msgid "Persistent keyrings were added to Linux in kernel version 3.13."
3202 msgid "Persistent keyrings were added in Linux 3.13."
3203 msgstr "Постоянные связки ключей были добавлены в ядро Linux версии 3.13."
3204
3205 #. type: Plain text
3206 #: debian-trixie
3207 msgid ""
3208 "This operation is exposed by I<libkeyutils> via the function "
3209 "B<keyctl_get_persistent>(3)."
3210 msgstr ""
3211 "Эта операция доступна в I<libkeyutils> через функцию "
3212 "B<keyctl_get_persistent>(3)."
3213
3214 #. type: TP
3215 #: debian-trixie
3216 #, no-wrap
3217 msgid "B<KEYCTL_DH_COMPUTE> (since Linux 4.7)"
3218 msgstr "B<KEYCTL_DH_COMPUTE> (начиная с Linux 4.7)"
3219
3220 #. commit ddbb41148724367394d0880c516bfaeed127b52e
3221 #. type: Plain text
3222 #: debian-trixie
3223 msgid ""
3224 "Compute a Diffie-Hellman shared secret or public key, optionally applying "
3225 "key derivation function (KDF) to the result."
3226 msgstr ""
3227 "Вычислить открытый и закрытый ключ Диффи-Хеллмана, возможно применяя к "
3228 "результату функцию формирования ключа (key derivation function, KDF)."
3229
3230 #. type: Plain text
3231 #: debian-trixie
3232 #, fuzzy
3233 #| msgid ""
3234 #| "The I<arg2> argument is a pointer to a set of parameters containing "
3235 #| "serial numbers for three I<\"user\"> keys used in the Diffie-Hellman "
3236 #| "calculation, packaged in a structure of the following form:"
3237 msgid ""
3238 "The I<arg2> argument is a pointer to a set of parameters containing serial "
3239 "numbers for three I<\\[dq]user\\[dq]> keys used in the Diffie-Hellman "
3240 "calculation, packaged in a structure of the following form:"
3241 msgstr ""
3242 "В аргументе I<arg2> передаётся указатель на набор параметров, содержащих "
3243 "серийные номера трёх ключей I<\"user\">, используемых в вычислении Диффи-"
3244 "Хеллмана, упакованных в следующую структуру:"
3245
3246 #. type: Plain text
3247 #: debian-trixie
3248 #, no-wrap
3249 msgid ""
3250 "struct keyctl_dh_params {\n"
3251 " int32_t private; /* The local private key */\n"
3252 " int32_t prime; /* The prime, known to both parties */\n"
3253 " int32_t base; /* The base integer: either a shared\n"
3254 " generator or the remote public key */\n"
3255 "};\n"
3256 msgstr ""
3257 "struct keyctl_dh_params {\n"
3258 " int32_t private; /* локальный закрытый ключ */\n"
3259 " int32_t prime; /* основание, известное обеим сторонам */\n"
3260 " int32_t base; /* базовое целое: из общего генератора\n"
3261 " или из открытого ключа удалённой стороны */\n"
3262 "};\n"
3263
3264 #. type: Plain text
3265 #: debian-trixie
3266 msgid ""
3267 "Each of the three keys specified in this structure must grant the caller "
3268 "I<read> permission. The payloads of these keys are used to calculate the "
3269 "Diffie-Hellman result as:"
3270 msgstr ""
3271 "Для каждого из трёх указанных в структуре ключей у вызывающего должно быть "
3272 "право на I<чтение>. Полезные данные этих ключей используются для вычисления "
3273 "результата Диффи-Хеллмана по формуле:"
3274
3275 #. type: Plain text
3276 #: debian-trixie
3277 #, fuzzy, no-wrap
3278 #| msgid "base \\(ha private mod prime\n"
3279 msgid "base \\[ha] private mod prime\n"
3280 msgstr "база \\(ha закрытый mod основание\n"
3281
3282 #. type: Plain text
3283 #: debian-trixie
3284 msgid ""
3285 "If the base is the shared generator, the result is the local public key. If "
3286 "the base is the remote public key, the result is the shared secret."
3287 msgstr ""
3288 "Если база это общий генератор, то результатом будет локальный открытый ключ. "
3289 "Если база это открытый ключ удалённой стороны, то результатом будет общий "
3290 "закрытый ключ."
3291
3292 #. type: Plain text
3293 #: debian-trixie
3294 #, fuzzy
3295 #| msgid ""
3296 #| "The I<arg3> argument (cast to I<char\\~*>) points to a buffer where the "
3297 #| "result of the calculation is placed. The size of that buffer is "
3298 #| "specified in I<arg4> (cast to I<size_t>)."
3299 msgid ""
3300 "The I<arg3> argument (cast to I<char\\ *>) points to a buffer where the "
3301 "result of the calculation is placed. The size of that buffer is specified "
3302 "in I<arg4> (cast to I<size_t>)."
3303 msgstr ""
3304 "Аргумент I<arg3> (приводится к I<char\\~*>) указывает на буфер, в который "
3305 "помещается результат вычисления. Размер буфера задаётся в I<arg4> "
3306 "(приводится к I<size_t>)."
3307
3308 #. type: Plain text
3309 #: debian-trixie
3310 msgid ""
3311 "The buffer must be large enough to accommodate the output data, otherwise an "
3312 "error is returned. If I<arg4> is specified zero, in which case the buffer "
3313 "is not used and the operation returns the minimum required buffer size "
3314 "(i.e., the length of the prime)."
3315 msgstr ""
3316 "Буфер должен быть достаточного размера для хранения выходных данных, в "
3317 "противном случае возвращается ошибка. Если значение I<arg4> равно нулю, то "
3318 "буфер не используется и операция возвращает минимально требуемый размер "
3319 "буфера (т. е., длину основания)."
3320
3321 #. type: Plain text
3322 #: debian-trixie
3323 msgid ""
3324 "Diffie-Hellman computations can be performed in user space, but require a "
3325 "multiple-precision integer (MPI) library. Moving the implementation into "
3326 "the kernel gives access to the kernel MPI implementation, and allows access "
3327 "to secure or acceleration hardware."
3328 msgstr ""
3329 "Вычисления Диффи-Хеллмана можно выполнять в пространстве пользователя, но "
3330 "требуется библиотека целых чисел многократной точности (MPI). Помещение "
3331 "реализации в ядро даёт доступ к реализации MPI ядра и позволяет использовать "
3332 "аппаратуру шифрования и ускорения."
3333
3334 #. commit f1c316a3ab9d24df6022682422fe897492f2c0c8
3335 #. type: Plain text
3336 #: debian-trixie
3337 msgid ""
3338 "Adding support for DH computation to the B<keyctl>() system call was "
3339 "considered a good fit due to the DH algorithm's use for deriving shared "
3340 "keys; it also allows the type of the key to determine which DH "
3341 "implementation (software or hardware) is appropriate."
3342 msgstr ""
3343 "Добавление поддержки вычисления DH в системный вызов B<keyctl>() считается "
3344 "хорошим решением, так как алгоритм DH используется для получения общих "
3345 "ключей; также для типа ключа можно задать подходящую реализацию DH "
3346 "(программную или аппаратную)."
3347
3348 #. type: Plain text
3349 #: debian-trixie
3350 msgid ""
3351 "If the I<arg5> argument is B<NULL>, then the DH result itself is returned. "
3352 "Otherwise (since Linux 4.12), it is a pointer to a structure which specifies "
3353 "parameters of the KDF operation to be applied:"
3354 msgstr ""
3355 "Если аргумент I<arg5> равен B<NULL>, то возвращается сам результат DH. В "
3356 "противном случае (начиная с Linux 4.12), значение равно указателю на "
3357 "структуру, в которой задаются параметры для применения в операции KDF:"
3358
3359 #. type: Plain text
3360 #: debian-trixie
3361 #, no-wrap
3362 msgid ""
3363 "struct keyctl_kdf_params {\n"
3364 " char *hashname; /* Hash algorithm name */\n"
3365 " char *otherinfo; /* SP800-56A OtherInfo */\n"
3366 " __u32 otherinfolen; /* Length of otherinfo data */\n"
3367 " __u32 __spare[8]; /* Reserved */\n"
3368 "};\n"
3369 msgstr ""
3370 "struct keyctl_kdf_params {\n"
3371 " char *hashname; /* имя алгоритма хэширования */\n"
3372 " char *otherinfo; /* SP800-56A OtherInfo */\n"
3373 " __u32 otherinfolen; /* размер данных otherinfo */\n"
3374 " __u32 __spare[8]; /* зарезервировано */\n"
3375 "};\n"
3376
3377 #. type: Plain text
3378 #: debian-trixie
3379 msgid ""
3380 "The I<hashname> field is a null-terminated string which specifies a hash "
3381 "name (available in the kernel's crypto API; the list of the hashes available "
3382 "is rather tricky to observe; please refer to the E<.UR https://"
3383 "www.kernel.org\\:/doc\\:/html\\:/latest\\:/crypto\\:/architecture.html> "
3384 "\"Kernel Crypto API Architecture\" E<.UE> documentation for the information "
3385 "regarding how hash names are constructed and your kernel's source and "
3386 "configuration regarding what ciphers and templates with type "
3387 "B<CRYPTO_ALG_TYPE_SHASH> are available) to be applied to DH result in KDF "
3388 "operation."
3389 msgstr ""
3390 "В поле I<hashname> содержится строка, завершающаяся null, которой задаётся "
3391 "имя хэша (доступно в программном интерфейсе шифрования ядра; список хэшей "
3392 "сложно описать; в файле E<.UR https://www.kernel.org\\:/doc\\:/html\\:/"
3393 "latest\\:/crypto\\:/architecture.html> «Kernel Crypto API Architecture» "
3394 "E<.UE> можно найти как компонуются имена хэшей из алгоритмов шифрования и "
3395 "шаблонов с типом B<CRYPTO_ALG_TYPE_SHASH> с учётом доступного исходного кода "
3396 "ядра и настроек) для применения к результату DH в операции KDF."
3397
3398 #. type: Plain text
3399 #: debian-trixie
3400 msgid ""
3401 "The I<otherinfo> field is an I<OtherInfo> data as described in SP800-56A "
3402 "section 5.8.1.2 and is algorithm-specific. This data is concatenated with "
3403 "the result of DH operation and is provided as an input to the KDF "
3404 "operation. Its size is provided in the I<otherinfolen> field and is limited "
3405 "by B<KEYCTL_KDF_MAX_OI_LEN> constant that defined in I<security/keys/"
3406 "internal.h> to a value of 64."
3407 msgstr ""
3408 "Поле I<otherinfo> содержит данные I<OtherInfo>, описанные в SP800-56A, "
3409 "раздел 5.8.1.2, зависящие от алгоритма. Эти данные объединяются с "
3410 "результатом операции DH и предоставляются как входные операции KDF. Его "
3411 "размер указывается в поле I<otherinfolen> и ограничивается константой "
3412 "B<KEYCTL_KDF_MAX_OI_LEN>, которая определена в I<security/keys/internal.h> и "
3413 "равна 64."
3414
3415 #. commit 4f9dabfaf8df971f8a3b6aa324f8f817be38d538
3416 #. type: Plain text
3417 #: debian-trixie
3418 msgid ""
3419 "The B<__spare> field is currently unused. It was ignored until Linux 4.13 "
3420 "(but still should be user-addressable since it is copied to the kernel), and "
3421 "should contain zeros since Linux 4.13."
3422 msgstr ""
3423 "Поле B<__spare> в настоящее время не используется. Оно игнорировалось до "
3424 "Linux 4.13 (но всё равно доступно из пользовательского пространства, так как "
3425 "копируется в ядро), и, начиная с Linux 4.13, должно содержать нули."
3426
3427 #. type: Plain text
3428 #: debian-trixie
3429 msgid ""
3430 "The KDF implementation complies with SP800-56A as well as with SP800-108 "
3431 "(the counter KDF)."
3432 msgstr ""
3433 "Реализация KDF соответствует SP800-56A, а также SP800-108 (счётчик KDF)."
3434
3435 #. keyutils commit 742c9d7b94051d3b21f9f61a73ed6b5f3544cb82
3436 #. keyutils commit d68a981e5db41d059ac782071c35d1e8f3aaf61c
3437 #. type: Plain text
3438 #: debian-trixie
3439 #, fuzzy
3440 #| msgid ""
3441 #| "This operation is exposed by I<libkeyutils> (from version 1.5.10 onwards) "
3442 #| "via the functions B<keyctl_dh_compute>(3) and "
3443 #| "B<keyctl_dh_compute_alloc>(3)."
3444 msgid ""
3445 "This operation is exposed by I<libkeyutils> (from I<libkeyutils> 1.5.10 "
3446 "onwards) via the functions B<keyctl_dh_compute>(3) and "
3447 "B<keyctl_dh_compute_alloc>(3)."
3448 msgstr ""
3449 "Эта операция доступна в I<libkeyutils> (начиная с версии 1.5.10) через "
3450 "функции B<keyctl_dh_compute>(3) и B<keyctl_dh_compute_alloc>(3)."
3451
3452 #. type: TP
3453 #: debian-trixie
3454 #, no-wrap
3455 msgid "B<KEYCTL_RESTRICT_KEYRING> (since Linux 4.12)"
3456 msgstr "B<KEYCTL_RESTRICT_KEYRING> (начиная с Linux 4.12)"
3457
3458 #. commit 6563c91fd645556c7801748f15bc727c77fcd311
3459 #. commit 7228b66aaf723a623e578aa4db7d083bb39546c9
3460 #. type: Plain text
3461 #: debian-trixie
3462 msgid ""
3463 "Apply a key-linking restriction to the keyring with the ID provided in "
3464 "I<arg2> (cast to I<key_serial_t>). The caller must have I<setattr> "
3465 "permission on the key. If I<arg3> is NULL, any attempt to add a key to the "
3466 "keyring is blocked; otherwise it contains a pointer to a string with a key "
3467 "type name and I<arg4> contains a pointer to string that describes the type-"
3468 "specific restriction. As of Linux 4.12, only the type \"asymmetric\" has "
3469 "restrictions defined:"
3470 msgstr ""
3471 "Применить ограничение прицепить ключ к связке ключей с идентификатором, "
3472 "указанном в I<arg2> (приводится к типу I<key_serial_t>). Вызывающий должен "
3473 "иметь право I<setattr> на ключ. Если I<arg3> равно NULL, то все попытки "
3474 "добавить ключ в связку ключей блокируются; в противном случае он содержит "
3475 "указатель на строку с именем типа ключа, а в аргументе I<arg4> содержится "
3476 "указатель на строку, описывающую ограничения, присущие типу. В Linux 4.12 из "
3477 "ограничений определено только «asymmetric»:"
3478
3479 #. type: TP
3480 #: debian-trixie
3481 #, no-wrap
3482 msgid "B<builtin_trusted>"
3483 msgstr "B<builtin_trusted>"
3484
3485 #. type: Plain text
3486 #: debian-trixie
3487 msgid ""
3488 "Allows only keys that are signed by a key linked to the built-in keyring "
3489 "(\".builtin_trusted_keys\")."
3490 msgstr ""
3491 "Позволить прицеплять во встроенную связку ключей («.builtin_trusted_keys») "
3492 "только ключи, которые подписаны ключом."
3493
3494 #. type: TP
3495 #: debian-trixie
3496 #, no-wrap
3497 msgid "B<builtin_and_secondary_trusted>"
3498 msgstr "B<builtin_and_secondary_trusted>"
3499
3500 #. type: Plain text
3501 #: debian-trixie
3502 msgid ""
3503 "Allows only keys that are signed by a key linked to the secondary keyring "
3504 "(\".secondary_trusted_keys\") or, by extension, a key in a built-in keyring, "
3505 "as the latter is linked to the former."
3506 msgstr ""
3507 "Позволить прицеплять во вторичную связку ключей («.secondary_trusted_keys») "
3508 "только ключи, которые подписаны ключом, или как расширение, ключ во "
3509 "встроенную связку ключей, поскольку последний присоединен с первой."
3510
3511 #. type: TP
3512 #: debian-trixie
3513 #, no-wrap
3514 msgid "B<key_or_keyring:>I<key>"
3515 msgstr "B<ключ_или_связка:>I<ключ>"
3516
3517 #. type: TQ
3518 #: debian-trixie
3519 #, no-wrap
3520 msgid "B<key_or_keyring:>I<key>B<:chain>"
3521 msgstr "B<ключ_или_связка:>I<ключ>B<:chain>"
3522
3523 #. type: Plain text
3524 #: debian-trixie
3525 msgid ""
3526 "If I<key> specifies the ID of a key of type \"asymmetric\", then only keys "
3527 "that are signed by this key are allowed."
3528 msgstr ""
3529 "Если I<ключ> задан идентификатором ключа типа «asymmetric», то разрешены "
3530 "только ключи, подписанные этим ключом."
3531
3532 #. type: Plain text
3533 #: debian-trixie
3534 msgid ""
3535 "If I<key> specifies the ID of a keyring, then only keys that are signed by a "
3536 "key linked to this keyring are allowed."
3537 msgstr ""
3538 "Если I<ключ> задан идентификатором связки ключей, то разрешены только ключи, "
3539 "подписанные ключом из этой связки."
3540
3541 #. type: Plain text
3542 #: debian-trixie
3543 msgid ""
3544 "If \":chain\" is specified, keys that are signed by a keys linked to the "
3545 "destination keyring (that is, the keyring with the ID specified in the "
3546 "I<arg2> argument) are also allowed."
3547 msgstr ""
3548 "Если указана «:chain» то разрешены ключи, которые подписаны ключами из "
3549 "связки назначения (то есть, связки ключей с идентификатором из аргумента "
3550 "I<arg2>)."
3551
3552 #. type: Plain text
3553 #: debian-trixie
3554 msgid ""
3555 "Note that a restriction can be configured only once for the specified "
3556 "keyring; once a restriction is set, it can't be overridden."
3557 msgstr ""
3558 "Заметим, что ограничение можно настроить для определённой связки только один "
3559 "раз; будучи назначенным, это нельзя изменить."
3560
3561 #. FIXME Document KEYCTL_RESTRICT_KEYRING, added in Linux 4.12
3562 #. commit 6563c91fd645556c7801748f15bc727c77fcd311
3563 #. Author: Mat Martineau <[email protected]>
3564 #. See Documentation/security/keys.txt
3565 #. type: Plain text
3566 #: debian-trixie
3567 msgid "The argument I<arg5> is ignored."
3568 msgstr "Аргумент I<arg5> игнорируется."
3569
3570 #. type: Plain text
3571 #: debian-trixie
3572 msgid "For a successful call, the return value depends on the operation:"
3573 msgstr ""
3574 "При успешном выполнении возвращаемое значение зависит от используемой "
3575 "команды:"
3576
3577 #. type: TP
3578 #: debian-trixie
3579 #, no-wrap
3580 msgid "B<KEYCTL_GET_KEYRING_ID>"
3581 msgstr "B<KEYCTL_GET_KEYRING_ID>"
3582
3583 #. type: Plain text
3584 #: debian-trixie
3585 msgid "The ID of the requested keyring."
3586 msgstr "Идентификатор запрашиваемой связки ключей."
3587
3588 #. type: TP
3589 #: debian-trixie
3590 #, no-wrap
3591 msgid "B<KEYCTL_JOIN_SESSION_KEYRING>"
3592 msgstr "B<KEYCTL_JOIN_SESSION_KEYRING>"
3593
3594 #. type: Plain text
3595 #: debian-trixie
3596 msgid "The ID of the joined session keyring."
3597 msgstr "Идентификатор присоединяемой связки ключей сеанса."
3598
3599 #. type: TP
3600 #: debian-trixie
3601 #, no-wrap
3602 msgid "B<KEYCTL_DESCRIBE>"
3603 msgstr "B<KEYCTL_DESCRIBE>"
3604
3605 #. type: Plain text
3606 #: debian-trixie
3607 msgid ""
3608 "The size of the description (including the terminating null byte), "
3609 "irrespective of the provided buffer size."
3610 msgstr ""
3611 "Размер описания (включая конечный байт null), безотносительно к указанному "
3612 "размеру буфера."
3613
3614 #. type: TP
3615 #: debian-trixie
3616 #, no-wrap
3617 msgid "B<KEYCTL_SEARCH>"
3618 msgstr "B<KEYCTL_SEARCH>"
3619
3620 #. type: Plain text
3621 #: debian-trixie
3622 msgid "The ID of the key that was found."
3623 msgstr "Идентификатор найденного ключа."
3624
3625 #. type: TP
3626 #: debian-trixie
3627 #, no-wrap
3628 msgid "B<KEYCTL_READ>"
3629 msgstr "B<KEYCTL_READ>"
3630
3631 #. type: Plain text
3632 #: debian-trixie
3633 msgid ""
3634 "The amount of data that is available in the key, irrespective of the "
3635 "provided buffer size."
3636 msgstr ""
3637 "Количество данных, доступных из ключа, безотносительно к указанному размеру "
3638 "буфера."
3639
3640 #. type: TP
3641 #: debian-trixie
3642 #, no-wrap
3643 msgid "B<KEYCTL_SET_REQKEY_KEYRING>"
3644 msgstr "B<KEYCTL_SET_REQKEY_KEYRING>"
3645
3646 #. type: Plain text
3647 #: debian-trixie
3648 msgid ""
3649 "The ID of the previous default keyring to which implicitly requested keys "
3650 "were linked (one of B<KEY_REQKEY_DEFL_USER_*>)."
3651 msgstr ""
3652 "Идентификатор предыдущей связки ключе по умолчанию, в которую неявно "
3653 "цепляются запрашиваемые ключи (одна из B<KEY_REQKEY_DEFL_USER_*>)."
3654
3655 #. type: TP
3656 #: debian-trixie
3657 #, no-wrap
3658 msgid "B<KEYCTL_ASSUME_AUTHORITY>"
3659 msgstr "B<KEYCTL_ASSUME_AUTHORITY>"
3660
3661 #. type: Plain text
3662 #: debian-trixie
3663 msgid ""
3664 "Either 0, if the ID given was 0, or the ID of the authorization key matching "
3665 "the specified key, if a nonzero key ID was provided."
3666 msgstr ""
3667 "Равно 0, если был указан идентификатор равный 0, или идентификатор ключа "
3668 "авторизации, совпадающий с указанным ключом, если указан ненулевой "
3669 "идентификатор ключа."
3670
3671 #. type: TP
3672 #: debian-trixie
3673 #, no-wrap
3674 msgid "B<KEYCTL_GET_SECURITY>"
3675 msgstr "B<KEYCTL_GET_SECURITY>"
3676
3677 #. type: Plain text
3678 #: debian-trixie
3679 msgid ""
3680 "The size of the LSM security label string (including the terminating null "
3681 "byte), irrespective of the provided buffer size."
3682 msgstr ""
3683 "Размер описания строки метки безопасности LSM (включая конечный байт null), "
3684 "безотносительно к указанному размеру буфера."
3685
3686 #. type: TP
3687 #: debian-trixie
3688 #, no-wrap
3689 msgid "B<KEYCTL_GET_PERSISTENT>"
3690 msgstr "B<KEYCTL_GET_PERSISTENT>"
3691
3692 #. type: Plain text
3693 #: debian-trixie
3694 msgid "The ID of the persistent keyring."
3695 msgstr "Идентификатор постоянной связки ключей."
3696
3697 #. type: TP
3698 #: debian-trixie
3699 #, no-wrap
3700 msgid "B<KEYCTL_DH_COMPUTE>"
3701 msgstr "B<KEYCTL_DH_COMPUTE>"
3702
3703 #. type: Plain text
3704 #: debian-trixie
3705 msgid ""
3706 "The number of bytes copied to the buffer, or, if I<arg4> is 0, the required "
3707 "buffer size."
3708 msgstr ""
3709 "Количество байт, скопированных в буфер, или требуемый размер буфера, если "
3710 "I<arg4> равно 0."
3711
3712 #. type: TP
3713 #: debian-trixie
3714 #, no-wrap
3715 msgid "All other operations"
3716 msgstr "Остальные операции"
3717
3718 #. type: Plain text
3719 #: debian-trixie
3720 msgid "Zero."
3721 msgstr "Ноль."
3722
3723 #. type: TP
3724 #: debian-trixie
3725 #, no-wrap
3726 msgid "B<EAGAIN>"
3727 msgstr "B<EAGAIN>"
3728
3729 #. type: Plain text
3730 #: debian-trixie
3731 msgid ""
3732 "I<operation> was B<KEYCTL_DH_COMPUTE> and there was an error during crypto "
3733 "module initialization."
3734 msgstr ""
3735 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и при инициализации модуля "
3736 "шифрования возникла ошибка."
3737
3738 #. type: TP
3739 #: debian-trixie
3740 #, no-wrap
3741 msgid "B<EDEADLK>"
3742 msgstr "B<EDEADLK>"
3743
3744 #. type: Plain text
3745 #: debian-trixie
3746 msgid ""
3747 "I<operation> was B<KEYCTL_LINK> and the requested link would result in a "
3748 "cycle."
3749 msgstr ""
3750 "Значение I<operation> равно B<KEYCTL_LINK> и запрошенная связь привела бы "
3751 "зацикливанию."
3752
3753 #. type: Plain text
3754 #: debian-trixie
3755 msgid ""
3756 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and the requested keyring "
3757 "restriction would result in a cycle."
3758 msgstr ""
3759 "Значение I<operation> равно B<KEYCTL_RESTRICT_KEYRING> и запрошенная связь "
3760 "привела бы зацикливанию."
3761
3762 #. type: TP
3763 #: debian-trixie
3764 #, no-wrap
3765 msgid "B<EEXIST>"
3766 msgstr "B<EEXIST>"
3767
3768 #. type: Plain text
3769 #: debian-trixie
3770 msgid ""
3771 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and keyring provided in I<arg2> "
3772 "argument already has a restriction set."
3773 msgstr ""
3774 "Значение I<operation> равно B<KEYCTL_RESTRICT_KEYRING> и связка ключей из "
3775 "аргумента I<arg2> уже содержит набор ограничений."
3776
3777 #. type: TP
3778 #: debian-trixie
3779 #, no-wrap
3780 msgid "B<EFAULT>"
3781 msgstr "B<EFAULT>"
3782
3783 #. type: Plain text
3784 #: debian-trixie
3785 msgid ""
3786 "I<operation> was B<KEYCTL_DH_COMPUTE> and one of the following has failed:"
3787 msgstr ""
3788 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и возникла ошибки в одной "
3789 "из следующих операций:"
3790
3791 #. type: Plain text
3792 #: debian-trixie
3793 msgid ""
3794 "copying of the I<struct keyctl_dh_params>, provided in the I<arg2> argument, "
3795 "from user space;"
3796 msgstr ""
3797 "копирования I<struct keyctl_dh_params>, указанном в аргументе I<arg2>,из "
3798 "пользовательского пространства"
3799
3800 #. type: Plain text
3801 #: debian-trixie
3802 msgid ""
3803 "copying of the I<struct keyctl_kdf_params>, provided in the non-NULL I<arg5> "
3804 "argument, from user space (in case kernel supports performing KDF operation "
3805 "on DH operation result);"
3806 msgstr ""
3807 "копирования I<struct keyctl_kdf_params>, указанном в аргументе I<arg5> не "
3808 "равном NULL,из пользовательского пространства (случай, когда ядро "
3809 "поддерживает выполнение операции KDF над результатом операции DH)"
3810
3811 #. type: Plain text
3812 #: debian-trixie
3813 msgid ""
3814 "copying of data pointed by the I<hashname> field of the I<struct "
3815 "keyctl_kdf_params> from user space;"
3816 msgstr ""
3817 "копирования данные, указанных в поле I<hashname> с типом I<struct "
3818 "keyctl_kdf_params> из пользовательского пространства"
3819
3820 #. type: Plain text
3821 #: debian-trixie
3822 msgid ""
3823 "copying of data pointed by the I<otherinfo> field of the I<struct "
3824 "keyctl_kdf_params> from user space if the I<otherinfolen> field was nonzero;"
3825 msgstr ""
3826 "копирования данные, указанных в поле I<otherinfo> с типом I<struct "
3827 "keyctl_kdf_params> из пользовательского пространства и поле I<otherinfolen> "
3828 "не равно нулю"
3829
3830 #. type: Plain text
3831 #: debian-trixie
3832 msgid "copying of the result to user space."
3833 msgstr "копирования результата в пользовательское пространство"
3834
3835 #. type: Plain text
3836 #: debian-trixie
3837 msgid ""
3838 "I<operation> was B<KEYCTL_SETPERM> and an invalid permission bit was "
3839 "specified in I<arg3>."
3840 msgstr ""
3841 "Значение I<operation> равно B<KEYCTL_SETPERM> и в I<arg3> указан неверный "
3842 "бит прав."
3843
3844 #. type: Plain text
3845 #: debian-trixie
3846 #, fuzzy
3847 #| msgid ""
3848 #| "The size of the description (including the terminating null byte), "
3849 #| "irrespective of the provided buffer size."
3850 msgid ""
3851 "I<operation> was B<KEYCTL_SEARCH> and the size of the description in I<arg4> "
3852 "(including the terminating null byte) exceeded 4096 bytes."
3853 msgstr ""
3854 "Размер описания (включая конечный байт null), безотносительно к указанному "
3855 "размеру буфера."
3856
3857 #. type: TP
3858 #: debian-trixie
3859 #, fuzzy, no-wrap
3860 #| msgid "B<EINVAL> (since Linux 4.3)"
3861 msgid "B<EINVAL> (before Linux 4.12)"
3862 msgstr "B<EINVAL> (начиная с Linux 4.3)"
3863
3864 #. type: Plain text
3865 #: debian-trixie
3866 msgid "I<operation> was B<KEYCTL_DH_COMPUTE>, argument I<arg5> was non-NULL."
3867 msgstr ""
3868 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и аргумент I<arg5> не равен "
3869 "NULL."
3870
3871 #. type: Plain text
3872 #: debian-trixie
3873 msgid ""
3874 "I<operation> was B<KEYCTL_DH_COMPUTE> And the digest size of the hashing "
3875 "algorithm supplied is zero."
3876 msgstr ""
3877 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и указанный размер свёртки "
3878 "алгоритма хэширования равен нулю."
3879
3880 #. type: Plain text
3881 #: debian-trixie
3882 msgid ""
3883 "I<operation> was B<KEYCTL_DH_COMPUTE> and the buffer size provided is not "
3884 "enough to hold the result. Provide 0 as a buffer size in order to obtain "
3885 "the minimum buffer size."
3886 msgstr ""
3887 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE>, но указанный размер буфера "
3888 "недостаточен для размещения результата. Укажите 0 в качестве размера буфера, "
3889 "чтобы получить минимальный размер буфера."
3890
3891 #. type: Plain text
3892 #: debian-trixie
3893 msgid ""
3894 "I<operation> was B<KEYCTL_DH_COMPUTE> and the hash name provided in the "
3895 "I<hashname> field of the I<struct keyctl_kdf_params> pointed by I<arg5> "
3896 "argument is too big (the limit is implementation-specific and varies between "
3897 "kernel versions, but it is deemed big enough for all valid algorithm names)."
3898 msgstr ""
3899 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и указанное имя хэша в поле "
3900 "I<hashname> структуры I<struct keyctl_kdf_params>, на которую указывает "
3901 "аргумент I<arg5>, слишком велико (ограничение зависит от реализации и "
3902 "различно в разных версиях ядра, но считается достаточно большим для всех "
3903 "допустимых имён алгоритмов)."
3904
3905 #. commit 4f9dabfaf8df971f8a3b6aa324f8f817be38d538
3906 #. type: Plain text
3907 #: debian-trixie
3908 msgid ""
3909 "I<operation> was B<KEYCTL_DH_COMPUTE> and the I<__spare> field of the "
3910 "I<struct keyctl_kdf_params> provided in the I<arg5> argument contains "
3911 "nonzero values."
3912 msgstr ""
3913 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и поле I<__spare> структуры "
3914 "I<struct keyctl_kdf_params>, на которую указывает аргумент I<arg5>, содержит "
3915 "ненулевое значение."
3916
3917 #. type: TP
3918 #: debian-trixie
3919 #, no-wrap
3920 msgid "B<ELOOP>"
3921 msgstr "B<ELOOP>"
3922
3923 #. type: Plain text
3924 #: debian-trixie
3925 msgid ""
3926 "I<operation> was B<KEYCTL_LINK> and the requested link would cause the "
3927 "maximum nesting depth for keyrings to be exceeded."
3928 msgstr ""
3929 "Значение I<operation> равно B<KEYCTL_LINK> и запрошенная связь привела бы к "
3930 "превышению количества вложенных друг в друга связок ключей."
3931
3932 #. type: TP
3933 #: debian-trixie
3934 #, no-wrap
3935 msgid "B<EMSGSIZE>"
3936 msgstr "B<EMSGSIZE>"
3937
3938 #. type: Plain text
3939 #: debian-trixie
3940 msgid ""
3941 "I<operation> was B<KEYCTL_DH_COMPUTE> and the buffer length exceeds "
3942 "B<KEYCTL_KDF_MAX_OUTPUT_LEN> (which is 1024 currently) or the "
3943 "I<otherinfolen> field of the I<struct keyctl_kdf_parms> passed in I<arg5> "
3944 "exceeds B<KEYCTL_KDF_MAX_OI_LEN> (which is 64 currently)."
3945 msgstr ""
3946 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и длина буфера превышает "
3947 "B<KEYCTL_KDF_MAX_OUTPUT_LEN> (в данный момент равна 1024) или поле "
3948 "I<otherinfolen> структуры I<struct keyctl_kdf_parms>, переданной в I<arg5>, "
3949 "превышает B<KEYCTL_KDF_MAX_OI_LEN> (в данный момент равно 64)."
3950
3951 #. type: TP
3952 #: debian-trixie
3953 #, fuzzy, no-wrap
3954 #| msgid "B<ENFILE> (Linux kernels before 3.13)"
3955 msgid "B<ENFILE> (before Linux 3.13)"
3956 msgstr "B<ENFILE> (ядра Linux до 3.13)"
3957
3958 #. commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69
3959 #. type: Plain text
3960 #: debian-trixie
3961 msgid ""
3962 "I<operation> was B<KEYCTL_LINK> and the keyring is full. (Before Linux "
3963 "3.13, the available space for storing keyring links was limited to a single "
3964 "page of memory; since Linux 3.13, there is no fixed limit.)"
3965 msgstr ""
3966 "Значение I<operation> равно B<KEYCTL_LINK> и связка ключей заполнена (до "
3967 "Linux 3.13 доступное место для хранения связей связки ключей было ограничено "
3968 "одной страницей памяти; начиная с Linux 3.13 жёсткого ограничения нет)."
3969
3970 #. type: TP
3971 #: debian-trixie
3972 #, no-wrap
3973 msgid "B<ENOENT>"
3974 msgstr "B<ENOENT>"
3975
3976 #. type: Plain text
3977 #: debian-trixie
3978 msgid ""
3979 "I<operation> was B<KEYCTL_UNLINK> and the key to be unlinked isn't linked to "
3980 "the keyring."
3981 msgstr ""
3982 "Значение I<operation> равно B<KEYCTL_UNLINK> и отцепляемый ключ не прицеплен "
3983 "к связке ключей."
3984
3985 #. type: Plain text
3986 #: debian-trixie
3987 msgid ""
3988 "I<operation> was B<KEYCTL_DH_COMPUTE> and the hashing algorithm specified in "
3989 "the I<hashname> field of the I<struct keyctl_kdf_params> pointed by I<arg5> "
3990 "argument hasn't been found."
3991 msgstr ""
3992 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и алгоритм хэширования, "
3993 "указанный в поле I<hashname> структуры I<struct keyctl_kdf_params>, на "
3994 "которую указывает аргумент I<arg5>, не найден."
3995
3996 #. type: Plain text
3997 #: debian-trixie
3998 msgid ""
3999 "I<operation> was B<KEYCTL_RESTRICT_KEYRING> and the type provided in I<arg3> "
4000 "argument doesn't support setting key linking restrictions."
4001 msgstr ""
4002 "Значение I<operation> равно B<KEYCTL_RESTRICT_KEYRING> и тип из аргумента "
4003 "I<arg3> не поддерживает ограничения установленным ключом сцепления."
4004
4005 #. type: Plain text
4006 #: debian-trixie
4007 msgid ""
4008 "The value B<KEYCTL_GET_KEYRING_ID> was specified in I<operation>, the key "
4009 "specified in I<arg2> did not exist, and I<arg3> was zero (meaning don't "
4010 "create the key if it didn't exist)."
4011 msgstr ""
4012 "Значение I<operation> равно B<KEYCTL_GET_KEYRING_ID>, ключ, указанный "
4013 "I<arg2>, не существует и значение I<arg3> равно нулю (то есть, не создавать "
4014 "ключ, если он не существует)."
4015
4016 #. type: TP
4017 #: debian-trixie
4018 #, no-wrap
4019 msgid "B<EOPNOTSUPP>"
4020 msgstr "B<EOPNOTSUPP>"
4021
4022 #. type: Plain text
4023 #: debian-trixie
4024 #, fuzzy
4025 #| msgid ""
4026 #| "I<operation> was B<KEYCTL_READ> and the key type does not support reading "
4027 #| "(e.g., the type is I<\"login\">)."
4028 msgid ""
4029 "I<operation> was B<KEYCTL_READ> and the key type does not support reading "
4030 "(e.g., the type is I<\\[dq]login\\[dq]>)."
4031 msgstr ""
4032 "Значение I<operation> равно B<KEYCTL_READ> и тип ключа не поддерживает "
4033 "чтение (например, тип I<\"login\">)."
4034
4035 #. type: Plain text
4036 #: debian-trixie
4037 msgid ""
4038 "I<operation> was B<KEYCTL_UPDATE> and the key type does not support updating."
4039 msgstr ""
4040 "Значение I<operation> равно B<KEYCTL_UPDATE> и тип ключа не поддерживает "
4041 "обновление."
4042
4043 #. type: Plain text
4044 #: debian-trixie
4045 msgid ""
4046 "I<operation> was B<KEYCTL_RESTRICT_KEYRING>, the type provided in I<arg3> "
4047 "argument was \"asymmetric\", and the key specified in the restriction "
4048 "specification provided in I<arg4> has type other than \"asymmetric\" or "
4049 "\"keyring\"."
4050 msgstr ""
4051 "Значение I<operation> равно B<KEYCTL_RESTRICT_KEYRING>, тип из аргумента "
4052 "I<arg3> равен «asymmetric» и ключ, указанный в определении ограничения, "
4053 "предоставляемый аргументом I<arg4>, имеет тип не «asymmetric» или «keyring»."
4054
4055 #. type: TP
4056 #: debian-trixie
4057 #, no-wrap
4058 msgid "B<EPERM>"
4059 msgstr "B<EPERM>"
4060
4061 #. type: Plain text
4062 #: debian-trixie
4063 msgid ""
4064 "I<operation> was B<KEYCTL_GET_PERSISTENT>, I<arg2> specified a UID other "
4065 "than the calling thread's real or effective UID, and the caller did not have "
4066 "the B<CAP_SETUID> capability."
4067 msgstr ""
4068 "Значение I<operation> равно B<KEYCTL_GET_PERSISTENT>, в I<arg2> указан UID, "
4069 "отличающийся от реального или действующего UID вызывающей нити, и вызывающий "
4070 "не имеет мандата B<CAP_SETUID>."
4071
4072 #. type: Plain text
4073 #: debian-trixie
4074 msgid ""
4075 "I<operation> was B<KEYCTL_SESSION_TO_PARENT> and either: all of the UIDs "
4076 "(GIDs) of the parent process do not match the effective UID (GID) of the "
4077 "calling process; the UID of the parent's existing session keyring or the UID "
4078 "of the caller's session keyring did not match the effective UID of the "
4079 "caller; the parent process is not single-thread; or the parent process is "
4080 "B<init>(1) or a kernel thread."
4081 msgstr ""
4082 "Значение I<operation> равно B<KEYCTL_SESSION_TO_PARENT> и: не один из UID "
4083 "(GID) родительского процесса не совпадают с действующим UID (GID) "
4084 "вызывающего процесса; UID существующей связки ключей сеанса родителя или UID "
4085 "связки ключей сеанса вызывающего не совпадает с действующим UID вызывающего; "
4086 "родительский процесс состоит из нескольких нитей; родительский процесс это "
4087 "B<init>(1) или нить ядра."
4088
4089 #. type: TP
4090 #: debian-trixie
4091 #, no-wrap
4092 msgid "B<ETIMEDOUT>"
4093 msgstr "B<ETIMEDOUT>"
4094
4095 #. type: Plain text
4096 #: debian-trixie
4097 msgid ""
4098 "I<operation> was B<KEYCTL_DH_COMPUTE> and the initialization of crypto "
4099 "modules has timed out."
4100 msgstr ""
4101 "Значение I<operation> равно B<KEYCTL_DH_COMPUTE> и истёк срок инициализации "
4102 "модулей шифрования."
4103
4104 #. type: Plain text
4105 #: debian-trixie fedora-44 fedora-rawhide
4106 #, no-wrap
4107 msgid ""
4108 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
4109 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
4110 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
4111 "$ B<./t_request_key user mykey somepayloaddata>\n"
4112 "Key ID is 20d035bf\n"
4113 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
4114 msgstr ""
4115 "$ B<cc -o key_instantiate key_instantiate.c -lkeyutils>\n"
4116 "$ B<sudo mv /sbin/request-key /sbin/request-key.backup>\n"
4117 "$ B<sudo cp key_instantiate /sbin/request-key>\n"
4118 "$ B<./t_request_key user mykey somepayloaddata>\n"
4119 "Идентификатор ключа равен 20d035bf\n"
4120 "$ B<sudo mv /sbin/request-key.backup /sbin/request-key>\n"
4121
4122 #. type: Plain text
4123 #: debian-trixie fedora-44 fedora-rawhide
4124 #, fuzzy, no-wrap
4125 #| msgid ""
4126 #| "Command line arguments:\n"
4127 #| " argv[0]: /sbin/request-key\n"
4128 #| " operation: create\n"
4129 #| " key_to_instantiate: 20d035bf\n"
4130 #| " UID: 1000\n"
4131 #| " GID: 1000\n"
4132 #| " thread_keyring: 0\n"
4133 #| " process_keyring: 0\n"
4134 #| " session_keyring: 256e6a6\n"
4135 msgid ""
4136 "$ B<cat /tmp/key_instantiate.log>\n"
4137 "Time: Mon Nov 7 13:06:47 2016\n"
4138 "\\&\n"
4139 "Command line arguments:\n"
4140 " argv[0]: /sbin/request-key\n"
4141 " operation: create\n"
4142 " key_to_instantiate: 20d035bf\n"
4143 " UID: 1000\n"
4144 " GID: 1000\n"
4145 " thread_keyring: 0\n"
4146 " process_keyring: 0\n"
4147 " session_keyring: 256e6a6\n"
4148 "\\&\n"
4149 "Key description: user;1000;1000;3f010000;mykey\n"
4150 "Auth key payload: somepayloaddata\n"
4151 "Destination keyring: 256e6a6\n"
4152 "Auth key description: .request_key_auth;1000;1000;0b010000;20d035bf\n"
4153 msgstr ""
4154 "Аргументы командной строки:\n"
4155 " argv[0]: /sbin/request-key\n"
4156 " operation: create\n"
4157 " key_to_instantiate: 20d035bf\n"
4158 " UID: 1000\n"
4159 " GID: 1000\n"
4160 " thread_keyring: 0\n"
4161 " process_keyring: 0\n"
4162 " session_keyring: 256e6a6\n"
4163
4164 #. type: Plain text
4165 #: debian-trixie fedora-44 fedora-rawhide
4166 #, fuzzy, no-wrap
4167 #| msgid ""
4168 #| "$ B<cat /proc/keys | egrep \\(aqmykey|256e6a6\\(aq>\n"
4169 #| "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
4170 #| "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
4171 msgid ""
4172 "$ B<cat /proc/keys | egrep \\[aq]mykey|256e6a6\\[aq]>\n"
4173 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
4174 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
4175 msgstr ""
4176 "$ B<cat /proc/keys | egrep \\(aqmykey|256e6a6\\(aq>\n"
4177 "0256e6a6 I--Q--- 194 perm 3f030000 1000 1000 keyring _ses: 3\n"
4178 "20d035bf I--Q--- 1 perm 3f010000 1000 1000 user mykey: 16\n"
4179
4180 #. type: Plain text
4181 #: debian-trixie fedora-44 fedora-rawhide
4182 #, no-wrap
4183 msgid ""
4184 "/* key_instantiate.c */\n"
4185 "\\&\n"
4186 "#include E<lt>errno.hE<gt>\n"
4187 "#include E<lt>keyutils.hE<gt>\n"
4188 "#include E<lt>stdint.hE<gt>\n"
4189 "#include E<lt>stdio.hE<gt>\n"
4190 "#include E<lt>stdlib.hE<gt>\n"
4191 "#include E<lt>string.hE<gt>\n"
4192 "#include E<lt>sys/types.hE<gt>\n"
4193 "#include E<lt>time.hE<gt>\n"
4194 "\\&\n"
4195 "#ifndef KEY_SPEC_REQUESTOR_KEYRING\n"
4196 "#define KEY_SPEC_REQUESTOR_KEYRING (-8)\n"
4197 "#endif\n"
4198 "\\&\n"
4199 "int\n"
4200 "main(int argc, char *argv[])\n"
4201 "{\n"
4202 " int akp_size; /* Size of auth_key_payload */\n"
4203 " int auth_key;\n"
4204 " char dbuf[256];\n"
4205 " char auth_key_payload[256];\n"
4206 " char *operation;\n"
4207 " FILE *fp;\n"
4208 " gid_t gid;\n"
4209 " uid_t uid;\n"
4210 " time_t t;\n"
4211 " key_serial_t key_to_instantiate, dest_keyring;\n"
4212 " key_serial_t thread_keyring, process_keyring, session_keyring;\n"
4213 "\\&\n"
4214 " if (argc != 8) {\n"
4215 " fprintf(stderr, \"Usage: %s op key uid gid thread_keyring \"\n"
4216 " \"process_keyring session_keyring\\[rs]n\", argv[0]);\n"
4217 " exit(EXIT_FAILURE);\n"
4218 " }\n"
4219 "\\&\n"
4220 " fp = fopen(\"/tmp/key_instantiate.log\", \"w\");\n"
4221 " if (fp == NULL)\n"
4222 " exit(EXIT_FAILURE);\n"
4223 "\\&\n"
4224 " setbuf(fp, NULL);\n"
4225 "\\&\n"
4226 " t = time(NULL);\n"
4227 " fprintf(fp, \"Time: %s\\[rs]n\", ctime(&t));\n"
4228 "\\&\n"
4229 " /*\n"
4230 " * The kernel passes a fixed set of arguments to the program\n"
4231 " * that it execs; fetch them.\n"
4232 " */\n"
4233 " operation = argv[1];\n"
4234 " key_to_instantiate = atoi(argv[2]);\n"
4235 " uid = atoi(argv[3]);\n"
4236 " gid = atoi(argv[4]);\n"
4237 " thread_keyring = atoi(argv[5]);\n"
4238 " process_keyring = atoi(argv[6]);\n"
4239 " session_keyring = atoi(argv[7]);\n"
4240 "\\&\n"
4241 " fprintf(fp, \"Command line arguments:\\[rs]n\");\n"
4242 " fprintf(fp, \" argv[0]: %s\\[rs]n\", argv[0]);\n"
4243 " fprintf(fp, \" operation: %s\\[rs]n\", operation);\n"
4244 " fprintf(fp, \" key_to_instantiate: %jx\\[rs]n\",\n"
4245 " (uintmax_t) key_to_instantiate);\n"
4246 " fprintf(fp, \" UID: %jd\\[rs]n\", (intmax_t) uid);\n"
4247 " fprintf(fp, \" GID: %jd\\[rs]n\", (intmax_t) gid);\n"
4248 " fprintf(fp, \" thread_keyring: %jx\\[rs]n\",\n"
4249 " (uintmax_t) thread_keyring);\n"
4250 " fprintf(fp, \" process_keyring: %jx\\[rs]n\",\n"
4251 " (uintmax_t) process_keyring);\n"
4252 " fprintf(fp, \" session_keyring: %jx\\[rs]n\",\n"
4253 " (uintmax_t) session_keyring);\n"
4254 " fprintf(fp, \"\\[rs]n\");\n"
4255 "\\&\n"
4256 " /*\n"
4257 " * Assume the authority to instantiate the key named in argv[2].\n"
4258 " */\n"
4259 " if (keyctl(KEYCTL_ASSUME_AUTHORITY, key_to_instantiate) == -1) {\n"
4260 " fprintf(fp, \"KEYCTL_ASSUME_AUTHORITY failed: %s\\[rs]n\",\n"
4261 " strerror(errno));\n"
4262 " exit(EXIT_FAILURE);\n"
4263 " }\n"
4264 "\\&\n"
4265 " /*\n"
4266 " * Fetch the description of the key that is to be instantiated.\n"
4267 " */\n"
4268 " if (keyctl(KEYCTL_DESCRIBE, key_to_instantiate,\n"
4269 " dbuf, sizeof(dbuf)) == -1) {\n"
4270 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
4271 " exit(EXIT_FAILURE);\n"
4272 " }\n"
4273 "\\&\n"
4274 " fprintf(fp, \"Key description: %s\\[rs]n\", dbuf);\n"
4275 "\\&\n"
4276 " /*\n"
4277 " * Fetch the payload of the authorization key, which is\n"
4278 " * actually the callout data given to request_key().\n"
4279 " */\n"
4280 " akp_size = keyctl(KEYCTL_READ, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4281 " auth_key_payload, sizeof(auth_key_payload));\n"
4282 " if (akp_size == -1) {\n"
4283 " fprintf(fp, \"KEYCTL_READ failed: %s\\[rs]n\", strerror(errno));\n"
4284 " exit(EXIT_FAILURE);\n"
4285 " }\n"
4286 "\\&\n"
4287 " auth_key_payload[akp_size] = \\[aq]\\[rs]0\\[aq];\n"
4288 " fprintf(fp, \"Auth key payload: %s\\[rs]n\", auth_key_payload);\n"
4289 "\\&\n"
4290 " /*\n"
4291 " * For interest, get the ID of the authorization key and\n"
4292 " * display it.\n"
4293 " */\n"
4294 " auth_key = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4295 " KEY_SPEC_REQKEY_AUTH_KEY);\n"
4296 " if (auth_key == -1) {\n"
4297 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
4298 " strerror(errno));\n"
4299 " exit(EXIT_FAILURE);\n"
4300 " }\n"
4301 "\\&\n"
4302 " fprintf(fp, \"Auth key ID: %jx\\[rs]n\", (uintmax_t) auth_key);\n"
4303 "\\&\n"
4304 " /*\n"
4305 " * Fetch key ID for the request_key(2) destination keyring.\n"
4306 " */\n"
4307 " dest_keyring = keyctl(KEYCTL_GET_KEYRING_ID,\n"
4308 " KEY_SPEC_REQUESTOR_KEYRING);\n"
4309 " if (dest_keyring == -1) {\n"
4310 " fprintf(fp, \"KEYCTL_GET_KEYRING_ID failed: %s\\[rs]n\",\n"
4311 " strerror(errno));\n"
4312 " exit(EXIT_FAILURE);\n"
4313 " }\n"
4314 "\\&\n"
4315 " fprintf(fp, \"Destination keyring: %jx\\[rs]n\", (uintmax_t) dest_keyring);\n"
4316 "\\&\n"
4317 " /*\n"
4318 " * Fetch the description of the authorization key. This\n"
4319 " * allows us to see the key type, UID, GID, permissions,\n"
4320 " * and description (name) of the key. Among other things,\n"
4321 " * we will see that the name of the key is a hexadecimal\n"
4322 " * string representing the ID of the key to be instantiated.\n"
4323 " */\n"
4324 " if (keyctl(KEYCTL_DESCRIBE, KEY_SPEC_REQKEY_AUTH_KEY,\n"
4325 " dbuf, sizeof(dbuf)) == -1)\n"
4326 " {\n"
4327 " fprintf(fp, \"KEYCTL_DESCRIBE failed: %s\\[rs]n\", strerror(errno));\n"
4328 " exit(EXIT_FAILURE);\n"
4329 " }\n"
4330 "\\&\n"
4331 " fprintf(fp, \"Auth key description: %s\\[rs]n\", dbuf);\n"
4332 "\\&\n"
4333 " /*\n"
4334 " * Instantiate the key using the callout data that was supplied\n"
4335 " * in the payload of the authorization key.\n"
4336 " */\n"
4337 " if (keyctl(KEYCTL_INSTANTIATE, key_to_instantiate,\n"
4338 " auth_key_payload, akp_size + 1, dest_keyring) == -1)\n"
4339 " {\n"
4340 " fprintf(fp, \"KEYCTL_INSTANTIATE failed: %s\\[rs]n\",\n"
4341 " strerror(errno));\n"
4342 " exit(EXIT_FAILURE);\n"
4343 " }\n"
4344 "\\&\n"
4345 " exit(EXIT_SUCCESS);\n"
4346 "}\n"
4347 msgstr ""
4348
4349 #. .BR find_key_by_type_and_name (3)
4350 #. There is a man page, but this function seems not to exist
4351 #. type: Plain text
4352 #: debian-trixie
4353 msgid ""
4354 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
4355 "B<keyctl_assume_authority>(3), B<keyctl_chown>(3), B<keyctl_clear>(3), "
4356 "B<keyctl_describe>(3), B<keyctl_describe_alloc>(3), B<keyctl_dh_compute>(3), "
4357 "B<keyctl_dh_compute_alloc>(3), B<keyctl_get_keyring_ID>(3), "
4358 "B<keyctl_get_persistent>(3), B<keyctl_get_security>(3), "
4359 "B<keyctl_get_security_alloc>(3), B<keyctl_instantiate>(3), "
4360 "B<keyctl_instantiate_iov>(3), B<keyctl_invalidate>(3), "
4361 "B<keyctl_join_session_keyring>(3), B<keyctl_link>(3), B<keyctl_negate>(3), "
4362 "B<keyctl_read>(3), B<keyctl_read_alloc>(3), B<keyctl_reject>(3), "
4363 "B<keyctl_revoke>(3), B<keyctl_search>(3), B<keyctl_session_to_parent>(3), "
4364 "B<keyctl_set_reqkey_keyring>(3), B<keyctl_set_timeout>(3), "
4365 "B<keyctl_setperm>(3), B<keyctl_unlink>(3), B<keyctl_update>(3), "
4366 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
4367 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
4368 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
4369 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
4370 "session-keyring>(7), B<request-key>(8)"
4371 msgstr ""
4372 "B<keyctl>(1), B<add_key>(2), B<request_key>(2), B<keyctl>(3), "
4373 "B<keyctl_assume_authority>(3), B<keyctl_chown>(3), B<keyctl_clear>(3), "
4374 "B<keyctl_describe>(3), B<keyctl_describe_alloc>(3), B<keyctl_dh_compute>(3), "
4375 "B<keyctl_dh_compute_alloc>(3), B<keyctl_get_keyring_ID>(3), "
4376 "B<keyctl_get_persistent>(3), B<keyctl_get_security>(3), "
4377 "B<keyctl_get_security_alloc>(3), B<keyctl_instantiate>(3), "
4378 "B<keyctl_instantiate_iov>(3), B<keyctl_invalidate>(3), "
4379 "B<keyctl_join_session_keyring>(3), B<keyctl_link>(3), B<keyctl_negate>(3), "
4380 "B<keyctl_read>(3), B<keyctl_read_alloc>(3), B<keyctl_reject>(3), "
4381 "B<keyctl_revoke>(3), B<keyctl_search>(3), B<keyctl_session_to_parent>(3), "
4382 "B<keyctl_set_reqkey_keyring>(3), B<keyctl_set_timeout>(3), "
4383 "B<keyctl_setperm>(3), B<keyctl_unlink>(3), B<keyctl_update>(3), "
4384 "B<recursive_key_scan>(3), B<recursive_session_key_scan>(3), "
4385 "B<capabilities>(7), B<credentials>(7), B<keyrings>(7), B<keyutils>(7), "
4386 "B<persistent-keyring>(7), B<process-keyring>(7), B<session-keyring>(7), "
4387 "B<thread-keyring>(7), B<user-keyring>(7), B<user_namespaces>(7), B<user-"
4388 "session-keyring>(7), B<request-key>(8)"
4389
4390 #. type: Plain text
4391 #: debian-trixie fedora-44 fedora-rawhide
4392 msgid ""
4393 "The kernel source files under I<Documentation/security/keys/> (or, before "
4394 "Linux 4.13, in the file I<Documentation/security/keys.txt>)."
4395 msgstr ""
4396 "Файл из дерева исходного кода ядра I<Documentation/security/keys/> (до Linux "
4397 "4.13 — I<Documentation/security/keys.txt>)."
4398
4399 #. type: TH
4400 #: fedora-44 fedora-rawhide
4401 #, no-wrap
4402 msgid "2024-08-21"
4403 msgstr "21 августа 2024 г."
4404
4405 #. type: TH
4406 #: fedora-44 fedora-rawhide
4407 #, no-wrap
4408 msgid "Linux man-pages 6.13"
4409 msgstr "Страницы руководства Linux 6.13"
4410
4411 #. type: TH
4412 #: mageia-cauldron
4413 #, no-wrap
4414 msgid "Linux man-pages 6.17"
4415 msgstr "Страницы руководства Linux 6.17"
4416
4417 #. type: TH
4418 #: opensuse-leap-16-1 opensuse-tumbleweed
4419 #, no-wrap
4420 msgid "Linux man-pages (unreleased)"
4421 msgstr "Страницы руководства Linux (не выпущены)"