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