From 1065bee269a093c1ff3257f95632f718ac1d64b6 Mon Sep 17 00:00:00 2001
From: Brian Davis <brian.davis@stopso.com>
Date: Sat, 20 Feb 2016 09:45:52 -0500
Subject: [PATCH] possible fix for #28
---
checksec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/checksec b/checksec
index 9d4d812..2b357f2 100755
--- a/checksec
+++ b/checksec
@@ -483,12 +483,11 @@ aslrcheck() {
# PaX ASLR support
$debug && echo -e "\n***function aslrcheck->PAX ASLR"
if !(cat /proc/1/status 2> /dev/null | grep -q 'Name:') ; then
- echo_message ':\033[33m insufficient privileges for PaX ASLR checks\033[m\n' '' '' ''
+ echo_message '\033[33m insufficient privileges for PaX ASLR checks\033[m\n' '' '' ''
echo_message ' Fallback to standard Linux ASLR check' '' '' ''
fi
if cat /proc/1/status 2> /dev/null | grep -q 'PaX:'; then
- printf ": "
if cat /proc/1/status 2> /dev/null | grep 'PaX:' | grep -q 'R'; then
echo_message '\033[32mPaX ASLR enabled\033[m\n\n' '' '' ''
else