This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels
- From: Anthony Green <green at moxielogic dot com>
- To: Magnus Granberg <zorry at gentoo dot org>
- Cc: libffi-discuss at sourceware dot org
- Date: Fri, 28 Mar 2014 11:42:31 -0400
- Subject: Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels
- Authentication-results: sourceware.org; auth=none
- References: <2285283 dot rsLvOXeDcT at laptop1 dot gw dot ume dot nu>
Magnus Granberg <zorry@gentoo.org> writes:
>>Hi
>>Magnus, Reading /proc/self/status is a little more heavy weight than checking
> an environment variable. Do we really have to do this every time we call
> dlmmap(), or can we do it once and cache the result?
>>Thanks,
>>AG
>
> The selinux check read /proc/mount for selinux stuff and even check if it have
> the selinux dir. I think the selinux check have the same heavy weight as the
> pax check and then the selinux need to make a temp file in some dir the app
> have acces to make file in. For me is fine to read /proc/... on every time.
>
> /Magnus
Thanks Magnus, I am applying your patch.
AG