Debian Codegraph @

po/es/man7/mount_namespaces.7.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: manpages-l10n 4.11.0\n"
7 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
8 "PO-Revision-Date: 2021-09-10 15:39+0200\n"
9 "Last-Translator: Automatically generated\n"
10 "Language-Team: Spanish <[email protected]>\n"
11 "Language: es\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
17 #. type: TH
18 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
19 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
20 #, no-wrap
21 msgid "mount_namespaces"
22 msgstr ""
23
24 #. type: TH
25 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
26 #: opensuse-tumbleweed
27 #, no-wrap
28 msgid "2026-02-08"
29 msgstr "8 Febrero 2026"
30
31 #. type: TH
32 #: archlinux debian-unstable
33 #, fuzzy, no-wrap
34 #| msgid "Linux man-pages 6.17"
35 msgid "Linux man-pages 6.18"
36 msgstr "Páginas de Manual de Linux 6.17"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "NOMBRE"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "mount_namespaces - overview of Linux mount namespaces"
49 msgstr ""
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 "DESCRIPTION"
56 msgstr "DESCRIPCIÓN"
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 "For an overview of namespaces, see B<namespaces>(7)."
62 msgstr ""
63
64 #. type: Plain text
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 msgid ""
68 "Mount namespaces provide isolation of the list of mounts seen by the "
69 "processes in each namespace instance. Thus, the processes in each of the "
70 "mount namespace instances will see distinct single-directory hierarchies."
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 msgid ""
77 "The views provided by the I</proc/>pidI</mounts>, I</proc/>pidI</mountinfo>, "
78 "and I</proc/>pidI</mountstats> files (all described in B<proc>(5)) "
79 "correspond to the mount namespace in which the process with the PID I<pid> "
80 "resides. (All of the processes that reside in the same mount namespace will "
81 "see the same view in these files.)"
82 msgstr ""
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 msgid ""
88 "A new mount namespace is created using either B<clone>(2) or B<unshare>(2) "
89 "with the B<CLONE_NEWNS> flag. When a new mount namespace is created, its "
90 "mount list is initialized as follows:"
91 msgstr ""
92
93 #. type: IP
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "\\[bu]"
98 msgstr "\\[bu]"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "If the namespace is created using B<clone>(2), the mount list of the child's "
105 "namespace is a copy of the mount list in the parent process's mount "
106 "namespace."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "If the namespace is created using B<unshare>(2), the mount list of the new "
114 "namespace is a copy of the mount list in the caller's previous mount "
115 "namespace."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "Subsequent modifications to the mount list (B<mount>(2) and B<umount>(2)) "
123 "in either mount namespace will not (by default) affect the mount list seen "
124 "in the other namespace (but see the following discussion of shared subtrees)."
125 msgstr ""
126
127 #. type: SH
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid "SHARED SUBTREES"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "After the implementation of mount namespaces was completed, experience "
139 "showed that the isolation that they provided was, in some cases, too great. "
140 "For example, in order to make a newly loaded optical disk available in all "
141 "mount namespaces, a mount operation was required in each namespace. For "
142 "this use case, and others, the shared subtree feature was introduced in "
143 "Linux 2.6.15. This feature allows for automatic, controlled propagation of "
144 "B<mount>(2) and B<umount>(2) I<events> between namespaces (or, more "
145 "precisely, between the mounts that are members of a I<peer group> that are "
146 "propagating events to one another)."
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "Each mount is marked (via B<mount>(2)) as having one of the following "
154 "I<propagation types>:"
155 msgstr ""
156
157 #. type: TP
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "B<MS_SHARED>"
162 msgstr "B<MS_SHARED>"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "This mount shares events with members of a peer group. B<mount>(2) and "
169 "B<umount>(2) events immediately under this mount will propagate to the "
170 "other mounts that are members of the peer group. I<Propagation> here means "
171 "that the same B<mount>(2) or B<umount>(2) will automatically occur under "
172 "all of the other mounts in the peer group. Conversely, B<mount>(2) and "
173 "B<umount>(2) events that take place under peer mounts will propagate to "
174 "this mount."
175 msgstr ""
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<MS_PRIVATE>"
182 msgstr "B<MS_PRIVATE>"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "This mount is private; it does not have a peer group. B<mount>(2) and "
189 "B<umount>(2) events do not propagate into or out of this mount."
190 msgstr ""
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<MS_SLAVE>"
197 msgstr "B<MS_SLAVE>"
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "B<mount>(2) and B<umount>(2) events propagate into this mount from a "
204 "(master) shared peer group. B<mount>(2) and B<umount>(2) events under "
205 "this mount do not propagate to any peer."
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "Note that a mount can be the slave of another peer group while at the same "
213 "time sharing B<mount>(2) and B<umount>(2) events with a peer group of "
214 "which it is a member. (More precisely, one peer group can be the slave of "
215 "another peer group.)"
216 msgstr ""
217
218 #. type: TP
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "B<MS_UNBINDABLE>"
223 msgstr "B<MS_UNBINDABLE>"
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "This is like a private mount, and in addition this mount can't be bind "
230 "mounted. Attempts to bind mount this mount (B<mount>(2) with the "
231 "B<MS_BIND> flag) will fail."
232 msgstr ""
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 ""
238 "When a recursive bind mount (B<mount>(2) with the B<MS_BIND> and B<MS_REC> "
239 "flags) is performed on a directory subtree, any bind mounts within the "
240 "subtree are automatically pruned (i.e., not replicated) when replicating "
241 "that subtree to produce the target subtree."
242 msgstr ""
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "For a discussion of the propagation type assigned to a new mount, see NOTES."
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "The propagation type is a per-mount-point setting; some mounts may be marked "
256 "as shared (with each shared mount being a member of a distinct peer group), "
257 "while others are private (or slaved or unbindable)."
258 msgstr ""
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid ""
264 "Note that a mount's propagation type determines whether B<mount>(2) and "
265 "B<umount>(2) of mounts I<immediately under> the mount are propagated. "
266 "Thus, the propagation type does not affect propagation of events for "
267 "grandchildren and further removed descendant mounts. What happens if the "
268 "mount itself is unmounted is determined by the propagation type that is in "
269 "effect for the I<parent> of the mount."
270 msgstr ""
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "Members are added to a I<peer group> when a mount is marked as shared and "
277 "either:"
278 msgstr ""
279
280 #. type: IP
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "(a)"
285 msgstr "(a)"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "the mount is replicated during the creation of a new mount namespace; or"
292 msgstr ""
293
294 #. type: IP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "(b)"
299 msgstr "(b)"
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid "a new bind mount is created from the mount."
305 msgstr ""
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "In both of these cases, the new mount joins the peer group of which the "
312 "existing mount is a member."
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "A new peer group is also created when a child mount is created under an "
320 "existing mount that is marked as shared. In this case, the new child mount "
321 "is also marked as shared and the resulting peer group consists of all the "
322 "mounts that are replicated under the peers of parent mounts."
323 msgstr ""
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "A mount ceases to be a member of a peer group when either the mount is "
330 "explicitly unmounted, or when the mount is implicitly unmounted because a "
331 "mount namespace is removed (because it has no more member processes)."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "The propagation type of the mounts in a mount namespace can be discovered "
339 "via the \"optional fields\" exposed in I</proc/>pidI</mountinfo>. (See "
340 "B<proc>(5) for details of this file.) The following tags can appear in the "
341 "optional fields for a record in that file:"
342 msgstr ""
343
344 #. type: TP
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "I<shared:X>"
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "This mount is shared in peer group I<X>. Each peer group has a unique ID "
356 "that is automatically generated by the kernel, and all mounts in the same "
357 "peer group will show the same ID. (These IDs are assigned starting from the "
358 "value 1, and may be recycled when a peer group ceases to have any members.)"
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 "I<master:X>"
366 msgstr ""
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid "This mount is a slave to shared peer group I<X>."
372 msgstr ""
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "I<propagate_from:X> (since Linux 2.6.26)"
379 msgstr ""
380
381 #. commit 97e7e0f71d6d948c25f11f0a33878d9356d9579e
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "This mount is a slave and receives propagation from shared peer group I<X>. "
387 "This tag will always appear in conjunction with a I<master:X> tag. Here, "
388 "I<X> is the closest dominant peer group under the process's root directory. "
389 "If I<X> is the immediate master of the mount, or if there is no dominant "
390 "peer group under the same root, then only the I<master:X> field is present "
391 "and not the I<propagate_from:X> field. For further details, see below."
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 "I<unbindable>"
399 msgstr ""
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 "This is an unbindable mount."
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid "If none of the above tags is present, then this is a private mount."
411 msgstr ""
412
413 #. type: SS
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "MS_SHARED and MS_PRIVATE example"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "Suppose that on a terminal in the initial mount namespace, we mark one mount "
425 "as shared and another as private, and then view the mounts in I</proc/self/"
426 "mountinfo>:"
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 #, no-wrap
433 msgid ""
434 "sh1#B< mount --make-shared /mntS>\n"
435 "sh1#B< mount --make-private /mntP>\n"
436 "sh1#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
437 "77 61 8:17 / /mntS rw,relatime shared:1\n"
438 "83 61 8:15 / /mntP rw,relatime\n"
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "From the I</proc/self/mountinfo> output, we see that I</mntS> is a shared "
446 "mount in peer group 1, and that I</mntP> has no optional tags, indicating "
447 "that it is a private mount. The first two fields in each record in this "
448 "file are the unique ID for this mount, and the mount ID of the parent "
449 "mount. We can further inspect this file to see that the parent mount of I</"
450 "mntS> and I</mntP> is the root directory, I</>, which is mounted as private:"
451 msgstr ""
452
453 #. type: Plain text
454 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
455 #: opensuse-tumbleweed
456 #, no-wrap
457 msgid ""
458 "sh1#B< cat /proc/self/mountinfo | awk \\[aq]$1 == 61\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
459 "61 0 8:2 / / rw,relatime\n"
460 msgstr ""
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "On a second terminal, we create a new mount namespace where we run a second "
467 "shell and inspect the mounts:"
468 msgstr ""
469
470 #. type: Plain text
471 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
472 #: opensuse-tumbleweed
473 #, no-wrap
474 msgid ""
475 "$B< PS1=\\[aq]sh2# \\[aq] sudo unshare -m --propagation unchanged sh>\n"
476 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
477 "222 145 8:17 / /mntS rw,relatime shared:1\n"
478 "225 145 8:15 / /mntP rw,relatime\n"
479 msgstr ""
480
481 #. Since util-linux 2.27
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid ""
486 "The new mount namespace received a copy of the initial mount namespace's "
487 "mounts. These new mounts maintain the same propagation types, but have "
488 "unique mount IDs. (The I<--propagation\\ unchanged> option prevents "
489 "B<unshare>(1) from marking all mounts as private when creating a new mount "
490 "namespace, which it does by default.)"
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 "In the second terminal, we then create submounts under each of I</mntS> and "
498 "I</mntP> and inspect the set-up:"
499 msgstr ""
500
501 #. type: Plain text
502 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
503 #: opensuse-tumbleweed
504 #, no-wrap
505 msgid ""
506 "sh2#B< mkdir /mntS/a>\n"
507 "sh2#B< mount /dev/sdb6 /mntS/a>\n"
508 "sh2#B< mkdir /mntP/b>\n"
509 "sh2#B< mount /dev/sdb7 /mntP/b>\n"
510 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
511 "222 145 8:17 / /mntS rw,relatime shared:1\n"
512 "225 145 8:15 / /mntP rw,relatime\n"
513 "178 222 8:22 / /mntS/a rw,relatime shared:2\n"
514 "230 225 8:23 / /mntP/b rw,relatime\n"
515 msgstr ""
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "From the above, it can be seen that I</mntS/a> was created as shared "
522 "(inheriting this setting from its parent mount) and I</mntP/b> was created "
523 "as a private mount."
524 msgstr ""
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid ""
530 "Returning to the first terminal and inspecting the set-up, we see that the "
531 "new mount created under the shared mount I</mntS> propagated to its peer "
532 "mount (in the initial mount namespace), but the new mount created under the "
533 "private mount I</mntP> did not propagate:"
534 msgstr ""
535
536 #. type: Plain text
537 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
538 #: opensuse-tumbleweed
539 #, no-wrap
540 msgid ""
541 "sh1#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
542 "77 61 8:17 / /mntS rw,relatime shared:1\n"
543 "83 61 8:15 / /mntP rw,relatime\n"
544 "179 77 8:22 / /mntS/a rw,relatime shared:2\n"
545 msgstr ""
546
547 #. type: SS
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "MS_SLAVE example"
552 msgstr ""
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid ""
558 "Making a mount a slave allows it to receive propagated B<mount>(2) and "
559 "B<umount>(2) events from a master shared peer group, while preventing it "
560 "from propagating events to that master. This is useful if we want to (say) "
561 "receive a mount event when an optical disk is mounted in the master shared "
562 "peer group (in another mount namespace), but want to prevent B<mount>(2) "
563 "and B<umount>(2) events under the slave mount from having side effects in "
564 "other namespaces."
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 "We can demonstrate the effect of slaving by first marking two mounts as "
572 "shared in the initial mount namespace:"
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
577 #: opensuse-tumbleweed
578 #, no-wrap
579 msgid ""
580 "sh1#B< mount --make-shared /mntX>\n"
581 "sh1#B< mount --make-shared /mntY>\n"
582 "sh1#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
583 "132 83 8:23 / /mntX rw,relatime shared:1\n"
584 "133 83 8:22 / /mntY rw,relatime shared:2\n"
585 msgstr ""
586
587 #. type: Plain text
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 msgid ""
591 "On a second terminal, we create a new mount namespace and inspect the mounts:"
592 msgstr ""
593
594 #. type: Plain text
595 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
596 #: opensuse-tumbleweed
597 #, no-wrap
598 msgid ""
599 "sh2#B< unshare -m --propagation unchanged sh>\n"
600 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
601 "168 167 8:23 / /mntX rw,relatime shared:1\n"
602 "169 167 8:22 / /mntY rw,relatime shared:2\n"
603 msgstr ""
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid "In the new mount namespace, we then mark one of the mounts as a slave:"
609 msgstr ""
610
611 #. type: Plain text
612 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
613 #: opensuse-tumbleweed
614 #, no-wrap
615 msgid ""
616 "sh2#B< mount --make-slave /mntY>\n"
617 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
618 "168 167 8:23 / /mntX rw,relatime shared:1\n"
619 "169 167 8:22 / /mntY rw,relatime master:2\n"
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "From the above output, we see that I</mntY> is now a slave mount that is "
627 "receiving propagation events from the shared peer group with the ID 2."
628 msgstr ""
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "Continuing in the new namespace, we create submounts under each of I</mntX> "
635 "and I</mntY>:"
636 msgstr ""
637
638 #. type: Plain text
639 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
640 #: opensuse-tumbleweed
641 #, no-wrap
642 msgid ""
643 "sh2#B< mkdir /mntX/a>\n"
644 "sh2#B< mount /dev/sda3 /mntX/a>\n"
645 "sh2#B< mkdir /mntY/b>\n"
646 "sh2#B< mount /dev/sda5 /mntY/b>\n"
647 msgstr ""
648
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid ""
653 "When we inspect the state of the mounts in the new mount namespace, we see "
654 "that I</mntX/a> was created as a new shared mount (inheriting the \"shared\" "
655 "setting from its parent mount) and I</mntY/b> was created as a private mount:"
656 msgstr ""
657
658 #. type: Plain text
659 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
660 #: opensuse-tumbleweed
661 #, no-wrap
662 msgid ""
663 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
664 "168 167 8:23 / /mntX rw,relatime shared:1\n"
665 "169 167 8:22 / /mntY rw,relatime master:2\n"
666 "173 168 8:3 / /mntX/a rw,relatime shared:3\n"
667 "175 169 8:5 / /mntY/b rw,relatime\n"
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 msgid ""
674 "Returning to the first terminal (in the initial mount namespace), we see "
675 "that the mount I</mntX/a> propagated to the peer (the shared I</mntX>), but "
676 "the mount I</mntY/b> was not propagated:"
677 msgstr ""
678
679 #. type: Plain text
680 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
681 #: opensuse-tumbleweed
682 #, no-wrap
683 msgid ""
684 "sh1#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
685 "132 83 8:23 / /mntX rw,relatime shared:1\n"
686 "133 83 8:22 / /mntY rw,relatime shared:2\n"
687 "174 132 8:3 / /mntX/a rw,relatime shared:3\n"
688 msgstr ""
689
690 #. type: Plain text
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 msgid "Now we create a new mount under I</mntY> in the first shell:"
694 msgstr ""
695
696 #. type: Plain text
697 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
698 #: opensuse-tumbleweed
699 #, no-wrap
700 msgid ""
701 "sh1#B< mkdir /mntY/c>\n"
702 "sh1#B< mount /dev/sda1 /mntY/c>\n"
703 "sh1#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
704 "132 83 8:23 / /mntX rw,relatime shared:1\n"
705 "133 83 8:22 / /mntY rw,relatime shared:2\n"
706 "174 132 8:3 / /mntX/a rw,relatime shared:3\n"
707 "178 133 8:1 / /mntY/c rw,relatime shared:4\n"
708 msgstr ""
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid ""
714 "When we examine the mounts in the second mount namespace, we see that in "
715 "this case the new mount has been propagated to the slave mount, and that the "
716 "new mount is itself a slave mount (to peer group 4):"
717 msgstr ""
718
719 #. type: Plain text
720 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
721 #: opensuse-tumbleweed
722 #, no-wrap
723 msgid ""
724 "sh2#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
725 "168 167 8:23 / /mntX rw,relatime shared:1\n"
726 "169 167 8:22 / /mntY rw,relatime master:2\n"
727 "173 168 8:3 / /mntX/a rw,relatime shared:3\n"
728 "175 169 8:5 / /mntY/b rw,relatime\n"
729 "179 169 8:1 / /mntY/c rw,relatime master:4\n"
730 msgstr ""
731
732 #. type: SS
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "MS_UNBINDABLE example"
737 msgstr ""
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid ""
743 "One of the primary purposes of unbindable mounts is to avoid the \"mount "
744 "explosion\" problem when repeatedly performing bind mounts of a higher-level "
745 "subtree at a lower-level mount. The problem is illustrated by the following "
746 "shell session."
747 msgstr ""
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid "Suppose we have a system with the following mounts:"
753 msgstr ""
754
755 #. type: Plain text
756 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
757 #: opensuse-tumbleweed
758 #, no-wrap
759 msgid ""
760 "#B< mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
761 "/dev/sda1 on /\n"
762 "/dev/sdb6 on /mntX\n"
763 "/dev/sdb7 on /mntY\n"
764 msgstr ""
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid ""
770 "Suppose furthermore that we wish to recursively bind mount the root "
771 "directory under several users' home directories. We do this for the first "
772 "user, and inspect the mounts:"
773 msgstr ""
774
775 #. type: Plain text
776 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
777 #: opensuse-tumbleweed
778 #, no-wrap
779 msgid ""
780 "#B< mount --rbind / /home/cecilia/>\n"
781 "#B< mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
782 "/dev/sda1 on /\n"
783 "/dev/sdb6 on /mntX\n"
784 "/dev/sdb7 on /mntY\n"
785 "/dev/sda1 on /home/cecilia\n"
786 "/dev/sdb6 on /home/cecilia/mntX\n"
787 "/dev/sdb7 on /home/cecilia/mntY\n"
788 msgstr ""
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid ""
794 "When we repeat this operation for the second user, we start to see the "
795 "explosion problem:"
796 msgstr ""
797
798 #. type: Plain text
799 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
800 #: opensuse-tumbleweed
801 #, no-wrap
802 msgid ""
803 "#B< mount --rbind / /home/henry>\n"
804 "#B< mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
805 "/dev/sda1 on /\n"
806 "/dev/sdb6 on /mntX\n"
807 "/dev/sdb7 on /mntY\n"
808 "/dev/sda1 on /home/cecilia\n"
809 "/dev/sdb6 on /home/cecilia/mntX\n"
810 "/dev/sdb7 on /home/cecilia/mntY\n"
811 "/dev/sda1 on /home/henry\n"
812 "/dev/sdb6 on /home/henry/mntX\n"
813 "/dev/sdb7 on /home/henry/mntY\n"
814 "/dev/sda1 on /home/henry/home/cecilia\n"
815 "/dev/sdb6 on /home/henry/home/cecilia/mntX\n"
816 "/dev/sdb7 on /home/henry/home/cecilia/mntY\n"
817 msgstr ""
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "Under I</home/henry>, we have not only recursively added the I</mntX> and I</"
824 "mntY> mounts, but also the recursive mounts of those directories under I</"
825 "home/cecilia> that were created in the previous step. Upon repeating the "
826 "step for a third user, it becomes obvious that the explosion is exponential "
827 "in nature:"
828 msgstr ""
829
830 #. type: Plain text
831 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
832 #: opensuse-tumbleweed
833 #, no-wrap
834 msgid ""
835 "#B< mount --rbind / /home/otto>\n"
836 "#B< mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
837 "/dev/sda1 on /\n"
838 "/dev/sdb6 on /mntX\n"
839 "/dev/sdb7 on /mntY\n"
840 "/dev/sda1 on /home/cecilia\n"
841 "/dev/sdb6 on /home/cecilia/mntX\n"
842 "/dev/sdb7 on /home/cecilia/mntY\n"
843 "/dev/sda1 on /home/henry\n"
844 "/dev/sdb6 on /home/henry/mntX\n"
845 "/dev/sdb7 on /home/henry/mntY\n"
846 "/dev/sda1 on /home/henry/home/cecilia\n"
847 "/dev/sdb6 on /home/henry/home/cecilia/mntX\n"
848 "/dev/sdb7 on /home/henry/home/cecilia/mntY\n"
849 "/dev/sda1 on /home/otto\n"
850 "/dev/sdb6 on /home/otto/mntX\n"
851 "/dev/sdb7 on /home/otto/mntY\n"
852 "/dev/sda1 on /home/otto/home/cecilia\n"
853 "/dev/sdb6 on /home/otto/home/cecilia/mntX\n"
854 "/dev/sdb7 on /home/otto/home/cecilia/mntY\n"
855 "/dev/sda1 on /home/otto/home/henry\n"
856 "/dev/sdb6 on /home/otto/home/henry/mntX\n"
857 "/dev/sdb7 on /home/otto/home/henry/mntY\n"
858 "/dev/sda1 on /home/otto/home/henry/home/cecilia\n"
859 "/dev/sdb6 on /home/otto/home/henry/home/cecilia/mntX\n"
860 "/dev/sdb7 on /home/otto/home/henry/home/cecilia/mntY\n"
861 msgstr ""
862
863 #. type: Plain text
864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
866 msgid ""
867 "The mount explosion problem in the above scenario can be avoided by making "
868 "each of the new mounts unbindable. The effect of doing this is that "
869 "recursive mounts of the root directory will not replicate the unbindable "
870 "mounts. We make such a mount for the first user:"
871 msgstr ""
872
873 #. type: Plain text
874 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
875 #: opensuse-tumbleweed
876 #, no-wrap
877 msgid "#B< mount --rbind --make-unbindable / /home/cecilia>\n"
878 msgstr ""
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 ""
884 "Before going further, we show that unbindable mounts are indeed unbindable:"
885 msgstr ""
886
887 #. type: Plain text
888 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
889 #: opensuse-tumbleweed
890 #, no-wrap
891 msgid ""
892 "#B< mkdir /mntZ>\n"
893 "#B< mount --bind /home/cecilia /mntZ>\n"
894 "mount: wrong fs type, bad option, bad superblock on /home/cecilia,\n"
895 " missing codepage or helper program, or other error\n"
896 "\\&\n"
897 " In some cases useful info is found in syslog - try\n"
898 " dmesg | tail or so.\n"
899 msgstr ""
900
901 #. type: Plain text
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 msgid "Now we create unbindable recursive bind mounts for the other two users:"
905 msgstr ""
906
907 #. type: Plain text
908 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
909 #: opensuse-tumbleweed
910 #, no-wrap
911 msgid ""
912 "#B< mount --rbind --make-unbindable / /home/henry>\n"
913 "#B< mount --rbind --make-unbindable / /home/otto>\n"
914 msgstr ""
915
916 #. type: Plain text
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 msgid ""
920 "Upon examining the list of mounts, we see there has been no explosion of "
921 "mounts, because the unbindable mounts were not replicated under each user's "
922 "directory:"
923 msgstr ""
924
925 #. type: Plain text
926 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
927 #: opensuse-tumbleweed
928 #, no-wrap
929 msgid ""
930 "#B< mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
931 "/dev/sda1 on /\n"
932 "/dev/sdb6 on /mntX\n"
933 "/dev/sdb7 on /mntY\n"
934 "/dev/sda1 on /home/cecilia\n"
935 "/dev/sdb6 on /home/cecilia/mntX\n"
936 "/dev/sdb7 on /home/cecilia/mntY\n"
937 "/dev/sda1 on /home/henry\n"
938 "/dev/sdb6 on /home/henry/mntX\n"
939 "/dev/sdb7 on /home/henry/mntY\n"
940 "/dev/sda1 on /home/otto\n"
941 "/dev/sdb6 on /home/otto/mntX\n"
942 "/dev/sdb7 on /home/otto/mntY\n"
943 msgstr ""
944
945 #. type: SS
946 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
947 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
948 #, no-wrap
949 msgid "Propagation type transitions"
950 msgstr ""
951
952 #. type: Plain text
953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
955 msgid ""
956 "The following table shows the effect that applying a new propagation type "
957 "(i.e., I<mount\\ --make-xxxx>) has on the existing propagation type of a "
958 "mount. The rows correspond to existing propagation types, and the columns "
959 "are the new propagation settings. For reasons of space, \"private\" is "
960 "abbreviated as \"priv\" and \"unbindable\" as \"unbind\"."
961 msgstr ""
962
963 #. type: tbl table
964 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
965 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
966 #, no-wrap
967 msgid "make-shared"
968 msgstr ""
969
970 #. type: tbl table
971 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
972 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
973 #, no-wrap
974 msgid "make-slave"
975 msgstr ""
976
977 #. type: tbl table
978 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
979 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
980 #, no-wrap
981 msgid "make-priv"
982 msgstr ""
983
984 #. type: tbl table
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 #, no-wrap
988 msgid "make-unbind"
989 msgstr ""
990
991 #. type: tbl table
992 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
993 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
994 #, no-wrap
995 msgid "_"
996 msgstr "_"
997
998 #. type: tbl table
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 #, no-wrap
1002 msgid "shared"
1003 msgstr ""
1004
1005 #. type: tbl table
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 #, no-wrap
1009 msgid "slave/priv [1]"
1010 msgstr ""
1011
1012 #. type: tbl table
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 #, no-wrap
1016 msgid "priv"
1017 msgstr ""
1018
1019 #. type: tbl table
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 #, no-wrap
1023 msgid "unbind"
1024 msgstr ""
1025
1026 #. type: tbl table
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 #, no-wrap
1030 msgid "slave"
1031 msgstr ""
1032
1033 #. type: tbl table
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 #, no-wrap
1037 msgid "slave+shared"
1038 msgstr ""
1039
1040 #. type: tbl table
1041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1043 #, no-wrap
1044 msgid "slave [2]"
1045 msgstr ""
1046
1047 #. type: tbl table
1048 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1049 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1050 #, no-wrap
1051 msgid "private"
1052 msgstr ""
1053
1054 #. type: tbl table
1055 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1056 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1057 #, no-wrap
1058 msgid "priv [2]"
1059 msgstr ""
1060
1061 #. type: tbl table
1062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1064 #, no-wrap
1065 msgid "unbindable"
1066 msgstr ""
1067
1068 #. type: tbl table
1069 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1070 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1071 #, no-wrap
1072 msgid "unbind [2]"
1073 msgstr ""
1074
1075 #. type: Plain text
1076 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1077 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1078 msgid "Note the following details to the table:"
1079 msgstr ""
1080
1081 #. type: IP
1082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1084 #, no-wrap
1085 msgid "[1]"
1086 msgstr "[1]"
1087
1088 #. type: Plain text
1089 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1090 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1091 msgid ""
1092 "If a shared mount is the only mount in its peer group, making it a slave "
1093 "automatically makes it private."
1094 msgstr ""
1095
1096 #. type: IP
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 #, no-wrap
1100 msgid "[2]"
1101 msgstr "[2]"
1102
1103 #. type: Plain text
1104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1106 msgid "Slaving a nonshared mount has no effect on the mount."
1107 msgstr ""
1108
1109 #. type: SS
1110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1112 #, no-wrap
1113 msgid "Bind (MS_BIND) semantics"
1114 msgstr ""
1115
1116 #. type: Plain text
1117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1119 msgid "Suppose that the following command is performed:"
1120 msgstr ""
1121
1122 #. type: Plain text
1123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1125 #, no-wrap
1126 msgid "mount --bind A/a B/b\n"
1127 msgstr ""
1128
1129 #. type: Plain text
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 msgid ""
1133 "Here, I<A> is the source mount, I<B> is the destination mount, I<a> is a "
1134 "subdirectory path under the mount point I<A>, and I<b> is a subdirectory "
1135 "path under the mount point I<B>. The propagation type of the resulting "
1136 "mount, I<B/b>, depends on the propagation types of the mounts I<A> and I<B>, "
1137 "and is summarized in the following table."
1138 msgstr ""
1139
1140 #. type: tbl table
1141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1143 #, no-wrap
1144 msgid "source(A)"
1145 msgstr ""
1146
1147 #. type: tbl table
1148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1150 #, no-wrap
1151 msgid "dest(B)"
1152 msgstr ""
1153
1154 #. type: tbl table
1155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1157 #, no-wrap
1158 msgid "invalid"
1159 msgstr ""
1160
1161 #. type: tbl table
1162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1164 #, no-wrap
1165 msgid "nonshared"
1166 msgstr ""
1167
1168 #. type: Plain text
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 msgid ""
1172 "Note that a recursive bind of a subtree follows the same semantics as for a "
1173 "bind operation on each mount in the subtree. (Unbindable mounts are "
1174 "automatically pruned at the target mount point.)"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 msgid ""
1181 "For further details, see I<Documentation/filesystems/sharedsubtree.rst> in "
1182 "the kernel source tree."
1183 msgstr ""
1184
1185 #. type: SS
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 #, no-wrap
1189 msgid "Move (MS_MOVE) semantics"
1190 msgstr ""
1191
1192 #. type: Plain text
1193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1195 #, no-wrap
1196 msgid "mount --move A B/b\n"
1197 msgstr ""
1198
1199 #. type: Plain text
1200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1202 msgid ""
1203 "Here, I<A> is the source mount, I<B> is the destination mount, and I<b> is a "
1204 "subdirectory path under the mount point I<B>. The propagation type of the "
1205 "resulting mount, I<B/b>, depends on the propagation types of the mounts I<A> "
1206 "and I<B>, and is summarized in the following table."
1207 msgstr ""
1208
1209 #. type: Plain text
1210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1212 msgid "Note: moving a mount that resides under a shared mount is invalid."
1213 msgstr ""
1214
1215 #. type: SS
1216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1218 #, no-wrap
1219 msgid "Mount semantics"
1220 msgstr ""
1221
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 msgid "Suppose that we use the following command to create a mount:"
1226 msgstr ""
1227
1228 #. type: Plain text
1229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1231 #, no-wrap
1232 msgid "mount device B/b\n"
1233 msgstr ""
1234
1235 #. type: Plain text
1236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1238 msgid ""
1239 "Here, I<B> is the destination mount, and I<b> is a subdirectory path under "
1240 "the mount point I<B>. The propagation type of the resulting mount, I<B/b>, "
1241 "follows the same rules as for a bind mount, where the propagation type of "
1242 "the source mount is considered always to be private."
1243 msgstr ""
1244
1245 #. type: SS
1246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1248 #, no-wrap
1249 msgid "Unmount semantics"
1250 msgstr ""
1251
1252 #. type: Plain text
1253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1255 msgid "Suppose that we use the following command to tear down a mount:"
1256 msgstr ""
1257
1258 #. type: Plain text
1259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1261 #, no-wrap
1262 msgid "umount A\n"
1263 msgstr ""
1264
1265 #. type: Plain text
1266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1268 msgid ""
1269 "Here, I<A> is a mount on I<B/b>, where I<B> is the parent mount and I<b> is "
1270 "a subdirectory path under the mount point I<B>. If B<B> is shared, then all "
1271 "most-recently-mounted mounts at I<b> on mounts that receive propagation from "
1272 "mount I<B> and do not have submounts under them are unmounted."
1273 msgstr ""
1274
1275 #. type: SS
1276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1278 #, no-wrap
1279 msgid "The /proc/ pid /mountinfo propagate_from tag"
1280 msgstr ""
1281
1282 #. type: Plain text
1283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1285 msgid ""
1286 "The I<propagate_from:X> tag is shown in the optional fields of a I</proc/"
1287 ">pidI</mountinfo> record in cases where a process can't see a slave's "
1288 "immediate master (i.e., the pathname of the master is not reachable from the "
1289 "filesystem root directory) and so cannot determine the chain of propagation "
1290 "between the mounts it can see."
1291 msgstr ""
1292
1293 #. type: Plain text
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 msgid ""
1297 "In the following example, we first create a two-link master-slave chain "
1298 "between the mounts I</mnt>, I</tmp/etc>, and I</mnt/tmp/etc>. Then the "
1299 "B<chroot>(1) command is used to make the I</tmp/etc> mount point "
1300 "unreachable from the root directory, creating a situation where the master "
1301 "of I</mnt/tmp/etc> is not reachable from the (new) root directory of the "
1302 "process."
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 "First, we bind mount the root directory onto I</mnt> and then bind mount I</"
1310 "proc> at I</mnt/proc> so that after the later B<chroot>(1) the B<proc>(5) "
1311 "filesystem remains visible at the correct location in the chroot-ed "
1312 "environment."
1313 msgstr ""
1314
1315 #. type: Plain text
1316 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1317 #: opensuse-tumbleweed
1318 #, no-wrap
1319 msgid ""
1320 "#B< mkdir -p /mnt/proc>\n"
1321 "#B< mount --bind / /mnt>\n"
1322 "#B< mount --bind /proc /mnt/proc>\n"
1323 msgstr ""
1324
1325 #. type: Plain text
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 msgid ""
1329 "Next, we ensure that the I</mnt> mount is a shared mount in a new peer group "
1330 "(with no peers):"
1331 msgstr ""
1332
1333 #. type: Plain text
1334 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1335 #: opensuse-tumbleweed
1336 #, no-wrap
1337 msgid ""
1338 "#B< mount --make-private /mnt> # Isolate from any previous peer group\n"
1339 "#B< mount --make-shared /mnt>\n"
1340 "#B< cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
1341 "239 61 8:2 / /mnt ...\\& shared:102\n"
1342 "248 239 0:4 / /mnt/proc ...\\& shared:5\n"
1343 msgstr ""
1344
1345 #. type: Plain text
1346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1348 msgid "Next, we bind mount I</mnt/etc> onto I</tmp/etc>:"
1349 msgstr ""
1350
1351 #. type: Plain text
1352 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1353 #: opensuse-tumbleweed
1354 #, no-wrap
1355 msgid ""
1356 "#B< mkdir -p /tmp/etc>\n"
1357 "#B< mount --bind /mnt/etc /tmp/etc>\n"
1358 "#B< cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
1359 "239 61 8:2 / /mnt ...\\& shared:102\n"
1360 "248 239 0:4 / /mnt/proc ...\\& shared:5\n"
1361 "267 40 8:2 /etc /tmp/etc ...\\& shared:102\n"
1362 msgstr ""
1363
1364 #. type: Plain text
1365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1367 msgid ""
1368 "Initially, these two mounts are in the same peer group, but we then make the "
1369 "I</tmp/etc> a slave of I</mnt/etc>, and then make I</tmp/etc> shared as "
1370 "well, so that it can propagate events to the next slave in the chain:"
1371 msgstr ""
1372
1373 #. type: Plain text
1374 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1375 #: opensuse-tumbleweed
1376 #, no-wrap
1377 msgid ""
1378 "#B< mount --make-slave /tmp/etc>\n"
1379 "#B< mount --make-shared /tmp/etc>\n"
1380 "#B< cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
1381 "239 61 8:2 / /mnt ...\\& shared:102\n"
1382 "248 239 0:4 / /mnt/proc ...\\& shared:5\n"
1383 "267 40 8:2 /etc /tmp/etc ...\\& shared:105 master:102\n"
1384 msgstr ""
1385
1386 #. type: Plain text
1387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1389 msgid ""
1390 "Then we bind mount I</tmp/etc> onto I</mnt/tmp/etc>. Again, the two mounts "
1391 "are initially in the same peer group, but we then make I</mnt/tmp/etc> a "
1392 "slave of I</tmp/etc>:"
1393 msgstr ""
1394
1395 #. type: Plain text
1396 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1397 #: opensuse-tumbleweed
1398 #, no-wrap
1399 msgid ""
1400 "#B< mkdir -p /mnt/tmp/etc>\n"
1401 "#B< mount --bind /tmp/etc /mnt/tmp/etc>\n"
1402 "#B< mount --make-slave /mnt/tmp/etc>\n"
1403 "#B< cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
1404 "239 61 8:2 / /mnt ...\\& shared:102\n"
1405 "248 239 0:4 / /mnt/proc ...\\& shared:5\n"
1406 "267 40 8:2 /etc /tmp/etc ...\\& shared:105 master:102\n"
1407 "273 239 8:2 /etc /mnt/tmp/etc ...\\& master:105\n"
1408 msgstr ""
1409
1410 #. type: Plain text
1411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1413 msgid ""
1414 "From the above, we see that I</mnt> is the master of the slave I</tmp/etc>, "
1415 "which in turn is the master of the slave I</mnt/tmp/etc>."
1416 msgstr ""
1417
1418 #. type: Plain text
1419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1421 msgid ""
1422 "We then B<chroot>(1) to the I</mnt> directory, which renders the mount with "
1423 "ID 267 unreachable from the (new) root directory:"
1424 msgstr ""
1425
1426 #. type: Plain text
1427 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1428 #: opensuse-tumbleweed
1429 #, fuzzy, no-wrap
1430 #| msgid "B<chroot>(2)"
1431 msgid "#B< chroot /mnt>\n"
1432 msgstr "B<chroot>(2)"
1433
1434 #. type: Plain text
1435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1437 msgid ""
1438 "When we examine the state of the mounts inside the chroot-ed environment, we "
1439 "see the following:"
1440 msgstr ""
1441
1442 #. type: Plain text
1443 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1444 #: opensuse-tumbleweed
1445 #, no-wrap
1446 msgid ""
1447 "#B< cat /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
1448 "239 61 8:2 / / ...\\& shared:102\n"
1449 "248 239 0:4 / /proc ...\\& shared:5\n"
1450 "273 239 8:2 /etc /tmp/etc ...\\& master:105 propagate_from:102\n"
1451 msgstr ""
1452
1453 #. type: Plain text
1454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1456 msgid ""
1457 "Above, we see that the mount with ID 273 is a slave whose master is the peer "
1458 "group 105. The mount point for that master is unreachable, and so a "
1459 "I<propagate_from> tag is displayed, indicating that the closest dominant "
1460 "peer group (i.e., the nearest reachable mount in the slave chain) is the "
1461 "peer group with the ID 102 (corresponding to the I</mnt> mount point before "
1462 "the B<chroot>(1) was performed)."
1463 msgstr ""
1464
1465 #. type: SH
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 #, no-wrap
1469 msgid "STANDARDS"
1470 msgstr "ESTÁNDARES"
1471
1472 #. type: Plain text
1473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1475 msgid "Linux."
1476 msgstr "Linux."
1477
1478 #. type: SH
1479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1481 #, no-wrap
1482 msgid "HISTORY"
1483 msgstr "HISTORIAL"
1484
1485 #. type: Plain text
1486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1488 #, fuzzy
1489 #| msgid "Linux."
1490 msgid "Linux 2.4.19."
1491 msgstr "Linux."
1492
1493 #. type: SH
1494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1496 #, no-wrap
1497 msgid "NOTES"
1498 msgstr "NOTAS"
1499
1500 #. type: Plain text
1501 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1502 #: opensuse-leap-16-1 opensuse-tumbleweed
1503 msgid ""
1504 "The propagation type assigned to a new mount depends on the propagation type "
1505 "of the parent mount. If the mount has a parent (i.e., it is a non-root "
1506 "mount) and the propagation type of the parent is B<MS_SHARED>, then the "
1507 "propagation type of the new mount is also B<MS_SHARED>. Otherwise, the "
1508 "propagation type of the new mount is B<MS_PRIVATE>."
1509 msgstr ""
1510
1511 #. type: Plain text
1512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1514 msgid ""
1515 "Notwithstanding the fact that the default propagation type for new mount is "
1516 "in many cases B<MS_PRIVATE>, B<MS_SHARED> is typically more useful. For "
1517 "this reason, B<systemd>(1) automatically remounts all mounts as "
1518 "B<MS_SHARED> on system startup. Thus, on most modern systems, the default "
1519 "propagation type is in practice B<MS_SHARED>."
1520 msgstr ""
1521
1522 #. type: Plain text
1523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1525 msgid ""
1526 "Since, when one uses B<unshare>(1) to create a mount namespace, the goal is "
1527 "commonly to provide full isolation of the mounts in the new namespace, "
1528 "B<unshare>(1) (since I<util-linux> 2.27) in turn reverses the step "
1529 "performed by B<systemd>(1), by making all mounts private in the new "
1530 "namespace. That is, B<unshare>(1) performs the equivalent of the following "
1531 "in the new mount namespace:"
1532 msgstr ""
1533
1534 #. type: Plain text
1535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1537 #, no-wrap
1538 msgid "mount --make-rprivate /\n"
1539 msgstr ""
1540
1541 #. type: Plain text
1542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1544 msgid ""
1545 "To prevent this, one can use the I<--propagation\\ unchanged> option to "
1546 "B<unshare>(1)."
1547 msgstr ""
1548
1549 #. type: Plain text
1550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1552 msgid ""
1553 "An application that creates a new mount namespace directly using "
1554 "B<clone>(2) or B<unshare>(2) may desire to prevent propagation of mount "
1555 "events to other mount namespaces (as is done by B<unshare>(1)). This can be "
1556 "done by changing the propagation type of mounts in the new namespace to "
1557 "either B<MS_SLAVE> or B<MS_PRIVATE>, using a call such as the following:"
1558 msgstr ""
1559
1560 #. type: Plain text
1561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1563 #, no-wrap
1564 msgid "mount(NULL, \"/\", MS_SLAVE | MS_REC, NULL);\n"
1565 msgstr ""
1566
1567 #
1568 #. ============================================================
1569 #. type: Plain text
1570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1572 msgid ""
1573 "For a discussion of propagation types when moving mounts (B<MS_MOVE>) and "
1574 "creating bind mounts (B<MS_BIND>), see I<Documentation/filesystems/"
1575 "sharedsubtree.rst>."
1576 msgstr ""
1577
1578 #. type: SS
1579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1581 #, no-wrap
1582 msgid "Restrictions on mount namespaces"
1583 msgstr ""
1584
1585 #. type: Plain text
1586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1588 msgid "Note the following points with respect to mount namespaces:"
1589 msgstr ""
1590
1591 #. type: Plain text
1592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1594 msgid ""
1595 "Each mount namespace has an owner user namespace. As explained above, when "
1596 "a new mount namespace is created, its mount list is initialized as a copy of "
1597 "the mount list of another mount namespace. If the new namespace and the "
1598 "namespace from which the mount list was copied are owned by different user "
1599 "namespaces, then the new mount namespace is considered I<less privileged>."
1600 msgstr ""
1601
1602 #. type: Plain text
1603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1605 msgid ""
1606 "When creating a less privileged mount namespace, shared mounts are reduced "
1607 "to slave mounts. This ensures that mappings performed in less privileged "
1608 "mount namespaces will not propagate to more privileged mount namespaces."
1609 msgstr ""
1610
1611 #. type: IP
1612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1614 #, no-wrap
1615 msgid "[3]"
1616 msgstr "[3]"
1617
1618 #. type: Plain text
1619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1621 msgid ""
1622 "Mounts that come as a single unit from a more privileged mount namespace are "
1623 "locked together and may not be separated in a less privileged mount "
1624 "namespace. (The B<unshare>(2) B<CLONE_NEWNS> operation brings across all "
1625 "of the mounts from the original mount namespace as a single unit, and "
1626 "recursive mounts that propagate between mount namespaces propagate as a "
1627 "single unit.)"
1628 msgstr ""
1629
1630 #. type: Plain text
1631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1633 msgid ""
1634 "In this context, \"may not be separated\" means that the mounts are locked "
1635 "so that they may not be individually unmounted. Consider the following "
1636 "example:"
1637 msgstr ""
1638
1639 #. type: Plain text
1640 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1641 #: opensuse-tumbleweed
1642 #, no-wrap
1643 msgid ""
1644 "$B< sudo sh>\n"
1645 "#B< mount --bind /dev/null /etc/shadow>\n"
1646 "#B< cat /etc/shadow> # Produces no output\n"
1647 msgstr ""
1648
1649 #. type: Plain text
1650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1652 msgid ""
1653 "The above steps, performed in a more privileged mount namespace, have "
1654 "created a bind mount that obscures the contents of the shadow password file, "
1655 "I</etc/shadow>. For security reasons, it should not be possible to "
1656 "B<umount>(2) that mount in a less privileged mount namespace, since that "
1657 "would reveal the contents of I</etc/shadow>."
1658 msgstr ""
1659
1660 #. type: Plain text
1661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1663 msgid ""
1664 "Suppose we now create a new mount namespace owned by a new user namespace. "
1665 "The new mount namespace will inherit copies of all of the mounts from the "
1666 "previous mount namespace. However, those mounts will be locked because the "
1667 "new mount namespace is less privileged. Consequently, an attempt to "
1668 "B<umount>(2) the mount fails as show in the following step:"
1669 msgstr ""
1670
1671 #. type: Plain text
1672 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1673 #: opensuse-tumbleweed
1674 #, no-wrap
1675 msgid ""
1676 "#B< unshare --user --map-root-user --mount \\[rs]>\n"
1677 "B<strace -o /tmp/log \\[rs]>\n"
1678 "B<umount /etc/shadow>\n"
1679 "umount: /etc/shadow: not mounted.\n"
1680 "#B< grep \\[aq]\\[ha]umount\\[aq] /tmp/log>\n"
1681 "umount2(\"/etc/shadow\", 0) = -1 EINVAL (Invalid argument)\n"
1682 msgstr ""
1683
1684 #. type: Plain text
1685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1687 msgid ""
1688 "The error message from B<mount>(8) is a little confusing, but the "
1689 "B<strace>(1) output reveals that the underlying B<umount2>(2) system call "
1690 "failed with the error B<EINVAL>, which is the error that the kernel returns "
1691 "to indicate that the mount is locked."
1692 msgstr ""
1693
1694 #. type: Plain text
1695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1697 msgid ""
1698 "Note, however, that it is possible to stack (and unstack) a mount on top of "
1699 "one of the inherited locked mounts in a less privileged mount namespace:"
1700 msgstr ""
1701
1702 #. type: Plain text
1703 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1704 #: opensuse-tumbleweed
1705 #, no-wrap
1706 msgid ""
1707 "#B< echo \\[aq]aaaaa\\[aq] E<gt> /tmp/a> # File to mount onto /etc/shadow\n"
1708 "#B< unshare --user --map-root-user --mount \\[rs]>\n"
1709 "B<sh -c \\[aq]mount --bind /tmp/a /etc/shadow; cat /etc/shadow\\[aq]>\n"
1710 "aaaaa\n"
1711 "#B< umount /etc/shadow>\n"
1712 msgstr ""
1713
1714 #. type: Plain text
1715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1717 msgid ""
1718 "The final B<umount>(8) command above, which is performed in the initial "
1719 "mount namespace, makes the original I</etc/shadow> file once more visible in "
1720 "that namespace."
1721 msgstr ""
1722
1723 #. type: IP
1724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1726 #, no-wrap
1727 msgid "[4]"
1728 msgstr "[4]"
1729
1730 #. type: Plain text
1731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1733 msgid ""
1734 "Following on from point [3], note that it is possible to B<umount>(2) an "
1735 "entire subtree of mounts that propagated as a unit into a less privileged "
1736 "mount namespace, as illustrated in the following example."
1737 msgstr ""
1738
1739 #. type: Plain text
1740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1742 msgid ""
1743 "First, we create new user and mount namespaces using B<unshare>(1). In the "
1744 "new mount namespace, the propagation type of all mounts is set to private. "
1745 "We then create a shared bind mount at I</mnt>, and a small hierarchy of "
1746 "mounts underneath that mount."
1747 msgstr ""
1748
1749 #. type: Plain text
1750 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1751 #: opensuse-tumbleweed
1752 #, no-wrap
1753 msgid ""
1754 "$B< PS1=\\[aq]ns1# \\[aq] sudo unshare --user --map-root-user \\[rs]>\n"
1755 "B<--mount --propagation private bash>\n"
1756 "ns1#B< echo $$> # We need the PID of this shell later\n"
1757 "778501\n"
1758 "ns1#B< mount --make-shared --bind /mnt /mnt>\n"
1759 "ns1#B< mkdir /mnt/x>\n"
1760 "ns1#B< mount --make-private -t tmpfs none /mnt/x>\n"
1761 "ns1#B< mkdir /mnt/x/y>\n"
1762 "ns1#B< mount --make-private -t tmpfs none /mnt/x/y>\n"
1763 "ns1#B< grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
1764 "986 83 8:5 /mnt /mnt rw,relatime shared:344\n"
1765 "989 986 0:56 / /mnt/x rw,relatime\n"
1766 "990 989 0:57 / /mnt/x/y rw,relatime\n"
1767 msgstr ""
1768
1769 #. type: Plain text
1770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1772 msgid ""
1773 "Continuing in the same shell session, we then create a second shell in a new "
1774 "user namespace and a new (less privileged) mount namespace and check the "
1775 "state of the propagated mounts rooted at I</mnt>."
1776 msgstr ""
1777
1778 #. type: Plain text
1779 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1780 #: opensuse-tumbleweed
1781 #, no-wrap
1782 msgid ""
1783 "ns1#B< PS1=\\[aq]ns2# \\[aq] unshare --user --map-root-user \\[rs]>\n"
1784 "B<--mount --propagation unchanged bash>\n"
1785 "ns2#B< grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
1786 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
1787 "1240 1239 0:56 / /mnt/x rw,relatime\n"
1788 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
1789 msgstr ""
1790
1791 #. type: Plain text
1792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1794 msgid ""
1795 "Of note in the above output is that the propagation type of the mount I</"
1796 "mnt> has been reduced to slave, as explained in point [2]. This means that "
1797 "submount events will propagate from the master I</mnt> in \"ns1\", but "
1798 "propagation will not occur in the opposite direction."
1799 msgstr ""
1800
1801 #. type: Plain text
1802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1804 msgid ""
1805 "From a separate terminal window, we then use B<nsenter>(1) to enter the "
1806 "mount and user namespaces corresponding to \"ns1\". In that terminal "
1807 "window, we then recursively bind mount I</mnt/x> at the location I</mnt/ppp>."
1808 msgstr ""
1809
1810 #. type: Plain text
1811 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1812 #: opensuse-tumbleweed
1813 #, no-wrap
1814 msgid ""
1815 "$B< PS1=\\[aq]ns3# \\[aq] sudo nsenter -t 778501 --user --mount>\n"
1816 "ns3#B< mount --rbind --make-private /mnt/x /mnt/ppp>\n"
1817 "ns3#B< grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
1818 "986 83 8:5 /mnt /mnt rw,relatime shared:344\n"
1819 "989 986 0:56 / /mnt/x rw,relatime\n"
1820 "990 989 0:57 / /mnt/x/y rw,relatime\n"
1821 "1242 986 0:56 / /mnt/ppp rw,relatime\n"
1822 "1243 1242 0:57 / /mnt/ppp/y rw,relatime shared:518\n"
1823 msgstr ""
1824
1825 #. type: Plain text
1826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1828 msgid ""
1829 "Because the propagation type of the parent mount, I</mnt>, was shared, the "
1830 "recursive bind mount propagated a small subtree of mounts under the slave "
1831 "mount I</mnt> into \"ns2\", as can be verified by executing the following "
1832 "command in that shell session:"
1833 msgstr ""
1834
1835 #. type: Plain text
1836 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1837 #: opensuse-tumbleweed
1838 #, no-wrap
1839 msgid ""
1840 "ns2#B< grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
1841 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
1842 "1240 1239 0:56 / /mnt/x rw,relatime\n"
1843 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
1844 "1244 1239 0:56 / /mnt/ppp rw,relatime\n"
1845 "1245 1244 0:57 / /mnt/ppp/y rw,relatime master:518\n"
1846 msgstr ""
1847
1848 #. type: Plain text
1849 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1850 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1851 msgid ""
1852 "While it is not possible to B<umount>(2) a part of the propagated subtree "
1853 "(I</mnt/ppp/y>) in \"ns2\", it is possible to B<umount>(2) the entire "
1854 "subtree, as shown by the following commands:"
1855 msgstr ""
1856
1857 #. type: Plain text
1858 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1859 #: opensuse-tumbleweed
1860 #, no-wrap
1861 msgid ""
1862 "ns2#B< umount /mnt/ppp/y>\n"
1863 "umount: /mnt/ppp/y: not mounted.\n"
1864 "ns2#B< umount -l /mnt/ppp | sed \\[aq]s/ - .*//\\[aq]> # Succeeds...\n"
1865 "ns2#B< grep /mnt /proc/self/mountinfo>\n"
1866 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
1867 "1240 1239 0:56 / /mnt/x rw,relatime\n"
1868 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
1869 msgstr ""
1870
1871 #. type: IP
1872 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1873 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1874 #, no-wrap
1875 msgid "[5]"
1876 msgstr "[5]"
1877
1878 #
1879 #. commit 9566d6742852c527bf5af38af5cbb878dad75705
1880 #. Author: Eric W. Biederman <[email protected]>
1881 #. Date: Mon Jul 28 17:26:07 2014 -0700
1882 #. mnt: Correct permission checks in do_remount
1883 #. type: Plain text
1884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1886 msgid ""
1887 "The B<mount>(2) flags B<MS_RDONLY>, B<MS_NOSUID>, B<MS_NOEXEC>, and the "
1888 "\"atime\" flags (B<MS_NOATIME>, B<MS_NODIRATIME>, B<MS_RELATIME>) settings "
1889 "become locked when propagated from a more privileged to a less privileged "
1890 "mount namespace, and may not be changed in the less privileged mount "
1891 "namespace."
1892 msgstr ""
1893
1894 #. type: Plain text
1895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1897 msgid ""
1898 "This point is illustrated in the following example where, in a more "
1899 "privileged mount namespace, we create a bind mount that is marked as read-"
1900 "only. For security reasons, it should not be possible to make the mount "
1901 "writable in a less privileged mount namespace, and indeed the kernel "
1902 "prevents this:"
1903 msgstr ""
1904
1905 #. type: Plain text
1906 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1907 #: opensuse-tumbleweed
1908 #, no-wrap
1909 msgid ""
1910 "$B< sudo mkdir /mnt/dir>\n"
1911 "$B< sudo mount --bind -o ro /some/path /mnt/dir>\n"
1912 "$B< sudo unshare --user --map-root-user --mount \\[rs]>\n"
1913 "B<mount -o remount,rw /mnt/dir>\n"
1914 "mount: /mnt/dir: permission denied.\n"
1915 msgstr ""
1916
1917 #. type: IP
1918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1920 #, no-wrap
1921 msgid "[6]"
1922 msgstr "[6]"
1923
1924 #. (As of 3.18-rc1 (in Al Viro's 2014-08-30 vfs.git#for-next tree))
1925 #. type: Plain text
1926 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1927 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1928 msgid ""
1929 "A file or directory that is a mount point in one namespace that is not a "
1930 "mount point in another namespace, may be renamed, unlinked, or removed "
1931 "(B<rmdir>(2)) in the mount namespace in which it is not a mount point "
1932 "(subject to the usual permission checks). Consequently, the mount point is "
1933 "removed in the mount namespace where it was a mount point."
1934 msgstr ""
1935
1936 #
1937 #. mtk: The change was in Linux 3.18, I think, with this commit:
1938 #. commit 8ed936b5671bfb33d89bc60bdcc7cf0470ba52fe
1939 #. Author: Eric W. Biederman <[email protected]>
1940 #. Date: Tue Oct 1 18:33:48 2013 -0700
1941 #. vfs: Lazily remove mounts on unlinked files and directories.
1942 #. type: Plain text
1943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1945 msgid ""
1946 "Previously (before Linux 3.18), attempting to unlink, rename, or remove a "
1947 "file or directory that was a mount point in another mount namespace would "
1948 "result in the error B<EBUSY>. That behavior had technical problems of "
1949 "enforcement (e.g., for NFS) and permitted denial-of-service attacks against "
1950 "more privileged users (i.e., preventing individual files from being updated "
1951 "by bind mounting on top of them)."
1952 msgstr ""
1953
1954 #. type: SH
1955 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1956 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1957 #, no-wrap
1958 msgid "EXAMPLES"
1959 msgstr "EJEMPLOS"
1960
1961 #. type: Plain text
1962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1964 msgid "See B<pivot_root>(2)."
1965 msgstr ""
1966
1967 #. type: SH
1968 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1969 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1970 #, no-wrap
1971 msgid "SEE ALSO"
1972 msgstr "VÉASE TAMBIÉN"
1973
1974 #. type: Plain text
1975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1977 msgid ""
1978 "B<unshare>(1), B<clone>(2), B<mount>(2), B<mount_setattr>(2), "
1979 "B<pivot_root>(2), B<setns>(2), B<umount>(2), B<unshare>(2), B<proc>(5), "
1980 "B<namespaces>(7), B<user_namespaces>(7), B<findmnt>(8), B<mount>(8), "
1981 "B<pam_namespace>(8), B<pivot_root>(8), B<umount>(8)"
1982 msgstr ""
1983
1984 #. type: Plain text
1985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1987 msgid ""
1988 "I<Documentation/filesystems/sharedsubtree.rst> in the kernel source tree."
1989 msgstr ""
1990
1991 #. type: TH
1992 #: debian-trixie
1993 #, no-wrap
1994 msgid "2024-06-15"
1995 msgstr "15 Junio 2024"
1996
1997 #. type: TH
1998 #: debian-trixie
1999 #, no-wrap
2000 msgid "Linux man-pages 6.9.1"
2001 msgstr "Páginas de Manual de Linux 6.9.1"
2002
2003 #. type: Plain text
2004 #: debian-trixie fedora-44 fedora-rawhide
2005 #, no-wrap
2006 msgid ""
2007 "sh1# B<mount --make-shared /mntS>\n"
2008 "sh1# B<mount --make-private /mntP>\n"
2009 "sh1# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2010 "77 61 8:17 / /mntS rw,relatime shared:1\n"
2011 "83 61 8:15 / /mntP rw,relatime\n"
2012 msgstr ""
2013
2014 #. type: Plain text
2015 #: debian-trixie fedora-44 fedora-rawhide
2016 #, no-wrap
2017 msgid ""
2018 "sh1# B<cat /proc/self/mountinfo | awk \\[aq]$1 == 61\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2019 "61 0 8:2 / / rw,relatime\n"
2020 msgstr ""
2021
2022 #. type: Plain text
2023 #: debian-trixie fedora-44 fedora-rawhide
2024 #, no-wrap
2025 msgid ""
2026 "$ B<PS1=\\[aq]sh2# \\[aq] sudo unshare -m --propagation unchanged sh>\n"
2027 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2028 "222 145 8:17 / /mntS rw,relatime shared:1\n"
2029 "225 145 8:15 / /mntP rw,relatime\n"
2030 msgstr ""
2031
2032 #. type: Plain text
2033 #: debian-trixie fedora-44 fedora-rawhide
2034 #, no-wrap
2035 msgid ""
2036 "sh2# B<mkdir /mntS/a>\n"
2037 "sh2# B<mount /dev/sdb6 /mntS/a>\n"
2038 "sh2# B<mkdir /mntP/b>\n"
2039 "sh2# B<mount /dev/sdb7 /mntP/b>\n"
2040 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2041 "222 145 8:17 / /mntS rw,relatime shared:1\n"
2042 "225 145 8:15 / /mntP rw,relatime\n"
2043 "178 222 8:22 / /mntS/a rw,relatime shared:2\n"
2044 "230 225 8:23 / /mntP/b rw,relatime\n"
2045 msgstr ""
2046
2047 #. type: Plain text
2048 #: debian-trixie fedora-44 fedora-rawhide
2049 #, no-wrap
2050 msgid ""
2051 "sh1# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2052 "77 61 8:17 / /mntS rw,relatime shared:1\n"
2053 "83 61 8:15 / /mntP rw,relatime\n"
2054 "179 77 8:22 / /mntS/a rw,relatime shared:2\n"
2055 msgstr ""
2056
2057 #. type: Plain text
2058 #: debian-trixie fedora-44 fedora-rawhide
2059 #, no-wrap
2060 msgid ""
2061 "sh1# B<mount --make-shared /mntX>\n"
2062 "sh1# B<mount --make-shared /mntY>\n"
2063 "sh1# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2064 "132 83 8:23 / /mntX rw,relatime shared:1\n"
2065 "133 83 8:22 / /mntY rw,relatime shared:2\n"
2066 msgstr ""
2067
2068 #. type: Plain text
2069 #: debian-trixie fedora-44 fedora-rawhide
2070 #, no-wrap
2071 msgid ""
2072 "sh2# B<unshare -m --propagation unchanged sh>\n"
2073 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2074 "168 167 8:23 / /mntX rw,relatime shared:1\n"
2075 "169 167 8:22 / /mntY rw,relatime shared:2\n"
2076 msgstr ""
2077
2078 #. type: Plain text
2079 #: debian-trixie fedora-44 fedora-rawhide
2080 #, no-wrap
2081 msgid ""
2082 "sh2# B<mount --make-slave /mntY>\n"
2083 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2084 "168 167 8:23 / /mntX rw,relatime shared:1\n"
2085 "169 167 8:22 / /mntY rw,relatime master:2\n"
2086 msgstr ""
2087
2088 #. type: Plain text
2089 #: debian-trixie fedora-44 fedora-rawhide
2090 #, no-wrap
2091 msgid ""
2092 "sh2# B<mkdir /mntX/a>\n"
2093 "sh2# B<mount /dev/sda3 /mntX/a>\n"
2094 "sh2# B<mkdir /mntY/b>\n"
2095 "sh2# B<mount /dev/sda5 /mntY/b>\n"
2096 msgstr ""
2097
2098 #. type: Plain text
2099 #: debian-trixie fedora-44 fedora-rawhide
2100 #, no-wrap
2101 msgid ""
2102 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2103 "168 167 8:23 / /mntX rw,relatime shared:1\n"
2104 "169 167 8:22 / /mntY rw,relatime master:2\n"
2105 "173 168 8:3 / /mntX/a rw,relatime shared:3\n"
2106 "175 169 8:5 / /mntY/b rw,relatime\n"
2107 msgstr ""
2108
2109 #. type: Plain text
2110 #: debian-trixie fedora-44 fedora-rawhide
2111 #, no-wrap
2112 msgid ""
2113 "sh1# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2114 "132 83 8:23 / /mntX rw,relatime shared:1\n"
2115 "133 83 8:22 / /mntY rw,relatime shared:2\n"
2116 "174 132 8:3 / /mntX/a rw,relatime shared:3\n"
2117 msgstr ""
2118
2119 #. type: Plain text
2120 #: debian-trixie fedora-44 fedora-rawhide
2121 #, no-wrap
2122 msgid ""
2123 "sh1# B<mkdir /mntY/c>\n"
2124 "sh1# B<mount /dev/sda1 /mntY/c>\n"
2125 "sh1# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2126 "132 83 8:23 / /mntX rw,relatime shared:1\n"
2127 "133 83 8:22 / /mntY rw,relatime shared:2\n"
2128 "174 132 8:3 / /mntX/a rw,relatime shared:3\n"
2129 "178 133 8:1 / /mntY/c rw,relatime shared:4\n"
2130 msgstr ""
2131
2132 #. type: Plain text
2133 #: debian-trixie fedora-44 fedora-rawhide
2134 #, no-wrap
2135 msgid ""
2136 "sh2# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2137 "168 167 8:23 / /mntX rw,relatime shared:1\n"
2138 "169 167 8:22 / /mntY rw,relatime master:2\n"
2139 "173 168 8:3 / /mntX/a rw,relatime shared:3\n"
2140 "175 169 8:5 / /mntY/b rw,relatime\n"
2141 "179 169 8:1 / /mntY/c rw,relatime master:4\n"
2142 msgstr ""
2143
2144 #. type: Plain text
2145 #: debian-trixie fedora-44 fedora-rawhide
2146 #, no-wrap
2147 msgid ""
2148 "# B<mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
2149 "/dev/sda1 on /\n"
2150 "/dev/sdb6 on /mntX\n"
2151 "/dev/sdb7 on /mntY\n"
2152 msgstr ""
2153
2154 #. type: Plain text
2155 #: debian-trixie fedora-44 fedora-rawhide
2156 #, no-wrap
2157 msgid ""
2158 "# B<mount --rbind / /home/cecilia/>\n"
2159 "# B<mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
2160 "/dev/sda1 on /\n"
2161 "/dev/sdb6 on /mntX\n"
2162 "/dev/sdb7 on /mntY\n"
2163 "/dev/sda1 on /home/cecilia\n"
2164 "/dev/sdb6 on /home/cecilia/mntX\n"
2165 "/dev/sdb7 on /home/cecilia/mntY\n"
2166 msgstr ""
2167
2168 #. type: Plain text
2169 #: debian-trixie fedora-44 fedora-rawhide
2170 #, no-wrap
2171 msgid ""
2172 "# B<mount --rbind / /home/henry>\n"
2173 "# B<mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
2174 "/dev/sda1 on /\n"
2175 "/dev/sdb6 on /mntX\n"
2176 "/dev/sdb7 on /mntY\n"
2177 "/dev/sda1 on /home/cecilia\n"
2178 "/dev/sdb6 on /home/cecilia/mntX\n"
2179 "/dev/sdb7 on /home/cecilia/mntY\n"
2180 "/dev/sda1 on /home/henry\n"
2181 "/dev/sdb6 on /home/henry/mntX\n"
2182 "/dev/sdb7 on /home/henry/mntY\n"
2183 "/dev/sda1 on /home/henry/home/cecilia\n"
2184 "/dev/sdb6 on /home/henry/home/cecilia/mntX\n"
2185 "/dev/sdb7 on /home/henry/home/cecilia/mntY\n"
2186 msgstr ""
2187
2188 #. type: Plain text
2189 #: debian-trixie fedora-44 fedora-rawhide
2190 #, no-wrap
2191 msgid ""
2192 "# B<mount --rbind / /home/otto>\n"
2193 "# B<mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
2194 "/dev/sda1 on /\n"
2195 "/dev/sdb6 on /mntX\n"
2196 "/dev/sdb7 on /mntY\n"
2197 "/dev/sda1 on /home/cecilia\n"
2198 "/dev/sdb6 on /home/cecilia/mntX\n"
2199 "/dev/sdb7 on /home/cecilia/mntY\n"
2200 "/dev/sda1 on /home/henry\n"
2201 "/dev/sdb6 on /home/henry/mntX\n"
2202 "/dev/sdb7 on /home/henry/mntY\n"
2203 "/dev/sda1 on /home/henry/home/cecilia\n"
2204 "/dev/sdb6 on /home/henry/home/cecilia/mntX\n"
2205 "/dev/sdb7 on /home/henry/home/cecilia/mntY\n"
2206 "/dev/sda1 on /home/otto\n"
2207 "/dev/sdb6 on /home/otto/mntX\n"
2208 "/dev/sdb7 on /home/otto/mntY\n"
2209 "/dev/sda1 on /home/otto/home/cecilia\n"
2210 "/dev/sdb6 on /home/otto/home/cecilia/mntX\n"
2211 "/dev/sdb7 on /home/otto/home/cecilia/mntY\n"
2212 "/dev/sda1 on /home/otto/home/henry\n"
2213 "/dev/sdb6 on /home/otto/home/henry/mntX\n"
2214 "/dev/sdb7 on /home/otto/home/henry/mntY\n"
2215 "/dev/sda1 on /home/otto/home/henry/home/cecilia\n"
2216 "/dev/sdb6 on /home/otto/home/henry/home/cecilia/mntX\n"
2217 "/dev/sdb7 on /home/otto/home/henry/home/cecilia/mntY\n"
2218 msgstr ""
2219
2220 #. type: Plain text
2221 #: debian-trixie fedora-44 fedora-rawhide
2222 #, no-wrap
2223 msgid "# B<mount --rbind --make-unbindable / /home/cecilia>\n"
2224 msgstr ""
2225
2226 #. type: Plain text
2227 #: debian-trixie fedora-44 fedora-rawhide
2228 #, no-wrap
2229 msgid ""
2230 "# B<mkdir /mntZ>\n"
2231 "# B<mount --bind /home/cecilia /mntZ>\n"
2232 "mount: wrong fs type, bad option, bad superblock on /home/cecilia,\n"
2233 " missing codepage or helper program, or other error\n"
2234 "\\&\n"
2235 " In some cases useful info is found in syslog - try\n"
2236 " dmesg | tail or so.\n"
2237 msgstr ""
2238
2239 #. type: Plain text
2240 #: debian-trixie fedora-44 fedora-rawhide
2241 #, no-wrap
2242 msgid ""
2243 "# B<mount --rbind --make-unbindable / /home/henry>\n"
2244 "# B<mount --rbind --make-unbindable / /home/otto>\n"
2245 msgstr ""
2246
2247 #. type: Plain text
2248 #: debian-trixie fedora-44 fedora-rawhide
2249 #, no-wrap
2250 msgid ""
2251 "# B<mount | awk \\[aq]{print $1, $2, $3}\\[aq]>\n"
2252 "/dev/sda1 on /\n"
2253 "/dev/sdb6 on /mntX\n"
2254 "/dev/sdb7 on /mntY\n"
2255 "/dev/sda1 on /home/cecilia\n"
2256 "/dev/sdb6 on /home/cecilia/mntX\n"
2257 "/dev/sdb7 on /home/cecilia/mntY\n"
2258 "/dev/sda1 on /home/henry\n"
2259 "/dev/sdb6 on /home/henry/mntX\n"
2260 "/dev/sdb7 on /home/henry/mntY\n"
2261 "/dev/sda1 on /home/otto\n"
2262 "/dev/sdb6 on /home/otto/mntX\n"
2263 "/dev/sdb7 on /home/otto/mntY\n"
2264 msgstr ""
2265
2266 #. type: Plain text
2267 #: debian-trixie fedora-44 fedora-rawhide
2268 #, no-wrap
2269 msgid ""
2270 "# B<mkdir -p /mnt/proc>\n"
2271 "# B<mount --bind / /mnt>\n"
2272 "# B<mount --bind /proc /mnt/proc>\n"
2273 msgstr ""
2274
2275 #. type: Plain text
2276 #: debian-trixie fedora-44 fedora-rawhide
2277 #, no-wrap
2278 msgid ""
2279 "# B<mount --make-private /mnt> # Isolate from any previous peer group\n"
2280 "# B<mount --make-shared /mnt>\n"
2281 "# B<cat /proc/self/mountinfo | grep \\[aq]/mnt\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2282 "239 61 8:2 / /mnt ... shared:102\n"
2283 "248 239 0:4 / /mnt/proc ... shared:5\n"
2284 msgstr ""
2285
2286 #. type: Plain text
2287 #: debian-trixie fedora-44 fedora-rawhide
2288 #, no-wrap
2289 msgid ""
2290 "# B<mkdir -p /tmp/etc>\n"
2291 "# B<mount --bind /mnt/etc /tmp/etc>\n"
2292 "# B<cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2293 "239 61 8:2 / /mnt ... shared:102\n"
2294 "248 239 0:4 / /mnt/proc ... shared:5\n"
2295 "267 40 8:2 /etc /tmp/etc ... shared:102\n"
2296 msgstr ""
2297
2298 #. type: Plain text
2299 #: debian-trixie fedora-44 fedora-rawhide
2300 #, no-wrap
2301 msgid ""
2302 "# B<mount --make-slave /tmp/etc>\n"
2303 "# B<mount --make-shared /tmp/etc>\n"
2304 "# B<cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2305 "239 61 8:2 / /mnt ... shared:102\n"
2306 "248 239 0:4 / /mnt/proc ... shared:5\n"
2307 "267 40 8:2 /etc /tmp/etc ... shared:105 master:102\n"
2308 msgstr ""
2309
2310 #. type: Plain text
2311 #: debian-trixie fedora-44 fedora-rawhide
2312 #, no-wrap
2313 msgid ""
2314 "# B<mkdir -p /mnt/tmp/etc>\n"
2315 "# B<mount --bind /tmp/etc /mnt/tmp/etc>\n"
2316 "# B<mount --make-slave /mnt/tmp/etc>\n"
2317 "# B<cat /proc/self/mountinfo | egrep \\[aq]/mnt|/tmp/\\[aq] | sed \\[aq]s/ - .*//\\[aq]>\n"
2318 "239 61 8:2 / /mnt ... shared:102\n"
2319 "248 239 0:4 / /mnt/proc ... shared:5\n"
2320 "267 40 8:2 /etc /tmp/etc ... shared:105 master:102\n"
2321 "273 239 8:2 /etc /mnt/tmp/etc ... master:105\n"
2322 msgstr ""
2323
2324 #. type: Plain text
2325 #: debian-trixie fedora-44 fedora-rawhide
2326 #, no-wrap
2327 msgid "# B<chroot /mnt>\n"
2328 msgstr ""
2329
2330 #. type: Plain text
2331 #: debian-trixie fedora-44 fedora-rawhide
2332 #, no-wrap
2333 msgid ""
2334 "# B<cat /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
2335 "239 61 8:2 / / ... shared:102\n"
2336 "248 239 0:4 / /proc ... shared:5\n"
2337 "273 239 8:2 /etc /tmp/etc ... master:105 propagate_from:102\n"
2338 msgstr ""
2339
2340 #. type: Plain text
2341 #: debian-trixie
2342 msgid ""
2343 "The propagation type assigned to a new mount depends on the propagation type "
2344 "of the parent mount. If the mount has a parent (i.e., it is a non-root "
2345 "mount point) and the propagation type of the parent is B<MS_SHARED>, then "
2346 "the propagation type of the new mount is also B<MS_SHARED>. Otherwise, the "
2347 "propagation type of the new mount is B<MS_PRIVATE>."
2348 msgstr ""
2349
2350 #. type: Plain text
2351 #: debian-trixie fedora-44 fedora-rawhide
2352 #, no-wrap
2353 msgid ""
2354 "$ B<sudo sh>\n"
2355 "# B<mount --bind /dev/null /etc/shadow>\n"
2356 "# B<cat /etc/shadow> # Produces no output\n"
2357 msgstr ""
2358
2359 #. type: Plain text
2360 #: debian-trixie
2361 #, no-wrap
2362 msgid ""
2363 "# B<unshare --user --map-root-user --mount \\[rs]>\n"
2364 " B<strace -o /tmp/log \\[rs]>\n"
2365 " B<umount /mnt/dir>\n"
2366 "umount: /etc/shadow: not mounted.\n"
2367 "# B<grep \\[aq]\\[ha]umount\\[aq] /tmp/log>\n"
2368 "umount2(\"/etc/shadow\", 0) = -1 EINVAL (Invalid argument)\n"
2369 msgstr ""
2370
2371 #. type: Plain text
2372 #: debian-trixie fedora-44 fedora-rawhide
2373 #, no-wrap
2374 msgid ""
2375 "# B<echo \\[aq]aaaaa\\[aq] E<gt> /tmp/a> # File to mount onto /etc/shadow\n"
2376 "# B<unshare --user --map-root-user --mount \\[rs]>\n"
2377 " B<sh -c \\[aq]mount --bind /tmp/a /etc/shadow; cat /etc/shadow\\[aq]>\n"
2378 "aaaaa\n"
2379 "# B<umount /etc/shadow>\n"
2380 msgstr ""
2381
2382 #. type: Plain text
2383 #: debian-trixie fedora-44 fedora-rawhide
2384 #, no-wrap
2385 msgid ""
2386 "$ B<PS1=\\[aq]ns1# \\[aq] sudo unshare --user --map-root-user \\[rs]>\n"
2387 " B<--mount --propagation private bash>\n"
2388 "ns1# B<echo $$> # We need the PID of this shell later\n"
2389 "778501\n"
2390 "ns1# B<mount --make-shared --bind /mnt /mnt>\n"
2391 "ns1# B<mkdir /mnt/x>\n"
2392 "ns1# B<mount --make-private -t tmpfs none /mnt/x>\n"
2393 "ns1# B<mkdir /mnt/x/y>\n"
2394 "ns1# B<mount --make-private -t tmpfs none /mnt/x/y>\n"
2395 "ns1# B<grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
2396 "986 83 8:5 /mnt /mnt rw,relatime shared:344\n"
2397 "989 986 0:56 / /mnt/x rw,relatime\n"
2398 "990 989 0:57 / /mnt/x/y rw,relatime\n"
2399 msgstr ""
2400
2401 #. type: Plain text
2402 #: debian-trixie fedora-44 fedora-rawhide
2403 #, no-wrap
2404 msgid ""
2405 "ns1# B<PS1=\\[aq]ns2# \\[aq] unshare --user --map-root-user \\[rs]>\n"
2406 " B<--mount --propagation unchanged bash>\n"
2407 "ns2# B<grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
2408 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
2409 "1240 1239 0:56 / /mnt/x rw,relatime\n"
2410 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
2411 msgstr ""
2412
2413 #. type: Plain text
2414 #: debian-trixie fedora-44 fedora-rawhide
2415 #, no-wrap
2416 msgid ""
2417 "$ B<PS1=\\[aq]ns3# \\[aq] sudo nsenter -t 778501 --user --mount>\n"
2418 "ns3# B<mount --rbind --make-private /mnt/x /mnt/ppp>\n"
2419 "ns3# B<grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
2420 "986 83 8:5 /mnt /mnt rw,relatime shared:344\n"
2421 "989 986 0:56 / /mnt/x rw,relatime\n"
2422 "990 989 0:57 / /mnt/x/y rw,relatime\n"
2423 "1242 986 0:56 / /mnt/ppp rw,relatime\n"
2424 "1243 1242 0:57 / /mnt/ppp/y rw,relatime shared:518\n"
2425 msgstr ""
2426
2427 #. type: Plain text
2428 #: debian-trixie fedora-44 fedora-rawhide
2429 #, no-wrap
2430 msgid ""
2431 "ns2# B<grep /mnt /proc/self/mountinfo | sed \\[aq]s/ - .*//\\[aq]>\n"
2432 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
2433 "1240 1239 0:56 / /mnt/x rw,relatime\n"
2434 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
2435 "1244 1239 0:56 / /mnt/ppp rw,relatime\n"
2436 "1245 1244 0:57 / /mnt/ppp/y rw,relatime master:518\n"
2437 msgstr ""
2438
2439 #. type: Plain text
2440 #: debian-trixie fedora-44 fedora-rawhide
2441 #, no-wrap
2442 msgid ""
2443 "ns2# B<umount /mnt/ppp/y>\n"
2444 "umount: /mnt/ppp/y: not mounted.\n"
2445 "ns2# B<umount -l /mnt/ppp | sed \\[aq]s/ - .*//\\[aq]> # Succeeds...\n"
2446 "ns2# B<grep /mnt /proc/self/mountinfo>\n"
2447 "1239 1204 8:5 /mnt /mnt rw,relatime master:344\n"
2448 "1240 1239 0:56 / /mnt/x rw,relatime\n"
2449 "1241 1240 0:57 / /mnt/x/y rw,relatime\n"
2450 msgstr ""
2451
2452 #. type: Plain text
2453 #: debian-trixie fedora-44 fedora-rawhide
2454 #, no-wrap
2455 msgid ""
2456 "$ B<sudo mkdir /mnt/dir>\n"
2457 "$ B<sudo mount --bind -o ro /some/path /mnt/dir>\n"
2458 "$ B<sudo unshare --user --map-root-user --mount \\[rs]>\n"
2459 " B<mount -o remount,rw /mnt/dir>\n"
2460 "mount: /mnt/dir: permission denied.\n"
2461 msgstr ""
2462
2463 #. type: TH
2464 #: fedora-44 fedora-rawhide
2465 #, no-wrap
2466 msgid "2025-02-16"
2467 msgstr "16 Febrero 2025"
2468
2469 #. type: TH
2470 #: fedora-44 fedora-rawhide
2471 #, no-wrap
2472 msgid "Linux man-pages 6.13"
2473 msgstr "Páginas de Manual de Linux 6.13"
2474
2475 #. type: Plain text
2476 #: fedora-44 fedora-rawhide
2477 #, no-wrap
2478 msgid ""
2479 "# B<unshare --user --map-root-user --mount \\[rs]>\n"
2480 " B<strace -o /tmp/log \\[rs]>\n"
2481 " B<umount /etc/shadow>\n"
2482 "umount: /etc/shadow: not mounted.\n"
2483 "# B<grep \\[aq]\\[ha]umount\\[aq] /tmp/log>\n"
2484 "umount2(\"/etc/shadow\", 0) = -1 EINVAL (Invalid argument)\n"
2485 msgstr ""
2486
2487 #. type: TH
2488 #: mageia-cauldron
2489 #, no-wrap
2490 msgid "Linux man-pages 6.17"
2491 msgstr "Páginas de Manual de Linux 6.17"
2492
2493 #. type: TH
2494 #: opensuse-leap-16-1 opensuse-tumbleweed
2495 #, no-wrap
2496 msgid "Linux man-pages (unreleased)"
2497 msgstr "Páginas de Manual de Linux (no publicadas)"