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