summaryrefslogtreecommitdiffstats
path: root/templates/man2/mount_setattr.2.pot
blob: a558a94be77dad92481ec4faff8901bb02dc6de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-06-01 06:04+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: TH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "mount_setattr"
msgstr ""

#. type: TH
#: archlinux debian-unstable opensuse-tumbleweed
#, no-wrap
msgid "2024-05-02"
msgstr ""

#. type: TH
#: archlinux debian-unstable
#, no-wrap
msgid "Linux man-pages 6.8"
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NAME"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "mount_setattr - change properties of a mount or mount tree"
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "LIBRARY"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Standard C library (I<libc>, I<-lc>)"
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SYNOPSIS"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"B<#include E<lt>linux/fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
"B<#include E<lt>linux/mount.hE<gt>> /* Definition of B<MOUNT_ATTR_*> constants */\n"
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
"B<#include E<lt>unistd.hE<gt>>\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"B<int syscall(SYS_mount_setattr, int >I<dirfd>B<, const char *>I<pathname>B<,>\n"
"B<            unsigned int >I<flags>B<, struct mount_attr *>I<attr>B<, size_t >I<size>B<);>\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<Note>: glibc provides no wrapper for B<mount_setattr>(), necessitating the "
"use of B<syscall>(2)."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "DESCRIPTION"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The B<mount_setattr>()  system call changes the mount properties of a mount "
"or an entire mount tree.  If I<pathname> is a relative pathname, then it is "
"interpreted relative to the directory referred to by the file descriptor "
"I<dirfd>.  If I<dirfd> is the special value B<AT_FDCWD>, then I<pathname> is "
"interpreted relative to the current working directory of the calling "
"process.  If I<pathname> is the empty string and B<AT_EMPTY_PATH> is "
"specified in I<flags>, then the mount properties of the mount identified by "
"I<dirfd> are changed.  (See B<openat>(2)  for an explanation of why the "
"I<dirfd> argument is useful.)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The B<mount_setattr>()  system call uses an extensible structure (I<struct "
"mount_attr>)  to allow for future extensions.  Any non-flag extensions to "
"B<mount_setattr>()  will be implemented as new fields appended to the this "
"structure, with a zero value in a new field resulting in the kernel behaving "
"as though that extension field was not present.  Therefore, the caller "
"I<must> zero-fill this structure on initialization.  See the "
"\"Extensibility\" subsection under B<NOTES> for more details."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<size> argument should usually be specified as I<sizeof(struct "
"mount_attr)>.  However, if the caller is using a kernel that supports an "
"extended I<struct mount_attr>, but the caller does not intend to make use of "
"these features, it is possible to pass the size of an earlier version of the "
"structure together with the extended structure.  This allows the kernel to "
"not copy later parts of the structure that aren't used anyway.  With each "
"extension that changes the size of I<struct mount_attr>, the kernel will "
"expose a definition of the form B<MOUNT_ATTR_SIZE_VER>I<number>\\&.  For "
"example, the macro for the size of the initial version of I<struct "
"mount_attr> is B<MOUNT_ATTR_SIZE_VER0>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<flags> argument can be used to alter the pathname resolution "
"behavior.  The supported values are:"
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<AT_EMPTY_PATH>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<pathname> is the empty string, change the mount properties on I<dirfd> "
"itself."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<AT_RECURSIVE>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Change the mount properties of the entire mount tree."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<AT_SYMLINK_NOFOLLOW>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Don't follow trailing symbolic links."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<AT_NO_AUTOMOUNT>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Don't trigger automounts."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<attr> argument of B<mount_setattr>()  is a structure of the following "
"form:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct mount_attr {\n"
"    __u64 attr_set;     /* Mount properties to set */\n"
"    __u64 attr_clr;     /* Mount properties to clear */\n"
"    __u64 propagation;  /* Mount propagation type */\n"
"    __u64 userns_fd;    /* User namespace file descriptor */\n"
"};\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<attr_set> and I<attr_clr> members are used to specify the mount "
"properties that are supposed to be set or cleared for a mount or mount "
"tree.  Flags set in I<attr_set> enable a property on a mount or mount tree, "
"and flags set in I<attr_clr> remove a property from a mount or mount tree."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"When changing mount properties, the kernel will first clear the flags "
"specified in the I<attr_clr> field, and then set the flags specified in the "
"I<attr_set> field.  For example, these settings:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct mount_attr attr = {\n"
"    .attr_clr = MOUNT_ATTR_NOEXEC | MOUNT_ATTR_NODEV,\n"
"    .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID,\n"
"};\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "are equivalent to the following steps:"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-tumbleweed
#, no-wrap
msgid ""
"unsigned int current_mnt_flags = mnt-E<gt>mnt_flags;\n"
"\\&\n"
"/*\n"
" * Clear all flags set in .attr_clr,\n"
" * clearing MOUNT_ATTR_NOEXEC and MOUNT_ATTR_NODEV.\n"
" */\n"
"current_mnt_flags &= \\(tiattr-E<gt>attr_clr;\n"
"\\&\n"
"/*\n"
" * Now set all flags set in .attr_set,\n"
" * applying MOUNT_ATTR_RDONLY and MOUNT_ATTR_NOSUID.\n"
" */\n"
"current_mnt_flags |= attr-E<gt>attr_set;\n"
"\\&\n"
"mnt-E<gt>mnt_flags = current_mnt_flags;\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"As a result of this change, the mount or mount tree (a) is read-only; (b) "
"blocks the execution of set-user-ID and set-group-ID programs; (c) allows "
"execution of programs; and (d) allows access to devices."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Multiple changes with the same set of flags requested in I<attr_clr> and "
"I<attr_set> are guaranteed to be idempotent after the changes have been "
"applied."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The following mount attributes can be specified in the I<attr_set> or "
"I<attr_clr> fields:"
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_RDONLY>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, makes the mount read-only.  If set in I<attr_clr>, "
"removes the read-only setting if set on the mount."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NOSUID>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, causes the mount not to honor the set-user-ID and set-"
"group-ID mode bits and file capabilities when executing programs.  If set in "
"I<attr_clr>, clears the set-user-ID, set-group-ID, and file capability "
"restriction if set on this mount."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NODEV>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, prevents access to devices on this mount.  If set in "
"I<attr_clr>, removes the restriction that prevented accessing devices on "
"this mount."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NOEXEC>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, prevents executing programs on this mount.  If set in "
"I<attr_clr>, removes the restriction that prevented executing programs on "
"this mount."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NOSYMFOLLOW>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, prevents following symbolic links on this mount.  If "
"set in I<attr_clr>, removes the restriction that prevented following "
"symbolic links on this mount."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NODIRATIME>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, prevents updating access time for directories on this "
"mount.  If set in I<attr_clr>, removes the restriction that prevented "
"updating access time for directories.  Note that B<MOUNT_ATTR_NODIRATIME> "
"can be combined with other access-time settings and is implied by the "
"noatime setting.  All other access-time settings are mutually exclusive."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR__ATIME> - changing access-time settings"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The access-time values listed below are an enumeration that includes the "
"value zero, expressed in the bits defined by the mask B<MOUNT_ATTR__ATIME>.  "
"Even though these bits are an enumeration (in contrast to the other mount "
"flags such as B<MOUNT_ATTR_NOEXEC>), they are nonetheless passed in "
"I<attr_set> and I<attr_clr> for consistency with B<fsmount>(2), which "
"introduced this behavior."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Note that, since the access-time values are an enumeration rather than bit "
"values, a caller wanting to transition to a different access-time setting "
"cannot simply specify the access-time setting in I<attr_set>, but must also "
"include B<MOUNT_ATTR__ATIME> in the I<attr_clr> field.  The kernel will "
"verify that B<MOUNT_ATTR__ATIME> isn't partially set in I<attr_clr> (i.e., "
"either all bits in the B<MOUNT_ATTR__ATIME> bit field are either set or "
"clear), and that I<attr_set> doesn't have any access-time bits set if "
"B<MOUNT_ATTR__ATIME> isn't set in I<attr_clr>."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_RELATIME>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"When a file is accessed via this mount, update the file's last access time "
"(atime)  only if the current value of atime is less than or equal to the "
"file's last modification time (mtime) or last status change time (ctime)."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"To enable this access-time setting on a mount or mount tree, "
"B<MOUNT_ATTR_RELATIME> must be set in I<attr_set> and B<MOUNT_ATTR__ATIME> "
"must be set in the I<attr_clr> field."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_NOATIME>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Do not update access times for (all types of) files on this mount."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"To enable this access-time setting on a mount or mount tree, "
"B<MOUNT_ATTR_NOATIME> must be set in I<attr_set> and B<MOUNT_ATTR__ATIME> "
"must be set in the I<attr_clr> field."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_STRICTATIME>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Always update the last access time (atime)  when files are accessed on this "
"mount."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"To enable this access-time setting on a mount or mount tree, "
"B<MOUNT_ATTR_STRICTATIME> must be set in I<attr_set> and "
"B<MOUNT_ATTR__ATIME> must be set in the I<attr_clr> field."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MOUNT_ATTR_IDMAP>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If set in I<attr_set>, creates an ID-mapped mount.  The ID mapping is taken "
"from the user namespace specified in I<userns_fd> and attached to the mount."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Since it is not supported to change the ID mapping of a mount after it has "
"been ID mapped, it is invalid to specify B<MOUNT_ATTR_IDMAP> in I<attr_clr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"For further details, see the subsection \"ID-mapped mounts\" under NOTES."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The I<propagation> field is used to specify the propagation type of the "
"mount or mount tree.  This field either has the value zero, meaning leave "
"the propagation type unchanged, or it has one of the following values:"
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MS_PRIVATE>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Turn all mounts into private mounts."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MS_SHARED>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Turn all mounts into shared mounts."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MS_SLAVE>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Turn all mounts into dependent mounts."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<MS_UNBINDABLE>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "Turn all mounts into unbindable mounts."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"For further details on the above propagation types, see "
"B<mount_namespaces>(7)."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "RETURN VALUE"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"On success, B<mount_setattr>()  returns zero.  On error, -1 is returned and "
"I<errno> is set to indicate the cause of the error."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "ERRORS"
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EBADF>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> nor a valid file "
"descriptor."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "I<userns_fd> is not a valid file descriptor."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EBUSY>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The caller tried to change the mount to B<MOUNT_ATTR_RDONLY>, but the mount "
"still holds files open for writing."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The caller tried to create an ID-mapped mount raising B<MOUNT_ATTR_IDMAP> "
"and specifying I<userns_fd> but the mount still holds files open for writing."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EINVAL>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The pathname specified via the I<dirfd> and I<pathname> arguments to "
"B<mount_setattr>()  isn't a mount point."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "An unsupported value was set in I<flags>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An unsupported value was specified in the I<attr_set> field of I<mount_attr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An unsupported value was specified in the I<attr_clr> field of I<mount_attr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An unsupported value was specified in the I<propagation> field of "
"I<mount_attr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"More than one of B<MS_SHARED>, B<MS_SLAVE>, B<MS_PRIVATE>, or "
"B<MS_UNBINDABLE> was set in the I<propagation> field of I<mount_attr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An access-time setting was specified in the I<attr_set> field without "
"B<MOUNT_ATTR__ATIME> being set in the I<attr_clr> field."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<MOUNT_ATTR_IDMAP> was specified in I<attr_clr>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A file descriptor value was specified in I<userns_fd> which exceeds "
"B<INT_MAX>."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A valid file descriptor value was specified in I<userns_fd>, but the file "
"descriptor did not refer to a user namespace."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "The underlying filesystem does not support ID-mapped mounts."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The mount that is to be ID mapped is not a detached mount; that is, the "
"mount has not previously been visible in a mount namespace."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A partial access-time setting was specified in I<attr_clr> instead of "
"B<MOUNT_ATTR__ATIME> being set."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "The mount is located outside the caller's mount namespace."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The underlying filesystem has been mounted in a mount namespace that is "
"owned by a noninitial user namespace"
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<ENOENT>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "A pathname was empty or had a nonexistent component."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<ENOMEM>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"When changing mount propagation to B<MS_SHARED>, a new peer group ID needs "
"to be allocated for all mounts without a peer group ID set.  This allocation "
"failed because there was not enough memory to allocate the relevant internal "
"structures."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<ENOSPC>"
msgstr ""

#.  Christian Brauner: i.e. someone has somehow managed to
#.  allocate so many peer groups and managed to keep the kernel running
#.  (???) that the ida has ran out of ids
#.  Note that technically further error codes are possible that are
#.  specific to the ID allocation implementation used.
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"When changing mount propagation to B<MS_SHARED>, a new peer group ID needs "
"to be allocated for all mounts without a peer group ID set.  This allocation "
"failed because the kernel has run out of IDs."
msgstr ""

#. type: TP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "B<EPERM>"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"One of the mounts had at least one of B<MOUNT_ATTR_NOATIME>, "
"B<MOUNT_ATTR_NODEV>, B<MOUNT_ATTR_NODIRATIME>, B<MOUNT_ATTR_NOEXEC>, "
"B<MOUNT_ATTR_NOSUID>, or B<MOUNT_ATTR_RDONLY> set and the flag is locked.  "
"Mount attributes become locked on a mount if:"
msgstr ""

#. type: IP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "\\[bu]"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A new mount or mount tree is created causing mount propagation across user "
"namespaces (i.e., propagation to a mount namespace owned by a different user "
"namespace).  The kernel will lock the aforementioned flags to prevent these "
"sensitive properties from being altered."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A new mount and user namespace pair is created.  This happens for example "
"when specifying B<CLONE_NEWUSER | CLONE_NEWNS> in B<unshare>(2), "
"B<clone>(2), or B<clone3>(2).  The aforementioned flags become locked in the "
"new mount namespace to prevent sensitive mount properties from being "
"altered.  Since the newly created mount namespace will be owned by the newly "
"created user namespace, a calling process that is privileged in the new user "
"namespace would\\[em]in the absence of such locking\\[em]be able to alter "
"sensitive mount properties (e.g., to remount a mount that was marked read-"
"only as read-write in the new mount namespace)."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A valid file descriptor value was specified in I<userns_fd>, but the file "
"descriptor refers to the initial user namespace."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"An attempt was made to add an ID mapping to a mount that is already ID "
"mapped."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The caller does not have B<CAP_SYS_ADMIN> in the initial user namespace."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "STANDARDS"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid "Linux."
msgstr ""

#. type: SH
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "HISTORY"
msgstr ""

#.  commit 7d6beb71da3cc033649d641e1e608713b8220290
#.  commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
#.  commit 9caccd41541a6f7d6279928d9f971f6642c361af
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid "Linux 5.12."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NOTES"
msgstr ""

#. type: SS
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "ID-mapped mounts"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Creating an ID-mapped mount makes it possible to change the ownership of all "
"files located under a mount.  Thus, ID-mapped mounts make it possible to "
"change ownership in a temporary and localized way.  It is a localized change "
"because the ownership changes are visible only via a specific mount.  All "
"other users and locations where the filesystem is exposed are unaffected.  "
"It is a temporary change because the ownership changes are tied to the "
"lifetime of the mount."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Whenever callers interact with the filesystem through an ID-mapped mount, "
"the ID mapping of the mount will be applied to user and group IDs associated "
"with filesystem objects.  This encompasses the user and group IDs associated "
"with inodes and also the following B<xattr>(7)  keys:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<security.capability>, whenever filesystem capabilities are stored or "
"returned in the B<VFS_CAP_REVISION_3> format, which stores a root user ID "
"alongside the capabilities (see B<capabilities>(7))."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"I<system.posix_acl_access> and I<system.posix_acl_default>, whenever user "
"IDs or group IDs are stored in B<ACL_USER> or B<ACL_GROUP> entries."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The following conditions must be met in order to create an ID-mapped mount:"
msgstr ""

#.  commit bd303368b776eead1c29e6cdda82bde7128b82a7
#.  Christian Brauner
#.      Note, currently no filesystems mountable in non-initial user namespaces
#.      support ID-mapped mounts.
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The caller must have the B<CAP_SYS_ADMIN> capability in the user namespace "
"the filesystem was mounted in."
msgstr ""

#.  fs_flags = FS_ALLOW_IDMAP in kernel sources
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The underlying filesystem must support ID-mapped mounts.  Currently, the "
"following filesystems support ID-mapped mounts:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<xfs>(5)  (since Linux 5.12)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<ext4>(5)  (since Linux 5.12)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<FAT> (since Linux 5.12)"
msgstr ""

#.  commit 5b9b26f5d0b88b74001dcfe4ab8a8f2f4e744112
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<btrfs>(5)  (since Linux 5.15)"
msgstr ""

#.  commit 82cae269cfa953032fbb8980a7d554d60fb00b17
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<ntfs3> (since Linux 5.15)"
msgstr ""

#.  commit 984fc4e76d63345499f01c0c198a4b44860cf027
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<f2fs> (since Linux 5.18)"
msgstr ""

#.  commit 6c459b78d4793afbba6d864c466cc5cd2932459d
#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "B<erofs> (since Linux 5.19)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"B<overlayfs> (ID-mapped lower and upper layers supported since Linux 5.19)"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable opensuse-tumbleweed
msgid "B<squashfs> (since Linux 6.2)"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable opensuse-tumbleweed
msgid "B<tmpfs> (since Linux 6.3)"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable opensuse-tumbleweed
msgid "B<cephfs> (since Linux 6.7)"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable opensuse-tumbleweed
msgid "B<hugetlbfs> (since Linux 6.9)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The mount must not already be ID-mapped.  This also implies that the ID "
"mapping of a mount cannot be altered."
msgstr ""

#.  commit 1bbcd277a53e08d619ffeec56c5c9287f2bf42f
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid "The mount must not have any writers."
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The mount must be a detached mount; that is, it must have been created by "
"calling B<open_tree>(2)  with the B<OPEN_TREE_CLONE> flag and it must not "
"already have been visible in a mount namespace.  (To put things another way: "
"the mount must not have been attached to the filesystem hierarchy with a "
"system call such as B<move_mount>(2).)"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"ID mappings can be created for user IDs, group IDs, and project IDs.  An ID "
"mapping is essentially a mapping of a range of user or group IDs into "
"another or the same range of user or group IDs.  ID mappings are written to "
"map files as three numbers separated by white space.  The first two numbers "
"specify the starting user or group ID in each of the two user namespaces.  "
"The third number specifies the range of the ID mapping.  For example, a "
"mapping for user IDs such as \"1000\\ 1001\\ 1\" would indicate that user ID "
"1000 in the caller's user namespace is mapped to user ID 1001 in its "
"ancestor user namespace.  Since the map range is 1, only user ID 1000 is "
"mapped."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"It is possible to specify up to 340 ID mappings for each ID mapping type.  "
"If any user IDs or group IDs are not mapped, all files owned by that "
"unmapped user or group ID will appear as being owned by the overflow user ID "
"or overflow group ID respectively."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Further details on setting up ID mappings can be found in "
"B<user_namespaces>(7)."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"In the common case, the user namespace passed in I<userns_fd> (together with "
"B<MOUNT_ATTR_IDMAP> in I<attr_set>)  to create an ID-mapped mount will be "
"the user namespace of a container.  In other scenarios it will be a "
"dedicated user namespace associated with a user's login session as is the "
"case for portable home directories in B<systemd-homed.service>(8)).  It is "
"also perfectly fine to create a dedicated user namespace for the sake of ID "
"mapping a mount."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"ID-mapped mounts can be useful in the following and a variety of other "
"scenarios:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Sharing files or filesystems between multiple users or multiple machines, "
"especially in complex scenarios.  For example, ID-mapped mounts are used to "
"implement portable home directories in B<systemd-homed.service>(8), where "
"they allow users to move their home directory to an external storage device "
"and use it on multiple computers where they are assigned different user IDs "
"and group IDs.  This effectively makes it possible to assign random user IDs "
"and group IDs at login time."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Sharing files or filesystems from the host with unprivileged containers.  "
"This allows a user to avoid having to change ownership permanently through "
"B<chown>(2)."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"ID mapping a container's root filesystem.  Users don't need to change "
"ownership permanently through B<chown>(2).  Especially for large root "
"filesystems, using B<chown>(2)  can be prohibitively expensive."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Sharing files or filesystems between containers with non-overlapping ID "
"mappings."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Implementing discretionary access (DAC) permission checking for filesystems "
"lacking a concept of ownership."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Efficiently changing ownership on a per-mount basis.  In contrast to "
"B<chown>(2), changing ownership of large sets of files is instantaneous with "
"ID-mapped mounts.  This is especially useful when ownership of an entire "
"root filesystem of a virtual machine or container is to be changed as "
"mentioned above.  With ID-mapped mounts, a single B<mount_setattr>()  system "
"call will be sufficient to change the ownership of all files."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Taking the current ownership into account.  ID mappings specify precisely "
"what a user or group ID is supposed to be mapped to.  This contrasts with "
"the B<chown>(2)  system call which cannot by itself take the current "
"ownership of the files it changes into account.  It simply changes the "
"ownership to the specified user ID and group ID."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Locally and temporarily restricted ownership changes.  ID-mapped mounts make "
"it possible to change ownership locally, restricting the ownership changes "
"to specific mounts, and temporarily as the ownership changes only apply as "
"long as the mount exists.  By contrast, changing ownership via the "
"B<chown>(2)  system call changes the ownership globally and permanently."
msgstr ""

#. type: SS
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "Extensibility"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"In order to allow for future extensibility, B<mount_setattr>()  requires the "
"user-space application to specify the size of the I<mount_attr> structure "
"that it is passing.  By providing this information, it is possible for "
"B<mount_setattr>()  to provide both forwards- and backwards-compatibility, "
"with I<size> acting as an implicit version number.  (Because new extension "
"fields will always be appended, the structure size will always increase.)  "
"This extensibility design is very similar to other system calls such as "
"B<perf_setattr>(2), B<perf_event_open>(2), B<clone3>(2)  and B<openat2>(2)."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Let I<usize> be the size of the structure as specified by the user-space "
"application, and let I<ksize> be the size of the structure which the kernel "
"supports, then there are three cases to consider:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> equals I<usize>, then there is no version mismatch and I<attr> "
"can be used verbatim."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> is larger than I<usize>, then there are some extension fields "
"that the kernel supports which the user-space application is unaware of.  "
"Because a zero value in any added extension field signifies a no-op, the "
"kernel treats all of the extension fields not provided by the user-space "
"application as having zero values.  This provides backwards-compatibility."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"If I<ksize> is smaller than I<usize>, then there are some extension fields "
"which the user-space application is aware of but which the kernel does not "
"support.  Because any extension field must have its zero values signify a no-"
"op, the kernel can safely ignore the unsupported extension fields if they "
"are all zero.  If any unsupported extension fields are non-zero, then -1 is "
"returned and I<errno> is set to B<E2BIG>.  This provides forwards-"
"compatibility."
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-tumbleweed
msgid ""
"Because the definition of I<struct mount_attr> may change in the future "
"(with new fields being added when system headers are updated), user-space "
"applications should zero-fill I<struct mount_attr> to ensure that "
"recompiling the program with new headers will not result in spurious errors "
"at run time.  The simplest way is to use a designated initializer:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct mount_attr attr = {\n"
"    .attr_set = MOUNT_ATTR_RDONLY,\n"
"    .attr_clr = MOUNT_ATTR_NODEV\n"
"};\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Alternatively, the structure can be zero-filled using B<memset>(3)  or "
"similar functions:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid ""
"struct mount_attr attr;\n"
"memset(&attr, 0, sizeof(attr));\n"
"attr.attr_set = MOUNT_ATTR_RDONLY;\n"
"attr.attr_clr = MOUNT_ATTR_NODEV;\n"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"A user-space application that wishes to determine which extensions the "
"running kernel supports can do so by conducting a binary search on I<size> "
"with a structure which has every byte nonzero (to find the largest value "
"which doesn't produce an error of B<E2BIG>)."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "EXAMPLES"
msgstr ""

#.  Christian Brauner
#.      When writing programs I like to never use relative paths with AT_FDCWD
#.      because. Because making assumptions about the current working directory
#.      of the calling process is just too easy to get wrong; especially when
#.      pivot_root() or chroot() are in play.
#.      My absolut preference (joke intended) is to open a well-known starting
#.      point with an absolute path to get a dirfd and then scope all future
#.      operations beneath that dirfd. This already works with old-style
#.      openat() and _very_ cautious programming but openat2() and its
#.      resolve-flag space have made this **chef's kiss**.
#.      If I can't operate based on a well-known dirfd I use absolute paths
#.      with a -EBADF dirfd passed to *at() functions.
#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-tumbleweed
#, no-wrap
msgid ""
"/*\n"
" * This program allows the caller to create a new detached mount\n"
" * and set various properties on it.\n"
" */\n"
"#define _GNU_SOURCE\n"
"#include E<lt>err.hE<gt>\n"
"#include E<lt>fcntl.hE<gt>\n"
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>linux/mount.hE<gt>\n"
"#include E<lt>linux/types.hE<gt>\n"
"#include E<lt>stdbool.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>string.hE<gt>\n"
"#include E<lt>sys/syscall.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
"\\&\n"
"static inline int\n"
"mount_setattr(int dirfd, const char *pathname, unsigned int flags,\n"
"              struct mount_attr *attr, size_t size)\n"
"{\n"
"    return syscall(SYS_mount_setattr, dirfd, pathname, flags,\n"
"                   attr, size);\n"
"}\n"
"\\&\n"
"static inline int\n"
"open_tree(int dirfd, const char *filename, unsigned int flags)\n"
"{\n"
"    return syscall(SYS_open_tree, dirfd, filename, flags);\n"
"}\n"
"\\&\n"
"static inline int\n"
"move_mount(int from_dirfd, const char *from_pathname,\n"
"           int to_dirfd, const char *to_pathname, unsigned int flags)\n"
"{\n"
"    return syscall(SYS_move_mount, from_dirfd, from_pathname,\n"
"                   to_dirfd, to_pathname, flags);\n"
"}\n"
"\\&\n"
"static const struct option longopts[] = {\n"
"    {\"map-mount\",       required_argument,  NULL,  \\[aq]a\\[aq]},\n"
"    {\"recursive\",       no_argument,        NULL,  \\[aq]b\\[aq]},\n"
"    {\"read-only\",       no_argument,        NULL,  \\[aq]c\\[aq]},\n"
"    {\"block-setid\",     no_argument,        NULL,  \\[aq]d\\[aq]},\n"
"    {\"block-devices\",   no_argument,        NULL,  \\[aq]e\\[aq]},\n"
"    {\"block-exec\",      no_argument,        NULL,  \\[aq]f\\[aq]},\n"
"    {\"no-access-time\",  no_argument,        NULL,  \\[aq]g\\[aq]},\n"
"    { NULL,             0,                  NULL,   0 },\n"
"};\n"
"\\&\n"
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int                fd_userns = -1;\n"
"    int                fd_tree;\n"
"    int                index = 0;\n"
"    int                ret;\n"
"    bool               recursive = false;\n"
"    const char         *source;\n"
"    const char         *target;\n"
"    struct mount_attr  *attr = &(struct mount_attr){};\n"
"\\&\n"
"    while ((ret = getopt_long_only(argc, argv, \"\",\n"
"                                   longopts, &index)) != -1) {\n"
"        switch (ret) {\n"
"        case \\[aq]a\\[aq]:\n"
"            fd_userns = open(optarg, O_RDONLY | O_CLOEXEC);\n"
"            if (fd_userns == -1)\n"
"                err(EXIT_FAILURE, \"open(%s)\", optarg);\n"
"            break;\n"
"        case \\[aq]b\\[aq]:\n"
"            recursive = true;\n"
"            break;\n"
"        case \\[aq]c\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_RDONLY;\n"
"            break;\n"
"        case \\[aq]d\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOSUID;\n"
"            break;\n"
"        case \\[aq]e\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NODEV;\n"
"            break;\n"
"        case \\[aq]f\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOEXEC;\n"
"            break;\n"
"        case \\[aq]g\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOATIME;\n"
"            attr-E<gt>attr_clr |= MOUNT_ATTR__ATIME;\n"
"            break;\n"
"        default:\n"
"            errx(EXIT_FAILURE, \"Invalid argument specified\");\n"
"        }\n"
"    }\n"
"\\&\n"
"    if ((argc - optind) E<lt> 2)\n"
"        errx(EXIT_FAILURE, \"Missing source or target mount point\");\n"
"\\&\n"
"    source = argv[optind];\n"
"    target = argv[optind + 1];\n"
"\\&\n"
"    /* In the following, -1 as the \\[aq]dirfd\\[aq] argument ensures that\n"
"       open_tree() fails if \\[aq]source\\[aq] is not an absolute pathname. */\n"
"\\&\n"
"    fd_tree = open_tree(-1, source,\n"
"                        OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |\n"
"                        AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0));\n"
"    if (fd_tree == -1)\n"
"        err(EXIT_FAILURE, \"open(%s)\", source);\n"
"\\&\n"
"    if (fd_userns E<gt>= 0) {\n"
"        attr-E<gt>attr_set  |= MOUNT_ATTR_IDMAP;\n"
"        attr-E<gt>userns_fd = fd_userns;\n"
"    }\n"
"\\&\n"
"    ret = mount_setattr(fd_tree, \"\",\n"
"                        AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0),\n"
"                        attr, sizeof(struct mount_attr));\n"
"    if (ret == -1)\n"
"        err(EXIT_FAILURE, \"mount_setattr\");\n"
"\\&\n"
"    close(fd_userns);\n"
"\\&\n"
"    /* In the following, -1 as the \\[aq]to_dirfd\\[aq] argument ensures that\n"
"       open_tree() fails if \\[aq]target\\[aq] is not an absolute pathname. */\n"
"\\&\n"
"    ret = move_mount(fd_tree, \"\", -1, target,\n"
"                     MOVE_MOUNT_F_EMPTY_PATH);\n"
"    if (ret == -1)\n"
"        err(EXIT_FAILURE, \"move_mount() to %s\", target);\n"
"\\&\n"
"    close(fd_tree);\n"
"\\&\n"
"    exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""

#.  SRC END
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"B<newgidmap>(1), B<newuidmap>(1), B<clone>(2), B<mount>(2), B<unshare>(2), "
"B<proc>(5), B<capabilities>(7), B<mount_namespaces>(7), "
"B<user_namespaces>(7), B<xattr>(7)"
msgstr ""

#. type: TH
#: debian-bookworm
#, no-wrap
msgid "2023-02-10"
msgstr ""

#. type: TH
#: debian-bookworm
#, no-wrap
msgid "Linux man-pages 6.03"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid "unsigned int current_mnt_flags = mnt-E<gt>mnt_flags;\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"/*\n"
" * Clear all flags set in .attr_clr,\n"
" * clearing MOUNT_ATTR_NOEXEC and MOUNT_ATTR_NODEV.\n"
" */\n"
"current_mnt_flags &= \\(tiattr-E<gt>attr_clr;\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"/*\n"
" * Now set all flags set in .attr_set,\n"
" * applying MOUNT_ATTR_RDONLY and MOUNT_ATTR_NOSUID.\n"
" */\n"
"current_mnt_flags |= attr-E<gt>attr_set;\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid "mnt-E<gt>mnt_flags = current_mnt_flags;\n"
msgstr ""

#. type: SH
#: debian-bookworm
#, no-wrap
msgid "VERSIONS"
msgstr ""

#.  commit 7d6beb71da3cc033649d641e1e608713b8220290
#.  commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
#.  commit 9caccd41541a6f7d6279928d9f971f6642c361af
#. type: Plain text
#: debian-bookworm
msgid "B<mount_setattr>()  first appeared in Linux 5.12."
msgstr ""

#. type: Plain text
#: debian-bookworm
msgid "B<mount_setattr>()  is Linux-specific."
msgstr ""

#. type: Plain text
#: debian-bookworm
msgid ""
"The mount must be a detached mount; that is, it must have been created by "
"calling"
msgstr ""

#.  commit 1bbcd277a53e08d619ffeec56c5c9287f2bf42f
#. type: Plain text
#: debian-bookworm
msgid ""
"The mount must not have any writers.  B<open_tree>(2)  with the "
"B<OPEN_TREE_CLONE> flag and it must not already have been visible in a mount "
"namespace.  (To put things another way: the mount must not have been "
"attached to the filesystem hierarchy with a system call such as "
"B<move_mount>(2).)"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
msgid ""
"Because the definition of I<struct mount_attr> may change in the future "
"(with new fields being added when system headers are updated), user-space "
"applications should zero-fill I<struct mount_attr> to ensure that "
"recompiling the program with new headers will not result in spurious errors "
"at runtime.  The simplest way is to use a designated initializer:"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"/*\n"
" * This program allows the caller to create a new detached mount\n"
" * and set various properties on it.\n"
" */\n"
"#define _GNU_SOURCE\n"
"#include E<lt>err.hE<gt>\n"
"#include E<lt>fcntl.hE<gt>\n"
"#include E<lt>getopt.hE<gt>\n"
"#include E<lt>linux/mount.hE<gt>\n"
"#include E<lt>linux/types.hE<gt>\n"
"#include E<lt>stdbool.hE<gt>\n"
"#include E<lt>stdio.hE<gt>\n"
"#include E<lt>stdlib.hE<gt>\n"
"#include E<lt>string.hE<gt>\n"
"#include E<lt>sys/syscall.hE<gt>\n"
"#include E<lt>unistd.hE<gt>\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"static inline int\n"
"mount_setattr(int dirfd, const char *pathname, unsigned int flags,\n"
"              struct mount_attr *attr, size_t size)\n"
"{\n"
"    return syscall(SYS_mount_setattr, dirfd, pathname, flags,\n"
"                   attr, size);\n"
"}\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"static inline int\n"
"open_tree(int dirfd, const char *filename, unsigned int flags)\n"
"{\n"
"    return syscall(SYS_open_tree, dirfd, filename, flags);\n"
"}\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"static inline int\n"
"move_mount(int from_dirfd, const char *from_pathname,\n"
"           int to_dirfd, const char *to_pathname, unsigned int flags)\n"
"{\n"
"    return syscall(SYS_move_mount, from_dirfd, from_pathname,\n"
"                   to_dirfd, to_pathname, flags);\n"
"}\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"static const struct option longopts[] = {\n"
"    {\"map-mount\",       required_argument,  NULL,  \\[aq]a\\[aq]},\n"
"    {\"recursive\",       no_argument,        NULL,  \\[aq]b\\[aq]},\n"
"    {\"read-only\",       no_argument,        NULL,  \\[aq]c\\[aq]},\n"
"    {\"block-setid\",     no_argument,        NULL,  \\[aq]d\\[aq]},\n"
"    {\"block-devices\",   no_argument,        NULL,  \\[aq]e\\[aq]},\n"
"    {\"block-exec\",      no_argument,        NULL,  \\[aq]f\\[aq]},\n"
"    {\"no-access-time\",  no_argument,        NULL,  \\[aq]g\\[aq]},\n"
"    { NULL,             0,                  NULL,   0 },\n"
"};\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"int\n"
"main(int argc, char *argv[])\n"
"{\n"
"    int                fd_userns = -1;\n"
"    int                fd_tree;\n"
"    int                index = 0;\n"
"    int                ret;\n"
"    bool               recursive = false;\n"
"    const char         *source;\n"
"    const char         *target;\n"
"    struct mount_attr  *attr = &(struct mount_attr){};\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    while ((ret = getopt_long_only(argc, argv, \"\",\n"
"                                   longopts, &index)) != -1) {\n"
"        switch (ret) {\n"
"        case \\[aq]a\\[aq]:\n"
"            fd_userns = open(optarg, O_RDONLY | O_CLOEXEC);\n"
"            if (fd_userns == -1)\n"
"                err(EXIT_FAILURE, \"open(%s)\", optarg);\n"
"            break;\n"
"        case \\[aq]b\\[aq]:\n"
"            recursive = true;\n"
"            break;\n"
"        case \\[aq]c\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_RDONLY;\n"
"            break;\n"
"        case \\[aq]d\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOSUID;\n"
"            break;\n"
"        case \\[aq]e\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NODEV;\n"
"            break;\n"
"        case \\[aq]f\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOEXEC;\n"
"            break;\n"
"        case \\[aq]g\\[aq]:\n"
"            attr-E<gt>attr_set |= MOUNT_ATTR_NOATIME;\n"
"            attr-E<gt>attr_clr |= MOUNT_ATTR__ATIME;\n"
"            break;\n"
"        default:\n"
"            errx(EXIT_FAILURE, \"Invalid argument specified\");\n"
"        }\n"
"    }\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    if ((argc - optind) E<lt> 2)\n"
"        errx(EXIT_FAILURE, \"Missing source or target mount point\");\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    source = argv[optind];\n"
"    target = argv[optind + 1];\n"
msgstr ""

#.  Christian Brauner
#.      When writing programs I like to never use relative paths with AT_FDCWD
#.      because. Because making assumptions about the current working directory
#.      of the calling process is just too easy to get wrong; especially when
#.      pivot_root() or chroot() are in play.
#.      My absolut preference (joke intended) is to open a well-known starting
#.      point with an absolute path to get a dirfd and then scope all future
#.      operations beneath that dirfd. This already works with old-style
#.      openat() and _very_ cautious programming but openat2() and its
#.      resolve-flag space have made this **chef's kiss**.
#.      If I can't operate based on a well-known dirfd I use absolute paths
#.      with a -EBADF dirfd passed to *at() functions.
#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    /* In the following, -1 as the \\[aq]dirfd\\[aq] argument ensures that\n"
"       open_tree() fails if \\[aq]source\\[aq] is not an absolute pathname. */\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    fd_tree = open_tree(-1, source,\n"
"                        OPEN_TREE_CLONE | OPEN_TREE_CLOEXEC |\n"
"                        AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0));\n"
"    if (fd_tree == -1)\n"
"        err(EXIT_FAILURE, \"open(%s)\", source);\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    if (fd_userns E<gt>= 0) {\n"
"        attr-E<gt>attr_set  |= MOUNT_ATTR_IDMAP;\n"
"        attr-E<gt>userns_fd = fd_userns;\n"
"    }\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    ret = mount_setattr(fd_tree, \"\",\n"
"                        AT_EMPTY_PATH | (recursive ? AT_RECURSIVE : 0),\n"
"                        attr, sizeof(struct mount_attr));\n"
"    if (ret == -1)\n"
"        err(EXIT_FAILURE, \"mount_setattr\");\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid "    close(fd_userns);\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    /* In the following, -1 as the \\[aq]to_dirfd\\[aq] argument ensures that\n"
"       open_tree() fails if \\[aq]target\\[aq] is not an absolute pathname. */\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    ret = move_mount(fd_tree, \"\", -1, target,\n"
"                     MOVE_MOUNT_F_EMPTY_PATH);\n"
"    if (ret == -1)\n"
"        err(EXIT_FAILURE, \"move_mount() to %s\", target);\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid "    close(fd_tree);\n"
msgstr ""

#. type: Plain text
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid ""
"    exit(EXIT_SUCCESS);\n"
"}\n"
msgstr ""

#. type: TH
#: fedora-40 fedora-rawhide mageia-cauldron
#, no-wrap
msgid "2023-10-31"
msgstr ""

#. type: TH
#: fedora-40 mageia-cauldron
#, no-wrap
msgid "Linux man-pages 6.06"
msgstr ""

#. type: TH
#: fedora-rawhide
#, no-wrap
msgid "Linux man-pages 6.7"
msgstr ""

#. type: TH
#: opensuse-leap-15-6
#, no-wrap
msgid "2023-04-01"
msgstr ""

#. type: TH
#: opensuse-leap-15-6
#, no-wrap
msgid "Linux man-pages 6.04"
msgstr ""

#. type: TH
#: opensuse-tumbleweed
#, no-wrap
msgid "Linux man-pages (unreleased)"
msgstr ""