Debian Codegraph @

po/ru/man2/mount_setattr.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # aereiae <[email protected]>, 2014.
5 # Alexey <[email protected]>, 2015.
6 # Azamat Hackimov <[email protected]>, 2013-2017.
7 # Dmitriy S. Seregin <[email protected]>, 2013.
8 # Dmitry Bolkhovskikh <[email protected]>, 2017.
9 # ITriskTI <[email protected]>, 2013.
10 # Max Is <[email protected]>, 2016.
11 # Yuri Kozlov <[email protected]>, 2011-2019.
12 # Иван Павлов <[email protected]>, 2017.
13 # Малянов Евгений Викторович <[email protected]>, 2014.
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: manpages-l10n\n"
17 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
18 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
19 "Last-Translator: Yuri Kozlov <[email protected]>\n"
20 "Language-Team: Russian <[email protected]>\n"
21 "Language: ru\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
26 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
27 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
28 "X-Generator: Lokalize 2.0\n"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, no-wrap
34 msgid "mount_setattr"
35 msgstr "mount_setattr"
36
37 #. type: TH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "2026-02-11"
42 msgstr "11 февраля 2026 г."
43
44 #. type: TH
45 #: archlinux debian-unstable
46 #, fuzzy, no-wrap
47 #| msgid "Linux man-pages 6.17"
48 msgid "Linux man-pages 6.18"
49 msgstr "Справочные страницы Linux 6.17"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "NAME"
56 msgstr "НАИМЕНОВАНИЕ"
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "mount_setattr - change properties of a mount or mount tree"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
86 #: opensuse-tumbleweed
87 #, fuzzy, no-wrap
88 #| msgid ""
89 #| "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
90 #| "B<#include E<lt>unistd.hE<gt>>\n"
91 msgid ""
92 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
93 "B<#include E<lt>sys/mount.hE<gt>>\n"
94 msgstr ""
95 "B<#include E<lt>fcntl.hE<gt> >/* определения констант B<AT_*> */\n"
96 "B<#include E<lt>unistd.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
100 #: opensuse-tumbleweed
101 #, fuzzy, no-wrap
102 #| msgid ""
103 #| "B<int syscall(SYS_mount_setattr, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
104 #| "B< unsigned int >I<flags>B<, struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
105 msgid ""
106 "B<int mount_setattr(int >I<dirfd>B<, const char *>I<path>B<, unsigned int >I<flags>B<,>\n"
107 "B< struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
108 msgstr ""
109 "B<int syscall(SYS_mount_setattr, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
110 "B< unsigned int >I<flags>B<, struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
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-unstable mageia-cauldron opensuse-leap-16-1
121 #: opensuse-tumbleweed
122 msgid ""
123 "The B<mount_setattr>() system call is part of the suite of file-descriptor-"
124 "based mount facilities in Linux."
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
129 #: opensuse-tumbleweed
130 msgid ""
131 "B<mount_setattr>() changes the mount properties of a mount or an entire "
132 "mount tree. If I<path> is relative, then it is interpreted relative to the "
133 "directory referred to by the file descriptor I<dirfd>. If I<dirfd> is the "
134 "special value B<AT_FDCWD>, then I<path> is interpreted relative to the "
135 "current working directory of the calling process. If I<path> is the empty "
136 "string and B<AT_EMPTY_PATH> is specified in I<flags>, then the mount "
137 "properties of the mount identified by I<dirfd> are changed. (See "
138 "B<openat>(2) for an explanation of why the I<dirfd> argument is useful.)"
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The B<mount_setattr>() system call uses an extensible structure (I<struct "
146 "mount_attr>) to allow for future extensions. Any non-flag extensions to "
147 "B<mount_setattr>() will be implemented as new fields appended to the this "
148 "structure, with a zero value in a new field resulting in the kernel behaving "
149 "as though that extension field was not present. Therefore, the caller "
150 "I<must> zero-fill this structure on initialization. See the "
151 "\"Extensibility\" subsection under B<NOTES> for more details."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "The I<size> argument should usually be specified as I<sizeof(struct "
159 "mount_attr)>. However, if the caller is using a kernel that supports an "
160 "extended I<struct mount_attr>, but the caller does not intend to make use of "
161 "these features, it is possible to pass the size of an earlier version of the "
162 "structure together with the extended structure. This allows the kernel to "
163 "not copy later parts of the structure that aren't used anyway. With each "
164 "extension that changes the size of I<struct mount_attr>, the kernel will "
165 "expose a definition of the form B<MOUNT_ATTR_SIZE_VER>I<number> \\&. For "
166 "example, the macro for the size of the initial version of I<struct "
167 "mount_attr> is B<MOUNT_ATTR_SIZE_VER0>."
168 msgstr ""
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, fuzzy
174 #| msgid ""
175 #| "The I<mode> argument may also include an optional I<mode flag>. The "
176 #| "supported I<mode flags> are:"
177 msgid ""
178 "The I<flags> argument can be used to alter the pathname resolution "
179 "behavior. The supported values are:"
180 msgstr ""
181 "Аргумент I<mode> также может содержать необязательный I<флаг режима>. "
182 "Поддерживаемые I<флаги режима>:"
183
184 #. type: TP
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "B<AT_EMPTY_PATH>"
189 msgstr "B<AT_EMPTY_PATH>"
190
191 #. type: Plain text
192 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
193 #: opensuse-tumbleweed
194 msgid ""
195 "If I<path> is the empty string, change the mount properties on I<dirfd> "
196 "itself."
197 msgstr ""
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<AT_RECURSIVE>"
204 msgstr "B<AT_RECURSIVE>"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, fuzzy
210 #| msgid "Changing the propagation type of an existing mount"
211 msgid "Change the mount properties of the entire mount tree."
212 msgstr "Изменение типа распространения существующего монтирования"
213
214 #. type: TP
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "B<AT_SYMLINK_NOFOLLOW>"
219 msgstr "B<AT_SYMLINK_NOFOLLOW>"
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "Don't follow trailing symbolic links."
225 msgstr ""
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<AT_NO_AUTOMOUNT>"
232 msgstr "B<AT_NO_AUTOMOUNT>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid "Don't trigger automounts."
238 msgstr ""
239
240 #. type: Plain text
241 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
242 #: opensuse-tumbleweed
243 #, fuzzy
244 #| msgid ""
245 #| "The I<msgp> argument is a pointer to a caller-defined structure of the "
246 #| "following general form:"
247 msgid ""
248 "The I<attr> argument of B<mount_setattr>() is a pointer to a I<mount_attr> "
249 "structure, described in B<mount_attr>(2type)."
250 msgstr ""
251 "Аргумент I<msgp> представляет собой указатель на структуру, определяемую "
252 "вызывающим как:"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "The I<attr_set> and I<attr_clr> members are used to specify the mount "
259 "properties that are supposed to be set or cleared for a mount or mount "
260 "tree. Flags set in I<attr_set> enable a property on a mount or mount tree, "
261 "and flags set in I<attr_clr> remove a property from a mount or mount tree."
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "When changing mount properties, the kernel will first clear the flags "
269 "specified in the I<attr_clr> field, and then set the flags specified in the "
270 "I<attr_set> field. For example, these settings:"
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 #, no-wrap
277 msgid ""
278 "struct mount_attr attr = {\n"
279 " .attr_clr = MOUNT_ATTR_NOEXEC | MOUNT_ATTR_NODEV,\n"
280 " .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID,\n"
281 "};\n"
282 msgstr ""
283 "struct mount_attr attr = {\n"
284 " .attr_clr = MOUNT_ATTR_NOEXEC | MOUNT_ATTR_NODEV,\n"
285 " .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID,\n"
286 "};\n"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, fuzzy
292 #| msgid "is equivalent to I<atomically> executing the following calls:"
293 msgid "are equivalent to the following steps:"
294 msgstr "эквивалентен I<атомарному> выполнению следующих вызовов:"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid ""
301 "unsigned int current_mnt_flags = mnt-E<gt>mnt_flags;\n"
302 "\\&\n"
303 "/*\n"
304 " * Clear all flags set in .attr_clr,\n"
305 " * clearing MOUNT_ATTR_NOEXEC and MOUNT_ATTR_NODEV.\n"
306 " */\n"
307 "current_mnt_flags &= \\(tiattr-E<gt>attr_clr;\n"
308 "\\&\n"
309 "/*\n"
310 " * Now set all flags set in .attr_set,\n"
311 " * applying MOUNT_ATTR_RDONLY and MOUNT_ATTR_NOSUID.\n"
312 " */\n"
313 "current_mnt_flags |= attr-E<gt>attr_set;\n"
314 "\\&\n"
315 "mnt-E<gt>mnt_flags = current_mnt_flags;\n"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "As a result of this change, the mount or mount tree (a) is read-only; (b) "
323 "blocks the execution of set-user-ID and set-group-ID programs; (c) allows "
324 "execution of programs; and (d) allows access to devices."
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "Multiple changes with the same set of flags requested in I<attr_clr> and "
332 "I<attr_set> are guaranteed to be idempotent after the changes have been "
333 "applied."
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, fuzzy
340 #| msgid "The following values can be specified for I<param>:"
341 msgid ""
342 "The following mount attributes can be specified in the I<attr_set> or "
343 "I<attr_clr> fields:"
344 msgstr "В I<param> можно указать следующие значения:"
345
346 #. type: TP
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "B<MOUNT_ATTR_RDONLY>"
351 msgstr "B<MOUNT_ATTR_RDONLY>"
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "If set in I<attr_set>, makes the mount read-only. If set in I<attr_clr>, "
358 "removes the read-only setting if set on the mount."
359 msgstr ""
360
361 #. type: TP
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "B<MOUNT_ATTR_NOSUID>"
366 msgstr "B<MOUNT_ATTR_NOSUID>"
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid ""
372 "If set in I<attr_set>, causes the mount not to honor the set-user-ID and set-"
373 "group-ID mode bits and file capabilities when executing programs. If set in "
374 "I<attr_clr>, clears the set-user-ID, set-group-ID, and file capability "
375 "restriction if set on this mount."
376 msgstr ""
377
378 #. type: TP
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "B<MOUNT_ATTR_NODEV>"
383 msgstr "B<MOUNT_ATTR_NODEV>"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "If set in I<attr_set>, prevents access to devices on this mount. If set in "
390 "I<attr_clr>, removes the restriction that prevented accessing devices on "
391 "this mount."
392 msgstr ""
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<MOUNT_ATTR_NOEXEC>"
399 msgstr "B<MOUNT_ATTR_NOEXEC>"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "If set in I<attr_set>, prevents executing programs on this mount. If set in "
406 "I<attr_clr>, removes the restriction that prevented executing programs on "
407 "this mount."
408 msgstr ""
409
410 #. type: TP
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "B<MOUNT_ATTR_NOSYMFOLLOW>"
415 msgstr "B<MOUNT_ATTR_NOSYMFOLLOW>"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "If set in I<attr_set>, prevents following symbolic links on this mount. If "
422 "set in I<attr_clr>, removes the restriction that prevented following "
423 "symbolic links on this mount."
424 msgstr ""
425
426 #. type: TP
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "B<MOUNT_ATTR_NODIRATIME>"
431 msgstr "B<MOUNT_ATTR_NODIRATIME>"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "If set in I<attr_set>, prevents updating access time for directories on this "
438 "mount. If set in I<attr_clr>, removes the restriction that prevented "
439 "updating access time for directories. Note that B<MOUNT_ATTR_NODIRATIME> "
440 "can be combined with other access-time settings and is implied by the "
441 "noatime setting. All other access-time settings are mutually exclusive."
442 msgstr ""
443
444 #. type: TP
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "B<MOUNT_ATTR__ATIME> - changing access-time settings"
449 msgstr ""
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "The access-time values listed below are an enumeration that includes the "
456 "value zero, expressed in the bits defined by the mask B<MOUNT_ATTR__ATIME>. "
457 "Even though these bits are an enumeration (in contrast to the other mount "
458 "flags such as B<MOUNT_ATTR_NOEXEC>), they are nonetheless passed in "
459 "I<attr_set> and I<attr_clr> for consistency with B<fsmount>(2), which "
460 "introduced this behavior."
461 msgstr ""
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "Note that, since the access-time values are an enumeration rather than bit "
468 "values, a caller wanting to transition to a different access-time setting "
469 "cannot simply specify the access-time setting in I<attr_set>, but must also "
470 "include B<MOUNT_ATTR__ATIME> in the I<attr_clr> field. The kernel will "
471 "verify that B<MOUNT_ATTR__ATIME> isn't partially set in I<attr_clr> (i.e., "
472 "either all bits in the B<MOUNT_ATTR__ATIME> bit field are either set or "
473 "clear), and that I<attr_set> doesn't have any access-time bits set if "
474 "B<MOUNT_ATTR__ATIME> isn't set in I<attr_clr>."
475 msgstr ""
476
477 #. type: TP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "B<MOUNT_ATTR_RELATIME>"
482 msgstr "B<MOUNT_ATTR_RELATIME>"
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "When a file is accessed via this mount, update the file's last access time "
489 "(atime) only if the current value of atime is less than or equal to the "
490 "file's last modification time (mtime) or last status change time (ctime)."
491 msgstr ""
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "To enable this access-time setting on a mount or mount tree, "
498 "B<MOUNT_ATTR_RELATIME> must be set in I<attr_set> and B<MOUNT_ATTR__ATIME> "
499 "must be set in the I<attr_clr> field."
500 msgstr ""
501
502 #. type: TP
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 #, no-wrap
506 msgid "B<MOUNT_ATTR_NOATIME>"
507 msgstr "B<MOUNT_ATTR_NOATIME>"
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, fuzzy
513 #| msgid ""
514 #| "Do not update access times for (all types of) files on this filesystem."
515 msgid "Do not update access times for (all types of) files on this mount."
516 msgstr ""
517 "Не обновлять время доступа для (всех типов) файлов в этой файловой системе."
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ""
523 "To enable this access-time setting on a mount or mount tree, "
524 "B<MOUNT_ATTR_NOATIME> must be set in I<attr_set> and B<MOUNT_ATTR__ATIME> "
525 "must be set in the I<attr_clr> field."
526 msgstr ""
527
528 #. type: TP
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "B<MOUNT_ATTR_STRICTATIME>"
533 msgstr "B<MOUNT_ATTR_STRICTATIME>"
534
535 #. type: Plain text
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 msgid ""
539 "Always update the last access time (atime) when files are accessed on this "
540 "mount."
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 "To enable this access-time setting on a mount or mount tree, "
548 "B<MOUNT_ATTR_STRICTATIME> must be set in I<attr_set> and "
549 "B<MOUNT_ATTR__ATIME> must be set in the I<attr_clr> field."
550 msgstr ""
551
552 #. type: TP
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "B<MOUNT_ATTR_IDMAP>"
557 msgstr "B<MOUNT_ATTR_IDMAP>"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "If set in I<attr_set>, creates an ID-mapped mount. The ID mapping is taken "
564 "from the user namespace specified in I<userns_fd> and attached to the mount."
565 msgstr ""
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid ""
571 "Since it is not supported to change the ID mapping of a mount after it has "
572 "been ID mapped, it is invalid to specify B<MOUNT_ATTR_IDMAP> in I<attr_clr>."
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 msgid ""
579 "For further details, see the subsection \"ID-mapped mounts\" under NOTES."
580 msgstr ""
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid ""
586 "The I<propagation> field is used to specify the propagation type of the "
587 "mount or mount tree. This field either has the value zero, meaning leave "
588 "the propagation type unchanged, or it has one of the following values:"
589 msgstr ""
590
591 #. type: TP
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 #, no-wrap
595 msgid "B<MS_PRIVATE>"
596 msgstr "B<MS_PRIVATE>"
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 msgid "Turn all mounts into private mounts."
602 msgstr ""
603
604 #. type: TP
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 #, no-wrap
608 msgid "B<MS_SHARED>"
609 msgstr "B<MS_SHARED>"
610
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 msgid "Turn all mounts into shared mounts."
615 msgstr ""
616
617 #. type: TP
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "B<MS_SLAVE>"
622 msgstr "B<MS_SLAVE>"
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid "Turn all mounts into dependent mounts."
628 msgstr ""
629
630 #. type: TP
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "B<MS_UNBINDABLE>"
635 msgstr "B<MS_UNBINDABLE>"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 #, fuzzy
641 #| msgid "This is an unbindable mount."
642 msgid "Turn all mounts into unbindable mounts."
643 msgstr "Точка монтирования является непривязываемой."
644
645 #. type: Plain text
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, fuzzy
649 #| msgid "For further details on the nice value, see B<sched>(7)."
650 msgid ""
651 "For further details on the above propagation types, see "
652 "B<mount_namespaces>(7)."
653 msgstr ""
654 "Дополнительную информацию о значении уступчивости смотрите в B<sched>(7)."
655
656 #. type: SH
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "RETURN VALUE"
661 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
662
663 #. type: Plain text
664 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
665 #: opensuse-leap-16-1 opensuse-tumbleweed
666 #, fuzzy
667 #| msgid ""
668 #| "On success, B<mbind>() returns 0; on error, -1 is returned and I<errno> "
669 #| "is set to indicate the error."
670 msgid ""
671 "On success, B<mount_setattr>() returns zero. On error, -1 is returned and "
672 "I<errno> is set to indicate the error."
673 msgstr ""
674 "При успешном выполнении B<mbind>() возвращается 0. При ошибке возвращается "
675 "-1, а в I<errno> содержится код ошибки."
676
677 #. type: SH
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "ERRORS"
682 msgstr "ОШИБКИ"
683
684 #. type: TP
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "B<EBADF>"
689 msgstr "B<EBADF>"
690
691 #. type: Plain text
692 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
693 #: opensuse-tumbleweed
694 #, fuzzy
695 #| msgid ""
696 #| "I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid "
697 #| "file descriptor."
698 msgid ""
699 "I<path> is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid file "
700 "descriptor."
701 msgstr ""
702 "В I<pathname> содержится относительный путь, но значение I<dirfd> не равно "
703 "B<AT_FDCWD> и не является правильным файловым дескриптором."
704
705 #. type: Plain text
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, fuzzy
709 #| msgid "I<fd> is not a valid file descriptor."
710 msgid "I<userns_fd> is not a valid file descriptor."
711 msgstr "Значение I<fd> не является правильным файловым дескриптором."
712
713 #. type: TP
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "B<EBUSY>"
718 msgstr "B<EBUSY>"
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid ""
724 "The caller tried to change the mount to B<MOUNT_ATTR_RDONLY>, but the mount "
725 "still holds files open for writing."
726 msgstr ""
727
728 #. type: Plain text
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 msgid ""
732 "The caller tried to create an ID-mapped mount raising B<MOUNT_ATTR_IDMAP> "
733 "and specifying I<userns_fd> but the mount still holds files open for writing."
734 msgstr ""
735
736 #. type: TP
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 #, no-wrap
740 msgid "B<EINVAL>"
741 msgstr "B<EINVAL>"
742
743 #. type: Plain text
744 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
745 #: opensuse-tumbleweed
746 msgid ""
747 "The pathname specified via the I<dirfd> and I<path> arguments to "
748 "B<mount_setattr>() isn't a mount point."
749 msgstr ""
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, fuzzy
755 #| msgid "An unsupported value was specified in I<flags>."
756 msgid "An unsupported value was set in I<flags>."
757 msgstr "В I<flags> указано неподдерживаемое значение."
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 #, fuzzy
763 #| msgid "An unsupported value was specified in I<flags>."
764 msgid ""
765 "An unsupported value was specified in the I<attr_set> field of I<mount_attr>."
766 msgstr "В I<flags> указано неподдерживаемое значение."
767
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 #, fuzzy
772 #| msgid "An unsupported value was specified in I<flags>."
773 msgid ""
774 "An unsupported value was specified in the I<attr_clr> field of I<mount_attr>."
775 msgstr "В I<flags> указано неподдерживаемое значение."
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 #, fuzzy
781 #| msgid "An unsupported value was specified in I<flags>."
782 msgid ""
783 "An unsupported value was specified in the I<propagation> field of "
784 "I<mount_attr>."
785 msgstr "В I<flags> указано неподдерживаемое значение."
786
787 #. type: Plain text
788 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
789 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
790 msgid ""
791 "More than one of B<MS_SHARED>, B<MS_SLAVE>, B<MS_PRIVATE>, or "
792 "B<MS_UNBINDABLE> was set in the I<propagation> field of I<mount_attr>."
793 msgstr ""
794
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
798 msgid ""
799 "An access-time setting was specified in the I<attr_set> field without "
800 "B<MOUNT_ATTR__ATIME> being set in the I<attr_clr> field."
801 msgstr ""
802
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 msgid "B<MOUNT_ATTR_IDMAP> was specified in I<attr_clr>."
807 msgstr ""
808
809 #. type: Plain text
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 msgid ""
813 "A file descriptor value was specified in I<userns_fd> which exceeds "
814 "B<INT_MAX>."
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 msgid ""
821 "A valid file descriptor value was specified in I<userns_fd>, but the file "
822 "descriptor did not refer to a user namespace."
823 msgstr ""
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 #, fuzzy
829 #| msgid ""
830 #| "The underlying filesystem of the specified file does not support memory "
831 #| "mapping."
832 msgid "The underlying filesystem does not support ID-mapped mounts."
833 msgstr ""
834 "Используемая файловая система для указанного файла не поддерживает "
835 "отображение памяти."
836
837 #. type: Plain text
838 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
839 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
840 msgid ""
841 "The mount that is to be ID mapped is not a detached mount; that is, the "
842 "mount has not previously been visible in a mount namespace."
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 ""
849 "A partial access-time setting was specified in I<attr_clr> instead of "
850 "B<MOUNT_ATTR__ATIME> being set."
851 msgstr ""
852
853 #. type: Plain text
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, fuzzy
857 #| msgid ""
858 #| "the mount point is replicated during the creation of a new mount "
859 #| "namespace; or"
860 msgid "The mount is located outside the caller's mount namespace."
861 msgstr ""
862 "точка монтирования копируется при создании нового пространства имён "
863 "монтирования"
864
865 #. type: Plain text
866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
868 msgid ""
869 "The underlying filesystem has been mounted in a mount namespace that is "
870 "owned by a noninitial user namespace"
871 msgstr ""
872
873 #. type: TP
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 #, no-wrap
877 msgid "B<ENOENT>"
878 msgstr "B<ENOENT>"
879
880 #. type: Plain text
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 msgid "A pathname was empty or had a nonexistent component."
884 msgstr "Указан пустой путь или одна из его частей не существует."
885
886 #. type: TP
887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
889 #, no-wrap
890 msgid "B<ENOMEM>"
891 msgstr "B<ENOMEM>"
892
893 #. type: Plain text
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 msgid ""
897 "When changing mount propagation to B<MS_SHARED>, a new peer group ID needs "
898 "to be allocated for all mounts without a peer group ID set. This allocation "
899 "failed because there was not enough memory to allocate the relevant internal "
900 "structures."
901 msgstr ""
902
903 #. type: TP
904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
906 #, no-wrap
907 msgid "B<ENOSPC>"
908 msgstr "B<ENOSPC>"
909
910 #. #-#-#-#-# archlinux: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
911 #. Christian Brauner: i.e., someone has somehow managed to
912 #. allocate so many peer groups and managed to keep the kernel running
913 #. (???) that the ida has ran out of ids
914 #. Note that technically further error codes are possible that are
915 #. specific to the ID allocation implementation used.
916 #. type: Plain text
917 #. #-#-#-#-# debian-trixie: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
918 #. Christian Brauner: i.e. someone has somehow managed to
919 #. allocate so many peer groups and managed to keep the kernel running
920 #. (???) that the ida has ran out of ids
921 #. Note that technically further error codes are possible that are
922 #. specific to the ID allocation implementation used.
923 #. type: Plain text
924 #. #-#-#-#-# debian-unstable: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
925 #. Christian Brauner: i.e., someone has somehow managed to
926 #. allocate so many peer groups and managed to keep the kernel running
927 #. (???) that the ida has ran out of ids
928 #. Note that technically further error codes are possible that are
929 #. specific to the ID allocation implementation used.
930 #. type: Plain text
931 #. #-#-#-#-# fedora-44: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
932 #. Christian Brauner: i.e. someone has somehow managed to
933 #. allocate so many peer groups and managed to keep the kernel running
934 #. (???) that the ida has ran out of ids
935 #. Note that technically further error codes are possible that are
936 #. specific to the ID allocation implementation used.
937 #. type: Plain text
938 #. #-#-#-#-# fedora-rawhide: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
939 #. Christian Brauner: i.e. someone has somehow managed to
940 #. allocate so many peer groups and managed to keep the kernel running
941 #. (???) that the ida has ran out of ids
942 #. Note that technically further error codes are possible that are
943 #. specific to the ID allocation implementation used.
944 #. type: Plain text
945 #. #-#-#-#-# mageia-cauldron: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
946 #. Christian Brauner: i.e., someone has somehow managed to
947 #. allocate so many peer groups and managed to keep the kernel running
948 #. (???) that the ida has ran out of ids
949 #. Note that technically further error codes are possible that are
950 #. specific to the ID allocation implementation used.
951 #. type: Plain text
952 #. #-#-#-#-# opensuse-leap-16-1: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
953 #. Christian Brauner: i.e., someone has somehow managed to
954 #. allocate so many peer groups and managed to keep the kernel running
955 #. (???) that the ida has ran out of ids
956 #. Note that technically further error codes are possible that are
957 #. specific to the ID allocation implementation used.
958 #. type: Plain text
959 #. #-#-#-#-# opensuse-tumbleweed: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-#
960 #. Christian Brauner: i.e., someone has somehow managed to
961 #. allocate so many peer groups and managed to keep the kernel running
962 #. (???) that the ida has ran out of ids
963 #. Note that technically further error codes are possible that are
964 #. specific to the ID allocation implementation used.
965 #. type: Plain text
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 msgid ""
969 "When changing mount propagation to B<MS_SHARED>, a new peer group ID needs "
970 "to be allocated for all mounts without a peer group ID set. This allocation "
971 "failed because the kernel has run out of IDs."
972 msgstr ""
973
974 #. type: TP
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 #, no-wrap
978 msgid "B<EPERM>"
979 msgstr "B<EPERM>"
980
981 #. type: Plain text
982 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
983 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
984 msgid ""
985 "One of the mounts had at least one of B<MOUNT_ATTR_NOATIME>, "
986 "B<MOUNT_ATTR_NODEV>, B<MOUNT_ATTR_NODIRATIME>, B<MOUNT_ATTR_NOEXEC>, "
987 "B<MOUNT_ATTR_NOSUID>, or B<MOUNT_ATTR_RDONLY> set and the flag is locked. "
988 "Mount attributes become locked on a mount if:"
989 msgstr ""
990
991 #. type: IP
992 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
993 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
994 #, no-wrap
995 msgid "\\[bu]"
996 msgstr "\\[bu]"
997
998 #. type: Plain text
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 msgid ""
1002 "A new mount or mount tree is created causing mount propagation across user "
1003 "namespaces (i.e., propagation to a mount namespace owned by a different user "
1004 "namespace). The kernel will lock the aforementioned flags to prevent these "
1005 "sensitive properties from being altered."
1006 msgstr ""
1007
1008 #. type: Plain text
1009 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1010 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1011 msgid ""
1012 "A new mount and user namespace pair is created. This happens for example "
1013 "when specifying B<CLONE_NEWUSER | CLONE_NEWNS> in B<unshare>(2), "
1014 "B<clone>(2), or B<clone3>(2). The aforementioned flags become locked in the "
1015 "new mount namespace to prevent sensitive mount properties from being "
1016 "altered. Since the newly created mount namespace will be owned by the newly "
1017 "created user namespace, a calling process that is privileged in the new user "
1018 "namespace would\\[em]in the absence of such locking\\[em]be able to alter "
1019 "sensitive mount properties (e.g., to remount a mount that was marked read-"
1020 "only as read-write in the new mount namespace)."
1021 msgstr ""
1022
1023 #. type: Plain text
1024 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1025 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1026 msgid ""
1027 "A valid file descriptor value was specified in I<userns_fd>, but the file "
1028 "descriptor refers to the initial user namespace."
1029 msgstr ""
1030
1031 #. type: Plain text
1032 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1033 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1034 #, fuzzy
1035 #| msgid "An attempt was made to bind mount an unbindable mount."
1036 msgid ""
1037 "An attempt was made to add an ID mapping to a mount that is already ID "
1038 "mapped."
1039 msgstr ""
1040 "Была попытка выполнить связанное монтирование, как несвязанное монтирование."
1041
1042 #. type: Plain text
1043 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1044 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1045 #, fuzzy
1046 #| msgid "The caller does not have permission to unlink this message queue."
1047 msgid ""
1048 "The caller does not have B<CAP_SYS_ADMIN> in the initial user namespace."
1049 msgstr "Вызывающий не имеет прав на доступ для отсоединения очереди сообщений."
1050
1051 #. type: SH
1052 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1053 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1054 #, no-wrap
1055 msgid "STANDARDS"
1056 msgstr "СТАНДАРТЫ"
1057
1058 #. type: Plain text
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 msgid "Linux."
1062 msgstr "Linux."
1063
1064 #. type: SH
1065 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1066 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1067 #, no-wrap
1068 msgid "HISTORY"
1069 msgstr "ИСТОРИЯ"
1070
1071 #. commit 7d6beb71da3cc033649d641e1e608713b8220290
1072 #. commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
1073 #. commit 9caccd41541a6f7d6279928d9f971f6642c361af
1074 #. type: Plain text
1075 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1076 #: opensuse-tumbleweed
1077 #, fuzzy
1078 #| msgid "Linux 2.4, glibc 2.3."
1079 msgid "Linux 5.12, glibc 2.36."
1080 msgstr "Linux 2.4, glibc 2.3."
1081
1082 #. type: SH
1083 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1084 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1085 #, no-wrap
1086 msgid "NOTES"
1087 msgstr "ПРИМЕЧАНИЯ"
1088
1089 #. type: SS
1090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1092 #, no-wrap
1093 msgid "ID-mapped mounts"
1094 msgstr ""
1095
1096 #. type: Plain text
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 msgid ""
1100 "Creating an ID-mapped mount makes it possible to change the ownership of all "
1101 "files located under a mount. Thus, ID-mapped mounts make it possible to "
1102 "change ownership in a temporary and localized way. It is a localized change "
1103 "because the ownership changes are visible only via a specific mount. All "
1104 "other users and locations where the filesystem is exposed are unaffected. "
1105 "It is a temporary change because the ownership changes are tied to the "
1106 "lifetime of the mount."
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1112 msgid ""
1113 "Whenever callers interact with the filesystem through an ID-mapped mount, "
1114 "the ID mapping of the mount will be applied to user and group IDs associated "
1115 "with filesystem objects. This encompasses the user and group IDs associated "
1116 "with inodes and also the following B<xattr>(7) keys:"
1117 msgstr ""
1118
1119 #. type: Plain text
1120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1122 msgid ""
1123 "I<security.capability>, whenever filesystem capabilities are stored or "
1124 "returned in the B<VFS_CAP_REVISION_3> format, which stores a root user ID "
1125 "alongside the capabilities (see B<capabilities>(7))."
1126 msgstr ""
1127
1128 #. type: Plain text
1129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1131 msgid ""
1132 "I<system.posix_acl_access> and I<system.posix_acl_default>, whenever user "
1133 "IDs or group IDs are stored in B<ACL_USER> or B<ACL_GROUP> entries."
1134 msgstr ""
1135
1136 #. type: Plain text
1137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1139 msgid ""
1140 "The following conditions must be met in order to create an ID-mapped mount:"
1141 msgstr ""
1142
1143 #. commit bd303368b776eead1c29e6cdda82bde7128b82a7
1144 #. Christian Brauner
1145 #. Note, currently no filesystems mountable in non-initial user namespaces
1146 #. support ID-mapped mounts.
1147 #. type: Plain text
1148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1150 msgid ""
1151 "The caller must have the B<CAP_SYS_ADMIN> capability in the user namespace "
1152 "the filesystem was mounted in."
1153 msgstr ""
1154
1155 #. fs_flags = FS_ALLOW_IDMAP in kernel sources
1156 #. type: Plain text
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 msgid ""
1160 "The underlying filesystem must support ID-mapped mounts. Currently, the "
1161 "following filesystems support ID-mapped mounts:"
1162 msgstr ""
1163
1164 #. type: Plain text
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 #, fuzzy
1168 #| msgid "B<EINVAL> (since Linux 3.14)"
1169 msgid "B<xfs>(5) (since Linux 5.12)"
1170 msgstr "B<EINVAL> (начиная с Linux 3.14)"
1171
1172 #. type: Plain text
1173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1175 #, fuzzy
1176 #| msgid "B<EINVAL> (since Linux 3.14)"
1177 msgid "B<ext4>(5) (since Linux 5.12)"
1178 msgstr "B<EINVAL> (начиная с Linux 3.14)"
1179
1180 #. type: Plain text
1181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1183 #, fuzzy
1184 #| msgid "B<RWF_NOWAIT> (since Linux 4.14)"
1185 msgid "B<FAT> (since Linux 5.12)"
1186 msgstr "B<RWF_NOWAIT> (начиная с Linux 4.14)"
1187
1188 #. commit 5b9b26f5d0b88b74001dcfe4ab8a8f2f4e744112
1189 #. type: Plain text
1190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1192 #, fuzzy
1193 #| msgid "B<MAP_SYNC> (since Linux 4.15)"
1194 msgid "B<btrfs>(5) (since Linux 5.15)"
1195 msgstr "B<MAP_SYNC> (начиная с Linux 4.15)"
1196
1197 #. commit 82cae269cfa953032fbb8980a7d554d60fb00b17
1198 #. type: Plain text
1199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1201 #, fuzzy
1202 #| msgid "B<MAP_SYNC> (since Linux 4.15)"
1203 msgid "B<ntfs3> (since Linux 5.15)"
1204 msgstr "B<MAP_SYNC> (начиная с Linux 4.15)"
1205
1206 #. commit 984fc4e76d63345499f01c0c198a4b44860cf027
1207 #. type: Plain text
1208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1210 #, fuzzy
1211 #| msgid "B<ENOSYS> (since Linux 3.8)"
1212 msgid "B<f2fs> (since Linux 5.18)"
1213 msgstr "B<ENOSYS> (начиная с Linux 3.8)"
1214
1215 #. commit 6c459b78d4793afbba6d864c466cc5cd2932459d
1216 #. type: Plain text
1217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1219 #, fuzzy
1220 #| msgid "B<EPERM> (since Linux 3.9)"
1221 msgid "B<erofs> (since Linux 5.19)"
1222 msgstr "B<EPERM> (начиная с Linux 3.9)"
1223
1224 #. type: Plain text
1225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1227 msgid ""
1228 "B<overlayfs> (ID-mapped lower and upper layers supported since Linux 5.19)"
1229 msgstr ""
1230
1231 #. type: Plain text
1232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1234 #, fuzzy
1235 #| msgid "B<ENOSYS> (since Linux 3.8)"
1236 msgid "B<squashfs> (since Linux 6.2)"
1237 msgstr "B<ENOSYS> (начиная с Linux 3.8)"
1238
1239 #. type: Plain text
1240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1242 #, fuzzy
1243 #| msgid "B<MAP_SYNC> (since Linux 4.15)"
1244 msgid "B<tmpfs> (since Linux 6.3)"
1245 msgstr "B<MAP_SYNC> (начиная с Linux 4.15)"
1246
1247 #. type: Plain text
1248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1250 #, fuzzy
1251 #| msgid "B<EPERM> (since Linux 3.9)"
1252 msgid "B<cephfs> (since Linux 6.7)"
1253 msgstr "B<EPERM> (начиная с Linux 3.9)"
1254
1255 #. type: Plain text
1256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1258 #, fuzzy
1259 #| msgid "B<EPERM> (since Linux 3.9)"
1260 msgid "B<hugetlbfs> (since Linux 6.9)"
1261 msgstr "B<EPERM> (начиная с Linux 3.9)"
1262
1263 #. type: Plain text
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 msgid ""
1267 "The mount must not already be ID-mapped. This also implies that the ID "
1268 "mapping of a mount cannot be altered."
1269 msgstr ""
1270
1271 #. commit 1bbcd277a53e08d619ffeec56c5c9287f2bf42f
1272 #. type: Plain text
1273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1275 msgid "The mount must not have any writers."
1276 msgstr ""
1277
1278 #. type: Plain text
1279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1281 msgid ""
1282 "The mount must be a detached mount; that is, it must have been created by "
1283 "calling B<open_tree>(2) with the B<OPEN_TREE_CLONE> flag and it must not "
1284 "already have been visible in a mount namespace. (To put things another way: "
1285 "the mount must not have been attached to the filesystem hierarchy with a "
1286 "system call such as B<move_mount>(2).)"
1287 msgstr ""
1288
1289 #. type: Plain text
1290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1292 msgid ""
1293 "ID mappings can be created for user IDs, group IDs, and project IDs. An ID "
1294 "mapping is essentially a mapping of a range of user or group IDs into "
1295 "another or the same range of user or group IDs. ID mappings are written to "
1296 "map files as three numbers separated by white space. The first two numbers "
1297 "specify the starting user or group ID in each of the two user namespaces. "
1298 "The third number specifies the range of the ID mapping. For example, a "
1299 "mapping for user IDs such as \"1000\\ 1001\\ 1\" would indicate that user ID "
1300 "1000 in the caller's user namespace is mapped to user ID 1001 in its "
1301 "ancestor user namespace. Since the map range is 1, only user ID 1000 is "
1302 "mapped."
1303 msgstr ""
1304
1305 #. type: Plain text
1306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1308 msgid ""
1309 "It is possible to specify up to 340 ID mappings for each ID mapping type. "
1310 "If any user IDs or group IDs are not mapped, all files owned by that "
1311 "unmapped user or group ID will appear as being owned by the overflow user ID "
1312 "or overflow group ID respectively."
1313 msgstr ""
1314
1315 #. type: Plain text
1316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1318 msgid ""
1319 "Further details on setting up ID mappings can be found in "
1320 "B<user_namespaces>(7)."
1321 msgstr ""
1322
1323 #. type: Plain text
1324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1326 msgid ""
1327 "In the common case, the user namespace passed in I<userns_fd> (together with "
1328 "B<MOUNT_ATTR_IDMAP> in I<attr_set>) to create an ID-mapped mount will be "
1329 "the user namespace of a container. In other scenarios it will be a "
1330 "dedicated user namespace associated with a user's login session as is the "
1331 "case for portable home directories in B<systemd-homed.service>(8)). It is "
1332 "also perfectly fine to create a dedicated user namespace for the sake of ID "
1333 "mapping a mount."
1334 msgstr ""
1335
1336 #. type: Plain text
1337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1339 msgid ""
1340 "ID-mapped mounts can be useful in the following and a variety of other "
1341 "scenarios:"
1342 msgstr ""
1343
1344 #. type: Plain text
1345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1347 msgid ""
1348 "Sharing files or filesystems between multiple users or multiple machines, "
1349 "especially in complex scenarios. For example, ID-mapped mounts are used to "
1350 "implement portable home directories in B<systemd-homed.service>(8), where "
1351 "they allow users to move their home directory to an external storage device "
1352 "and use it on multiple computers where they are assigned different user IDs "
1353 "and group IDs. This effectively makes it possible to assign random user IDs "
1354 "and group IDs at login time."
1355 msgstr ""
1356
1357 #. type: Plain text
1358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1360 msgid ""
1361 "Sharing files or filesystems from the host with unprivileged containers. "
1362 "This allows a user to avoid having to change ownership permanently through "
1363 "B<chown>(2)."
1364 msgstr ""
1365
1366 #. type: Plain text
1367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1369 msgid ""
1370 "ID mapping a container's root filesystem. Users don't need to change "
1371 "ownership permanently through B<chown>(2). Especially for large root "
1372 "filesystems, using B<chown>(2) can be prohibitively expensive."
1373 msgstr ""
1374
1375 #. type: Plain text
1376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1378 msgid ""
1379 "Sharing files or filesystems between containers with non-overlapping ID "
1380 "mappings."
1381 msgstr ""
1382
1383 #. type: Plain text
1384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1386 msgid ""
1387 "Implementing discretionary access (DAC) permission checking for filesystems "
1388 "lacking a concept of ownership."
1389 msgstr ""
1390
1391 #. type: Plain text
1392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1394 msgid ""
1395 "Efficiently changing ownership on a per-mount basis. In contrast to "
1396 "B<chown>(2), changing ownership of large sets of files is instantaneous with "
1397 "ID-mapped mounts. This is especially useful when ownership of an entire "
1398 "root filesystem of a virtual machine or container is to be changed as "
1399 "mentioned above. With ID-mapped mounts, a single B<mount_setattr>() system "
1400 "call will be sufficient to change the ownership of all files."
1401 msgstr ""
1402
1403 #. type: Plain text
1404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1406 msgid ""
1407 "Taking the current ownership into account. ID mappings specify precisely "
1408 "what a user or group ID is supposed to be mapped to. This contrasts with "
1409 "the B<chown>(2) system call which cannot by itself take the current "
1410 "ownership of the files it changes into account. It simply changes the "
1411 "ownership to the specified user ID and group ID."
1412 msgstr ""
1413
1414 #. type: Plain text
1415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1417 msgid ""
1418 "Locally and temporarily restricted ownership changes. ID-mapped mounts make "
1419 "it possible to change ownership locally, restricting the ownership changes "
1420 "to specific mounts, and temporarily as the ownership changes only apply as "
1421 "long as the mount exists. By contrast, changing ownership via the "
1422 "B<chown>(2) system call changes the ownership globally and permanently."
1423 msgstr ""
1424
1425 #. type: SS
1426 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1427 #: opensuse-tumbleweed
1428 #, no-wrap
1429 msgid "Mount attributes and filesystem parameters"
1430 msgstr ""
1431
1432 #. type: Plain text
1433 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1434 #: opensuse-tumbleweed
1435 msgid ""
1436 "Some mount attributes (traditionally associated with B<mount>(8)-style "
1437 "options) have a sibling filesystem parameter with superficially similar "
1438 "user-facing behavior. For example, the I<-o\\ ro> option to B<mount>(8) "
1439 "can refer to the \"read-only\" filesystem parameter, or the \"read-only\" "
1440 "mount attribute. Both of these result in mount objects becoming read-only, "
1441 "but they do have different behavior."
1442 msgstr ""
1443
1444 #. type: Plain text
1445 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1446 #: opensuse-tumbleweed
1447 msgid ""
1448 "The distinction between these two kinds of option is that mount object "
1449 "attributes are applied per-mount-object (allowing different mount objects "
1450 "derived from a given filesystem instance to have different attributes), "
1451 "while filesystem instance parameters (\"superblock flags\" in kernel-"
1452 "developer parlance) apply to all mount objects derived from the same "
1453 "filesystem instance."
1454 msgstr ""
1455
1456 #. type: Plain text
1457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1458 #: opensuse-tumbleweed
1459 msgid ""
1460 "When using B<mount>(2), the line between these two types of mount options "
1461 "was blurred. However, with B<mount_setattr>() and B<fsconfig>(2), the "
1462 "distinction is made much clearer. Mount attributes are configured with "
1463 "B<mount_setattr>(), while filesystem parameters are configured using "
1464 "B<fsconfig>(2)."
1465 msgstr ""
1466
1467 #. type: SS
1468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1470 #, no-wrap
1471 msgid "Extensibility"
1472 msgstr "Расширяемость"
1473
1474 #. type: Plain text
1475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1477 msgid ""
1478 "In order to allow for future extensibility, B<mount_setattr>() requires the "
1479 "user-space application to specify the size of the I<mount_attr> structure "
1480 "that it is passing. By providing this information, it is possible for "
1481 "B<mount_setattr>() to provide both forwards- and backwards-compatibility, "
1482 "with I<size> acting as an implicit version number. (Because new extension "
1483 "fields will always be appended, the structure size will always increase.) "
1484 "This extensibility design is very similar to other system calls such as "
1485 "B<perf_setattr>(2), B<perf_event_open>(2), B<clone3>(2) and B<openat2>(2)."
1486 msgstr ""
1487
1488 #. type: Plain text
1489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1491 msgid ""
1492 "Let I<usize> be the size of the structure as specified by the user-space "
1493 "application, and let I<ksize> be the size of the structure which the kernel "
1494 "supports, then there are three cases to consider:"
1495 msgstr ""
1496
1497 #. type: Plain text
1498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1500 msgid ""
1501 "If I<ksize> equals I<usize>, then there is no version mismatch and I<attr> "
1502 "can be used verbatim."
1503 msgstr ""
1504
1505 #. type: Plain text
1506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1508 msgid ""
1509 "If I<ksize> is larger than I<usize>, then there are some extension fields "
1510 "that the kernel supports which the user-space application is unaware of. "
1511 "Because a zero value in any added extension field signifies a no-op, the "
1512 "kernel treats all of the extension fields not provided by the user-space "
1513 "application as having zero values. This provides backwards-compatibility."
1514 msgstr ""
1515
1516 #. type: Plain text
1517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1519 msgid ""
1520 "If I<ksize> is smaller than I<usize>, then there are some extension fields "
1521 "which the user-space application is aware of but which the kernel does not "
1522 "support. Because any extension field must have its zero values signify a no-"
1523 "op, the kernel can safely ignore the unsupported extension fields if they "
1524 "are all zero. If any unsupported extension fields are non-zero, then -1 is "
1525 "returned and I<errno> is set to B<E2BIG>. This provides forwards-"
1526 "compatibility."
1527 msgstr ""
1528
1529 #. type: Plain text
1530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1532 msgid ""
1533 "Because the definition of I<struct mount_attr> may change in the future "
1534 "(with new fields being added when system headers are updated), user-space "
1535 "applications should zero-fill I<struct mount_attr> to ensure that "
1536 "recompiling the program with new headers will not result in spurious errors "
1537 "at run time. The simplest way is to use a designated initializer:"
1538 msgstr ""
1539
1540 #. type: Plain text
1541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1543 #, no-wrap
1544 msgid ""
1545 "struct mount_attr attr = {\n"
1546 " .attr_set = MOUNT_ATTR_RDONLY,\n"
1547 " .attr_clr = MOUNT_ATTR_NODEV\n"
1548 "};\n"
1549 msgstr ""
1550 "struct mount_attr attr = {\n"
1551 " .attr_set = MOUNT_ATTR_RDONLY,\n"
1552 " .attr_clr = MOUNT_ATTR_NODEV\n"
1553 "};\n"
1554
1555 #. type: Plain text
1556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1558 msgid ""
1559 "Alternatively, the structure can be zero-filled using B<memset>(3) or "
1560 "similar functions:"
1561 msgstr ""
1562
1563 #. type: Plain text
1564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1566 #, no-wrap
1567 msgid ""
1568 "struct mount_attr attr;\n"
1569 "memset(&attr, 0, sizeof(attr));\n"
1570 "attr.attr_set = MOUNT_ATTR_RDONLY;\n"
1571 "attr.attr_clr = MOUNT_ATTR_NODEV;\n"
1572 msgstr ""
1573 "struct mount_attr attr;\n"
1574 "memset(&attr, 0, sizeof(attr));\n"
1575 "attr.attr_set = MOUNT_ATTR_RDONLY;\n"
1576 "attr.attr_clr = MOUNT_ATTR_NODEV;\n"
1577
1578 #. type: Plain text
1579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1581 msgid ""
1582 "A user-space application that wishes to determine which extensions the "
1583 "running kernel supports can do so by conducting a binary search on I<size> "
1584 "with a structure which has every byte nonzero (to find the largest value "
1585 "which doesn't produce an error of B<E2BIG>)."
1586 msgstr ""
1587
1588 #. type: SH
1589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1591 #, no-wrap
1592 msgid "EXAMPLES"
1593 msgstr "ПРИМЕРЫ"
1594
1595 #. Christian Brauner
1596 #. When writing programs I like to never use relative paths with AT_FDCWD
1597 #. because. Because making assumptions about the current working directory
1598 #. of the calling process is just too easy to get wrong; especially when
1599 #. pivot_root() or chroot() are in play.
1600 #. My absolut preference (joke intended) is to open a well-known starting
1601 #. point with an absolute path to get a dirfd and then scope all future
1602 #. operations beneath that dirfd. This already works with old-style
1603 #. openat() and _very_ cautious programming but openat2() and its
1604 #. resolve-flag space have made this **chef's kiss**.
1605 #. If I can't operate based on a well-known dirfd I use absolute paths
1606 #. with a -EBADF dirfd passed to *at() functions.
1607 #. type: Plain text
1608 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1609 #: opensuse-tumbleweed
1610 #, no-wrap
1611 msgid ""
1612 "/*\n"
1613 " * This program allows the caller to create a new detached mount\n"
1614 " * and set various properties on it.\n"
1615 " */\n"
1616 "#define _GNU_SOURCE\n"
1617 "#include E<lt>err.hE<gt>\n"
1618 "#include E<lt>fcntl.hE<gt>\n"
1619 "#include E<lt>getopt.hE<gt>\n"
1620 "#include E<lt>sys/mount.hE<gt>\n"
1621 "#include E<lt>sys/types.hE<gt>\n"
1622 "#include E<lt>stdbool.hE<gt>\n"
1623 "#include E<lt>stdio.hE<gt>\n"
1624 "#include E<lt>stdlib.hE<gt>\n"
1625 "#include E<lt>string.hE<gt>\n"
1626 "#include E<lt>unistd.hE<gt>\n"
1627 "\\&\n"
1628 "static const struct option longopts[] = {\n"
1629 " {\"map-mount\", required_argument, NULL, \\[aq]a\\[aq]},\n"
1630 " {\"recursive\", no_argument, NULL, \\[aq]b\\[aq]},\n"
1631 " {\"read-only\", no_argument, NULL, \\[aq]c\\[aq]},\n"
1632 " {\"block-setid\", no_argument, NULL, \\[aq]d\\[aq]},\n"
1633 " {\"block-devices\", no_argument, NULL, \\[aq]e\\[aq]},\n"
1634 " {\"block-exec\", no_argument, NULL, \\[aq]f\\[aq]},\n"
1635 " {\"no-access-time\", no_argument, NULL, \\[aq]g\\[aq]},\n"
1636 " { NULL, 0, NULL, 0 },\n"
1637 "};\n"
1638 "\\&\n"
1639 "int\n"
1640 "main(int argc, char *argv[])\n"
1641 "{\n"
1642 " int fd_userns = -1;\n"
1643 " int fd_tree;\n"
1644 " int index = 0;\n"
1645 " int ret;\n"
1646 " bool recursive = false;\n"
1647 " const char *source;\n"
1648 " const char *target;\n"
1649 " struct mount_attr *attr = &(struct mount_attr){};\n"
1650 "\\&\n"
1651 " while ((ret = getopt_long_only(argc, argv, \"\",\n"
1652 " longopts, &index)) != -1) {\n"
1653 " switch (ret) {\n"
1654 " case \\[aq]a\\[aq]:\n"
1655 " fd_userns = open(optarg, O_RDONLY | O_CLOEXEC);\n"
1656 " if (fd_userns == -1)\n"
1657 " err(EXIT_FAILURE, \"open(%s)\", optarg);\n"
1658 " break;\n"
1659 " case \\[aq]b\\[aq]:\n"
1660 " recursive = true;\n"
1661 " break;\n"
1662 " case \\[aq]c\\[aq]:\n"
1663 " attr-E<gt>attr_set |= MOUNT_ATTR_RDONLY;\n"
1664 " break;\n"
1665 " case \\[aq]d\\[aq]:\n"
1666 " attr-E<gt>attr_set |= MOUNT_ATTR_NOSUID;\n"
1667 " break;\n"
1668 " case \\[aq]e\\[aq]:\n"
1669 " attr-E<gt>attr_set |= MOUNT_ATTR_NODEV;\n"
1670 " break;\n"
1671 " case \\[aq]f\\[aq]:\n"
1672 " attr-E<gt>attr_set |= MOUNT_ATTR_NOEXEC;\n"
1673 " break;\n"
1674 " case \\[aq]g\\[aq]:\n"
1675 " attr-E<gt>attr_set |= MOUNT_ATTR_NOATIME;\n"
1676 " attr-E<gt>attr_clr |= MOUNT_ATTR__ATIME;\n"
1677 " break;\n"
1678 " default:\n"
1679 " errx(EXIT_FAILURE, \"Invalid argument specified\");\n"
1680 " }\n"
1681 " }\n"
1682 "\\&\n"
1683 " if ((argc - optind) E<lt> 2)\n"
1684 " errx(EXIT_FAILURE, \"Missing source or target mount point\");\n"
1685 "\\&\n"
1686 " source = argv[optind];\n"
1687 " target = argv[optind + 1];\n"
1688 "\\&\n"
1689 " /* In the following, -1 as the \\[aq]dirfd\\[aq] argument ensures that\n"
1690 " open_tree() fails if \\[aq]source\\[aq] is not an absolute pathname. */\n"
1691 "\\&\n"
1692 " fd_tree = open_tree(-1, source,\n"
1693 " OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |\n"
1694 " AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0));\n"
1695 " if (fd_tree == -1)\n"
1696 " err(EXIT_FAILURE, \"open(%s)\", source);\n"
1697 "\\&\n"
1698 " if (fd_userns E<gt>= 0) {\n"
1699 " attr-E<gt>attr_set |= MOUNT_ATTR_IDMAP;\n"
1700 " attr-E<gt>userns_fd = fd_userns;\n"
1701 " }\n"
1702 "\\&\n"
1703 " ret = mount_setattr(fd_tree, \"\",\n"
1704 " AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0),\n"
1705 " attr, sizeof(struct mount_attr));\n"
1706 " if (ret == -1)\n"
1707 " err(EXIT_FAILURE, \"mount_setattr\");\n"
1708 "\\&\n"
1709 " close(fd_userns);\n"
1710 "\\&\n"
1711 " /* In the following, -1 as the \\[aq]to_dirfd\\[aq] argument ensures that\n"
1712 " open_tree() fails if \\[aq]target\\[aq] is not an absolute pathname. */\n"
1713 "\\&\n"
1714 " ret = move_mount(fd_tree, \"\", -1, target,\n"
1715 " MOVE_MOUNT_F_EMPTY_PATH);\n"
1716 " if (ret == -1)\n"
1717 " err(EXIT_FAILURE, \"move_mount() to %s\", target);\n"
1718 "\\&\n"
1719 " close(fd_tree);\n"
1720 "\\&\n"
1721 " exit(EXIT_SUCCESS);\n"
1722 "}\n"
1723 msgstr ""
1724
1725 #. SRC END
1726 #. type: SH
1727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1729 #, no-wrap
1730 msgid "SEE ALSO"
1731 msgstr "СМОТРИТЕ ТАКЖЕ"
1732
1733 #. type: Plain text
1734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1736 msgid ""
1737 "B<newgidmap>(1), B<newuidmap>(1), B<clone>(2), B<mount>(2), B<unshare>(2), "
1738 "B<proc>(5), B<capabilities>(7), B<mount_namespaces>(7), "
1739 "B<user_namespaces>(7), B<xattr>(7)"
1740 msgstr ""
1741 "B<newgidmap>(1), B<newuidmap>(1), B<clone>(2), B<mount>(2), B<unshare>(2), "
1742 "B<proc>(5), B<capabilities>(7), B<mount_namespaces>(7), "
1743 "B<user_namespaces>(7), B<xattr>(7)"
1744
1745 #. type: TH
1746 #: debian-trixie
1747 #, no-wrap
1748 msgid "2024-05-02"
1749 msgstr "2 мая 2024 г."
1750
1751 #. type: TH
1752 #: debian-trixie
1753 #, no-wrap
1754 msgid "Linux man-pages 6.9.1"
1755 msgstr "Страницы руководства Linux 6.9.1"
1756
1757 #. type: Plain text
1758 #: debian-trixie
1759 msgid "Standard C library (I<libc>, I<-lc>)"
1760 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1761
1762 #. type: Plain text
1763 #: debian-trixie fedora-44 fedora-rawhide
1764 #, fuzzy, no-wrap
1765 #| msgid ""
1766 #| "B<#include E<lt>fcntl.hE<gt>> /* For O_* constants */\n"
1767 #| "B<#include E<lt>sys/stat.hE<gt>> /* For mode constants */\n"
1768 #| "B<#include E<lt>mqueue.hE<gt>>\n"
1769 msgid ""
1770 "B<#include E<lt>linux/fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
1771 "B<#include E<lt>linux/mount.hE<gt>> /* Definition of B<MOUNT_ATTR_*> constants */\n"
1772 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
1773 "B<#include E<lt>unistd.hE<gt>>\n"
1774 msgstr ""
1775 "B<#include E<lt>fcntl.hE<gt>> /* Постоянные вида O_* */\n"
1776 "B<#include E<lt>sys/stat.hE<gt>> /* Постоянные для mode */\n"
1777 "B<#include E<lt>mqueue.hE<gt>>\n"
1778
1779 #. type: Plain text
1780 #: debian-trixie fedora-44 fedora-rawhide
1781 #, no-wrap
1782 msgid ""
1783 "B<int syscall(SYS_mount_setattr, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
1784 "B< unsigned int >I<flags>B<, struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
1785 msgstr ""
1786 "B<int syscall(SYS_mount_setattr, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
1787 "B< unsigned int >I<flags>B<, struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
1788
1789 #. type: Plain text
1790 #: debian-trixie fedora-44 fedora-rawhide
1791 msgid ""
1792 "I<Note>: glibc provides no wrapper for B<mount_setattr>(), necessitating the "
1793 "use of B<syscall>(2)."
1794 msgstr ""
1795
1796 #. type: Plain text
1797 #: debian-trixie fedora-44 fedora-rawhide
1798 msgid ""
1799 "The B<mount_setattr>() system call changes the mount properties of a mount "
1800 "or an entire mount tree. If I<pathname> is a relative pathname, then it is "
1801 "interpreted relative to the directory referred to by the file descriptor "
1802 "I<dirfd>. If I<dirfd> is the special value B<AT_FDCWD>, then I<pathname> is "
1803 "interpreted relative to the current working directory of the calling "
1804 "process. If I<pathname> is the empty string and B<AT_EMPTY_PATH> is "
1805 "specified in I<flags>, then the mount properties of the mount identified by "
1806 "I<dirfd> are changed. (See B<openat>(2) for an explanation of why the "
1807 "I<dirfd> argument is useful.)"
1808 msgstr ""
1809
1810 #. type: Plain text
1811 #: debian-trixie fedora-44 fedora-rawhide
1812 msgid ""
1813 "If I<pathname> is the empty string, change the mount properties on I<dirfd> "
1814 "itself."
1815 msgstr ""
1816
1817 #. type: Plain text
1818 #: debian-trixie fedora-44 fedora-rawhide
1819 #, fuzzy
1820 #| msgid ""
1821 #| "The I<msgp> argument is a pointer to a caller-defined structure of the "
1822 #| "following general form:"
1823 msgid ""
1824 "The I<attr> argument of B<mount_setattr>() is a structure of the following "
1825 "form:"
1826 msgstr ""
1827 "Аргумент I<msgp> представляет собой указатель на структуру, определяемую "
1828 "вызывающим как:"
1829
1830 #. type: Plain text
1831 #: debian-trixie fedora-44 fedora-rawhide
1832 #, no-wrap
1833 msgid ""
1834 "struct mount_attr {\n"
1835 " __u64 attr_set; /* Mount properties to set */\n"
1836 " __u64 attr_clr; /* Mount properties to clear */\n"
1837 " __u64 propagation; /* Mount propagation type */\n"
1838 " __u64 userns_fd; /* User namespace file descriptor */\n"
1839 "};\n"
1840 msgstr ""
1841
1842 #. type: Plain text
1843 #: debian-trixie
1844 #, fuzzy
1845 #| msgid ""
1846 #| "On success, B<mbind>() returns 0; on error, -1 is returned and I<errno> "
1847 #| "is set to indicate the error."
1848 msgid ""
1849 "On success, B<mount_setattr>() returns zero. On error, -1 is returned and "
1850 "I<errno> is set to indicate the cause of the error."
1851 msgstr ""
1852 "При успешном выполнении B<mbind>() возвращается 0. При ошибке возвращается "
1853 "-1, а в I<errno> содержится код ошибки."
1854
1855 #. type: Plain text
1856 #: debian-trixie fedora-44 fedora-rawhide
1857 msgid ""
1858 "I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid file "
1859 "descriptor."
1860 msgstr ""
1861 "В I<pathname> содержится относительный путь, но значение I<dirfd> не равно "
1862 "B<AT_FDCWD> и не является правильным файловым дескриптором."
1863
1864 #. type: Plain text
1865 #: debian-trixie fedora-44 fedora-rawhide
1866 msgid ""
1867 "The pathname specified via the I<dirfd> and I<pathname> arguments to "
1868 "B<mount_setattr>() isn't a mount point."
1869 msgstr ""
1870
1871 #. commit 7d6beb71da3cc033649d641e1e608713b8220290
1872 #. commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
1873 #. commit 9caccd41541a6f7d6279928d9f971f6642c361af
1874 #. type: Plain text
1875 #: debian-trixie fedora-44 fedora-rawhide
1876 msgid "Linux 5.12."
1877 msgstr ""
1878
1879 #. Christian Brauner
1880 #. When writing programs I like to never use relative paths with AT_FDCWD
1881 #. because. Because making assumptions about the current working directory
1882 #. of the calling process is just too easy to get wrong; especially when
1883 #. pivot_root() or chroot() are in play.
1884 #. My absolut preference (joke intended) is to open a well-known starting
1885 #. point with an absolute path to get a dirfd and then scope all future
1886 #. operations beneath that dirfd. This already works with old-style
1887 #. openat() and _very_ cautious programming but openat2() and its
1888 #. resolve-flag space have made this **chef's kiss**.
1889 #. If I can't operate based on a well-known dirfd I use absolute paths
1890 #. with a -EBADF dirfd passed to *at() functions.
1891 #. type: Plain text
1892 #: debian-trixie fedora-44 fedora-rawhide
1893 #, no-wrap
1894 msgid ""
1895 "/*\n"
1896 " * This program allows the caller to create a new detached mount\n"
1897 " * and set various properties on it.\n"
1898 " */\n"
1899 "#define _GNU_SOURCE\n"
1900 "#include E<lt>err.hE<gt>\n"
1901 "#include E<lt>fcntl.hE<gt>\n"
1902 "#include E<lt>getopt.hE<gt>\n"
1903 "#include E<lt>linux/mount.hE<gt>\n"
1904 "#include E<lt>linux/types.hE<gt>\n"
1905 "#include E<lt>stdbool.hE<gt>\n"
1906 "#include E<lt>stdio.hE<gt>\n"
1907 "#include E<lt>stdlib.hE<gt>\n"
1908 "#include E<lt>string.hE<gt>\n"
1909 "#include E<lt>sys/syscall.hE<gt>\n"
1910 "#include E<lt>unistd.hE<gt>\n"
1911 "\\&\n"
1912 "static inline int\n"
1913 "mount_setattr(int dirfd, const char *pathname, unsigned int flags,\n"
1914 " struct mount_attr *attr, size_t size)\n"
1915 "{\n"
1916 " return syscall(SYS_mount_setattr, dirfd, pathname, flags,\n"
1917 " attr, size);\n"
1918 "}\n"
1919 "\\&\n"
1920 "static inline int\n"
1921 "open_tree(int dirfd, const char *filename, unsigned int flags)\n"
1922 "{\n"
1923 " return syscall(SYS_open_tree, dirfd, filename, flags);\n"
1924 "}\n"
1925 "\\&\n"
1926 "static inline int\n"
1927 "move_mount(int from_dirfd, const char *from_pathname,\n"
1928 " int to_dirfd, const char *to_pathname, unsigned int flags)\n"
1929 "{\n"
1930 " return syscall(SYS_move_mount, from_dirfd, from_pathname,\n"
1931 " to_dirfd, to_pathname, flags);\n"
1932 "}\n"
1933 "\\&\n"
1934 "static const struct option longopts[] = {\n"
1935 " {\"map-mount\", required_argument, NULL, \\[aq]a\\[aq]},\n"
1936 " {\"recursive\", no_argument, NULL, \\[aq]b\\[aq]},\n"
1937 " {\"read-only\", no_argument, NULL, \\[aq]c\\[aq]},\n"
1938 " {\"block-setid\", no_argument, NULL, \\[aq]d\\[aq]},\n"
1939 " {\"block-devices\", no_argument, NULL, \\[aq]e\\[aq]},\n"
1940 " {\"block-exec\", no_argument, NULL, \\[aq]f\\[aq]},\n"
1941 " {\"no-access-time\", no_argument, NULL, \\[aq]g\\[aq]},\n"
1942 " { NULL, 0, NULL, 0 },\n"
1943 "};\n"
1944 "\\&\n"
1945 "int\n"
1946 "main(int argc, char *argv[])\n"
1947 "{\n"
1948 " int fd_userns = -1;\n"
1949 " int fd_tree;\n"
1950 " int index = 0;\n"
1951 " int ret;\n"
1952 " bool recursive = false;\n"
1953 " const char *source;\n"
1954 " const char *target;\n"
1955 " struct mount_attr *attr = &(struct mount_attr){};\n"
1956 "\\&\n"
1957 " while ((ret = getopt_long_only(argc, argv, \"\",\n"
1958 " longopts, &index)) != -1) {\n"
1959 " switch (ret) {\n"
1960 " case \\[aq]a\\[aq]:\n"
1961 " fd_userns = open(optarg, O_RDONLY | O_CLOEXEC);\n"
1962 " if (fd_userns == -1)\n"
1963 " err(EXIT_FAILURE, \"open(%s)\", optarg);\n"
1964 " break;\n"
1965 " case \\[aq]b\\[aq]:\n"
1966 " recursive = true;\n"
1967 " break;\n"
1968 " case \\[aq]c\\[aq]:\n"
1969 " attr-E<gt>attr_set |= MOUNT_ATTR_RDONLY;\n"
1970 " break;\n"
1971 " case \\[aq]d\\[aq]:\n"
1972 " attr-E<gt>attr_set |= MOUNT_ATTR_NOSUID;\n"
1973 " break;\n"
1974 " case \\[aq]e\\[aq]:\n"
1975 " attr-E<gt>attr_set |= MOUNT_ATTR_NODEV;\n"
1976 " break;\n"
1977 " case \\[aq]f\\[aq]:\n"
1978 " attr-E<gt>attr_set |= MOUNT_ATTR_NOEXEC;\n"
1979 " break;\n"
1980 " case \\[aq]g\\[aq]:\n"
1981 " attr-E<gt>attr_set |= MOUNT_ATTR_NOATIME;\n"
1982 " attr-E<gt>attr_clr |= MOUNT_ATTR__ATIME;\n"
1983 " break;\n"
1984 " default:\n"
1985 " errx(EXIT_FAILURE, \"Invalid argument specified\");\n"
1986 " }\n"
1987 " }\n"
1988 "\\&\n"
1989 " if ((argc - optind) E<lt> 2)\n"
1990 " errx(EXIT_FAILURE, \"Missing source or target mount point\");\n"
1991 "\\&\n"
1992 " source = argv[optind];\n"
1993 " target = argv[optind + 1];\n"
1994 "\\&\n"
1995 " /* In the following, -1 as the \\[aq]dirfd\\[aq] argument ensures that\n"
1996 " open_tree() fails if \\[aq]source\\[aq] is not an absolute pathname. */\n"
1997 "\\&\n"
1998 " fd_tree = open_tree(-1, source,\n"
1999 " OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |\n"
2000 " AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0));\n"
2001 " if (fd_tree == -1)\n"
2002 " err(EXIT_FAILURE, \"open(%s)\", source);\n"
2003 "\\&\n"
2004 " if (fd_userns E<gt>= 0) {\n"
2005 " attr-E<gt>attr_set |= MOUNT_ATTR_IDMAP;\n"
2006 " attr-E<gt>userns_fd = fd_userns;\n"
2007 " }\n"
2008 "\\&\n"
2009 " ret = mount_setattr(fd_tree, \"\",\n"
2010 " AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0),\n"
2011 " attr, sizeof(struct mount_attr));\n"
2012 " if (ret == -1)\n"
2013 " err(EXIT_FAILURE, \"mount_setattr\");\n"
2014 "\\&\n"
2015 " close(fd_userns);\n"
2016 "\\&\n"
2017 " /* In the following, -1 as the \\[aq]to_dirfd\\[aq] argument ensures that\n"
2018 " open_tree() fails if \\[aq]target\\[aq] is not an absolute pathname. */\n"
2019 "\\&\n"
2020 " ret = move_mount(fd_tree, \"\", -1, target,\n"
2021 " MOVE_MOUNT_F_EMPTY_PATH);\n"
2022 " if (ret == -1)\n"
2023 " err(EXIT_FAILURE, \"move_mount() to %s\", target);\n"
2024 "\\&\n"
2025 " close(fd_tree);\n"
2026 "\\&\n"
2027 " exit(EXIT_SUCCESS);\n"
2028 "}\n"
2029 msgstr ""
2030
2031 #. type: TH
2032 #: fedora-44 fedora-rawhide
2033 #, no-wrap
2034 msgid "2024-07-23"
2035 msgstr "23 июля 2024 г."
2036
2037 #. type: TH
2038 #: fedora-44 fedora-rawhide
2039 #, no-wrap
2040 msgid "Linux man-pages 6.13"
2041 msgstr "Страницы руководства Linux 6.13"
2042
2043 #. type: TH
2044 #: mageia-cauldron
2045 #, no-wrap
2046 msgid "Linux man-pages 6.17"
2047 msgstr "Страницы руководства Linux 6.17"
2048
2049 #. type: TH
2050 #: opensuse-leap-16-1 opensuse-tumbleweed
2051 #, no-wrap
2052 msgid "Linux man-pages (unreleased)"
2053 msgstr "Страницы руководства Linux (не выпущены)"