aboutsummaryrefslogtreecommitdiff
path: root/disable_prot.sh
blob: 16498a3306a35b1690cfa8d1cafddd96479e37eb (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ `id -u` -ne 0 ]; then
  echo "$0: This program should be run as root"
fi

sysctl -w kernel.randomize_va_space=0 2>/dev/null
sysctl -w kernel.exec-shield=0 2>/dev/null