[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 13/13] memfd_create.2: Describe MFD_INACCESSIBLE flag
From: |
Chao Peng |
Subject: |
[PATCH v5 13/13] memfd_create.2: Describe MFD_INACCESSIBLE flag |
Date: |
Thu, 10 Mar 2022 22:09:11 +0800 |
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
---
man2/memfd_create.2 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/man2/memfd_create.2 b/man2/memfd_create.2
index 89e9c4136..2698222ae 100644
--- a/man2/memfd_create.2
+++ b/man2/memfd_create.2
@@ -101,6 +101,19 @@ meaning that no other seals can be set on the file.
.\" FIXME Why is the MFD_ALLOW_SEALING behavior not simply the default?
.\" Is it worth adding some text explaining this?
.TP
+.BR MFD_INACCESSIBLE
+Disallow userspace access through ordinary MMU accesses via
+.BR read (2),
+.BR write (2)
+and
+.BR mmap (2).
+The file size cannot be changed once initialized.
+This flag cannot coexist with
+.B MFD_ALLOW_SEALING
+and when this flag is set, the initial set of seals will be
+.B F_SEAL_SEAL,
+meaning that no other seals can be set on the file.
+.TP
.BR MFD_HUGETLB " (since Linux 4.14)"
.\" commit 749df87bd7bee5a79cef073f5d032ddb2b211de8
The anonymous file will be created in the hugetlbfs filesystem using
--
2.17.1
- [PATCH v5 08/13] KVM: Use memfile_pfn_ops to obtain pfn for private pages, (continued)
- [PATCH v5 08/13] KVM: Use memfile_pfn_ops to obtain pfn for private pages, Chao Peng, 2022/03/10
- [PATCH v5 10/13] KVM: Register private memslot to memory backing store, Chao Peng, 2022/03/10
- [PATCH v5 09/13] KVM: Handle page fault for private memory, Chao Peng, 2022/03/10
- [PATCH v5 12/13] KVM: Expose KVM_MEM_PRIVATE, Chao Peng, 2022/03/10
- [PATCH v5 11/13] KVM: Zap existing KVM mappings when pages changed in the private fd, Chao Peng, 2022/03/10
- [PATCH v5 13/13] memfd_create.2: Describe MFD_INACCESSIBLE flag,
Chao Peng <=
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Quentin Perret, 2022/03/24
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Sean Christopherson, 2022/03/28
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Quentin Perret, 2022/03/28
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Sean Christopherson, 2022/03/28
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Quentin Perret, 2022/03/29
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Steven Price, 2022/03/30
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Quentin Perret, 2022/03/30
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Sean Christopherson, 2022/03/30
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Andy Lutomirski, 2022/03/31
- Re: [PATCH v5 00/13] KVM: mm: fd-based approach for supporting KVM guest private memory, Sean Christopherson, 2022/03/30