PROT_EXEC|PROT_WRITE failed

1 post / 0 new
#1 Wed, 2017-03-29 22:00
farfeduc
  • farfeduc's picture
  • Offline
  • Last seen: 1 year 22 hours ago
  • Joined: 2017-03-29

Hello,

I am running my server on alpine 3.5 :

Linux sd-omega 4.4.52-0-grsec #1-Alpine SMP Tue Feb 28 10:15:40 GMT 2017 x86_64 Linux

my kernel is 4.4.52-0-grsec.

I run this docker image : https://github.com/janeczku/go-dnsmasq (with privileged=true and cap_add=NET_ADMIN in case it was a typical permissions error)

and in the log I get the error :

 PROT_EXEC|PROT_WRITE failed.

so I did a stacktrace to understand :

$ strace /go-dnsmasq
execve("/go-dnsmasq", ["/go-dnsmasq"], [/* 10 vars */]) = 0
mmap(0x8e4000, 5019794, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = -1 EPERM (Operation not permitted)
write(2, "PROT_EXEC|PROT_WRITE failed.\n\0", 30PROT_EXEC|PROT_WRITE failed.
 ) = 30
exit(127)                               = ?
+++ exited with 127 +++

Few Google searches have led me to this github issue : https://github.com/KnpLabs/KnpSnappyBundle/issues/92
and according to the last response, it seems to be a kernel related issue but my knowledge in this topic is very limited.

I hope someone will be able to help me.

Thanks in advance

EDIT:

I have just tried to run go-dnsmasq on the host but I get the same-error, so this is definitely not docker-related