Skip to content

Commit

Permalink
error cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Davis committed Oct 20, 2015
1 parent d533fb3 commit f3b7a64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checksec
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ kernelcheck() {
$debug && echo $($kconfig | grep "CONFIG_PAX")

echo_message " Vanilla Kernel ASLR: " "" "" ""
randomize_va=$(sysctl -b kernel.randomize_va_space)
randomize_va=$(sysctl -b -e kernel.randomize_va_space)
if [ x$randomize_va == x2 ]; then
echo_message "\033[32mFull\033[m\n" "Full," " randomize_va_space='full'" '"randomize_va_space":"full",'
elif [ x$randomize_va == x1 ]; then
Expand All @@ -544,15 +544,15 @@ kernelcheck() {
fi

echo_message " Protected symlinks: " "" "" ""
symlink=$(sysctl -b fs.protected_symlinks)
symlink=$(sysctl -b -e fs.protected_symlinks)
if [ x$symlink == x1 ]; then
echo_message "\033[32mEnabled\033[m\n" "Enabled," " protect_symlinks='yes'" '"protect_symlinks":"yes",'
else
echo_message "\033[31mDisabled\033[m\n" "Disabled," " protect_symlinks='no'" '"protect_symlinks":"no",'
fi

echo_message " Protected hardlinks: " "" "" ""
hardlink=$(sysctl -b fs.protected_hardlinks)
hardlink=$(sysctl -b -e fs.protected_hardlinks)
if [ x$hardlink == x1 ]; then
echo_message "\033[32mEnabled\033[m\n" "Enabled," " protect_hardlinks='yes'" '"protect_hardlinks":"yes",'
else
Expand Down

0 comments on commit f3b7a64

Please sign in to comment.