mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add supports for FreeBSD's PROT_MAX to let mprotect knows X flag can be applied in addition.
Closes GH-6738.
This commit is contained in:
parent
1c16749eaa
commit
ae23852e41
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,9 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
|
|||
#ifdef PROT_MPROTECT
|
||||
flags |= PROT_MPROTECT(PROT_EXEC);
|
||||
#endif
|
||||
#ifdef PROT_MAX
|
||||
flags |= PROT_MAX(PROT_READ | PROT_WRITE | PROT_EXEC);
|
||||
#endif
|
||||
#ifdef MAP_HUGETLB
|
||||
size_t huge_page_size = 2 * 1024 * 1024;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue