Debian Codegraph @

templates/man2/openat2.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:33+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 "openat2"
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 "openat2 - open and possibly create a file (extended)"
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>fcntl.hE<gt>> /* Definition of B<O_*> and B<S_*> constants */\n"
78 "B<#include E<lt>linux/openat2.hE<gt>> /* Definition of B<RESOLVE_*> 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-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<long syscall(SYS_openat2, int >I<dirfd>B<, const char *>I<path>B<,>\n"
89 "B< struct open_how *>I<how>B<, size_t >I<size>B<);>\n"
90 msgstr ""
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "I<Note>: glibc provides no wrapper for B<openat2>(), necessitating the use "
97 "of B<syscall>(2)."
98 msgstr ""
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "DESCRIPTION"
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "The B<openat2>() system call is an extension of B<openat>(2) and provides "
112 "a superset of its functionality."
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
117 #: opensuse-tumbleweed
118 msgid ""
119 "The B<openat2>() system call opens the file specified by I<path>. If the "
120 "specified file does not exist, it may optionally (if B<O_CREAT> is specified "
121 "in I<how.flags>) be created."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
126 #: opensuse-tumbleweed
127 msgid ""
128 "As with B<openat>(2), if I<path> is relative, then it is interpreted "
129 "relative to the directory referred to by the file descriptor I<dirfd> (or "
130 "the current working directory of the calling process, if I<dirfd> is the "
131 "special value B<AT_FDCWD>). If I<path> is absolute, then I<dirfd> is "
132 "ignored (unless I<how.resolve> contains B<RESOLVE_IN_ROOT>, in which case "
133 "I<path> is resolved relative to I<dirfd>)."
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
138 #: opensuse-tumbleweed
139 msgid ""
140 "Rather than taking a single I<flags> argument, an extensible structure "
141 "(I<how>) is passed to allow for future extensions. The I<size> argument "
142 "must be specified as I<sizeof(struct open_how)>."
143 msgstr ""
144
145 #. type: SS
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "The open_how structure"
150 msgstr ""
151
152 #. type: Plain text
153 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
154 #: opensuse-tumbleweed
155 msgid ""
156 "The I<how> argument specifies how I<path> should be opened, and acts as a "
157 "superset of the I<flags> and I<mode> arguments to B<openat>(2). This "
158 "argument is a pointer to an I<open_how> structure, described in "
159 "B<open_how>(2type)."
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "Any future extensions to B<openat2>() will be implemented as new fields "
167 "appended to the I<open_how> structure, with a zero value in a new field "
168 "resulting in the kernel behaving as though that extension field was not "
169 "present. Therefore, the caller I<must> zero-fill this structure on "
170 "initialization. (See the \"Extensibility\" section of the B<NOTES> for more "
171 "detail on why this is necessary.)"
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 "The fields of the I<open_how> structure are as follows:"
178 msgstr ""
179
180 #. type: TP
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "I<flags>"
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "This field specifies the file creation and file status flags to use when "
192 "opening the file. All of the B<O_*> flags defined for B<openat>(2) are "
193 "valid B<openat2>() flag values."
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "Whereas B<openat>(2) ignores unknown bits in its I<flags> argument, "
201 "B<openat2>() returns an error if unknown or conflicting flags are specified "
202 "in I<how.flags>."
203 msgstr ""
204
205 #. type: TP
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "I<mode>"
210 msgstr ""
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "This field specifies the mode for the new file, with identical semantics to "
217 "the I<mode> argument of B<openat>(2)."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "Whereas B<openat>(2) ignores bits other than those in the range I<07777> in "
225 "its I<mode> argument, B<openat2>() returns an error if I<how.mode> contains "
226 "bits other than I<07777>. Similarly, an error is returned if B<openat2>() "
227 "is called with a nonzero I<how.mode> and I<how.flags> does not contain "
228 "B<O_CREAT> or B<O_TMPFILE>."
229 msgstr ""
230
231 #. type: TP
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "I<resolve>"
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
240 #: opensuse-tumbleweed
241 msgid ""
242 "This is a bit-mask of flags that modify the way in which B<all> components "
243 "of I<path> will be resolved. (See B<path_resolution>(7) for background "
244 "information.)"
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 ""
251 "The primary use case for these flags is to allow trusted programs to "
252 "restrict how untrusted paths (or paths inside untrusted directories) are "
253 "resolved. The full list of I<resolve> flags is as follows:"
254 msgstr ""
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<RESOLVE_BENEATH>"
261 msgstr ""
262
263 #. commit adb21d2b526f7f196b2f3fdca97d80ba05dd14a0
264 #. type: Plain text
265 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
266 #: opensuse-tumbleweed
267 msgid ""
268 "Do not permit the path resolution to succeed if any component of the "
269 "resolution is not a descendant of the directory indicated by I<dirfd>. This "
270 "causes absolute symbolic links (and absolute values of I<path>) to be "
271 "rejected."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "Currently, this flag also disables magic-link resolution (see below). "
279 "However, this may change in the future. Therefore, to ensure that magic "
280 "links are not resolved, the caller should explicitly specify "
281 "B<RESOLVE_NO_MAGICLINKS>."
282 msgstr ""
283
284 #. type: TP
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "B<RESOLVE_IN_ROOT>"
289 msgstr ""
290
291 #. commit 8db52c7e7ee1bd861b6096fcafc0fe7d0f24a994
292 #. type: Plain text
293 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
294 #: opensuse-tumbleweed
295 msgid ""
296 "Treat the directory referred to by I<dirfd> as the root directory while "
297 "resolving I<path>. Absolute symbolic links are interpreted relative to "
298 "I<dirfd>. If a prefix component of I<path> equates to I<dirfd>, then an "
299 "immediately following I<..\\&> component likewise equates to I<dirfd> (just "
300 "as I</..\\&> is traditionally equivalent to I</>). If I<path> is absolute, "
301 "it is also interpreted relative to I<dirfd>."
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid ""
308 "The effect of this flag is as though the calling process had used "
309 "B<chroot>(2) to (temporarily) modify its root directory (to the directory "
310 "referred to by I<dirfd>). However, unlike B<chroot>(2) (which changes the "
311 "filesystem root permanently for a process), B<RESOLVE_IN_ROOT> allows a "
312 "program to efficiently restrict path resolution on a per-open basis."
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 ""
319 "Currently, this flag also disables magic-link resolution. However, this may "
320 "change in the future. Therefore, to ensure that magic links are not "
321 "resolved, the caller should explicitly specify B<RESOLVE_NO_MAGICLINKS>."
322 msgstr ""
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<RESOLVE_NO_MAGICLINKS>"
329 msgstr ""
330
331 #. commit 278121417a72d87fb29dd8c48801f80821e8f75a
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "Disallow all magic-link resolution during path resolution."
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 ""
342 "Magic links are symbolic link-like objects that are most notably found in "
343 "B<proc>(5); examples include I</proc/>pidI</exe> and I</proc/>pidI</fd/*>. "
344 "(See B<symlink>(7) for more details.)"
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "Unknowingly opening magic links can be risky for some applications. "
352 "Examples of such risks include the following:"
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 ""
366 "If the process opening a pathname is a controlling process that currently "
367 "has no controlling terminal (see B<credentials>(7)), then opening a magic "
368 "link inside I</proc/>pidI</fd> that happens to refer to a terminal would "
369 "cause the process to acquire a controlling terminal."
370 msgstr ""
371
372 #. From https://lwn.net/Articles/796868/:
373 #. The presence of this flag will prevent a path lookup operation
374 #. from traversing through one of these magic links, thus blocking
375 #. (for example) attempts to escape from a container via a /proc
376 #. entry for an open file descriptor.
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "In a containerized environment, a magic link inside I</proc> may refer to an "
382 "object outside the container, and thus may provide a means to escape from "
383 "the container."
384 msgstr ""
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid ""
390 "Because of such risks, an application may prefer to disable magic link "
391 "resolution using the B<RESOLVE_NO_MAGICLINKS> flag."
392 msgstr ""
393
394 #. type: Plain text
395 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
396 #: opensuse-tumbleweed
397 msgid ""
398 "If the trailing component (i.e., basename) of I<path> is a magic link, "
399 "I<how.resolve> contains B<RESOLVE_NO_MAGICLINKS>, and I<how.flags> contains "
400 "both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
401 "referencing the magic link will be returned."
402 msgstr ""
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<RESOLVE_NO_SYMLINKS>"
409 msgstr ""
410
411 #. commit 278121417a72d87fb29dd8c48801f80821e8f75a
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid ""
416 "Disallow resolution of symbolic links during path resolution. This option "
417 "implies B<RESOLVE_NO_MAGICLINKS>."
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
422 #: opensuse-tumbleweed
423 msgid ""
424 "If the trailing component (i.e., basename) of I<path> is a symbolic link, "
425 "I<how.resolve> contains B<RESOLVE_NO_SYMLINKS>, and I<how.flags> contains "
426 "both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
427 "referencing the symbolic link will be returned."
428 msgstr ""
429
430 #. type: Plain text
431 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
432 #: opensuse-tumbleweed
433 msgid ""
434 "Note that the effect of the B<RESOLVE_NO_SYMLINKS> flag, which affects the "
435 "treatment of symbolic links in all of the components of I<path>, differs "
436 "from the effect of the B<O_NOFOLLOW> file creation flag (in I<how.flags>), "
437 "which affects the handling of symbolic links only in the final component of "
438 "I<path>."
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "Applications that employ the B<RESOLVE_NO_SYMLINKS> flag are encouraged to "
446 "make its use configurable (unless it is used for a specific security "
447 "purpose), as symbolic links are very widely used by end-users. Setting this "
448 "flag indiscriminately\\[em]i.e., for purposes not specifically related to "
449 "security\\[em]for all uses of B<openat2>() may result in spurious errors on "
450 "previously functional systems. This may occur if, for example, a system "
451 "pathname that is used by an application is modified (e.g., in a new "
452 "distribution release) so that a pathname component (now) contains a "
453 "symbolic link."
454 msgstr ""
455
456 #. type: TP
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "B<RESOLVE_NO_XDEV>"
461 msgstr ""
462
463 #. commit 72ba29297e1439efaa54d9125b866ae9d15df339
464 #. type: Plain text
465 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
466 #: opensuse-tumbleweed
467 msgid ""
468 "Disallow traversal of mount points during path resolution (including all "
469 "bind mounts). Consequently, I<path> must either be on the same mount as the "
470 "directory referred to by I<dirfd>, or on the same mount as the current "
471 "working directory if I<dirfd> is specified as B<AT_FDCWD>."
472 msgstr ""
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "Applications that employ the B<RESOLVE_NO_XDEV> flag are encouraged to make "
479 "its use configurable (unless it is used for a specific security purpose), as "
480 "bind mounts are widely used by end-users. Setting this flag "
481 "indiscriminately\\[em]i.e., for purposes not specifically related to "
482 "security\\[em]for all uses of B<openat2>() may result in spurious errors on "
483 "previously functional systems. This may occur if, for example, a system "
484 "pathname that is used by an application is modified (e.g., in a new "
485 "distribution release) so that a pathname component (now) contains a bind "
486 "mount."
487 msgstr ""
488
489 #. type: TP
490 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
491 #: opensuse-tumbleweed
492 #, no-wrap
493 msgid "B<RESOLVE_CACHED> (since Linux 5.12)"
494 msgstr ""
495
496 #. #-#-#-#-# archlinux: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
497 #. commit 99668f618062816ca7ba639b007eb145b9d3d41e
498 #. type: Plain text
499 #. #-#-#-#-# debian-trixie: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
500 #. type: Plain text
501 #. #-#-#-#-# debian-unstable: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
502 #. commit 99668f618062816ca7ba639b007eb145b9d3d41e
503 #. type: Plain text
504 #. #-#-#-#-# fedora-44: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
505 #. type: Plain text
506 #. #-#-#-#-# fedora-rawhide: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
507 #. type: Plain text
508 #. #-#-#-#-# mageia-cauldron: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
509 #. commit 99668f618062816ca7ba639b007eb145b9d3d41e
510 #. type: Plain text
511 #. #-#-#-#-# opensuse-leap-16-1: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
512 #. commit 99668f618062816ca7ba639b007eb145b9d3d41e
513 #. type: Plain text
514 #. #-#-#-#-# opensuse-tumbleweed: openat2.2.pot (PACKAGE VERSION) #-#-#-#-#
515 #. commit 99668f618062816ca7ba639b007eb145b9d3d41e
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "Make the open operation fail unless all path components are already present "
521 "in the kernel's lookup cache. If any kind of revalidation or I/O is needed "
522 "to satisfy the lookup, B<openat2>() fails with the error B<EAGAIN>. This "
523 "is useful in providing a fast-path open that can be performed without "
524 "resorting to thread offload, or other mechanisms that an application might "
525 "use to offload slower operations."
526 msgstr ""
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "If any bits other than those listed above are set in I<how.resolve>, an "
533 "error is returned."
534 msgstr ""
535
536 #. type: SH
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 #, no-wrap
540 msgid "RETURN VALUE"
541 msgstr ""
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ""
547 "On success, a new file descriptor is returned. On error, -1 is returned, "
548 "and I<errno> is set to indicate the error."
549 msgstr ""
550
551 #. type: SH
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "ERRORS"
556 msgstr ""
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "The set of errors returned by B<openat2>() includes all of the errors "
563 "returned by B<openat>(2), as well as the following additional errors:"
564 msgstr ""
565
566 #. type: TP
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "B<E2BIG>"
571 msgstr ""
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "An extension that this kernel does not support was specified in I<how>. "
578 "(See the \"Extensibility\" section of B<NOTES> for more detail on how "
579 "extensions are handled.)"
580 msgstr ""
581
582 #. type: TP
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, no-wrap
586 msgid "B<EAGAIN>"
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid ""
593 "I<how.resolve> contains either B<RESOLVE_IN_ROOT> or B<RESOLVE_BENEATH>, and "
594 "the kernel could not ensure that a \"..\" component didn't escape (due to a "
595 "race condition or potential attack). The caller may choose to retry the "
596 "B<openat2>() call."
597 msgstr ""
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid ""
603 "B<RESOLVE_CACHED> was set, and the open operation cannot be performed using "
604 "only cached information. The caller should retry without B<RESOLVE_CACHED> "
605 "set in I<how.resolve>."
606 msgstr ""
607
608 #. type: TP
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "B<EINVAL>"
613 msgstr ""
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid "An unknown flag or invalid value was specified in I<how>."
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "I<mode> is nonzero, but I<how.flags> does not contain B<O_CREAT> or "
626 "B<O_TMPFILE>."
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid "I<size> was smaller than any known version of I<struct open_how>."
633 msgstr ""
634
635 #. type: TP
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "B<ELOOP>"
640 msgstr ""
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 "I<how.resolve> contains B<RESOLVE_NO_SYMLINKS>, and one of the path "
647 "components was a symbolic link (or magic link)."
648 msgstr ""
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 "I<how.resolve> contains B<RESOLVE_NO_MAGICLINKS>, and one of the path "
655 "components was a magic link."
656 msgstr ""
657
658 #. type: TP
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid "B<EXDEV>"
663 msgstr ""
664
665 #. type: Plain text
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 msgid ""
669 "I<how.resolve> contains either B<RESOLVE_IN_ROOT> or B<RESOLVE_BENEATH>, and "
670 "an escape from the root during path resolution was detected."
671 msgstr ""
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 msgid ""
677 "I<how.resolve> contains B<RESOLVE_NO_XDEV>, and a path component crosses a "
678 "mount point."
679 msgstr ""
680
681 #. type: SH
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid "STANDARDS"
686 msgstr ""
687
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 msgid "Linux."
692 msgstr ""
693
694 #. type: SH
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "HISTORY"
699 msgstr ""
700
701 #. commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid "Linux 5.6."
706 msgstr ""
707
708 #. https://reviews.freebsd.org/D25886
709 #. https://reviews.freebsd.org/D28907
710 #. type: Plain text
711 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
712 #: opensuse-tumbleweed
713 msgid ""
714 "The semantics of B<RESOLVE_BENEATH> were modeled after FreeBSD's "
715 "B<O_BENEATH>, but avoided a well-known correctness bug in FreeBSD's "
716 "implementation that rendered it effectively insecure. Later, FreeBSD 13 "
717 "introduced B<O_RESOLVE_BENEATH> to replace the insecure B<O_BENEATH>. "
718 "FreeBSD's B<O_RESOLVE_BENEATH> semantics are based on Linux's "
719 "B<RESOLVE_BENEATH> and the two are now functionally equivalent."
720 msgstr ""
721
722 #. type: SH
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid "NOTES"
727 msgstr ""
728
729 #. type: SS
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "Extensibility"
734 msgstr ""
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid ""
740 "In order to allow for future extensibility, B<openat2>() requires the user-"
741 "space application to specify the size of the I<open_how> structure that it "
742 "is passing. By providing this information, it is possible for B<openat2>() "
743 "to provide both forwards- and backwards-compatibility, with I<size> acting "
744 "as an implicit version number. (Because new extension fields will always be "
745 "appended, the structure size will always increase.) This extensibility "
746 "design is very similar to other system calls such as B<sched_setattr>(2), "
747 "B<perf_event_open>(2), and B<clone3>(2)."
748 msgstr ""
749
750 #. type: Plain text
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 msgid ""
754 "If we let I<usize> be the size of the structure as specified by the user-"
755 "space application, and I<ksize> be the size of the structure which the "
756 "kernel supports, then there are three cases to consider:"
757 msgstr ""
758
759 #. type: Plain text
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 msgid ""
763 "If I<ksize> equals I<usize>, then there is no version mismatch and I<how> "
764 "can be used verbatim."
765 msgstr ""
766
767 #. type: Plain text
768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
770 msgid ""
771 "If I<ksize> is larger than I<usize>, then there are some extension fields "
772 "that the kernel supports which the user-space application is unaware of. "
773 "Because a zero value in any added extension field signifies a no-op, the "
774 "kernel treats all of the extension fields not provided by the user-space "
775 "application as having zero values. This provides backwards-compatibility."
776 msgstr ""
777
778 #. type: Plain text
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 msgid ""
782 "If I<ksize> is smaller than I<usize>, then there are some extension fields "
783 "which the user-space application is aware of but which the kernel does not "
784 "support. Because any extension field must have its zero values signify a no-"
785 "op, the kernel can safely ignore the unsupported extension fields if they "
786 "are all-zero. If any unsupported extension fields are nonzero, then -1 is "
787 "returned and I<errno> is set to B<E2BIG>. This provides forwards-"
788 "compatibility."
789 msgstr ""
790
791 #. type: Plain text
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 msgid ""
795 "Because the definition of I<struct open_how> may change in the future (with "
796 "new fields being added when system headers are updated), user-space "
797 "applications should zero-fill I<struct open_how> to ensure that recompiling "
798 "the program with new headers will not result in spurious errors at run "
799 "time. The simplest way is to use a designated initializer:"
800 msgstr ""
801
802 #. type: Plain text
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 #, no-wrap
806 msgid ""
807 "struct open_how how = { .flags = O_RDWR,\n"
808 " .resolve = RESOLVE_IN_ROOT };\n"
809 msgstr ""
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid "or explicitly using B<memset>(3) or similar:"
815 msgstr ""
816
817 #. type: Plain text
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid ""
822 "struct open_how how;\n"
823 "memset(&how, 0, sizeof(how));\n"
824 "how.flags = O_RDWR;\n"
825 "how.resolve = RESOLVE_IN_ROOT;\n"
826 msgstr ""
827
828 #. type: Plain text
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 msgid ""
832 "A user-space application that wishes to determine which extensions the "
833 "running kernel supports can do so by conducting a binary search on I<size> "
834 "with a structure which has every byte nonzero (to find the largest value "
835 "which doesn't produce an error of B<E2BIG>)."
836 msgstr ""
837
838 #. type: SH
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 #, no-wrap
842 msgid "SEE ALSO"
843 msgstr ""
844
845 #. type: Plain text
846 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
847 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
848 msgid "B<openat>(2), B<open_how>(2type), B<path_resolution>(7), B<symlink>(7)"
849 msgstr ""
850
851 #. type: TH
852 #: debian-trixie
853 #, no-wrap
854 msgid "2024-05-02"
855 msgstr ""
856
857 #. type: TH
858 #: debian-trixie
859 #, no-wrap
860 msgid "Linux man-pages 6.9.1"
861 msgstr ""
862
863 #. type: Plain text
864 #: debian-trixie
865 msgid "Standard C library (I<libc>, I<-lc>)"
866 msgstr ""
867
868 #. type: Plain text
869 #: debian-trixie fedora-44 fedora-rawhide
870 #, no-wrap
871 msgid ""
872 "B<long syscall(SYS_openat2, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
873 "B< struct open_how *>I<how>B<, size_t >I<size>B<);>\n"
874 msgstr ""
875
876 #. type: Plain text
877 #: debian-trixie fedora-44 fedora-rawhide
878 msgid ""
879 "The B<openat2>() system call opens the file specified by I<pathname>. If "
880 "the specified file does not exist, it may optionally (if B<O_CREAT> is "
881 "specified in I<how.flags>) be created."
882 msgstr ""
883
884 #. type: Plain text
885 #: debian-trixie fedora-44 fedora-rawhide
886 msgid ""
887 "As with B<openat>(2), if I<pathname> is a relative pathname, then it is "
888 "interpreted relative to the directory referred to by the file descriptor "
889 "I<dirfd> (or the current working directory of the calling process, if "
890 "I<dirfd> is the special value B<AT_FDCWD>). If I<pathname> is an absolute "
891 "pathname, then I<dirfd> is ignored (unless I<how.resolve> contains "
892 "B<RESOLVE_IN_ROOT>, in which case I<pathname> is resolved relative to "
893 "I<dirfd>)."
894 msgstr ""
895
896 #. type: Plain text
897 #: debian-trixie fedora-44 fedora-rawhide
898 msgid ""
899 "Rather than taking a single I<flags> argument, an extensible structure "
900 "(I<how>) is passed to allow for future extensions. The I<size> argument "
901 "must be specified as I<sizeof(struct open_how)>."
902 msgstr ""
903
904 #. type: Plain text
905 #: debian-trixie fedora-44 fedora-rawhide
906 msgid ""
907 "The I<how> argument specifies how I<pathname> should be opened, and acts as "
908 "a superset of the I<flags> and I<mode> arguments to B<openat>(2). This "
909 "argument is a pointer to an I<open_how> structure, described in "
910 "B<open_how>(2type)."
911 msgstr ""
912
913 #. type: Plain text
914 #: debian-trixie fedora-44 fedora-rawhide
915 msgid ""
916 "This is a bit-mask of flags that modify the way in which B<all> components "
917 "of I<pathname> will be resolved. (See B<path_resolution>(7) for background "
918 "information.)"
919 msgstr ""
920
921 #. commit adb21d2b526f7f196b2f3fdca97d80ba05dd14a0
922 #. type: Plain text
923 #: debian-trixie fedora-44 fedora-rawhide
924 msgid ""
925 "Do not permit the path resolution to succeed if any component of the "
926 "resolution is not a descendant of the directory indicated by I<dirfd>. This "
927 "causes absolute symbolic links (and absolute values of I<pathname>) to be "
928 "rejected."
929 msgstr ""
930
931 #. commit 8db52c7e7ee1bd861b6096fcafc0fe7d0f24a994
932 #. type: Plain text
933 #: debian-trixie fedora-44 fedora-rawhide
934 msgid ""
935 "Treat the directory referred to by I<dirfd> as the root directory while "
936 "resolving I<pathname>. Absolute symbolic links are interpreted relative to "
937 "I<dirfd>. If a prefix component of I<pathname> equates to I<dirfd>, then an "
938 "immediately following I<..\\&> component likewise equates to I<dirfd> (just "
939 "as I</..\\&> is traditionally equivalent to I</>). If I<pathname> is an "
940 "absolute path, it is also interpreted relative to I<dirfd>."
941 msgstr ""
942
943 #. type: Plain text
944 #: debian-trixie fedora-44 fedora-rawhide
945 msgid ""
946 "If the trailing component (i.e., basename) of I<pathname> is a magic link, "
947 "I<how.resolve> contains B<RESOLVE_NO_MAGICLINKS>, and I<how.flags> contains "
948 "both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
949 "referencing the magic link will be returned."
950 msgstr ""
951
952 #. type: Plain text
953 #: debian-trixie fedora-44 fedora-rawhide
954 msgid ""
955 "If the trailing component (i.e., basename) of I<pathname> is a symbolic "
956 "link, I<how.resolve> contains B<RESOLVE_NO_SYMLINKS>, and I<how.flags> "
957 "contains both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
958 "referencing the symbolic link will be returned."
959 msgstr ""
960
961 #. type: Plain text
962 #: debian-trixie fedora-44 fedora-rawhide
963 msgid ""
964 "Note that the effect of the B<RESOLVE_NO_SYMLINKS> flag, which affects the "
965 "treatment of symbolic links in all of the components of I<pathname>, differs "
966 "from the effect of the B<O_NOFOLLOW> file creation flag (in I<how.flags>), "
967 "which affects the handling of symbolic links only in the final component of "
968 "I<pathname>."
969 msgstr ""
970
971 #. commit 72ba29297e1439efaa54d9125b866ae9d15df339
972 #. type: Plain text
973 #: debian-trixie fedora-44 fedora-rawhide
974 msgid ""
975 "Disallow traversal of mount points during path resolution (including all "
976 "bind mounts). Consequently, I<pathname> must either be on the same mount as "
977 "the directory referred to by I<dirfd>, or on the same mount as the current "
978 "working directory if I<dirfd> is specified as B<AT_FDCWD>."
979 msgstr ""
980
981 #. type: TP
982 #: debian-trixie fedora-44 fedora-rawhide
983 #, no-wrap
984 msgid "B<RESOLVE_CACHED>"
985 msgstr ""
986
987 #. type: Plain text
988 #: debian-trixie fedora-44 fedora-rawhide
989 msgid ""
990 "The semantics of B<RESOLVE_BENEATH> were modeled after FreeBSD's "
991 "B<O_BENEATH>."
992 msgstr ""
993
994 #. type: TH
995 #: fedora-44 fedora-rawhide
996 #, no-wrap
997 msgid "2024-07-23"
998 msgstr ""
999
1000 #. type: TH
1001 #: fedora-44 fedora-rawhide
1002 #, no-wrap
1003 msgid "Linux man-pages 6.13"
1004 msgstr ""
1005
1006 #. type: TH
1007 #: mageia-cauldron
1008 #, no-wrap
1009 msgid "Linux man-pages 6.17"
1010 msgstr ""
1011
1012 #. type: TH
1013 #: opensuse-leap-16-1 opensuse-tumbleweed
1014 #, no-wrap
1015 msgid "Linux man-pages (unreleased)"
1016 msgstr ""