diff --git a/testing/test_bins/poc_memfd_create_exec.c b/testing/test_bins/poc_memfd_create_exec.c index 9a58c1dc..96677188 100644 --- a/testing/test_bins/poc_memfd_create_exec.c +++ b/testing/test_bins/poc_memfd_create_exec.c @@ -95,16 +95,6 @@ void load_so(int shm_fd) { // Utility function to convert memfd_create flags to a JSON-friendly format void flags_to_json(unsigned long flags, char *json, size_t json_size) { - // from linux/memfd.h: - // - /* flags for memfd_create(2) (unsigned int) */ - #define MFD_CLOEXEC 0x0001U - #define MFD_ALLOW_SEALING 0x0002U - #define MFD_HUGETLB 0x0004U - /* not executable and sealed to prevent changing to executable. */ - #define MFD_NOEXEC_SEAL 0x0008U - /* executable */ - #define MFD_EXEC 0x0010U snprintf(json, json_size, "{ \"value\": %lu, \"mfd_cloexec\": %s, \"mfd_allow_sealing\": %s, \"mfd_hugetlb\": %s, \"mfd_noexec_seal\": %s, \"mfd_exec\": %s }", flags,