Re: A note about testing EXEC_BACKEND on recent Linuxen - Mailing list pgsql-hackers

From Mitchell Skinner
Subject Re: A note about testing EXEC_BACKEND on recent Linuxen
Date
Msg-id 1138374021.16221.18.camel@firebolt
Whole thread Raw
In response to A note about testing EXEC_BACKEND on recent Linuxen  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, 2006-01-26 at 18:40 -0500, Tom Lane wrote:
> You can work around this by doing (as root)
>     echo 0 >/proc/sys/kernel/randomize_va_space
> before starting the postmaster.  You'll probably want to set it back to
> 1 when done experimenting with EXEC_BACKEND, since address randomization
> is a useful security hack.

I haven't fiddled with this myself, but according to Arjan van de Ven's
post to fedora-devel on July 30th 2005,
> setarch has an -R option to start the binary without randomisation.

...so that you can turn it off per-execution rather than system-wide.
I'm not sure if children inherit the setting.

Mitch



pgsql-hackers by date:

Previous
From: Leandro Guimarães Faria Corcete Dutra
Date:
Subject: Re: Surrogate keys (Was: enums)
Next
From: Tony Caduto
Date:
Subject: Question about postgresql-8.1.2-1-binaries-no-installer.zip(win32)