Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-03-25 18:47:37 +0300
committermboelen <michael@cisofy.com>2015-03-25 18:47:37 +0300
commit5ecbaafa4faff3d3fb6dcbcd8f72308ee15dc490 (patch)
treea9a3e4dd5e7e17bd2f85551481fdae7e85cc90b7 /include/tests_hardening
parent037f2e9a89237e67e5677ab8443c411335c7fa04 (diff)
Use improved function with return values
Diffstat (limited to 'include/tests_hardening')
-rw-r--r--include/tests_hardening12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/tests_hardening b/include/tests_hardening
index 31308933..055cd4b5 100644
--- a/include/tests_hardening
+++ b/include/tests_hardening
@@ -53,12 +53,8 @@
if [ ! "${ASBINARY}" = "" ]; then
logtext "Test: Check file permissions for as (Assembler)"
IsWorldExecutable ${ASBINARY}
- if [ ${SYMLINK} -eq 0 ]; then
+ if [ $? -eq 1 ]; then
logtext "Binary: ${ASBINARY} (world executable: ${FileIsWorldExecutable})"
- else
- logtext "Binary: ${ASBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
- fi
- if [ ${FileIsWorldExecutable} = "TRUE" ]; then
AddHP 2 3
HARDEN_COMPILERS_NEEDED=1
else
@@ -69,12 +65,8 @@
if [ ! "${GCCBINARY}" = "" ]; then
logtext "Test: Check file permissions for GCC compiler"
IsWorldExecutable ${GCCBINARY}
- if [ ${SYMLINK} -eq 0 ]; then
+ if [ $? -eq 1 ]; then
logtext "Binary: ${GCCBINARY} (world executable: ${FileIsWorldExecutable})"
- else
- logtext "Binary: ${GCCBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
- fi
- if [ ${FileIsWorldExecutable} = "TRUE" ]; then
AddHP 2 3
HARDEN_COMPILERS_NEEDED=1
else