[PATCH RFA]: Look for /proc/sys/kernel/randomize_va_space
Christoph Hellwig
hch@infradead.org
Sun Jul 31 21:39:00 GMT 2005
On Sun, Jul 31, 2005 at 01:03:57PM -0700, Ian Lance Taylor wrote:
> Andreas Jaeger <aj@suse.de> writes:
>
> > Ian Lance Taylor <ian@airs.com> writes:
> >
> > > In Fedora Core 4 the file which used to be named
> > > /proc/sys/kernel/exec-shield-randomize is now called
> > > /proc/sys/kernel/randomize_va_space. Apparently the name changed as
> > > the functionality was taken into the mainline Linux kernel. In
> >
> > In that case we should try the official name first and then the old
> > one. I propose to change the order of files to access in your patch
> > and add a note about the above.
>
> Since these files are in /proc, and therefore are controlled entirely
> by the kernel, I don't see that the order matters. If both files
> exist, then both will be meaningful. But I can switch the order if it
> seems useful.
It means one less syscall for the proper mainline kernel.
More information about the Gcc-patches
mailing list