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:
authorMichael Boelen <michael@cisofy.com>2015-07-14 01:49:40 +0300
committerMichael Boelen <michael@cisofy.com>2015-07-14 01:49:40 +0300
commit6694add635b1b1e60c2704eaccf7ab87e81cf20c (patch)
tree65d3cbbb923389d9881e592b811db395fcc7bfd6
parent9e3fb6f6c243af72f6feae033fab4ce6c967073f (diff)
parentd282fbfc9c29d07254e9abf184e5e42ca1e8abbe (diff)
Merge pull request #38 from aneeshusa/update-systemd-sulogin-detection
Update check for sulogin under systemd.
-rw-r--r--include/tests_boot_services2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 35fee381..972855e8 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -702,7 +702,7 @@
if [ -f /usr/lib/systemd/system/rescue.service ]; then
logtext "Result: file /usr/lib/systemd/system/rescue.service"
logtext "Test: checking presence sulogin for single user mode"
- FIND=`egrep "^ExecStart=-(/usr)?/sbin/sulogin" /usr/lib/systemd/system/rescue.service`
+ FIND=`egrep "^ExecStart=-(/bin/sh -c \")?(/usr)?/(s)?bin/sulogin" /usr/lib/systemd/system/rescue.service`
if [ ! "${FIND}" = "" ]; then
FOUND=1
logtext "Result: found sulogin, so single user is protected"