Debian Codegraph @

po/ar/man2/keyctl.2.po

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