On 11/04/2020 6:02 PM Mike Rapoport firstname.lastname@example.org wrote:
Yes, this will work. The processes that share the memfd_secret file descriptor will have access to the same memory pages, pretty much like with shared memory.
Acked-by: Hagen Paul Pfeifer email@example.com
Thank you for the effort Mike, if zeroize feature will also included it will be great! The memset-all-pages after use is just overkill, a dedicated flag for memfd_secret (or mmap) would be superior.