Debian Codegraph @

templates/man2/capget.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "capget"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "capget, capset - set/get capabilities of thread(s)"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>linux/capability.hE<gt>> /* Definition of B<CAP_*> and\n"
78 "B< _LINUX_CAPABILITY_*> constants */\n"
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<int syscall(SYS_capget, cap_user_header_t >I<hdrp>B<,>\n"
89 "B< cap_user_data_t >I<datap>B<);>\n"
90 "B<int syscall(SYS_capset, cap_user_header_t >I<hdrp>B<,>\n"
91 "B< const cap_user_data_t >I<datap>B<);>\n"
92 msgstr ""
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "I<Note>: glibc provides no wrappers for these system calls, necessitating "
99 "the use of B<syscall>(2)."
100 msgstr ""
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "These two system calls are the raw kernel interface for getting and setting "
114 "thread capabilities. Not only are these system calls specific to Linux, but "
115 "the kernel API is likely to change and use of these system calls (in "
116 "particular the format of the I<cap_user_*_t> types) is subject to extension "
117 "with each kernel revision, but old programs will keep working."
118 msgstr ""
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "The portable interfaces are B<cap_set_proc>(3) and B<cap_get_proc>(3); if "
125 "possible, you should use those interfaces in applications; see NOTES."
126 msgstr ""
127
128 #. type: SS
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid "Current details"
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "Now that you have been warned, some current kernel details. The structures "
140 "are defined as follows."
141 msgstr ""
142
143 #. commit e338d263a76af78fe8f38a72131188b58fceb591
144 #. Added 64 bit capability support
145 #. commit ca05a99a54db1db5bca72eccb5866d2a86f8517f
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid ""
151 "#define _LINUX_CAPABILITY_VERSION_1 0x19980330\n"
152 "#define _LINUX_CAPABILITY_U32S_1 1\n"
153 "\\&\n"
154 " /* V2 added in Linux 2.6.25; deprecated */\n"
155 "#define _LINUX_CAPABILITY_VERSION_2 0x20071026\n"
156 "#define _LINUX_CAPABILITY_U32S_2 2\n"
157 "\\&\n"
158 " /* V3 added in Linux 2.6.26 */\n"
159 "#define _LINUX_CAPABILITY_VERSION_3 0x20080522\n"
160 "#define _LINUX_CAPABILITY_U32S_3 2\n"
161 "\\&\n"
162 "typedef struct __user_cap_header_struct {\n"
163 " __u32 version;\n"
164 " int pid;\n"
165 "} *cap_user_header_t;\n"
166 "\\&\n"
167 "typedef struct __user_cap_data_struct {\n"
168 " __u32 effective;\n"
169 " __u32 permitted;\n"
170 " __u32 inheritable;\n"
171 "} *cap_user_data_t;\n"
172 msgstr ""
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "The I<effective>, I<permitted>, and I<inheritable> fields are bit masks of "
179 "the capabilities defined in B<capabilities>(7). Note that the B<CAP_*> "
180 "values are bit indexes and need to be bit-shifted before ORing into the bit "
181 "fields. To define the structures for passing to the system call, you have "
182 "to use the I<struct __user_cap_header_struct> and I<struct "
183 "__user_cap_data_struct> names because the typedefs are only pointers."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "Kernels prior to Linux 2.6.25 prefer 32-bit capabilities with version "
191 "B<_LINUX_CAPABILITY_VERSION_1>. Linux 2.6.25 added 64-bit capability sets, "
192 "with version B<_LINUX_CAPABILITY_VERSION_2>. There was, however, an API "
193 "glitch, and Linux 2.6.26 added B<_LINUX_CAPABILITY_VERSION_3> to fix the "
194 "problem."
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "Note that 64-bit capabilities use I<datap[0]> and I<datap[1]>, whereas 32-"
202 "bit capabilities use only I<datap[0]>."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "On kernels that support file capabilities (VFS capabilities support), these "
210 "system calls behave slightly differently. This support was added as an "
211 "option in Linux 2.6.24, and became fixed (nonoptional) in Linux 2.6.33."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid ""
218 "For B<capget>() calls, one can probe the capabilities of any process by "
219 "specifying its process ID with the I<hdrp-E<gt>pid> field value."
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid "For details on the data, see B<capabilities>(7)."
226 msgstr ""
227
228 #. type: SS
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "With VFS capabilities support"
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "VFS capabilities employ a file extended attribute (see B<xattr>(7)) to "
240 "allow capabilities to be attached to executables. This privilege model "
241 "obsoletes kernel support for one process asynchronously setting the "
242 "capabilities of another. That is, on kernels that have VFS capabilities "
243 "support, when calling B<capset>(), the only permitted values for I<hdrp-"
244 "E<gt>pid> are 0 or, equivalently, the value returned by B<gettid>(2)."
245 msgstr ""
246
247 #. type: SS
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "Without VFS capabilities support"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
256 #: opensuse-tumbleweed
257 msgid ""
258 "On older kernels that do not provide VFS capabilities support B<capset>() "
259 "can, if the caller has the B<CAP_SETPCAP> capability, be used to change not "
260 "only the caller's own capabilities, but also the capabilities of other "
261 "threads. The call operates on the capabilities of the thread specified by "
262 "the I<pid> field of I<hdrp> when that is nonzero, or on the capabilities of "
263 "the calling thread if I<pid> is 0. If I<pid> refers to a single-threaded "
264 "process, then I<pid> can be specified as a traditional process ID; operating "
265 "on a thread of a multithreaded process requires a thread ID of the type "
266 "returned by B<gettid>(2). For B<capset>(), I<pid> can also be: -1, meaning "
267 "perform the change on all threads except the caller and B<init>(1); or a "
268 "value less than -1, in which case the change is applied to all members of "
269 "the process group whose ID is I<-pid>."
270 msgstr ""
271
272 #. type: SH
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "RETURN VALUE"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
284 "to indicate the error."
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "The calls fail with the error B<EINVAL>, and set the I<version> field of "
292 "I<hdrp> to the kernel preferred value of B<_LINUX_CAPABILITY_VERSION_?> when "
293 "an unsupported I<version> value is specified. In this way, one can probe "
294 "what the current preferred capability revision is."
295 msgstr ""
296
297 #. type: SH
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "ERRORS"
302 msgstr ""
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "B<EFAULT>"
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "Bad memory address. I<hdrp> must not be NULL. I<datap> may be NULL only "
316 "when the user is trying to determine the preferred capability version format "
317 "supported by the kernel."
318 msgstr ""
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<EINVAL>"
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid "One of the arguments was invalid."
331 msgstr ""
332
333 #. type: TP
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "B<EPERM>"
338 msgstr ""
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "An attempt was made to add a capability to the permitted set, or to set a "
345 "capability in the effective set that is not in the permitted set."
346 msgstr ""
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 "An attempt was made to add a capability to the inheritable set, and either:"
353 msgstr ""
354
355 #. type: IP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "\\[bu]"
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid "that capability was not in the caller's bounding set; or"
366 msgstr ""
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid ""
372 "the capability was not in the caller's permitted set and the caller lacked "
373 "the B<CAP_SETPCAP> capability in its effective set."
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "The caller attempted to use B<capset>() to modify the capabilities of a "
381 "thread other than itself, but lacked sufficient privilege. For kernels "
382 "supporting VFS capabilities, this is never permitted. For kernels lacking "
383 "VFS support, the B<CAP_SETPCAP> capability is required. (A bug in kernels "
384 "before Linux 2.6.11 meant that this error could also occur if a thread "
385 "without this capability tried to change its own capabilities by specifying "
386 "the I<pid> field as a nonzero value (i.e., the value returned by "
387 "B<getpid>(2)) instead of 0.)"
388 msgstr ""
389
390 #. type: TP
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "B<ESRCH>"
395 msgstr ""
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid "No such thread."
401 msgstr ""
402
403 #. type: SH
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "STANDARDS"
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid "Linux."
414 msgstr ""
415
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "NOTES"
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "The portable interface to the capability querying and setting functions is "
428 "provided by the I<libcap> library and is available here:"
429 msgstr ""
430
431 #. type: Plain text
432 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
433 #: opensuse-tumbleweed
434 msgid ""
435 "E<.UR http:\\://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:"
436 "\\:/libcap.git> E<.UE>"
437 msgstr ""
438
439 #. type: SH
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "SEE ALSO"
444 msgstr ""
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 msgid "B<clone>(2), B<gettid>(2), B<capabilities>(7)"
450 msgstr ""
451
452 #. type: TH
453 #: debian-trixie
454 #, no-wrap
455 msgid "2024-05-02"
456 msgstr ""
457
458 #. type: TH
459 #: debian-trixie
460 #, no-wrap
461 msgid "Linux man-pages 6.9.1"
462 msgstr ""
463
464 #. type: Plain text
465 #: debian-trixie
466 msgid "Standard C library (I<libc>, I<-lc>)"
467 msgstr ""
468
469 #. type: Plain text
470 #: debian-trixie fedora-44 fedora-rawhide
471 msgid ""
472 "On older kernels that do not provide VFS capabilities support B<capset>() "
473 "can, if the caller has the B<CAP_SETPCAP> capability, be used to change not "
474 "only the caller's own capabilities, but also the capabilities of other "
475 "threads. The call operates on the capabilities of the thread specified by "
476 "the I<pid> field of I<hdrp> when that is nonzero, or on the capabilities of "
477 "the calling thread if I<pid> is 0. If I<pid> refers to a single-threaded "
478 "process, then I<pid> can be specified as a traditional process ID; operating "
479 "on a thread of a multithreaded process requires a thread ID of the type "
480 "returned by B<gettid>(2). For B<capset>(), I<pid> can also be: -1, meaning "
481 "perform the change on all threads except the caller and B<init>(1); or a "
482 "value less than -1, in which case the change is applied to all members of "
483 "the process group whose ID is -I<pid>."
484 msgstr ""
485
486 #. type: Plain text
487 #: debian-trixie fedora-44 fedora-rawhide
488 msgid ""
489 "E<.UR http://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:\\:/"
490 "libcap.git> E<.UE>"
491 msgstr ""
492
493 #. type: TH
494 #: fedora-44 fedora-rawhide
495 #, no-wrap
496 msgid "2024-07-23"
497 msgstr ""
498
499 #. type: TH
500 #: fedora-44 fedora-rawhide
501 #, no-wrap
502 msgid "Linux man-pages 6.13"
503 msgstr ""
504
505 #. type: TH
506 #: mageia-cauldron
507 #, no-wrap
508 msgid "Linux man-pages 6.17"
509 msgstr ""
510
511 #. type: TH
512 #: opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "Linux man-pages (unreleased)"
515 msgstr ""