From dc19e4892802aee73d45d013a720acd1076a37f3 Mon Sep 17 00:00:00 2001 From: samson Date: Sun, 2 Dec 2018 23:08:56 +0800 Subject: [PATCH] Fix some bugs --- bin/hardening/2.3_tmp_nosuid.sh | 2 +- bin/hardening/2.4_tmp_noexec.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/2.3_tmp_nosuid.sh b/bin/hardening/2.3_tmp_nosuid.sh index 7abd011..f4dc647 100755 --- a/bin/hardening/2.3_tmp_nosuid.sh +++ b/bin/hardening/2.3_tmp_nosuid.sh @@ -16,7 +16,7 @@ HARDENING_LEVEL=2 # Quick factoring as many script use the same logic PARTITION="/tmp" OPTION="nosuid" -SERVICEPATH="/etc/systemd/system/tmp.mount" +SERVICEPATH="/usr/share/systemd/tmp.mount" SERVICENAME="tmp.mount" # This function will be called if the script status is on enabled / audit mode diff --git a/bin/hardening/2.4_tmp_noexec.sh b/bin/hardening/2.4_tmp_noexec.sh index 67fe0ab..0d6eb9e 100755 --- a/bin/hardening/2.4_tmp_noexec.sh +++ b/bin/hardening/2.4_tmp_noexec.sh @@ -16,7 +16,7 @@ HARDENING_LEVEL=3 # Quick factoring as many script use the same logic PARTITION="/tmp" OPTION="noexec" -SERVICEPATH="/etc/systemd/system/tmp.mount" +SERVICEPATH="/usr/share/systemd/tmp.mount" SERVICENAME="tmp.mount" # This function will be called if the script status is on enabled / audit mode