projects
/
pigpio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
342feb4
)
Revert "Remove excessive PROT_EXEC"
author
Guy McSwain
<guy.mcswain@gmail.com>
Sat, 27 Jun 2020 12:08:01 +0000
(07:08 -0500)
committer
Guy McSwain
<guy.mcswain@gmail.com>
Sat, 27 Jun 2020 12:08:01 +0000
(07:08 -0500)
This reverts commit
e9a0dd8ead58eb5e15c62e64d36a788c27835a9c
.
pigpio.c
patch
|
blob
|
history
diff --git
a/pigpio.c
b/pigpio.c
index 0ad740df609cd52c3fee89bb76d4574ff741a690..491c40d31a3b4f8a6fa2214b1505b9cbdb3ff75b 100644
(file)
--- a/
pigpio.c
+++ b/
pigpio.c
@@
-7332,7
+7332,7
@@
static int initGrabLockFile(void)
static uint32_t * initMapMem(int fd, uint32_t addr, uint32_t len)
{
return (uint32_t *) mmap(0, len,
- PROT_READ|PROT_WRITE,
+ PROT_READ|PROT_WRITE
|PROT_EXEC
,
MAP_SHARED|MAP_LOCKED,
fd, addr);
}