Serge E. Hallyn wrote:
> Quoting Oren Laadan ([email protected]):
>> 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
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to