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:
authorKatarina Durechova <durechova@ynet.sk>2018-10-17 15:21:30 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2018-10-17 15:21:30 +0300
commit631853a924e9794dd89b6efc638c6c8204af780b (patch)
tree458efa843430b95eb4b1d3013332a23ecf7a3da0 /include/tests_boot_services
parent72796f57574bfc0e31051bd2e3602fd9531bbae9 (diff)
[BOOT-5260] Make "sulogin" more generic for systemd rescue.service (#590)
Diffstat (limited to 'include/tests_boot_services')
-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 bce0bd02..1d11492a 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -806,7 +806,7 @@
if [ -f ${ROOTDIR}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=$(${EGREPBINARY} "^ExecStart=-(/bin/sh -c \")?(/usr)?/(s)?bin/sulogin" ${ROOTDIR}usr/lib/systemd/system/rescue.service)
+ FIND=$(${EGREPBINARY} "^ExecStart=.*sulogin" ${ROOTDIR}usr/lib/systemd/system/rescue.service)
if [ ! -z "${FIND}" ]; then
FOUND=1
LogText "Result: found sulogin, so single user is protected"