dfhack/package/ubuntu-10.10/postinst

7 lines
317 B
Bash

#!/bin/sh
echo "Setting required kernel parameters."
# I actually do it three times, hoping to hammer this into Ubuntu's dense skull.
sysctl -w kernel.randomize_va_space=0
sysctl -w kernel.yama.ptrace_scope=0
echo "kernel.randomize_va_space=0" >> /etc/sysctl.conf
echo "kernel.yama.ptrace_scope=0" >> /etc/sysctl.conf