Serge E. Hallyn wrote: > Quoting Oren Laadan (orenl@xxxxxxxxxxxxxxx): >> Hmmm... IIUC from the text above then: >> >> ptr = mmap(NULL, size, MMAP_EXEC | ... ) >> memcpy(ptr, src, size); >> mremap(src, size, size, MREMAP_FIXED | ..., ptr); > > What is src and size? src is the address of a code section that you want to remap into anonymous memory (to "release" the executable). size is its size. there may be more than one section, of course. > > Hmm, I guess you can get that from /proc/self/maps. > > Cool. :) Oren. _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers