From ab3073619f86af5273abc5c6b8b114cdd02f22ff Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sun, 20 Jun 2021 11:35:29 +0300 Subject: [PATCH] Fix text domain, harden configs --- back_auditd.sh | 6 ++++++ common.sh | 3 --- po/Makefile | 0 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 po/Makefile diff --git a/back_auditd.sh b/back_auditd.sh index 71f9872..bb64860 100755 --- a/back_auditd.sh +++ b/back_auditd.sh @@ -9,6 +9,12 @@ else source /usr/share/linux-infosec-setupper/common.sh fi +TEXTDOMAIN=linux-infosec-setupper-back_auditd + +# make temporary files not accessible to non-root +# like auditd config is not accessible +umask 0077 + # $1 - action # $2 - param name _audit_action_config(){ diff --git a/common.sh b/common.sh index 7776673..909c804 100644 --- a/common.sh +++ b/common.sh @@ -21,9 +21,6 @@ error() { echo '' 1>&2 } -# Translations -TEXTDOMAIN=linux-infosec-setupper - # detect running from git tree if [ -f ./common.sh ] && [ -f "$0" ] then diff --git a/po/Makefile b/po/Makefile deleted file mode 100644 index e69de29..0000000