mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Use improved function with return values
This commit is contained in:
parent
037f2e9a89
commit
5ecbaafa4f
@ -53,12 +53,8 @@
|
|||||||
if [ ! "${ASBINARY}" = "" ]; then
|
if [ ! "${ASBINARY}" = "" ]; then
|
||||||
logtext "Test: Check file permissions for as (Assembler)"
|
logtext "Test: Check file permissions for as (Assembler)"
|
||||||
IsWorldExecutable ${ASBINARY}
|
IsWorldExecutable ${ASBINARY}
|
||||||
if [ ${SYMLINK} -eq 0 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
logtext "Binary: ${ASBINARY} (world executable: ${FileIsWorldExecutable})"
|
logtext "Binary: ${ASBINARY} (world executable: ${FileIsWorldExecutable})"
|
||||||
else
|
|
||||||
logtext "Binary: ${ASBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
|
|
||||||
fi
|
|
||||||
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
|
|
||||||
AddHP 2 3
|
AddHP 2 3
|
||||||
HARDEN_COMPILERS_NEEDED=1
|
HARDEN_COMPILERS_NEEDED=1
|
||||||
else
|
else
|
||||||
@ -69,12 +65,8 @@
|
|||||||
if [ ! "${GCCBINARY}" = "" ]; then
|
if [ ! "${GCCBINARY}" = "" ]; then
|
||||||
logtext "Test: Check file permissions for GCC compiler"
|
logtext "Test: Check file permissions for GCC compiler"
|
||||||
IsWorldExecutable ${GCCBINARY}
|
IsWorldExecutable ${GCCBINARY}
|
||||||
if [ ${SYMLINK} -eq 0 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
logtext "Binary: ${GCCBINARY} (world executable: ${FileIsWorldExecutable})"
|
logtext "Binary: ${GCCBINARY} (world executable: ${FileIsWorldExecutable})"
|
||||||
else
|
|
||||||
logtext "Binary: ${GCCBINARY} (symlinked to: ${sFILE}) (world executable: ${FileIsWorldExecutable})"
|
|
||||||
fi
|
|
||||||
if [ ${FileIsWorldExecutable} = "TRUE" ]; then
|
|
||||||
AddHP 2 3
|
AddHP 2 3
|
||||||
HARDEN_COMPILERS_NEEDED=1
|
HARDEN_COMPILERS_NEEDED=1
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user