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