Home
last modified time | relevance | path

Searched refs:MFD_NOEXEC_SEAL (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/Documentation/userspace-api/
Dmfd_noexec.rst40 ``MFD_NOEXEC_SEAL``
41 When MFD_NOEXEC_SEAL bit is set in the ``flags``, memfd is created
50 ``MFD_NOEXEC_SEAL`` implies ``MFD_ALLOW_SEALING``. In case that
61 memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL acts like
65 memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL acts like
66 MFD_NOEXEC_SEAL was set.
69 memfd_create() without MFD_NOEXEC_SEAL will be rejected.
/linux-6.12.1/mm/
Dmemfd.c305 #define MFD_ALL_FLAGS (MFD_CLOEXEC | MFD_ALLOW_SEALING | MFD_HUGETLB | MFD_NOEXEC_SEAL | MFD_EXEC)
313 if (!(*flags & (MFD_EXEC | MFD_NOEXEC_SEAL))) { in check_sysctl_memfd_noexec()
315 *flags |= MFD_NOEXEC_SEAL; in check_sysctl_memfd_noexec()
320 if (!(*flags & MFD_NOEXEC_SEAL) && sysctl >= MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED) { in check_sysctl_memfd_noexec()
351 if ((flags & MFD_EXEC) && (flags & MFD_NOEXEC_SEAL)) in SYSCALL_DEFINE2()
401 if (flags & MFD_NOEXEC_SEAL) { in SYSCALL_DEFINE2()
/linux-6.12.1/include/uapi/linux/
Dmemfd.h12 #define MFD_NOEXEC_SEAL 0x0008U macro
/linux-6.12.1/tools/include/uapi/linux/
Dmemfd.h12 #define MFD_NOEXEC_SEAL 0x0008U macro
/linux-6.12.1/tools/testing/selftests/memfd/
Dmemfd_test.c40 #define MFD_NOEXEC_SEAL 0x0008U macro
849 mfd_fail_new("", MFD_EXEC | MFD_NOEXEC_SEAL); in test_create()
1143 MFD_CLOEXEC | MFD_ALLOW_SEALING | MFD_NOEXEC_SEAL); in test_noexec_seal()
1152 MFD_CLOEXEC | MFD_NOEXEC_SEAL); in test_noexec_seal()
1204 MFD_CLOEXEC | MFD_NOEXEC_SEAL | MFD_ALLOW_SEALING); in test_sysctl_sysctl1()
1236 MFD_CLOEXEC | MFD_NOEXEC_SEAL | MFD_ALLOW_SEALING); in test_sysctl_sysctl2()
/linux-6.12.1/tools/testing/selftests/mm/
Dpagemap_ioctl.c1569 fd = memfd_create("uffd-test", MFD_HUGETLB | MFD_NOEXEC_SEAL); in main()
1618 fd = memfd_create(__FILE__".tmp00", MFD_NOEXEC_SEAL); in main()