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>2014-09-15 12:52:06 +0400
committermboelen <michael@cisofy.com>2014-09-15 12:52:06 +0400
commitbce234fa00f42dedab6169eda314cfcb1291f0f5 (patch)
tree9185addfb59b85ca9d4aff52a68747259cfa7017 /include/tests_scheduling
parent3cc696edfce5b644d410a3e98d04b55d46dd11d6 (diff)
Removed warnings, updated changelog
Diffstat (limited to 'include/tests_scheduling')
-rw-r--r--include/tests_scheduling8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/tests_scheduling b/include/tests_scheduling
index 14359189..1ec7410e 100644
--- a/include/tests_scheduling
+++ b/include/tests_scheduling
@@ -186,13 +186,14 @@
done
fi
else
- logtext "Warning: can not read ${AT_ALLOW}"
+ logtext "Result: can not read ${AT_ALLOW} (no permission)"
fi
else
logtext "Result: file ${AT_ALLOW} does not exist"
logtext "Test: checking for file ${AT_DENY}"
if [ -f ${AT_DENY} ]; then
- if [ -f ${AT_ALLOW} ]; then
+ FileIsReadable ${AT_DENY}
+ if [ ${CANREAD} -eq 1 ]; then
logtext "Result: file ${AT_DENY} exists, only non listed users can schedule at jobs"
FIND=`cat ${AT_DENY} | sort`
if [ "${FIND}" = "" ]; then
@@ -203,11 +204,12 @@
done
fi
else
- logtext "Warning: can not read ${AT_DENY}"
+ logtext "Result: can not read ${AT_DENY} (no permission)"
fi
else
logtext "Result: both ${AT_ALLOW} and ${AT_DENY} do not exist"
logtext "Note: only root can schedule at jobs"
+ AddHP 1 1
fi
fi
Display --indent 4 --text "- Checking at users" --result DONE --color GREEN