Home
last modified time | relevance | path

Searched refs:MFD_ALLOW_SEALING (Results 1 – 25 of 41) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create01.c223 {MFD_ALLOW_SEALING, &test_basic, "Basic tests + set/get seals"},
226 {MFD_ALLOW_SEALING, &test_seal_write, "Write seal"},
227 {MFD_ALLOW_SEALING, &test_seal_shrink, "Shrink seal"},
228 {MFD_ALLOW_SEALING, &test_seal_grow, "Grow seal"},
229 {MFD_ALLOW_SEALING, &test_seal_resize, "Resize seal"},
231 {MFD_ALLOW_SEALING, &test_share_dup, "Seals shared for dup"},
232 {MFD_ALLOW_SEALING, &test_share_mmap, "Seals shared for mmap"},
233 {MFD_ALLOW_SEALING, &test_share_open, "Seals shared for open"},
260 if (!MFD_FLAGS_AVAILABLE(MFD_ALLOW_SEALING)) { in setup()
262 "memfd_create(%u) not implemented", MFD_ALLOW_SEALING); in setup()
Dmemfd_create02.c44 {"invalid flags fail 4", "test", ~MFD_ALLOW_SEALING, EINVAL },
49 {"valid flags 2 pass", "test", MFD_ALLOW_SEALING, 0 },
50 {"valid flags 3 pass", "test", MFD_CLOEXEC | MFD_ALLOW_SEALING, 0 },
Dmemfd_create_common.h24 #define FLAGS_ALL_ARRAY_INITIALIZER {MFD_CLOEXEC, MFD_ALLOW_SEALING}
25 #define FLAGS_ALL_MASK (MFD_CLOEXEC | MFD_ALLOW_SEALING)
/external/strace/xlat/
Dmemfd_create_flags.h13 #if defined(MFD_ALLOW_SEALING) || (defined(HAVE_DECL_MFD_ALLOW_SEALING) && HAVE_DECL_MFD_ALLOW_SEAL…
15 static_assert((MFD_ALLOW_SEALING) == (2), "MFD_ALLOW_SEALING != 2");
18 # define MFD_ALLOW_SEALING 2
39 XLAT(MFD_ALLOW_SEALING),
Dmemfd_create_flags.in2 MFD_ALLOW_SEALING 2
/external/linux-kselftest/tools/testing/selftests/memfd/
Dmemfd_test.c670 mfd_fail_new("", ~MFD_ALLOW_SEALING); in test_create()
679 fd = mfd_assert_new("", 0, MFD_ALLOW_SEALING); in test_create()
683 fd = mfd_assert_new("", 0, MFD_ALLOW_SEALING | MFD_CLOEXEC); in test_create()
699 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_basic()
751 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_write()
778 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_future_write()
817 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_shrink()
843 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_grow()
869 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_seal_resize()
895 MFD_CLOEXEC | MFD_ALLOW_SEALING); in test_share_dup()
[all …]
/external/ltp/include/lapi/
Dmemfd.h13 #ifndef MFD_ALLOW_SEALING
14 # define MFD_ALLOW_SEALING 0x0002U macro
/external/virglrenderer/vtest/
Dvtest_shm.h22 #ifndef MFD_ALLOW_SEALING
23 #define MFD_ALLOW_SEALING 0x0002U macro
Dvtest_shm.c54 fd = memfd_create(str, MFD_ALLOW_SEALING); in vtest_new_shm()
71 int mfd = memfd_create("test", MFD_ALLOW_SEALING); in vtest_shm_check()
/external/virglrenderer/src/mesa/util/
Danon_file.c121 fd = memfd_create(debug_name, MFD_CLOEXEC | MFD_ALLOW_SEALING); in os_create_anonymous_file()
125 fd = syscall(SYS_memfd_create, debug_name, MFD_CLOEXEC | MFD_ALLOW_SEALING); in os_create_anonymous_file()
/external/perfetto/src/tracing/ipc/
Dmemfd.h30 #define MFD_ALLOW_SEALING 0x0002U macro
Dmemfd.cc67 MFD_CLOEXEC | MFD_ALLOW_SEALING))); in HasMemfdSupport()
Dposix_shared_memory.cc50 CreateMemfd("perfetto_shmem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in Create()
/external/kernel-headers/original/uapi/linux/
Dmemfd.h9 #define MFD_ALLOW_SEALING 0x0002U macro
/external/rust/crates/nix/src/sys/
Dmemfd.rs31 MFD_ALLOW_SEALING;
/external/wayland/cursor/
Dos-compatibility.c124 fd = memfd_create("wayland-cursor", MFD_CLOEXEC | MFD_ALLOW_SEALING); in os_create_anonymous_file()
/external/crosvm/rutabaga_gfx/src/rutabaga_os/sys/unix/
Dshm.rs40 MemFdCreateFlag::MFD_CLOEXEC | MemFdCreateFlag::MFD_ALLOW_SEALING, in new()
/external/musl/include/sys/
Dmman.h110 #define MFD_ALLOW_SEALING 0x0002U macro
/external/linux-kselftest/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c39 memfd = memfd_create("udmabuf-test", MFD_ALLOW_SEALING); in main()
/external/crosvm/base/src/sys/unix/
Dshm.rs31 use libc::MFD_ALLOW_SEALING;
151 let fd = unsafe { memfd_create(shm_name, MFD_CLOEXEC | MFD_ALLOW_SEALING) }; in new()
/external/crosvm/tests/
Dmini_plugin_template.c100 int mem_fd = syscall(SYS_memfd_create, "guest_mem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in main()
Dplugin_dirty_log.c112 int mem_fd = syscall(SYS_memfd_create, "guest_mem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in main()
Dplugin_ioevent.c135 int mem_fd = syscall(SYS_memfd_create, "guest_mem", MFD_CLOEXEC | MFD_ALLOW_SEALING); in main()
/external/crosvm/jail/seccomp/arm/
Dgpu_common.policy87 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING
/external/crosvm/jail/seccomp/aarch64/
Dgpu_common.policy78 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING

12