On Wed Jan 31 17:58:41 2024 +0000, Rémi Bernon wrote:
So, that would essentially be something like?
if (!(status = NtOpenSection( &handle, SECTION_MAP_READ, &attr ))) { int fd; if (!(status = wine_server_handle_to_fd( handle, 0, &fd, NULL ))) { if ((ptr = mmap( NULL, size, PROT_READ, MAP_SHARED, fd, 0 )) == MAP_FAILED) status = STATUS_UNSUCCESSFUL; close( fd ); } NtClose( handle ); }
Seems to be simple enough to me.
Should we then be worried that mmap will go through NT virtual memory management unnoticed?