On 28-04-08 19:31, Scott Lovenberg wrote:

Rene Herman wrote:
Looking closer, the CONFIG option keeps non-heap address-space randomization enabled. What you want to have is:

$ cat /proc/sys/kernel/randomize_va_space
0

Set it, as root, via

# echo -n 0 >/proc/sys/kernel/randomize_va_space

Off topic, but do you need the -n flag? I always just "echo num > /proc/sys/path" and I've never had a problem, but is there a case where it matters?

No you don't in fact need it for sysctls -- the first newline is simply ignored (as is all other trailing whitespace by the way).

When you echo things into /sys (a device id into a driver "bind" attribute for example) that's not always the case though and my "-n" came about sort of automatically.

The "proper" way of setting sysctl's is in fact though the sysctl program:

# sysctl kernel.randomize_va_space=0

but hey...

Rene.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to