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:
authorcnrat <cnrat@users.noreply.github.com>2016-08-18 12:48:45 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-08-18 12:48:45 +0300
commit4368b59a1da2db9ccb06bd03d635e174a0587572 (patch)
tree5e6db94cac646b4abab44df900003dce9c23b01e
parent3270c31c046565a19720fde15b4bf42b99514740 (diff)
Fix FILE-6344 bug (#263)
The result of mount command returns like /proc on /proc type proc (rw,hidepid=2) Witch means the regular expression should be '^/proc' not '^proc' or you can grep nothing. :P
-rw-r--r--include/tests_filesystems2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 2b9ef919..cc5dfc11 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -308,7 +308,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
# Proc should be mounted with 'hidepid=2' or 'hidepid=1' at least
LogText "Test: check proc mount with incorrect mount options"
- FIND=$(mount | ${EGREPBINARY} "^proc" | ${EGREPBINARY} -o "hidepid=[0-9]")
+ FIND=$(mount | ${EGREPBINARY} "^/proc" | ${EGREPBINARY} -o "hidepid=[0-9]")
if [ "${FIND}" = "hidepid=2" ]; then
Display --indent 2 --text "- Testing proc mount" --result "${STATUS_OK}" --color GREEN
LogText "Result: proc mount mounted with hidepid=2"