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: Magnus Granberg <zorry at gentoo dot org>
- To: libffi-discuss at sourceware dot org
- Date: Thu, 27 Mar 2014 20:14:57 +0100
- Subject: Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels
- Authentication-results: sourceware.org; auth=none
>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