Reconsider blocking of memfd_create with mdwe #5126
rusty-snake
started this conversation in
General
Replies: 1 comment
-
I don't have a strong opinion here. memfd_create can be blocked separately, or maybe there could be a way to specify the method used by MDWE for each app. Memory W^X policy should be complemented with file system W^X policy (noexec /tmp etc). Though there are better tricks which can evade that too. Perhaps one day the (too) simple seccomp MDWE will be replaced with an improved in-kernel version: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We block memfd_create with mdwe because you can
However you can also do
you can't? Should we block creat/open(at(2)) too? Or miss I something that makes memfd_create special?
Moreover there are a lot programs (GDK) which use memfd_create but no W&X memory which has lead to the removal of mdwe from a lot profiles.
Beta Was this translation helpful? Give feedback.
All reactions