Debian Codegraph @

templates/man2/chroot.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 "chroot"
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 "chroot - change root directory"
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 "B<#include E<lt>unistd.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int chroot(const char *>I<path>B<);>\n"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid "B<chroot>():"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid ""
104 " Since glibc 2.2.2:\n"
105 " _XOPEN_SOURCE && ! (_POSIX_C_SOURCE E<gt>= 200112L)\n"
106 " || /* Since glibc 2.20: */ _DEFAULT_SOURCE\n"
107 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
108 " Before glibc 2.2.2:\n"
109 " none\n"
110 msgstr ""
111
112 #. type: SH
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid "DESCRIPTION"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "B<chroot>() changes the root directory of the calling process to that "
124 "specified in I<path>. This directory will be used for pathnames beginning "
125 "with I</>. The root directory is inherited by all children of the calling "
126 "process."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "Only a privileged process (Linux: one with the B<CAP_SYS_CHROOT> capability "
134 "in its user namespace) may call B<chroot>()."
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "This call changes an ingredient in the pathname resolution process and does "
142 "nothing else. In particular, it is not intended to be used for any kind of "
143 "security purpose, neither to fully sandbox a process nor to restrict "
144 "filesystem system calls. In the past, B<chroot>() has been used by daemons "
145 "to restrict themselves prior to passing paths supplied by untrusted users to "
146 "system calls such as B<open>(2). However, if a folder is moved out of the "
147 "chroot directory, an attacker can exploit that to get out of the chroot "
148 "directory as well. The easiest way to do that is to B<chdir>(2) to the to-"
149 "be-moved directory, wait for it to be moved out, then open a path "
150 "like ../../../etc/passwd."
151 msgstr ""
152
153 #. This is how the "slightly trickier variation" works:
154 #. https://github.com/QubesOS/qubes-secpack/blob/master/QSBs/qsb-014-2015.txt#L142
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "A slightly trickier variation also works under some circumstances if "
160 "B<chdir>(2) is not permitted. If a daemon allows a \"chroot directory\" to "
161 "be specified, that usually means that if you want to prevent remote users "
162 "from accessing files outside the chroot directory, you must ensure that "
163 "folders are never moved out of it."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "This call does not change the current working directory, so that after the "
171 "call \\[aq]I<.>\\[aq] can be outside the tree rooted at \\[aq]I</>\\[aq]. "
172 "In particular, the superuser can escape from a \"chroot jail\" by doing:"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
177 #: opensuse-tumbleweed
178 #, no-wrap
179 msgid ""
180 "mkdir foo;\n"
181 "chroot foo;\n"
182 "cd ..;\n"
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "This call does not close open file descriptors, and such file descriptors "
190 "may allow access to files outside the chroot tree."
191 msgstr ""
192
193 #. type: SH
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "RETURN VALUE"
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
205 "to indicate the error."
206 msgstr ""
207
208 #. type: SH
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "ERRORS"
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "Depending on the filesystem, other errors can be returned. The more general "
220 "errors are listed below:"
221 msgstr ""
222
223 #. type: TP
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "B<EACCES>"
228 msgstr ""
229
230 #. Also search permission is required on the final component,
231 #. maybe just to guarantee that it is a directory?
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "Search permission is denied on a component of the path prefix. (See also "
237 "B<path_resolution>(7).)"
238 msgstr ""
239
240 #. type: TP
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "B<EFAULT>"
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid "I<path> points outside your accessible address space."
251 msgstr ""
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<EIO>"
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "An I/O error occurred."
264 msgstr ""
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<ELOOP>"
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "Too many symbolic links were encountered in resolving I<path>."
277 msgstr ""
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<ENAMETOOLONG>"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid "I<path> is too long."
290 msgstr ""
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "B<ENOENT>"
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid "The file does not exist."
303 msgstr ""
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<ENOMEM>"
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "Insufficient kernel memory was available."
316 msgstr ""
317
318 #. type: TP
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "B<ENOTDIR>"
323 msgstr ""
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid "A component of I<path> is not a directory."
329 msgstr ""
330
331 #. type: TP
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "B<EPERM>"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid "The caller has insufficient privilege."
342 msgstr ""
343
344 #. type: SH
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "STANDARDS"
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid "None."
355 msgstr ""
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "HISTORY"
362 msgstr ""
363
364 #. SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions.
365 #. X/OPEN does not document EIO, ENOMEM or EFAULT error conditions.
366 #. type: Plain text
367 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
368 #: opensuse-tumbleweed
369 msgid ""
370 "SVr4, 4.4BSD, SUSv1 (marked TO BE WITHDRAWN), SUSv2 (marked LEGACY). This "
371 "function is not part of POSIX.1-2001."
372 msgstr ""
373
374 #. type: SH
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "NOTES"
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid ""
385 "A child process created via B<fork>(2) inherits its parent's root "
386 "directory. The root directory is left unchanged by B<execve>(2)."
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The magic symbolic link, I</proc/>pidI</root>, can be used to discover a "
394 "process's root directory; see B<proc>(5) for details."
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 "FreeBSD has a stronger B<jail>() system call."
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 "SEE ALSO"
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 ""
414 "B<chroot>(1), B<chdir>(2), B<pivot_root>(2), B<path_resolution>(7), "
415 "B<switch_root>(8)"
416 msgstr ""
417
418 #. type: TH
419 #: debian-trixie
420 #, no-wrap
421 msgid "2024-05-02"
422 msgstr ""
423
424 #. type: TH
425 #: debian-trixie
426 #, no-wrap
427 msgid "Linux man-pages 6.9.1"
428 msgstr ""
429
430 #. type: Plain text
431 #: debian-trixie
432 msgid "Standard C library (I<libc>, I<-lc>)"
433 msgstr ""
434
435 #. type: Plain text
436 #: debian-trixie fedora-44 fedora-rawhide
437 #, no-wrap
438 msgid "mkdir foo; chroot foo; cd ..\n"
439 msgstr ""
440
441 #. SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions.
442 #. X/OPEN does not document EIO, ENOMEM or EFAULT error conditions.
443 #. type: Plain text
444 #: debian-trixie fedora-44 fedora-rawhide
445 msgid ""
446 "SVr4, 4.4BSD, SUSv2 (marked LEGACY). This function is not part of "
447 "POSIX.1-2001."
448 msgstr ""
449
450 #. type: TH
451 #: fedora-44 fedora-rawhide
452 #, no-wrap
453 msgid "2024-07-23"
454 msgstr ""
455
456 #. type: TH
457 #: fedora-44 fedora-rawhide
458 #, no-wrap
459 msgid "Linux man-pages 6.13"
460 msgstr ""
461
462 #. type: TH
463 #: mageia-cauldron
464 #, no-wrap
465 msgid "Linux man-pages 6.17"
466 msgstr ""
467
468 #. type: TH
469 #: opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "Linux man-pages (unreleased)"
472 msgstr ""