awnumar / memguard

Secure software enclave for storage of sensitive information in memory.
Apache License 2.0
2.5k stars 123 forks source link

Is PROT_EXEC required? #37

Closed anitgandhi closed 6 years ago

anitgandhi commented 6 years ago

Looking at this code: https://github.com/awnumar/memguard/blob/79d54e0bde799a6e8285546a0ae53383fc796103/memcall/memcall_unix.go#L52-L57

Is PROT_EXEC really required? It feels unnecessary given the use case of memguard for byte slices only.

awnumar commented 6 years ago

It was originally added just in case, since I wasn't aware of Go's own mmap policies. I'm currently working on a refactor of the memcall package---amongst other things---that will remove it.

I guess this issue is a good as place as any to track progress.