1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
|
# Russian translation of manpages
# This file is distributed under the same license as the manpages-l10n package.
# Copyright © of this file:
# Azamat Hackimov <azamat.hackimov@gmail.com>, 2016.
# Konstantin Shvaykovskiy <kot.shv@gmail.com>, 2012.
# Yuri Kozlov <yuray@komyakino.ru>, 2011-2019.
# Иван Павлов <pavia00@gmail.com>, 2017.
msgid ""
msgstr ""
"Project-Id-Version: manpages-l10n\n"
"POT-Creation-Date: 2024-03-01 17:03+0100\n"
"PO-Revision-Date: 2019-10-06 09:05+0300\n"
"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
"Language-Team: Russian <man-pages-ru-talks@lists.sourceforge.net>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
"(n%100>=11 && n%100<=14)? 2 : 3);\n"
"X-Generator: Lokalize 2.0\n"
#. type: TH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "openat2"
msgstr "openat2"
#. type: TH
#: archlinux fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
msgid "2023-10-31"
msgstr "31 октября 2023 г."
#. type: TH
#: archlinux fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
msgid "Linux man-pages 6.06"
msgstr "Linux man-pages 6.06"
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NAME"
msgstr "ИМЯ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid "open, openat, creat - open and possibly create a file"
msgid "openat2 - open and possibly create a file (extended)"
msgstr "open, openat, creat - открывает и, возможно, создаёт файл"
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "LIBRARY"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Standard C library (I<libc>, I<-lc>)"
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SYNOPSIS"
msgstr "СИНТАКСИС"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> and B<S_*> constants */\n"
"B<#include E<lt>linux/openat2.hE<gt>> /* Definition of B<RESOLVE_*> constants */\n"
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
"B<#include E<lt>unistd.hE<gt>>\n"
msgstr ""
"B<#include E<lt>fcntl.hE<gt>> /* определения констант B<O_*> and B<S_*> */\n"
"B<#include E<lt>linux/openat2.hE<gt>> /* определения констант B<RESOLVE_*> */\n"
"B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n"
"B<#include E<lt>unistd.hE<gt>>\n"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"B<long syscall(SYS_openat2, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
"B< struct open_how *>I<how>B<, size_t >I<size>B<);>\n"
msgstr ""
"B<long syscall(SYS_openat2, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
"B< struct open_how *>I<how>B<, size_t >I<size>B<);>\n"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<Note>: glibc provides no wrapper for B<openat2>(), necessitating the use "
"of B<syscall>(2)."
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "DESCRIPTION"
msgstr "ОПИСАНИЕ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The B<openat2>() system call is an extension of B<openat>(2) and provides "
"a superset of its functionality."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid ""
#| "The B<open>() system call opens the file specified by I<pathname>. If "
#| "the specified file does not exist, it may optionally (if B<O_CREAT> is "
#| "specified in I<flags>) be created by B<open>()."
msgid ""
"The B<openat2>() system call opens the file specified by I<pathname>. If "
"the specified file does not exist, it may optionally (if B<O_CREAT> is "
"specified in I<how.flags>) be created."
msgstr ""
"Системный вызов B<open>() открывает файл, на который указывает I<pathname>. "
"Если заданный файл не существует, то он может быть создан B<open>() (если в "
"I<flags> задан B<O_CREAT>)."
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid ""
#| "If the pathname given in I<pathname> is relative, then it is interpreted "
#| "relative to the directory referred to by the file descriptor I<dirfd> "
#| "(rather than relative to the current working directory of the calling "
#| "process, as is done by B<open>() for a relative pathname)."
msgid ""
"As with B<openat>(2), if I<pathname> is a relative pathname, then it is "
"interpreted relative to the directory referred to by the file descriptor "
"I<dirfd> (or the current working directory of the calling process, if "
"I<dirfd> is the special value B<AT_FDCWD>). If I<pathname> is an absolute "
"pathname, then I<dirfd> is ignored (unless I<how.resolve> contains "
"B<RESOLVE_IN_ROOT>, in which case I<pathname> is resolved relative to "
"I<dirfd>)."
msgstr ""
"Если в I<pathname> задан относительный путь, то он считается относительно "
"каталога, на который ссылается файловый дескриптор I<dirfd> (а не "
"относительно текущего рабочего каталога вызывающего процесса, как это "
"делается в B<open>())."
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Rather than taking a single I<flags> argument, an extensible structure "
"(I<how>) is passed to allow for future extensions. The I<size> argument "
"must be specified as I<sizeof(struct open_how)>."
msgstr ""
#. type: SS
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "The open_how structure"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<how> argument specifies how I<pathname> should be opened, and acts as "
"a superset of the I<flags> and I<mode> arguments to B<openat>(2). This "
"argument is a pointer to an I<open_how> structure, described in "
"B<open_how>(2type)."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Any future extensions to B<openat2>() will be implemented as new fields "
"appended to the I<open_how> structure, with a zero value in a new field "
"resulting in the kernel behaving as though that extension field was not "
"present. Therefore, the caller I<must> zero-fill this structure on "
"initialization. (See the \"Extensibility\" section of the B<NOTES> for more "
"detail on why this is necessary.)"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid "The fields of this structure are as follows:"
msgid "The fields of the I<open_how> structure are as follows:"
msgstr "Поля этой структуры имеют следующее назначение:"
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "I<flags>"
msgstr "I<flags>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"This field specifies the file creation and file status flags to use when "
"opening the file. All of the B<O_*> flags defined for B<openat>(2) are "
"valid B<openat2>() flag values."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Whereas B<openat>(2) ignores unknown bits in its I<flags> argument, "
"B<openat2>() returns an error if unknown or conflicting flags are specified "
"in I<how.flags>."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "I<mode>"
msgstr "I<mode>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"This field specifies the mode for the new file, with identical semantics to "
"the I<mode> argument of B<openat>(2)."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Whereas B<openat>(2) ignores bits other than those in the range I<07777> in "
"its I<mode> argument, B<openat2>() returns an error if I<how.mode> contains "
"bits other than I<07777>. Similarly, an error is returned if B<openat2>() "
"is called with a nonzero I<how.mode> and I<how.flags> does not contain "
"B<O_CREAT> or B<O_TMPFILE>."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "I<resolve>"
msgstr "I<resolve>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"This is a bit-mask of flags that modify the way in which B<all> components "
"of I<pathname> will be resolved. (See B<path_resolution>(7) for background "
"information.)"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The primary use case for these flags is to allow trusted programs to "
"restrict how untrusted paths (or paths inside untrusted directories) are "
"resolved. The full list of I<resolve> flags is as follows:"
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_BENEATH>"
msgstr "B<RESOLVE_BENEATH>"
#. commit adb21d2b526f7f196b2f3fdca97d80ba05dd14a0
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Do not permit the path resolution to succeed if any component of the "
"resolution is not a descendant of the directory indicated by I<dirfd>. This "
"causes absolute symbolic links (and absolute values of I<pathname>) to be "
"rejected."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Currently, this flag also disables magic-link resolution (see below). "
"However, this may change in the future. Therefore, to ensure that magic "
"links are not resolved, the caller should explicitly specify "
"B<RESOLVE_NO_MAGICLINKS>."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_IN_ROOT>"
msgstr "B<RESOLVE_IN_ROOT>"
#. commit 8db52c7e7ee1bd861b6096fcafc0fe7d0f24a994
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Treat the directory referred to by I<dirfd> as the root directory while "
"resolving I<pathname>. Absolute symbolic links are interpreted relative to "
"I<dirfd>. If a prefix component of I<pathname> equates to I<dirfd>, then an "
"immediately following I<..\\&> component likewise equates to I<dirfd> (just "
"as I</..\\&> is traditionally equivalent to I</>). If I<pathname> is an "
"absolute path, it is also interpreted relative to I<dirfd>."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The effect of this flag is as though the calling process had used "
"B<chroot>(2) to (temporarily) modify its root directory (to the directory "
"referred to by I<dirfd>). However, unlike B<chroot>(2) (which changes the "
"filesystem root permanently for a process), B<RESOLVE_IN_ROOT> allows a "
"program to efficiently restrict path resolution on a per-open basis."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Currently, this flag also disables magic-link resolution. However, this may "
"change in the future. Therefore, to ensure that magic links are not "
"resolved, the caller should explicitly specify B<RESOLVE_NO_MAGICLINKS>."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_NO_MAGICLINKS>"
msgstr "B<RESOLVE_NO_MAGICLINKS>"
#. commit 278121417a72d87fb29dd8c48801f80821e8f75a
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Disallow all magic-link resolution during path resolution."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Magic links are symbolic link-like objects that are most notably found in "
"B<proc>(5); examples include I</proc/>pidI</exe> and I</proc/>pidI</fd/*>. "
"(See B<symlink>(7) for more details.)"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Unknowingly opening magic links can be risky for some applications. "
"Examples of such risks include the following:"
msgstr ""
#. type: IP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "\\[bu]"
msgstr "\\[bu]"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If the process opening a pathname is a controlling process that currently "
"has no controlling terminal (see B<credentials>(7)), then opening a magic "
"link inside I</proc/>pidI</fd> that happens to refer to a terminal would "
"cause the process to acquire a controlling terminal."
msgstr ""
#. From https://lwn.net/Articles/796868/:
#. The presence of this flag will prevent a path lookup operation
#. from traversing through one of these magic links, thus blocking
#. (for example) attempts to escape from a container via a /proc
#. entry for an open file descriptor.
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"In a containerized environment, a magic link inside I</proc> may refer to an "
"object outside the container, and thus may provide a means to escape from "
"the container."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Because of such risks, an application may prefer to disable magic link "
"resolution using the B<RESOLVE_NO_MAGICLINKS> flag."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If the trailing component (i.e., basename) of I<pathname> is a magic link, "
"I<how.resolve> contains B<RESOLVE_NO_MAGICLINKS>, and I<how.flags> contains "
"both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
"referencing the magic link will be returned."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_NO_SYMLINKS>"
msgstr "B<RESOLVE_NO_SYMLINKS>"
#. commit 278121417a72d87fb29dd8c48801f80821e8f75a
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Disallow resolution of symbolic links during path resolution. This option "
"implies B<RESOLVE_NO_MAGICLINKS>."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If the trailing component (i.e., basename) of I<pathname> is a symbolic "
"link, I<how.resolve> contains B<RESOLVE_NO_SYMLINKS>, and I<how.flags> "
"contains both B<O_PATH> and B<O_NOFOLLOW>, then an B<O_PATH> file descriptor "
"referencing the symbolic link will be returned."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Note that the effect of the B<RESOLVE_NO_SYMLINKS> flag, which affects the "
"treatment of symbolic links in all of the components of I<pathname>, differs "
"from the effect of the B<O_NOFOLLOW> file creation flag (in I<how.flags>), "
"which affects the handling of symbolic links only in the final component of "
"I<pathname>."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Applications that employ the B<RESOLVE_NO_SYMLINKS> flag are encouraged to "
"make its use configurable (unless it is used for a specific security "
"purpose), as symbolic links are very widely used by end-users. Setting this "
"flag indiscriminately\\[em]i.e., for purposes not specifically related to "
"security\\[em]for all uses of B<openat2>() may result in spurious errors on "
"previously functional systems. This may occur if, for example, a system "
"pathname that is used by an application is modified (e.g., in a new "
"distribution release) so that a pathname component (now) contains a "
"symbolic link."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_NO_XDEV>"
msgstr "B<RESOLVE_NO_XDEV>"
#. commit 72ba29297e1439efaa54d9125b866ae9d15df339
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Disallow traversal of mount points during path resolution (including all "
"bind mounts). Consequently, I<pathname> must either be on the same mount as "
"the directory referred to by I<dirfd>, or on the same mount as the current "
"working directory if I<dirfd> is specified as B<AT_FDCWD>."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Applications that employ the B<RESOLVE_NO_XDEV> flag are encouraged to make "
"its use configurable (unless it is used for a specific security purpose), as "
"bind mounts are widely used by end-users. Setting this flag "
"indiscriminately\\[em]i.e., for purposes not specifically related to "
"security\\[em]for all uses of B<openat2>() may result in spurious errors on "
"previously functional systems. This may occur if, for example, a system "
"pathname that is used by an application is modified (e.g., in a new "
"distribution release) so that a pathname component (now) contains a bind "
"mount."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<RESOLVE_CACHED>"
msgstr "B<RESOLVE_CACHED>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Make the open operation fail unless all path components are already present "
"in the kernel's lookup cache. If any kind of revalidation or I/O is needed "
"to satisfy the lookup, B<openat2>() fails with the error B<EAGAIN .> This "
"is useful in providing a fast-path open that can be performed without "
"resorting to thread offload, or other mechanisms that an application might "
"use to offload slower operations."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If any bits other than those listed above are set in I<how.resolve>, an "
"error is returned."
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "RETURN VALUE"
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid ""
#| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
#| "set appropriately."
msgid ""
"On success, a new file descriptor is returned. On error, -1 is returned, "
"and I<errno> is set to indicate the error."
msgstr ""
"При успешном выполнении возвращается 0. В случае ошибки возвращается -1, а "
"I<errno> устанавливается в соответствующее значение."
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "ERRORS"
msgstr "ОШИБКИ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The set of errors returned by B<openat2>() includes all of the errors "
"returned by B<openat>(2), as well as the following additional errors:"
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<E2BIG>"
msgstr "B<E2BIG>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An extension that this kernel does not support was specified in I<how>. "
"(See the \"Extensibility\" section of B<NOTES> for more detail on how "
"extensions are handled.)"
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EAGAIN>"
msgstr "B<EAGAIN>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<how.resolve> contains either B<RESOLVE_IN_ROOT> or B<RESOLVE_BENEATH>, and "
"the kernel could not ensure that a \"..\" component didn't escape (due to a "
"race condition or potential attack). The caller may choose to retry the "
"B<openat2>() call."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"B<RESOLVE_CACHED> was set, and the open operation cannot be performed using "
"only cached information. The caller should retry without B<RESOLVE_CACHED> "
"set in I<how.resolve .>"
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EINVAL>"
msgstr "B<EINVAL>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid "An invalid flag value was specified in I<flags>."
msgid "An unknown flag or invalid value was specified in I<how>."
msgstr "В I<flags> указано неверное значение флага."
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<mode> is nonzero, but I<how.flags> does not contain B<O_CREAT> or "
"B<O_TMPFILE>."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "I<size> was smaller than any known version of I<struct open_how>."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<ELOOP>"
msgstr "B<ELOOP>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<how.resolve> contains B<RESOLVE_NO_SYMLINKS>, and one of the path "
"components was a symbolic link (or magic link)."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<how.resolve> contains B<RESOLVE_NO_MAGICLINKS>, and one of the path "
"components was a magic link."
msgstr ""
#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EXDEV>"
msgstr "B<EXDEV>"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<how.resolve> contains either B<RESOLVE_IN_ROOT> or B<RESOLVE_BENEATH>, and "
"an escape from the root during path resolution was detected."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<how.resolve> contains B<RESOLVE_NO_XDEV>, and a path component crosses a "
"mount point."
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "STANDARDS"
msgstr "СТАНДАРТЫ"
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid "Linux."
msgstr "Linux."
#. type: SH
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "HISTORY"
msgstr "ИСТОРИЯ"
#. commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy
#| msgid "Linux"
msgid "Linux 5.6."
msgstr "Linux"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The semantics of B<RESOLVE_BENEATH> were modeled after FreeBSD's "
"B<O_BENEATH>."
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NOTES"
msgstr "ЗАМЕЧАНИЯ"
#. type: SS
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, fuzzy, no-wrap
#| msgid "Compatibility"
msgid "Extensibility"
msgstr "Совместимость"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"In order to allow for future extensibility, B<openat2>() requires the user-"
"space application to specify the size of the I<open_how> structure that it "
"is passing. By providing this information, it is possible for B<openat2>() "
"to provide both forwards- and backwards-compatibility, with I<size> acting "
"as an implicit version number. (Because new extension fields will always be "
"appended, the structure size will always increase.) This extensibility "
"design is very similar to other system calls such as B<sched_setattr>(2), "
"B<perf_event_open>(2), and B<clone3>(2)."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If we let I<usize> be the size of the structure as specified by the user-"
"space application, and I<ksize> be the size of the structure which the "
"kernel supports, then there are three cases to consider:"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> equals I<usize>, then there is no version mismatch and I<how> "
"can be used verbatim."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> is larger than I<usize>, then there are some extension fields "
"that the kernel supports which the user-space application is unaware of. "
"Because a zero value in any added extension field signifies a no-op, the "
"kernel treats all of the extension fields not provided by the user-space "
"application as having zero values. This provides backwards-compatibility."
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> is smaller than I<usize>, then there are some extension fields "
"which the user-space application is aware of but which the kernel does not "
"support. Because any extension field must have its zero values signify a no-"
"op, the kernel can safely ignore the unsupported extension fields if they "
"are all-zero. If any unsupported extension fields are nonzero, then -1 is "
"returned and I<errno> is set to B<E2BIG>. This provides forwards-"
"compatibility."
msgstr ""
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-tumbleweed
msgid ""
"Because the definition of I<struct open_how> may change in the future (with "
"new fields being added when system headers are updated), user-space "
"applications should zero-fill I<struct open_how> to ensure that recompiling "
"the program with new headers will not result in spurious errors at run "
"time. The simplest way is to use a designated initializer:"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct open_how how = { .flags = O_RDWR,\n"
" .resolve = RESOLVE_IN_ROOT };\n"
msgstr ""
"struct open_how how = { .flags = O_RDWR,\n"
" .resolve = RESOLVE_IN_ROOT };\n"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "or explicitly using B<memset>(3) or similar:"
msgstr ""
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct open_how how;\n"
"memset(&how, 0, sizeof(how));\n"
"how.flags = O_RDWR;\n"
"how.resolve = RESOLVE_IN_ROOT;\n"
msgstr ""
"struct open_how how;\n"
"memset(&how, 0, sizeof(how));\n"
"how.flags = O_RDWR;\n"
"how.resolve = RESOLVE_IN_ROOT;\n"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A user-space application that wishes to determine which extensions the "
"running kernel supports can do so by conducting a binary search on I<size> "
"with a structure which has every byte nonzero (to find the largest value "
"which doesn't produce an error of B<E2BIG>)."
msgstr ""
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
msgstr "СМ. ТАКЖЕ"
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<openat>(2), B<open_how>(2type), B<path_resolution>(7), B<symlink>(7)"
msgstr "B<openat>(2), B<open_how>(2type), B<path_resolution>(7), B<symlink>(7)"
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "2023-02-05"
msgstr "5 февраля 2023 г."
#. type: TH
#: debian-bookworm
#, no-wrap
msgid "Linux man-pages 6.03"
msgstr "Linux man-pages 6.03"
#. type: SH
#: debian-bookworm
#, no-wrap
msgid "VERSIONS"
msgstr "ВЕРСИИ"
#. commit fddb5d430ad9fa91b49b1d34d0202ffe2fa0e179
#. type: Plain text
#: debian-bookworm
#, fuzzy
#| msgid "This system call first appeared in Linux 2.6.10."
msgid "B<openat2>() first appeared in Linux 5.6."
msgstr "Этот системный вызов впервые появился в Linux 2.6.10."
#. type: Plain text
#: debian-bookworm
msgid "This system call is Linux-specific."
msgstr "Данный вызов есть только в Linux."
#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
msgid ""
"Because the definition of I<struct open_how> may change in the future (with "
"new fields being added when system headers are updated), user-space "
"applications should zero-fill I<struct open_how> to ensure that recompiling "
"the program with new headers will not result in spurious errors at runtime. "
"The simplest way is to use a designated initializer:"
msgstr ""
#. type: TH
#: debian-unstable opensuse-tumbleweed
#, no-wrap
msgid "2023-04-23"
msgstr "23 апреля 2023 г."
#. type: TH
#: debian-unstable opensuse-tumbleweed
#, no-wrap
msgid "Linux man-pages 6.05.01"
msgstr "Linux man-pages 6.05.01"
#. type: TH
#: opensuse-leap-15-6
#, no-wrap
msgid "2023-03-30"
msgstr "30 марта 2023 г."
#. type: TH
#: opensuse-leap-15-6
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr "Linux man-pages 6.04"
|