libffcall
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the


From: Bruno Haible
Subject: [bug #66089] On macos mprotect can't be PROT_WRITE and PROT_EXEC at the same time
Date: Wed, 14 Aug 2024 14:33:05 -0400 (EDT)

Follow-up Comment #4, bug #66089 (group libffcall):

Lorenzo Daneo wrote in
https://lists.gnu.org/archive/html/libffcall/2024-08/msg00007.html:
> I just tried to recompile with HAVE_MMAP_SHARED_CAN_EXEC = 1
> and HAVE_MPROTECT_AFTER_MMAP_CAN_EXEC = 0 
Yes, that's what one needs to look at.

> *page =
(char*)mmap(NULL,pagesize,PROT_READ|PROT_WRITE,MAP_SHARED,file_fd,file_length);*
> *page_x =
(char*)mmap(NULL,pagesize,PROT_READ|PROT_EXEC,MAP_SHARED,file_fd,file_length);*
> 
> The second mmap is not working.

What is the value of errno after the assignment to page_x ?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66089>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]