|
From: Tom H. <to...@co...> - 2005-11-16 16:25:51
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
>> > In fact it's the data segment, which with the new aspacemgr was being
>> > given permissions rw-, whereas natively it's rwx. So that's an
>> > (easily fixable) bug.
>>
>> How is that happening then? mapelf in m_ume.c looks like it respects
>> the permissions given by the PT_LOAD entries in the PHdr.
>
> Um, perhaps I'm confusing myself. It's the segment that is set up
> by "setup_client_dataseg" in m_main.c. Which is the same segment
> that cat /proc/self/maps labels "[heap]" on recent kernels. Now
> I'm not sure I have the names right.
Ah. I thought you meant the .data segment of an ELF image. You
meant the heap which is also sometimes called the data segment
in as much as RLIMIT_DATA applies to it ;-)
That would be my fault - you were originally mapping that with
execute permission and I changed it because x86 and amd64 don't
do so. Obviously ppc32 does...
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|