From: Dinko Korunic Date: Sat, 14 Feb 2009 13:54:46 +0000 (+0100) Subject: - ugasi execshield prije izvrsavanja gruba X-Git-Tag: debian/2.6.26-4~26 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d1bb716ac233b7d645a22f86cb437d7f49b45dd2;p=kernel-cn.git - ugasi execshield prije izvrsavanja gruba --- diff --git a/debian/postinst b/debian/postinst index e476a32..bfbb597 100755 --- a/debian/postinst +++ b/debian/postinst @@ -116,13 +116,20 @@ else /usr/sbin/update-grub >/dev/null 2>&1 || true fi +# install grub loader +SHIELD=$(sysctl -e -n kernel.exec-shield) +if [ ! -z "$SHIELD" ]; then + sysctl -w -e kernel.exec-shield=0 >/dev/null 2>&1 +fi if ! grub-install --no-floppy '(hd0)' >/dev/null 2>&1; then echo "." echo "CN: FATAL ERROR running grub-install!" echo "CN: Do not reboot your server and report this to OTRS immediately!" exit 1 fi -echo -n " grub" +if [ ! -z "$SHIELD" ]; then + sysctl -w -e "kernel.exec-shield=$SHIELD" >/dev/null 2>&1 +fi # disable lilo if [ -e /etc/lilo.conf ]; then