# 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-05-18 18:14+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 "memfd_create" msgstr "memfd_create" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 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 "memfd_create - create an anonymous file" msgstr "memfd_create - إنشاء ملف مجهول" #. 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Esys/mman.hE>\n" msgstr "" "B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n" "B<#include Esys/mman.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, unsigned int >IB<);>\n" msgstr "BIB<, unsigned int >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 "الوصف" #. #-#-#-#-# archlinux: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# debian-trixie: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# debian-unstable: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# fedora-44: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# fedora-rawhide: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# mageia-cauldron: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# opensuse-leap-16-1: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: memfd_create.2.pot (PACKAGE VERSION) #-#-#-#-# #. David Herrmann: #. memfd uses VM_NORESERVE so each page is accounted on first access. #. This means, the overcommit-limits (see __vm_enough_memory()) and the #. memory-cgroup limits (mem_cgroup_try_charge()) are applied. Note that #. those are accounted on "current" and "current->mm", that is, the #. process doing the first page access. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() creates an anonymous file and returns a file descriptor " "that refers to it. The file behaves like a regular file, and so can be " "modified, truncated, memory-mapped, and so on. However, unlike a regular " "file, it lives in RAM and has a volatile backing storage. Once all " "references to the file are dropped, it is automatically released. Anonymous " "memory is used for all backing pages of the file. Therefore, files created " "by B() have the same semantics as other anonymous memory " "allocations such as those allocated using B(2) with the " "B flag." msgstr "" "تنشئ B() ملفًا مجهولًا وتعيد واصف ملف يشير إليه. يتصرف الملف " "كملف عادي، وبالتالي يمكن تعديله، واقتطاعه، وتعيينه في الذاكرة، وما إلى ذلك. " "ومع ذلك، على عكس الملف العادي، فهو موجود في ذاكرة الوصول العشوائي (RAM) وله " "تخزين دعم متطاير. بمجرد إسقاط جميع المراجع إلى الملف، يتم تحريره آليًا. " "تُستخدم الذاكرة المجهولة لجميع صفحات الدعم للملف. لذلك، فإن الملفات التي تم " "إنشاؤها بواسطة B() لها نفس دلالات تخصيصات الذاكرة المجهولة " "الأخرى مثل تلك المخصصة باستخدام B(2) مع العلم B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The initial size of the file is set to 0. Following the call, the file size " "should be set using B(2). (Alternatively, the file may be " "populated by calls to B(2) or similar.)" msgstr "" "يُضبط الحجم الأولي للملف على 0. بعد الاستدعاء، يجب ضبط حجم الملف باستخدام " "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 "" "The name supplied in I is used as a filename and will be displayed as " "the target of the corresponding symbolic link in the directory I. The displayed name is always prefixed with I and serves only " "for debugging purposes. Names do not affect the behavior of the file " "descriptor, and as such multiple files can have the same name without any " "side effects." 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 "" "The following values may be bitwise ORed in I to change the behavior " "of B():" msgstr "" "يمكن إجراء عملية OR بتية على القيم التالية في I لتغيير سلوك " "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 "" "Set the close-on-exec (B) flag on the new file descriptor. See " "the description of the B flag in B(2) for reasons why this " "may be useful." msgstr "" "اضبط علامة الإغلاق عند التنفيذ (B) على واصف الملف الجديد. انظر " "وصف العلامة B في B(2) للأسباب التي تجعل هذا مفيدًا." #. 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" #. FIXME Why is the MFD_ALLOW_SEALING behavior not simply the default? #. Is it worth adding some text explaining this? #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Allow sealing operations on this file. See the discussion of the " "B and B operations in B(2), and also NOTES, " "below. The initial set of seals is empty. If this flag is not set, the " "initial set of seals will be B, meaning that no other seals can " "be set on the file." msgstr "" "السماح بعمليات الختم على هذا الملف. انظر مناقشة عمليات B و " "B في B(2)، وأيضًا الملاحظات أدناه. المجموعة الأولية من " "الأختام فارغة. إذا لم يتم تعيين هذا العلم، ستكون المجموعة الأولية من الأختام " "هي B، مما يعني أنه لا يمكن تعيين أختام أخرى على الملف." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.14)" msgstr "B (منذ Linux 4.14)" #. commit 749df87bd7bee5a79cef073f5d032ddb2b211de8 #. commit 47b9012ecdc747f6936395265e677d41e11a31ff #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The anonymous file will be created in the hugetlbfs filesystem using huge " "pages. See the Linux kernel source file I for more information about hugetlbfs. Specifying both " "B and B in I is supported since Linux " "4.16." msgstr "" "سيتم إنشاء الملف المجهول في نظام الملفات hugetlbfs باستخدام الصفحات الضخمة. " "راجع ملف مصدر نواة Linux I " "لمزيد من المعلومات حول hugetlbfs. يُدعم تحديد كل من B و " "B في I منذ Linux 4.16." #. 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: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\&.\\|.\\|." msgstr "\\&.\\|.\\|." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Used in conjunction with B to select alternative hugetlb page " "sizes (respectively, 2\\ MB, 1\\ GB, ...) on systems that support multiple " "hugetlb page sizes. Definitions for known huge page sizes are included in " "the header file Ilinux/memfd.hE.>" msgstr "" "يُستخدم بالتزامن مع B لتحديد أحجام صفحات hugetlb بديلة (على " "التوالي، 2\\ ميجابايت، 1\\ جيجابايت، ...) على الأنظمة التي تدعم أحجام صفحات " "hugetlb متعددة. تُضمن تعريفات أحجام الصفحات الضخمة المعروفة في ملف الرأس " "Ilinux/memfd.hE.>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For details on encoding huge page sizes not included in the header file, see " "the discussion of the similarly named constants in 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 "Unused bits in I must be 0." msgstr "يجب أن تكون البتات غير المستخدمة في I صفرًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As its return value, B() returns a new file descriptor that " "can be used to refer to the file. This file descriptor is opened for both " "reading and writing (B) and B is set for the file " "descriptor." msgstr "" "كقيمة إرجاع، تُعيد B() واصف ملف جديد يمكن استخدامه للإشارة إلى " "الملف. يُفتح واصف الملف هذا للقراءة والكتابة (B) ويُضبط B " "لواصف الملف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "With respect to B(2) and B(2), the usual semantics apply for " "the file descriptor created by B(). A copy of the file " "descriptor is inherited by the child produced by B(2) and refers to " "the same file. The file descriptor is preserved across B(2), unless " "the close-on-exec flag has been set." msgstr "" "فيما يتعلق بـ B(2) و B(2)، تنطبق الدلالات المعتادة على واصف " "الملف الذي تم إنشاؤه بواسطة B(). ترث العملية التابعة الناتجة " "عن B(2) نسخة من واصف الملف وتشير إلى نفس الملف. يُحتفظ بواصف الملف عبر " "B(2)، ما لم يتم تعيين علم الإغلاق عند التنفيذ." #. 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns a new file descriptor. 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The address in I points to invalid memory." 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 "I included unknown bits." msgstr "تضمن I بتات غير معروفة." #. NAME_MAX - strlen("memfd:") #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I was too long. (The limit is 249 bytes, excluding the terminating " "null byte.)" msgstr "" "كان I طويلًا جدًا. (الحد هو 249 بايت، باستثناء البايت الصفري الختامي.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Both B and B were specified in I." msgstr "تم تحديد كل من B و 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 "" "The per-process limit on the number of open file descriptors has been " "reached." 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 "" "The system-wide limit on the total number of open files has been reached." 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 "There was insufficient memory to create a new anonymous file." 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 "" "The B flag was specified, but the caller was not privileged " "(did not have the B capability) and is not a member of the " "I group; see the description of I in B(5)." msgstr "" "تم تحديد العلم B، لكن المتصل لم يكن متميزًا (لم يكن لديه القدرة " "B) وليس عضوًا في مجموعة I؛ راجع وصف I في B(5)." #. 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 "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 3.17, glibc 2.27." msgstr "Linux 3.17، glibc 2.27." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. See also http://lwn.net/Articles/593918/ #. and http://lwn.net/Articles/594919/ and http://lwn.net/Articles/591108/ #. 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 provides a simple alternative to manually " "mounting a B(5) filesystem and creating and opening a file in that " "filesystem. The primary purpose of B() is to create files " "and associated file descriptors that are used with the file-sealing APIs " "provided by B(2)." msgstr "" "يوفر استدعاء النظام B() بديلاً بسيطًا لتركيب نظام الملفات " "B(5) يدويًا وإنشاء وفتح ملف في ذلك النظام. الغرض الرئيسي من " "B() هو إنشاء ملفات وواصفات الملفات المرتبطة بها المستخدمة مع " "واجهات برمجة تطبيقات ختم الملفات المقدمة بواسطة B(2)." #. 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 also has uses without file sealing (which " "is why file-sealing is disabled, unless explicitly requested with the " "B flag). In particular, it can be used as an alternative " "to creating files in I or as an alternative to using the B(2) " "B in cases where there is no intention to actually link the " "resulting file into the filesystem." msgstr "" "للاستدعاء النظام B() استخدامات أيضًا بدون ختم الملف (ولهذا " "السبب يتم تعطيل ختم الملف، ما لم يُطلب صراحةً باستخدام العلم " "B). على وجه الخصوص، يمكن استخدامه كبديل لإنشاء ملفات في " "I أو كبديل لاستخدام B(2) B في الحالات التي لا توجد " "فيها نية لربط الملف الناتج فعليًا بنظام الملفات." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "File sealing" msgstr "ختم الملف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In the absence of file sealing, processes that communicate via shared memory " "must either trust each other, or take measures to deal with the possibility " "that an untrusted peer may manipulate the shared memory region in " "problematic ways. For example, an untrusted peer might modify the contents " "of the shared memory at any time, or shrink the shared memory region. The " "former possibility leaves the local process vulnerable to time-of-check-to-" "time-of-use race conditions (typically dealt with by copying data from the " "shared memory region before checking and using it). The latter possibility " "leaves the local process vulnerable to B signals when an attempt is " "made to access a now-nonexistent location in the shared memory region. " "(Dealing with this possibility necessitates the use of a handler for the " "B signal.)" msgstr "" "في غياب ختم الملف، يجب على العمليات التي تتواصل عبر الذاكرة المشتركة إما أن " "تثق ببعضها البعض، أو تتخذ إجراءات للتعامل مع احتمال أن يقوم نظير غير موثوق " "بمعالجة منطقة الذاكرة المشتركة بطرق إشكالية. على سبيل المثال، قد يقوم نظير " "غير موثوق بتعديل محتويات الذاكرة المشتركة في أي وقت، أو تقليص منطقة الذاكرة " "المشتركة. الاحتمال الأول يجعل العملية المحلية عرضة لحالات سباق وقت الفحص إلى " "وقت الاستخدام (يتم التعامل معها عادةً عن طريق نسخ البيانات من منطقة الذاكرة " "المشتركة قبل فحصها واستخدامها). الاحتمال الثاني يجعل العملية المحلية عرضة " "لإشارات B عند محاولة الوصول إلى موقع غير موجود الآن في منطقة الذاكرة " "المشتركة. (يتطلب التعامل مع هذا الاحتمال استخدام معالج لإشارة B.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Dealing with untrusted peers imposes extra complexity on code that employs " "shared memory. Memory sealing enables that extra complexity to be " "eliminated, by allowing a process to operate secure in the knowledge that " "its peer can't modify the shared memory in an undesired fashion." msgstr "" "يفرض التعامل مع النظائر غير الموثوقة تعقيدًا إضافيًا على الكود الذي يستخدم " "الذاكرة المشتركة. يتيح ختم الذاكرة إزالة هذا التعقيد الإضافي، من خلال السماح " "لعملية بالعمل بأمان مع العلم أن نظيرها لا يمكنه تعديل الذاكرة المشتركة " "بطريقة غير مرغوب فيها." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An example of the usage of the sealing mechanism is as follows:" msgstr "مثال على استخدام آلية الختم كما يلي:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(1)" msgstr "(1)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The first process creates a B(5) file using B(). The " "call yields a file descriptor used in subsequent steps." msgstr "" "تنشئ العملية الأولى ملف B(5) باستخدام B(). تُرجع " "الاستدعاء واصف ملف يُستخدم في الخطوات اللاحقة." #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(2)" msgstr "(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The first process sizes the file created in the previous step using " "B(2), maps it using B(2), and populates the shared memory " "with the desired data." msgstr "" "تحدد العملية الأولى حجم الملف الذي أُنشئ في الخطوة السابقة باستخدام " "B(2)، وتُخططه باستخدام B(2)، وتملأ الذاكرة المشتركة " "بالبيانات المطلوبة." #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(3)" msgstr "(3)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The first process uses the B(2) B operation to place " "one or more seals on the file, in order to restrict further modifications on " "the file. (If placing the seal B, then it will be necessary " "to first unmap the shared writable mapping created in the previous step. " "Otherwise, behavior similar to B can be achieved by using " "B, which will prevent future writes via B(2) and " "B(2) from succeeding while keeping existing shared writable " "mappings)." msgstr "" "تستخدم العملية الأولى عملية B(2) B لوضع ختم واحد أو أكثر " "على الملف، لتقييد التعديلات الإضافية على الملف. (إذا تم وضع الختم " "B، فسيكون من الضروري أولاً إلغاء تخطيط التعيين المشترك القابل " "للكتابة الذي أُنشئ في الخطوة السابقة. وإلا، يمكن تحقيق سلوك مشابه لـ " "B باستخدام B، الذي يمنع عمليات الكتابة " "المستقبلية عبر B(2) و B(2) من النجاح مع الاحتفاظ بالتعيينات " "المشتركة القابلة للكتابة الحالية)." #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(4)" msgstr "(4)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A second process obtains a file descriptor for the B(5) file and " "maps it. Among the possible ways in which this could happen are the " "following:" msgstr "" "تحصل عملية ثانية على واصف ملف لملف B(5) وتُخططه. من بين الطرق الممكنة " "لحدوث ذلك ما يلي:" #. 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 "" "The process that called B() could transfer the resulting file " "descriptor to the second process via a UNIX domain socket (see B(7) " "and B(3)). The second process then maps the file using B(2)." msgstr "" "يمكن للعملية التي استدعت B() نقل واصف الملف الناتج إلى العملية " "الثانية عبر مقبس نطاق UNIX (انظر B(7) و B(3)). ثم تُخطط العملية " "الثانية الملف باستخدام B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The second process is created via B(2) and thus automatically " "inherits the file descriptor and mapping. (Note that in this case and the " "next, there is a natural trust relationship between the two processes, since " "they are running under the same user ID. Therefore, file sealing would not " "normally be necessary.)" msgstr "" "تُنشأ العملية الثانية عبر B(2) وبالتالي ترث آلياً واصف الملف والتعيين. " "(لاحظ أنه في هذه الحالة والحالة التالية، توجد علاقة ثقة طبيعية بين " "العمليتين، حيث تعملان تحت نفس معرف المستخدم. لذلك، لن يكون ختم الملف ضرورياً " "عادةً.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The second process opens the file IpidIfd, where " "IpidE> is the PID of the first process (the one that called " "B()), and IfdE> is the number of the file descriptor " "returned by the call to B() in that process. The second " "process then maps the file using B(2)." msgstr "" "تفتح العملية الثانية الملف IpidIfd، حيث IpidE> هو " "PID العملية الأولى (التي استدعت B())، و IfdE> هو رقم " "واصف الملف الذي أرجعته استدعاء B() في تلك العملية. ثم تُخطط " "العملية الثانية الملف باستخدام B(2)." #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(5)" msgstr "(5)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The second process uses the B(2) B operation to " "retrieve the bit mask of seals that has been applied to the file. This bit " "mask can be inspected in order to determine what kinds of restrictions have " "been placed on file modifications. If desired, the second process can apply " "further seals to impose additional restrictions (so long as the " "B seal has not yet been applied)." msgstr "" "تستخدم العملية الثانية عملية B(2) B لاسترجاع قناع البت " "للأختام التي طُبقت على الملف. يمكن فحص قناع البت هذا لتحديد أنواع القيود التي " "فُرضت على تعديلات الملف. إذا رغبت، يمكن للعملية الثانية تطبيق أختام إضافية " "لفرض قيود إضافية (طالما لم يُطبق ختم 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 "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Below are shown two example programs that demonstrate the use of " "B() and the file sealing API." msgstr "" "فيما يلي برنامجان مثالان يوضحان استخدام B() وواجهة برمجة " "تطبيقات ختم الملف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The first program, I, creates a B(5) file using " "B(), sets a size for the file, maps it into memory, and " "optionally places some seals on the file. The program accepts up to three " "command-line arguments, of which the first two are required. The first " "argument is the name to associate with the file, the second argument is the " "size to be set for the file, and the optional third argument is a string of " "characters that specify seals to be set on the file." msgstr "" "البرنامج الأول، I، ينشئ ملف B(5) باستخدام " "B()، ويحدد حجماً للملف، ويُخططه في الذاكرة، ويضع اختيارياً بعض " "الأختام على الملف. يقبل البرنامج ما يصل إلى ثلاث وسائط لسطر الأوامر، أول " "اثنتين منها مطلوبتان. الوسيطة الأولى هي الاسم المرتبط بالملف، والوسيطة " "الثانية هي الحجم الذي سيُحدد للملف، والوسيطة الثالثة الاختيارية هي سلسلة من " "الأحرف تحدد الأختام التي ستوضع على الملف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The second program, I, can be used to open an existing file " "that was created via B() and inspect the set of seals that " "have been applied to that file." 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 following shell session demonstrates the use of these programs. First " "we create a B(5) file and set some seals on it:" msgstr "" "توضح جلسة الصدفة التالية استخدام هذه البرامج. أولاً ننشئ ملف B(5) ونضع " "بعض الأختام عليه:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./t_memfd_create my_memfd_file 4096 sw &>\n" "[1] 11775\n" "PID: 11775;\\& fd: 3;\\& /proc/11775/fd/3\n" msgstr "" "$B< ./t_memfd_create my_memfd_file 4096 sw &>\n" "[1] 11775\n" "PID: 11775;\\& fd: 3;\\& /proc/11775/fd/3\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "At this point, the I program continues to run in the " "background. From another program, we can obtain a file descriptor for the " "file created by B() by opening the IpidI file " "that corresponds to the file descriptor opened by B(). Using " "that pathname, we inspect the content of the IpidI symbolic " "link, and use our I program to view the seals that have been " "placed on the file:" msgstr "" "في هذه المرحلة، يستمر برنامج I في العمل في الخلفية. من " "برنامج آخر، يمكننا الحصول على واصف ملف للملف الذي أنشأه B() " "بفتح ملف IpidI الذي يتوافق مع واصف الملف الذي فتحه " "B(). باستخدام اسم المسار هذا، نفحص محتوى الرابط الرمزي IpidI، ونستخدم برنامج I لعرض الأختام التي وُضعت على الملف:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< readlink /proc/11775/fd/3>;\n" "/memfd:my_memfd_file (deleted)\n" "$B< ./t_get_seals /proc/11775/fd/3>;\n" "Existing seals: WRITE SHRINK\n" msgstr "" "$B< readlink /proc/11775/fd/3>;\n" "/memfd:my_memfd_file (deleted)\n" "$B< ./t_get_seals /proc/11775/fd/3>;\n" "Existing seals: WRITE SHRINK\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source: t_memfd_create.c" msgstr "مصدر البرنامج: t_memfd_create.c" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t size;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " size = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, size) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t size;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " size = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, size) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source: t_get_seals.c" msgstr "مصدر البرنامج: t_get_seals.c" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " unsigned int seals;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"%s /proc/PID/fd/FD\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " seals = fcntl(fd, F_GET_SEALS);\n" " if (seals == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" "\\&\n" " printf(\"Existing seals:\");\n" " if (seals & F_SEAL_SEAL)\n" " printf(\" SEAL\");\n" " if (seals & F_SEAL_GROW)\n" " printf(\" GROW\");\n" " if (seals & F_SEAL_WRITE)\n" " printf(\" WRITE\");\n" " if (seals & F_SEAL_FUTURE_WRITE)\n" " printf(\" FUTURE_WRITE\");\n" " if (seals & F_SEAL_SHRINK)\n" " printf(\" SHRINK\");\n" " printf(\"\\[rs]n\");\n" "\\&\n" " /* Code to map the file and access the contents of the\n" " resulting mapping omitted. */\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " unsigned int seals;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"%s /proc/PID/fd/FD\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " seals = fcntl(fd, F_GET_SEALS);\n" " if (seals == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" "\\&\n" " printf(\"Existing seals:\");\n" " if (seals & F_SEAL_SEAL)\n" " printf(\" SEAL\");\n" " if (seals & F_SEAL_GROW)\n" " printf(\" GROW\");\n" " if (seals & F_SEAL_WRITE)\n" " printf(\" WRITE\");\n" " if (seals & F_SEAL_FUTURE_WRITE)\n" " printf(\" FUTURE_WRITE\");\n" " if (seals & F_SEAL_SHRINK)\n" " printf(\" SHRINK\");\n" " printf(\"\\[rs]n\");\n" "\\&\n" " /* Code to map the file and access the contents of the\n" " resulting mapping omitted. */\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(2), B(2), B(2), B(2), B(2), " "B(3)" msgstr "" "B(2), B(2), B(2), B(2), B(2), " "B(3)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 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 msgid "" "The B flag was specified, but the caller was not privileged " "(did not have the B capability) and is not a member of the " "I group; see the description of I in B(5)." msgstr "" "تم تحديد العلم B، لكن المتصل لم يكن متميزًا (لم يكن لديه القدرة " "B) وليس عضوًا في مجموعة I؛ راجع وصف " "I في B(5)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B<./t_memfd_create my_memfd_file 4096 sw &>\n" "[1] 11775\n" "PID: 11775; fd: 3; /proc/11775/fd/3\n" msgstr "" "$ B<./t_memfd_create my_memfd_file 4096 sw &>\n" "[1] 11775\n" "PID: 11775; fd: 3; /proc/11775/fd/3\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B\n" "/memfd:my_memfd_file (deleted)\n" "$ B<./t_get_seals /proc/11775/fd/3>\n" "Existing seals: WRITE SHRINK\n" msgstr "" "$ B\n" "/memfd:my_memfd_file (deleted)\n" "$ B<./t_get_seals /proc/11775/fd/3>\n" "Existing seals: WRITE SHRINK\n" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t len;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " len = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, len) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t len;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " len = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, len) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " unsigned int seals;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"%s /proc/PID/fd/FD\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " seals = fcntl(fd, F_GET_SEALS);\n" " if (seals == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" "\\&\n" " printf(\"Existing seals:\");\n" " if (seals & F_SEAL_SEAL)\n" " printf(\" SEAL\");\n" " if (seals & F_SEAL_GROW)\n" " printf(\" GROW\");\n" " if (seals & F_SEAL_WRITE)\n" " printf(\" WRITE\");\n" " if (seals & F_SEAL_FUTURE_WRITE)\n" " printf(\" FUTURE_WRITE\");\n" " if (seals & F_SEAL_SHRINK)\n" " printf(\" SHRINK\");\n" " printf(\"\\[rs]n\");\n" "\\&\n" " /* Code to map the file and access the contents of the\n" " resulting mapping omitted. */\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " unsigned int seals;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"%s /proc/PID/fd/FD\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDWR);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " seals = fcntl(fd, F_GET_SEALS);\n" " if (seals == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" "\\&\n" " printf(\"Existing seals:\");\n" " if (seals & F_SEAL_SEAL)\n" " printf(\" SEAL\");\n" " if (seals & F_SEAL_GROW)\n" " printf(\" GROW\");\n" " if (seals & F_SEAL_WRITE)\n" " printf(\" WRITE\");\n" " if (seals & F_SEAL_FUTURE_WRITE)\n" " printf(\" FUTURE_WRITE\");\n" " if (seals & F_SEAL_SHRINK)\n" " printf(\" SHRINK\");\n" " printf(\"\\[rs]n\");\n" "\\&\n" " /* Code to map the file and access the contents of the\n" " resulting mapping omitted. */\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-17" msgstr "17 نوفمبر 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t size;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " size = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, size) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/mman.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *name, *seals_arg;\n" " ssize_t size;\n" " unsigned int seals;\n" "\\&\n" " if (argc E 3) {\n" " fprintf(stderr, \"%s name size [seals]\\[rs]n\", argv[0]);\n" " fprintf(stderr, \"\\[rs]t\\[aq]seals\\[aq] can contain any of the \"\n" " \"following characters:\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tg - F_SEAL_GROW\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]ts - F_SEAL_SHRINK\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tw - F_SEAL_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tW - F_SEAL_FUTURE_WRITE\\[rs]n\");\n" " fprintf(stderr, \"\\[rs]t\\[rs]tS - F_SEAL_SEAL\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " name = argv[1];\n" " size = atoi(argv[2]);\n" " seals_arg = argv[3];\n" "\\&\n" " /* Create an anonymous file in tmpfs; allow seals to be\n" " placed on the file. */\n" "\\&\n" " fd = memfd_create(name, MFD_ALLOW_SEALING);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"memfd_create\");\n" "\\&\n" " /* Size the file as specified on the command line. */\n" "\\&\n" " if (ftruncate(fd, size) == -1)\n" " err(EXIT_FAILURE, \"truncate\");\n" "\\&\n" " printf(\"PID: %jd; fd: %d; /proc/%jd/fd/%d\\[rs]n\",\n" " (intmax_t) getpid(), fd, (intmax_t) getpid(), fd);\n" "\\&\n" " /* Code to map the file and populate the mapping with data\n" " omitted. */\n" "\\&\n" " /* If a \\[aq]seals\\[aq] command-line argument was supplied, set some\n" " seals on the file. */\n" "\\&\n" " if (seals_arg != NULL) {\n" " seals = 0;\n" "\\&\n" " if (strchr(seals_arg, \\[aq]g\\[aq]) != NULL)\n" " seals |= F_SEAL_GROW;\n" " if (strchr(seals_arg, \\[aq]s\\[aq]) != NULL)\n" " seals |= F_SEAL_SHRINK;\n" " if (strchr(seals_arg, \\[aq]w\\[aq]) != NULL)\n" " seals |= F_SEAL_WRITE;\n" " if (strchr(seals_arg, \\[aq]W\\[aq]) != NULL)\n" " seals |= F_SEAL_FUTURE_WRITE;\n" " if (strchr(seals_arg, \\[aq]S\\[aq]) != NULL)\n" " seals |= F_SEAL_SEAL;\n" "\\&\n" " if (fcntl(fd, F_ADD_SEALS, seals) == -1)\n" " err(EXIT_FAILURE, \"fcntl\");\n" " }\n" "\\&\n" " /* Keep running, so that the file created by memfd_create()\n" " continues to exist. */\n" "\\&\n" " pause();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. 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 "صفحات دليل لينكس (لم تصدر بعد)"