# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:31+0200\n" "PO-Revision-Date: 2026-06-05 23:56+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" " n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "mount_setattr" msgstr "mount_setattr" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-11" msgstr "11 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "mount_setattr - change properties of a mount or mount tree" msgstr "mount_setattr - يغير خصائص الوصل أو شجرة الوصل" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "B<#include Efcntl.hE> /* Definition of B constants */\n" "B<#include Esys/mount.hE>\n" msgstr "" "B<#include Efcntl.hE> /* تعريف ثوابت B */\n" "B<#include Esys/mount.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const char *>IB<, unsigned int >I<" "flags>B<,>\n" "B< struct mount_attr *>IB<, size_t >IB<);>\n" msgstr "" "BIB<, const char *>IB<, unsigned int >I<" "flags>B<,>\n" "B< struct mount_attr *>IB<, size_t >IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() system call is part of the suite of file-descriptor-" "based mount facilities in Linux." msgstr "" "نداء النظام B() هو جزء من مجموعة مرافق الوصل المعتمدة على " "واصفات الملفات في لينكس." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() changes the mount properties of a mount or an entire " "mount tree. If I is relative, then it is interpreted relative to the " "directory referred to by the file descriptor I. If I is the " "special value B, then I is interpreted relative to the " "current working directory of the calling process. If I is the empty " "string and B is specified in I, then the mount " "properties of the mount identified by I are changed. (See " "B(2) for an explanation of why the I argument is useful.)" msgstr "" "يغير B() خصائص الوصل لوصلة ما أو لشجرة وصل كاملة. إذا كان " "I نسبياً، فسيُفسر بالنسبة إلى الدليل الذي يشير إليه واصف الملف I. " "وإذا كان I هو القيمة الخاصة B، فسيُفسر I بالنسبة إلى " "دليل العمل الحالي للعملية المستدعِية. وإذا كان I سلسلة فارغة وحُدد " "B في I، فستُغير خصائص الوصل للوصلة المحددة بواسطة " "I. (انظر B(2) لشرح سبب فائدة المعامل I.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call uses an extensible structure (I) to allow for future extensions. Any non-flag extensions to " "B() 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 zero-fill this structure on initialization. See the " "\"Extensibility\" subsection under B for more details." msgstr "" "يستخدم نداء النظام B() بنية قابلة للتوسيع (I) للسماح بالتوسعات المستقبلية. أي توسعات لـ B() " "ليست من نوع الأعلام ستُنفذ كحقول جديدة تُلحق بهذه البنية، وتؤدي القيمة" " الصفرية " "في الحقل الجديد إلى تعامل النواة كما لو أن حقل التوسعة هذا غير موجود. لذلك، " "I<يجب> على المستدعِي ملء هذه البنية بالأصفار عند التهيئة. انظر القسم الفرعي " "\"القابلية للتوسع\" تحت B لمزيد من التفاصيل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument should usually be specified as I. However, if the caller is using a kernel that supports an " "extended I, 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, the kernel will " "expose a definition of the form BI \\&. For " "example, the macro for the size of the initial version of I is B." msgstr "" "عادة ما يُحدد المعامل I كـ I. ومع ذلك، إذا " "كان المستدعِي يستخدم نواة تدعم I ممتدة، ولكنه لا ينوي " "استخدام هذه الميزات، فمن الممكن تمرير حجم نسخة سابقة من البنية مع البنية " "الممتدة. وهذا يسمح للنواة بعدم نسخ الأجزاء اللاحقة من البنية التي لا تُستخدم " "على أي حال. مع كل توسعة تغير حجم I، ستكشف النواة عن تعريف " "على الشكل BI \\&. على سبيل المثال، الماكرو " "الخاص بحجم النسخة الأولية من I هو B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument can be used to alter the pathname resolution " "behavior. The supported values are:" msgstr "" "يمكن استخدام المعامل I لتعديل سلوك تحليل اسم المسار. القيم المدعومة " "هي:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is the empty string, change the mount properties on I " "itself." msgstr "إذا كان I سلسلة فارغة، فستُغير خصائص الوصل في I نفسه." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Change the mount properties of the entire mount tree." msgstr "يغير خصائص الوصل لشجرة الوصل كاملة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Don't follow trailing symbolic links." msgstr "لا يتبع الروابط الرمزية اللاحقة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Don't trigger automounts." msgstr "لا يطلق عمليات الوصل الآلي." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The I argument of B() is a pointer to a I " "structure, described in B(2type)." msgstr "" "المعامل I لـ B() هو مؤشر إلى بنية I، " "الموصوفة في B(2type)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I and I 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 enable a property on a mount or mount tree, " "and flags set in I remove a property from a mount or mount tree." msgstr "" "تُستخدم العضوان I و I لتحديد خصائص الوصل التي يُفترض" " ضبطها " "أو مسحها لوصلة ما أو لشجرة وصل. الأعلام المضبوطة في I تُفعل خاصية " "في الوصل أو شجرة الوصل، والأعلام المضبوطة في I تزيل خاصية من الوصل " "أو شجرة الوصل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When changing mount properties, the kernel will first clear the flags " "specified in the I field, and then set the flags specified in the " "I field. For example, these settings:" msgstr "" "عند تغيير خصائص الوصل، ستقوم النواة أولاً بمسح الأعلام المحددة في حقل " "I، ثم تضبط الأعلام المحددة في حقل I. على سبيل المثال، " "هذه الإعدادات:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "struct mount_attr attr = {\n" " .attr_clr = MOUNT_ATTR_NOEXEC | MOUNT_ATTR_NODEV,\n" " .attr_set = MOUNT_ATTR_RDONLY | MOUNT_ATTR_NOSUID,\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "are equivalent to the following steps:" msgstr "تكافئ الخطوات التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "unsigned int current_mnt_flags = mnt-Emnt_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-Eattr_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-Eattr_set;\n" "\\&\n" "mnt-Emnt_flags = current_mnt_flags;\n" msgstr "" "unsigned int current_mnt_flags = mnt-Emnt_flags;\n" "\\&\n" "/*\n" " * مسح كل الأعلام المضبوطة في .attr_clr،\n" " * مسح MOUNT_ATTR_NOEXEC و MOUNT_ATTR_NODEV.\n" " */\n" "current_mnt_flags &= \\(tiattr-Eattr_clr;\n" "\\&\n" "/*\n" " * الآن ضبط كل الأعلام المضبوطة في .attr_set،\n" " * تطبيق MOUNT_ATTR_RDONLY و MOUNT_ATTR_NOSUID.\n" " */\n" "current_mnt_flags |= attr-Eattr_set;\n" "\\&\n" "mnt-Emnt_flags = current_mnt_flags;\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "نتيجة لهذا التغيير، تصبح الوصلة أو شجرة الوصل (أ) للقراءة فقط؛ (ب) تمنع " "تنفيذ برامج set-user-ID و set-group-ID؛ (ج) تسمح بتنفيذ البرامج؛ و (د) تسمح " "بالوصول إلى الأجهزة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Multiple changes with the same set of flags requested in I and " "I are guaranteed to be idempotent after the changes have been " "applied." msgstr "" "تغييرات متعددة بنفس مجموعة الأعلام المطلوبة في I و I " "مضمونة بأنها متساوية القوى (idempotent) بعد تطبيق التغييرات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following mount attributes can be specified in the I or " "I fields:" msgstr "سمات الوصل التالية يمكن تحديدها في حقلي I أو I:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, makes the mount read-only. If set in I, " "removes the read-only setting if set on the mount." msgstr "" "إذا ضُبط في I، فإنه يجعل الوصلة للقراءة فقط. وإذا ضُبط في " "I، فإنه يزيل إعداد القراءة فقط إذا كان مضبوطاً على الوصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, 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, clears the set-user-ID, set-group-ID, and file capability " "restriction if set on this mount." msgstr "" "إذا ضُبط في I، فإنه يجعل الوصلة لا تحترم بتات وضع set-user-ID و set-" "group-ID وقدرات الملفات عند تنفيذ البرامج. وإذا ضُبط في I، فإنه " "يمسح قيود set-user-ID و set-group-ID وقدرات الملفات إذا كانت مضبوطة على هذه " "الوصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, prevents access to devices on this mount. If set in " "I, removes the restriction that prevented accessing devices on " "this mount." msgstr "" "إذا ضُبط في I، فإنه يمنع الوصول إلى الأجهزة في هذه الوصلة. وإذا" " ضُبط " "في I، فإنه يزيل القيد الذي كان يمنع الوصول إلى الأجهزة في هذه " "الوصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, prevents executing programs on this mount. If set in " "I, removes the restriction that prevented executing programs on " "this mount." msgstr "" "إذا ضُبط في I، فإنه يمنع تنفيذ البرامج في هذه الوصلة. وإذا ضُبط في " "I، فإنه يزيل القيد الذي كان يمنع تنفيذ البرامج في هذه الوصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, prevents following symbolic links on this mount. If " "set in I, removes the restriction that prevented following " "symbolic links on this mount." msgstr "" "إذا ضُبط في I، فإنه يمنع تتبع الروابط الرمزية في هذه الوصلة. وإذا " "ضُبط في I، فإنه يزيل القيد الذي كان يمنع تتبع الروابط الرمزية في " "هذه الوصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, prevents updating access time for directories on this " "mount. If set in I, removes the restriction that prevented " "updating access time for directories. Note that B " "can be combined with other access-time settings and is implied by the " "noatime setting. All other access-time settings are mutually exclusive." msgstr "" "إذا ضُبط في I، فإنه يمنع تحديث وقت الوصول للأدلة في هذه الوصلة. " "وإذا ضُبط في I، فإنه يزيل القيد الذي كان يمنع تحديث وقت الوصول " "للأدلة. لاحظ أن B يمكن دمجه مع إعدادات وقت الوصول " "الأخرى، وهو متضمن في إعداد noatime. جميع إعدادات وقت الوصول الأخرى حصرية " "تبادلياً." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B - changing access-time settings" msgstr "B - تغيير إعدادات وقت الوصول" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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. " "Even though these bits are an enumeration (in contrast to the other mount " "flags such as B), they are nonetheless passed in " "I and I for consistency with B(2), which " "introduced this behavior." msgstr "" "قيم وقت الوصول المدرجة أدناه هي تعداد يتضمن القيمة صفر، وتُعبر عنها البتات " "المحددة بواسطة القناع B. ورغم أن هذه البتات هي تعداد (على " "عكس أعلام الوصل الأخرى مثل B)، إلا أنها تُمرر مع ذلك في " "I و I للاتساق مع B(2)، الذي أدخل هذا السلوك." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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, but must also " "include B in the I field. The kernel will " "verify that B isn't partially set in I (i.e., " "either all bits in the B bit field are either set or " "clear), and that I doesn't have any access-time bits set if " "B isn't set in I." msgstr "" "لاحظ أنه نظراً لأن قيم وقت الوصول هي تعداد وليست قيم بتات، فإن المستدعِي الذي " "يرغب في الانتقال إلى إعداد وقت وصول مختلف لا يمكنه ببساطة تحديد إعداد وقت " "الوصول في I، بل يجب عليه أيضًا تضمين B في حقل " "I. ستتحقق النواة من أن B ليس مضبوطاً بشكل جزئي " "في I (أي أن جميع البتات في حقل بت B إما مضبوطة " "أو ممسوحة)، ومن أن I لا يحتوي على أي بتات لوقت الوصول مضبوطة إذا " "لم يكن B مضبوطاً في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "عند الوصول إلى ملف عبر هذه الوصلة، يُحدث آخر وقت وصول للملف (atime) فقط إذا " "كانت القيمة الحالية لـ atime أقل من أو تساوي آخر وقت تعديل للملف (mtime) أو " "آخر وقت لتغيير الحالة (ctime)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "To enable this access-time setting on a mount or mount tree, " "B must be set in I and B " "must be set in the I field." msgstr "" "لتفعيل إعداد وقت الوصول هذا على وصلة أو شجرة وصل، يجب ضبط " "B في I وضبط B في حقل " "I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Do not update access times for (all types of) files on this mount." msgstr "لا يُحدث أوقات الوصول (لجميع أنواع) الملفات في هذه الوصلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "To enable this access-time setting on a mount or mount tree, " "B must be set in I and B " "must be set in the I field." msgstr "" "لتفعيل إعداد وقت الوصول هذا على وصلة أو شجرة وصل، يجب ضبط " "B في I وضبط B في حقل " "I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Always update the last access time (atime) when files are accessed on this " "mount." msgstr "" "يُحدث دائماً وقت الوصول الأخير (atime) عند الوصول إلى الملفات في هذه الوصلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "To enable this access-time setting on a mount or mount tree, " "B must be set in I and " "B must be set in the I field." msgstr "" "لتفعيل إعداد وقت الوصول هذا على وصلة أو شجرة وصل، يجب ضبط " "B في I وضبط B في حقل " "I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If set in I, creates an ID-mapped mount. The ID mapping is taken " "from the user namespace specified in I and attached to the mount." msgstr "" "إذا ضُبط في I، فإنه ينشئ وصلة معنونة بالمعرفات (ID-mapped mount). " "يؤخذ تعيين المعرف من مساحة اسم المستخدم المحددة في I ويُربط " "بالوصلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 in I." msgstr "" "بما أنه لا يُدعم تغيير تعيين معرف الوصلة بعد تعيينه، فإنه من غير الصالح تحديد " "B في I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For further details, see the subsection \"ID-mapped mounts\" under NOTES." msgstr "" "لمزيد من التفاصيل، انظر القسم الفرعي \"الوصلات المعنونة بالمعرفات\" تحت " "NOTES." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I 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 "" "يُستخدم حقل I لتحديد نوع انتشار الوصل أو شجرة الوصل. هذا الحقل " "إما أن يحتوي على القيمة صفر، مما يعني ترك نوع الانتشار دون تغيير، أو يحتوي " "على إحدى القيم التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Turn all mounts into private mounts." msgstr "يحول جميع الوصلات إلى وصلات خاصة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Turn all mounts into shared mounts." msgstr "يحول جميع الوصلات إلى وصلات مشتركة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Turn all mounts into dependent mounts." msgstr "يحول جميع الوصلات إلى وصلات تابعة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Turn all mounts into unbindable mounts." msgstr "يحول جميع الوصلات إلى وصلات غير قابلة للربط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For further details on the above propagation types, see " "B(7)." msgstr "" "لمزيد من التفاصيل حول أنواع الانتشار المذكورة أعلاه، انظر " "B(7)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns zero. On error, -1 is returned and " "I is set to indicate the error." msgstr "" "عند النجاح، يرجع B() صفراً. وعند حدوث خطأ، يرجع -1 ويُضبط " "I للإشارة إلى الخطأ." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "I is relative but I is neither B nor a valid file " "descriptor." msgstr "المسار I نسبي ولكن I ليس B ولا واصف ملف صالح." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a valid file descriptor." msgstr "I ليس واصف ملف صالح." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The caller tried to change the mount to B, but the mount " "still holds files open for writing." msgstr "" "حاول المستدعِي تغيير الوصلة إلى B، لكن الوصلة لا تزال " "تحتوي على ملفات مفتوحة للكتابة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The caller tried to create an ID-mapped mount raising B " "and specifying I but the mount still holds files open for writing." msgstr "" "حاول المستدعِي إنشاء وصلة معنونة بالمعرفات عبر رفع B وتحديد " "I لكن الوصلة لا تزال تحتوي على ملفات مفتوحة للكتابة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The pathname specified via the I and I arguments to " "B() isn't a mount point." msgstr "" "اسم المسار المحدد عبر المعاملين I و I لـ B() ليس " "نقطة وصل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An unsupported value was set in I." msgstr "ضُبطت قيمة غير مدعومة في I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An unsupported value was specified in the I field of I." msgstr "حُددت قيمة غير مدعومة في حقل I لـ I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An unsupported value was specified in the I field of I." msgstr "حُددت قيمة غير مدعومة في حقل I لـ I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An unsupported value was specified in the I field of " "I." msgstr "حُددت قيمة غير مدعومة في حقل I لـ I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "More than one of B, B, B, or " "B was set in the I field of I." msgstr "" "ضُبط أكثر من واحد من B أو B أو B أو " "B في حقل I لـ I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An access-time setting was specified in the I field without " "B being set in the I field." msgstr "" "حُدد إعداد وقت الوصول في حقل I دون ضبط B في حقل " "I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B was specified in I." msgstr "حُدد B في I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A file descriptor value was specified in I which exceeds " "B." msgstr "حُددت قيمة واصف ملف في I تتجاوز B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A valid file descriptor value was specified in I, but the file " "descriptor did not refer to a user namespace." msgstr "" "حُددت قيمة واصف ملف صالحة في I، لكن واصف الملف لا يشير إلى مساحة " "اسم مستخدم." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The underlying filesystem does not support ID-mapped mounts." msgstr "نظام الملفات الأساسي لا يدعم الوصلات المعنونة بالمعرفات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A partial access-time setting was specified in I instead of " "B being set." msgstr "" "حُدد إعداد وقت وصول جزئي في I بدلاً من ضبط B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The mount is located outside the caller's mount namespace." msgstr "تقع الوصلة خارج مساحة اسم الوصل الخاصة بالمستدعِي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A pathname was empty or had a nonexistent component." msgstr "كان اسم المسار فارغاً أو احتوى على مكون غير موجود." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When changing mount propagation to B, 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 "" "عند تغيير انتشار الوصل إلى B، تجب تخصيص معرف مجموعة أقران جديد " "لكل عمليات الوصل التي لا تملك معرف مجموعة أقران مضبوطًا. فشل هذا التخصيص بسبب " "عدم توفر ذاكرة كافية لتخصيص الهياكل الداخلية ذات الصلة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. #-#-#-#-# archlinux: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# debian-trixie: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# debian-unstable: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# fedora-44: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# fedora-rawhide: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# mageia-cauldron: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# opensuse-leap-16-1: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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 #. #-#-#-#-# opensuse-tumbleweed: mount_setattr.2.pot (PACKAGE VERSION) #-#-#-#-# #. 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When changing mount propagation to B, 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 "" "عند تغيير انتشار الوصل إلى B، تجب تخصيص معرف مجموعة أقران جديد " "لكل عمليات الوصل التي لا تملك معرف مجموعة أقران مضبوطًا. فشل هذا التخصيص لأن " "النواة استنفدت جميع المعرفات المتاحة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "One of the mounts had at least one of B, " "B, B, B, " "B, or B set and the flag is locked. " "Mount attributes become locked on a mount if:" msgstr "" "كانت إحدى عمليات الوصل تملك وسمًا واحدًا على الأقل من B" " أو " "B أو B أو B أو " "B أو B مضبوطًا وكان العلم مقفلًا. تُقفل " "سمات الوصل في حالات الوصل التالية:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A new mount and user namespace pair is created. This happens for example " "when specifying B in B(2), " "B(2), or B(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 "" "أُنشئ زوج جديد من مساحة أسماء الوصل والمستخدم. يحدث هذا على سبيل المثال عند " "تحديد B في B(2) أو B(2) أو " "B(2). تُقفل الأعلام المذكورة أعلاه في مساحة أسماء الوصل الجديدة لمنع " "تغيير خصائص الوصل الحساسة. نظرًا لأن مساحة أسماء الوصل المنشأة حديثًا ستكون " "مملوكة لمساحة أسماء المستخدم المنشأة حديثًا، فإن المستدعِي الذي يملك امتيازات " "في مساحة أسماء المستخدم الجديدة سيكون قادرًا — في غياب هذا القفل — على تغيير " "خصائص الوصل الحساسة (مثل إعادة وصل وصلة كانت للقراءة فقط لتصبح للقراءة " "والكتابة في مساحة أسماء الوصل الجديدة)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A valid file descriptor value was specified in I, but the file " "descriptor refers to the initial user namespace." msgstr "" "حُددت قيمة واصف ملف صالحة في I، ولكن واصف الملف يشير إلى مساحة " "أسماء المستخدم المبدئية." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An attempt was made to add an ID mapping to a mount that is already ID " "mapped." msgstr "" "جرت محاولة لإضافة تخطيط معرف (ID mapping) لوصلة تملك بالفعل تخطيط معرف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The caller does not have B in the initial user namespace." msgstr "" "لا يملك المستدعِي صلاحية B في مساحة أسماء المستخدم المبدئية." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "لينكس." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. commit 7d6beb71da3cc033649d641e1e608713b8220290 #. commit 2a1867219c7b27f928e2545782b86daaf9ad50bd #. commit 9caccd41541a6f7d6279928d9f971f6642c361af #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "Linux 5.12, glibc 2.36." msgstr "لينكس 5.12، glibc 2.36." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ID-mapped mounts" msgstr "عمليات الوصل المخططة بالمعرف (ID-mapped)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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(7) keys:" msgstr "" "كلما تفاعل المستدعِي مع نظام الملفات من خلال وصلة مخططة بالمعرف، سيُطبق تخطيط " "معرف الوصلة على معرفات المستخدم والمجموعة المرتبطة بكائنات نظام الملفات. " "يشمل ذلك معرفات المستخدم والمجموعة المرتبطة بـ inodes وأيضًا مفاتيح " "B(7) التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I, whenever filesystem capabilities are stored or " "returned in the B format, which stores a root user ID " "alongside the capabilities (see B(7))." msgstr "" "I، كلما خُزنت صلاحيات نظام الملفات أو أُرجعت بتنسيق " "B، الذي يخزن معرف مستخدم جذر بجانب الصلاحيات (انظر " "B(7))." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I and I, whenever user " "IDs or group IDs are stored in B or B entries." msgstr "" "I و I، كلما خُزنت معرفات " "المستخدم أو معرفات المجموعة في مدخلات B أو B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The caller must have the B capability in the user namespace " "the filesystem was mounted in." msgstr "" "يجب أن يملك المستدعِي صلاحية B في مساحة أسماء المستخدم التي " "وُصل فيها نظام الملفات." #. fs_flags = FS_ALLOW_IDMAP in kernel sources #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(5) (since Linux 5.12)" msgstr "B(5) (منذ لينكس 5.12)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(5) (since Linux 5.12)" msgstr "B(5) (منذ لينكس 5.12)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 5.12)" msgstr "B (منذ لينكس 5.12)" #. commit 5b9b26f5d0b88b74001dcfe4ab8a8f2f4e744112 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(5) (since Linux 5.15)" msgstr "B(5) (منذ لينكس 5.15)" #. commit 82cae269cfa953032fbb8980a7d554d60fb00b17 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 5.15)" msgstr "B (منذ لينكس 5.15)" #. commit 984fc4e76d63345499f01c0c198a4b44860cf027 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 5.18)" msgstr "B (منذ لينكس 5.18)" #. commit 6c459b78d4793afbba6d864c466cc5cd2932459d #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 5.19)" msgstr "B (منذ لينكس 5.19)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B (ID-mapped lower and upper layers supported since Linux 5.19)" msgstr "" "B (دُعمت الطبقات السفلى والعليا المخططة بالمعرف منذ لينكس 5.19)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 6.2)" msgstr "B (منذ لينكس 6.2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 6.3)" msgstr "B (منذ لينكس 6.3)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 6.7)" msgstr "B (منذ لينكس 6.7)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B (since Linux 6.9)" msgstr "B (منذ لينكس 6.9)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The mount must not have any writers." msgstr "يجب ألا تحتوي الوصلة على أي كُتّاب (writers)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The mount must be a detached mount; that is, it must have been created by " "calling B(2) with the B 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(2).)" msgstr "" "يجب أن تكون الوصلة وصلة منفصلة؛ أي يجب أن تكون قد أُنشئت باستدعاء " "B(2) مع العلم B ويجب ألا تكون مرئية بالفعل في " "مساحة أسماء وصل. (وبعبارة أخرى: يجب ألا تكون الوصلة قد رُبطت بالتسلسل الهرمي " "لنظام الملفات باستدعاء نظام مثل B(2).)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "يمكن إنشاء تخطيطات المعرف لمعرفات المستخدم والمجموعة والمشروع. تخطيط المعرف " "هو في الأساس تخطيط لنطاق من معرفات المستخدم أو المجموعة إلى نطاق آخر أو نفس " "النطاق من المعرفات. تُكتب تخطيطات المعرف في ملفات التخطيط كأربعة أرقام مفصولة " "بمسافات بيضاء. يحدد الرقمان الأولان معرف المستخدم أو المجموعة البادئ في كل " "من مساحتي أسماء المستخدمين. ويحدد الرقم الثالث نطاق تخطيط المعرف. على سبيل " "المثال، التخطيط لمعرفات المستخدم مثل \"1000 1001 1\" يشير إلى أن معرف " "المستخدم 1000 في مساحة أسماء المستخدم للمستدعِي يُخطط إلى معرف المستخدم 1001 " "في مساحة أسماء المستخدم السلف. وبما أن نطاق الخريطة هو 1، يُخطط المعرف 1000 " "فقط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "من الممكن تحديد ما يصل إلى 340 تخطيط معرف لكل نوع من أنواع التخطيط. إذا لم " "تُخطط أي معرفات مستخدم أو مجموعة، فإن جميع الملفات المملوكة لهذا المعرف غير " "المخطط ستظهر كما لو كانت مملوكة لمعرف مستخدم الفائض (overflow) أو معرف " "مجموعة الفائض على التوالي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Further details on setting up ID mappings can be found in " "B(7)." msgstr "" "يمكن العثور على مزيد من التفاصيل حول إعداد تخطيطات المعرف في " "B(7)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In the common case, the user namespace passed in I (together with " "B in I) 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(8)). It is " "also perfectly fine to create a dedicated user namespace for the sake of ID " "mapping a mount." msgstr "" "في الحالة الشائعة، تكون مساحة أسماء المستخدم الممرة في I (مع " "B في I) لإنشاء وصلة مخططة بالمعرف هي مساحة أسماء " "المستخدم الخاصة بحاوية (container). وفي سيناريوهات أخرى ستكون مساحة أسماء " "مستخدم مخصصة مرتبطة بجلسة تسجيل دخول المستخدم كما هو الحال في الأدلة " "المنزلية المحمولة في B(8). ومن الجيد أيضًا إنشاء مساحة " "أسماء مستخدم مخصصة لغرض تخطيط معرف وصلة ما." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "ID-mapped mounts can be useful in the following and a variety of other " "scenarios:" msgstr "" "يمكن أن تكون عمليات الوصل المخططة بالمعرف مفيدة في السيناريوهات التالية " "وغيرها الكثير:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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(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 "" "مشاركة الملفات أو أنظمة الملفات بين مستخدمين متعددين أو أجهزة متعددة، خاصة " "في السيناريوهات المعقدة. على سبيل المثال، تُستخدم عمليات الوصل المخططة " "بالمعرف لتنفيذ الأدلة المنزلية المحمولة في B(8)، حيث " "تسمح للمستخدمين بنقل دليلهم المنزلي إلى جهاز تخزين خارجي واستخدامه على " "حواسيب متعددة حيث يتم تعيين معرفات مستخدم ومجموعة مختلفة لهم. يجعل هذا من " "الممكن فعليًا تعيين معرفات مستخدم ومجموعة عشوائية وقت تسجيل الدخول." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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(2)." msgstr "" "مشاركة الملفات أو أنظمة الملفات من المضيف مع حاويات غير مميزة. يسمح هذا " "للمستخدم بتجنب الاضطرار إلى تغيير الملكية بشكل دائم عبر B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "ID mapping a container's root filesystem. Users don't need to change " "ownership permanently through B(2). Especially for large root " "filesystems, using B(2) can be prohibitively expensive." msgstr "" "تخطيط معرف نظام الملفات الجذر للحاوية. لا يحتاج المستخدمون لتغيير الملكية " "دائمًا عبر B(2). خاصة بالنسبة لأنظمة الملفات الجذرية الكبيرة، يمكن أن " "يكون استخدام B(2) مكلفًا للغاية من حيث الوقت والموارد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Sharing files or filesystems between containers with non-overlapping ID " "mappings." msgstr "" "مشاركة الملفات أو أنظمة الملفات بين الحاويات ذات تخطيطات المعرف غير " "المتداخلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Implementing discretionary access (DAC) permission checking for filesystems " "lacking a concept of ownership." msgstr "" "تنفيذ فحص أذونات الوصول الاختياري (DAC) لأنظمة الملفات التي تفتقر لمفهوم " "الملكية." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Efficiently changing ownership on a per-mount basis. In contrast to " "B(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() system " "call will be sufficient to change the ownership of all files." msgstr "" "تغيير الملكية بكفاءة على أساس كل وصلة. على عكس B(2)، فإن تغيير ملكية " "مجموعات كبيرة من الملفات يتم بلحظة واحدة مع عمليات الوصل المخططة بالمعرف. " "يفيد هذا بشكل خاص عند الرغبة في تغيير ملكية نظام ملفات جذر كامل لآلة " "افتراضية أو حاوية كما ذُكر أعلاه. مع الوصلات المخططة بالمعرف، يكفي استدعاء " "نظام B() واحد لتغيير ملكية جميع الملفات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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(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 "" "مراعاة الملكية الحالية. تحدد تخطيطات المعرف بدقة ما الذي يجب أن يُخطط إليه " "معرف المستخدم أو المجموعة. وهذا يتناقض مع استدعاء النظام B(2) الذي لا " "يمكنه تلقائيًا مراعاة الملكية الحالية للملفات التي يغيرها؛ بل يكتفي بتغيير " "الملكية إلى معرف المستخدم والمجموعة المحددين." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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(2) system call changes the ownership globally and permanently." msgstr "" "تغييرات الملكية المقيدة محليًا ومؤقتًا. تجعل عمليات الوصل المخططة بالمعرف من " "الممكن تغيير الملكية محليًا، وقصر تغييرات الملكية على وصلات محددة، ومؤقتًا" " حيث " "لا تنطبق تغييرات الملكية إلا طالما أن الوصلة موجودة. في المقابل، يؤدي تغيير " "الملكية عبر استدعاء النظام B(2) إلى تغيير الملكية عالميًا وبشكل دائم." #. type: SS #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "Mount attributes and filesystem parameters" msgstr "سمات الوصل ومعاملات نظام الملفات" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #| msgid "" #| "Some mount attributes (traditionally associated with B(8)-style " #| "options) have a sibling filesystem parameter with superficially similar " #| "user-facing behavior. For example, the I<-o\\~ro> option to B(8) " #| "can refer to the \"read-only\" filesystem parameter, or the \"read-only\" " #| "mount attribute. Both of these result in mount objects becoming read-" #| "only, but they do have different behavior." msgid "" "Some mount attributes (traditionally associated with B(8)-style " "options) have a sibling filesystem parameter with superficially similar " "user-facing behavior. For example, the I<-o\\ ro> option to B(8) " "can refer to the \"read-only\" filesystem parameter, or the \"read-only\" " "mount attribute. Both of these result in mount objects becoming read-only, " "but they do have different behavior." msgstr "" "تمتلك بعض سمات الوصل (المرتبطة تقليديًا بخيارات نمط B(8)) معامل نظام " "ملفات نظير بسلوك مشابه ظاهريًا للمستخدم. على سبيل المثال، الخيار I<-o\\ ro> " "في B(8) قد يشير إلى معامل نظام الملفات \"للقراءة فقط\"، أو سمة الوصل " "\"للقراءة فقط\". كلاهما يؤدي إلى جعل كائنات الوصل للقراءة فقط، لكنهما يملكان " "سلوكًا مختلفًا." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The distinction between these two kinds of option is that mount object " "attributes are applied per-mount-object (allowing different mount objects " "derived from a given filesystem instance to have different attributes), " "while filesystem instance parameters (\"superblock flags\" in kernel-" "developer parlance) apply to all mount objects derived from the same " "filesystem instance." msgstr "" "الفرق بين هذين النوعين من الخيارات هو أن سمات كائن الوصل تُطبق لكل كائن وصل " "على حدة (مما يسمح لكائنات وصل مختلفة مشتقة من نسخة نظام ملفات معينة أن تملك " "سمات مختلفة)، بينما تُطبق معاملات نسخة نظام الملفات (\"أعلام الكتلة الفائقة - " "superblock flags\" بلغة مطوري النواة) على جميع كائنات الوصل المشتقة من نفس " "نسخة نظام الملفات." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "When using B(2), the line between these two types of mount options " "was blurred. However, with B() and B(2), the " "distinction is made much clearer. Mount attributes are configured with " "B(), while filesystem parameters are configured using " "B(2)." msgstr "" "عند استخدام B(2)، كانت الحدود بين هذين النوعين من خيارات الوصل " "ضبابية. ومع ذلك، مع B() و B(2)، أصبح التمييز أكثر " "وضوحًا. تُضبط سمات الوصل باستخدام B()، بينما تُضبط معاملات" " نظام " "الملفات باستخدام B(2)." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Extensibility" msgstr "القابلية للتوسع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In order to allow for future extensibility, B() requires the " "user-space application to specify the size of the I structure " "that it is passing. By providing this information, it is possible for " "B() to provide both forwards- and backwards-compatibility, " "with I 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(2), B(2), B(2) and B(2)." msgstr "" "للسماح بالتوسع المستقبلي، يتطلب B() من تطبيق مساحة المستخدم " "تحديد حجم هيكل I الذي يمرره. بتوفير هذه المعلومات، يمكن لـ " "B() توفير توافق مع الإصدارات اللاحقة والسابقة، حيث يعمل " "I كرقم إصدار ضمني. (نظرًا لأن حقول التوسعة الجديدة ستُلحق دائمًا في " "النهاية، فإن حجم الهيكل سيزداد دائمًا). هذا التصميم لقابلية التوسع مشابه جدًا " "لاستدعاءات نظام أخرى مثل B(2) و B(2) و " "B(2) و B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Let I be the size of the structure as specified by the user-space " "application, and let I be the size of the structure which the kernel " "supports, then there are three cases to consider:" msgstr "" "ليكن I هو حجم الهيكل كما حدده تطبيق مساحة المستخدم، و I هو حجم " "الهيكل الذي تدعمه النواة، وعندها توجد ثلاث حالات للنظر فيها:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I equals I, then there is no version mismatch and I " "can be used verbatim." msgstr "" "إذا كان I يساوي I، فلا يوجد تعارض في الإصدار ويمكن استخدام " "I كما هو." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is larger than I, 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 "" "إذا كان I أكبر من I، فهذا يعني وجود بعض حقول التوسعة التي " "تدعمها النواة ولكن تطبيق مساحة المستخدم لا يدركها. ولأن القيمة الصفرية في أي " "حقل توسعة مضاف تعني عدم التنفيذ (no-op)، تعامل النواة جميع حقول التوسعة التي " "لم يوفرها تطبيق مساحة المستخدم على أنها ذات قيم صفرية. يوفر هذا توافقا مع " "الإصدارات السابقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is smaller than I, 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 is set to B. This provides forwards-" "compatibility." msgstr "" "إذا كان I أصغر من I، فهذا يعني وجود بعض حقول التوسعة التي " "يدركها تطبيق مساحة المستخدم ولكن النواة لا تدعمها. ولأن أي حقل توسعة يجب أن " "تعني قيمته الصفرية عدم التنفيذ، يمكن للنواة تجاهل حقول التوسعة غير المدعومة " "بأمان إذا كانت جميعها صفرية. وإذا كانت أي من حقول التوسعة غير المدعومة غير " "صفرية، فسيُرجع -1 ويُضبط I على B. يوفر هذا توافقًا مع الإصدارات " "اللاحقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Because the definition of I may change in the future " "(with new fields being added when system headers are updated), user-space " "applications should zero-fill I 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 "" "نظرًا لأن تعريف I قد يتغير في المستقبل (بإضافة حقول جديدة " "عند تحديث ترويسات النظام)، يجب على تطبيقات مساحة المستخدم ملء هيكل I بالأصفار لضمان أن إعادة تصريف البرنامج بترويسات جديدة لن تؤدي " "إلى أخطاء زائفة وقت التشغيل. أبسط طريقة هي استخدام تهيئة محددة:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct mount_attr attr = {\n" " .attr_set = MOUNT_ATTR_RDONLY,\n" " .attr_clr = MOUNT_ATTR_NODEV\n" "};\n" msgstr "" "struct mount_attr attr = {\n" " .attr_set = MOUNT_ATTR_RDONLY,\n" " .attr_clr = MOUNT_ATTR_NODEV\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Alternatively, the structure can be zero-filled using B(3) or " "similar functions:" msgstr "" "بدلًا من ذلك، يمكن ملء الهيكل بالأصفار باستخدام B(3) أو وظائف مماثلة:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "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" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 " "with a structure which has every byte nonzero (to find the largest value " "which doesn't produce an error of B)." msgstr "" "يمكن لتطبيق في مساحة المستخدم يرغب في تحديد الامتدادات التي تدعمها النواة " "العاملة القيام بذلك عن طريق إجراء بحث ثنائي على I مع هيكل يحتوي كل " "بايت فيه على قيمة غير صفرية (للعثور على أكبر قيمة لا تنتج خطأ B)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 mageia-cauldron opensuse-leap-16-1 #: 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 Eerr.hE\n" "#include Efcntl.hE\n" "#include Egetopt.hE\n" "#include Esys/mount.hE\n" "#include Esys/types.hE\n" "#include Estdbool.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\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-Eattr_set |= MOUNT_ATTR_RDONLY;\n" " break;\n" " case \\[aq]d\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOSUID;\n" " break;\n" " case \\[aq]e\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NODEV;\n" " break;\n" " case \\[aq]f\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOEXEC;\n" " break;\n" " case \\[aq]g\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOATIME;\n" " attr-Eattr_clr |= MOUNT_ATTR__ATIME;\n" " break;\n" " default:\n" " errx(EXIT_FAILURE, \"Invalid argument specified\");\n" " }\n" " }\n" "\\&\n" " if ((argc - optind) E 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= 0) {\n" " attr-Eattr_set |= MOUNT_ATTR_IDMAP;\n" " attr-Euserns_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 "" "/*\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 Eerr.hE\n" "#include Efcntl.hE\n" "#include Egetopt.hE\n" "#include Esys/mount.hE\n" "#include Esys/types.hE\n" "#include Estdbool.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\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-Eattr_set |= MOUNT_ATTR_RDONLY;\n" " break;\n" " case \\[aq]d\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOSUID;\n" " break;\n" " case \\[aq]e\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NODEV;\n" " break;\n" " case \\[aq]f\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOEXEC;\n" " break;\n" " case \\[aq]g\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOATIME;\n" " attr-Eattr_clr |= MOUNT_ATTR__ATIME;\n" " break;\n" " default:\n" " errx(EXIT_FAILURE, \"Invalid argument specified\");\n" " }\n" " }\n" "\\&\n" " if ((argc - optind) E 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= 0) {\n" " attr-Eattr_set |= MOUNT_ATTR_IDMAP;\n" " attr-Euserns_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" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(1), B(1), B(2), B(2), B(2), " "B(5), B(7), B(7), " "B(7), B(7)" msgstr "" "B(1)، B(1)، B(2)، B(2)، B(2)، " "B(5)، B(7)، B(7)، " "B(7)، B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-05-02" msgstr "2 مايو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "B<#include Elinux/fcntl.hE> /* Definition of B constants */\n" "B<#include Elinux/mount.hE> /* Definition of B" " constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Elinux/fcntl.hE> /* Definition of B constants */\n" "B<#include Elinux/mount.hE> /* Definition of B" " constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const char *>IB<," ">\n" "B< unsigned int >IB<, struct mount_attr *>IB<, size_t" " >IB<);>\n" msgstr "" "BIB<, const char *>IB<," ">\n" "B< unsigned int >IB<, struct mount_attr *>IB<, size_t" " >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "I: glibc provides no wrapper for B(), necessitating the " "use of B(2)." msgstr "" "I<ملاحظة>: لا توفر glibc غلافًا لـ B()، مما يستدعي استخدام " "B(2)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B() system call changes the mount properties of a mount " "or an entire mount tree. If I is a relative pathname, then it is " "interpreted relative to the directory referred to by the file descriptor " "I. If I is the special value B, then I is " "interpreted relative to the current working directory of the calling " "process. If I is the empty string and B is " "specified in I, then the mount properties of the mount identified by " "I are changed. (See B(2) for an explanation of why the " "I argument is useful.)" msgstr "" "يغير استدعاء النظام B() خصائص الوصل لوصلة ما أو لشجرة وصل " "كاملة. إذا كان I مسارًا نسبيًا، فسيُفسر بالنسبة إلى الدليل الذي" " يشير " "إليه واصف الملف I. وإذا كان I هو القيمة الخاصة B، " "فسيُفسر I بالنسبة لدليل العمل الحالي لعملية الاستدعاء. وإذا كان " "I سلسلة فارغة وحُدد B في I، فستُغير خصائص " "الوصل للوصلة المحددة بواسطة I. (انظر B(2) لشرح سبب فائدة " "معامل I)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is the empty string, change the mount properties on I " "itself." msgstr "" "إذا كان I سلسلة فارغة، فسيتم تغيير خصائص الوصل على I نفسه." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The I argument of B() is a structure of the following " "form:" msgstr "معامل I في B() هو هيكل بالشكل التالي:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, 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 "" "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" #. type: Plain text #: debian-trixie msgid "" "On success, B() returns zero. On error, -1 is returned and " "I is set to indicate the cause of the error." msgstr "" "عند النجاح، يرجع B() صفرًا. وعند الخطأ، يرجع -1 ويُضبط I " "للإشارة إلى سبب الخطأ." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "I is relative but I is neither B nor a valid file " "descriptor." msgstr "" "مسار الملف I نسبي ولكن I ليس B ولا واصف ملف صالح." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The pathname specified via the I and I arguments to " "B() isn't a mount point." msgstr "" "المسار المحدد عبر المعاملين I و I لـ B() ليس " "نقطة وصل." #. commit 7d6beb71da3cc033649d641e1e608713b8220290 #. commit 2a1867219c7b27f928e2545782b86daaf9ad50bd #. commit 9caccd41541a6f7d6279928d9f971f6642c361af #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "Linux 5.12." msgstr "لينكس 5.12." #. 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-trixie fedora-44 fedora-rawhide #, 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 Eerr.hE\n" "#include Efcntl.hE\n" "#include Egetopt.hE\n" "#include Elinux/mount.hE\n" "#include Elinux/types.hE\n" "#include Estdbool.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\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-Eattr_set |= MOUNT_ATTR_RDONLY;\n" " break;\n" " case \\[aq]d\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOSUID;\n" " break;\n" " case \\[aq]e\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NODEV;\n" " break;\n" " case \\[aq]f\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOEXEC;\n" " break;\n" " case \\[aq]g\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOATIME;\n" " attr-Eattr_clr |= MOUNT_ATTR__ATIME;\n" " break;\n" " default:\n" " errx(EXIT_FAILURE, \"Invalid argument specified\");\n" " }\n" " }\n" "\\&\n" " if ((argc - optind) E 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= 0) {\n" " attr-Eattr_set |= MOUNT_ATTR_IDMAP;\n" " attr-Euserns_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 "" "/*\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 Eerr.hE\n" "#include Efcntl.hE\n" "#include Egetopt.hE\n" "#include Elinux/mount.hE\n" "#include Elinux/types.hE\n" "#include Estdbool.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\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-Eattr_set |= MOUNT_ATTR_RDONLY;\n" " break;\n" " case \\[aq]d\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOSUID;\n" " break;\n" " case \\[aq]e\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NODEV;\n" " break;\n" " case \\[aq]f\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOEXEC;\n" " break;\n" " case \\[aq]g\\[aq]:\n" " attr-Eattr_set |= MOUNT_ATTR_NOATIME;\n" " attr-Eattr_clr |= MOUNT_ATTR__ATIME;\n" " break;\n" " default:\n" " errx(EXIT_FAILURE, \"Invalid argument specified\");\n" " }\n" " }\n" "\\&\n" " if ((argc - optind) E 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= 0) {\n" " attr-Eattr_set |= MOUNT_ATTR_IDMAP;\n" " attr-Euserns_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" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"