From 78395369bd9a1cf13e5a940dd75b25a431d755d0 Mon Sep 17 00:00:00 2001 From: JRGTH Date: Sun, 2 Jan 2022 20:09:08 -0400 Subject: [PATCH] Always check for host /tmp sane permissions --- CHANGELOG | 1 + bastille-init | 9 +++++++++ version | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 410ce5c..e36de4b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.1.08......Always check for host /tmp sane permissions. 1.1.07......Add Linux jails basic management to the WebGUI. 1.1.06......Add ability to manually update bastille core files. 1.1.05......Fix a bug to display correct VNET interface. diff --git a/bastille-init b/bastille-init index 332ebb9..9cd1f33 100755 --- a/bastille-init +++ b/bastille-init @@ -151,6 +151,15 @@ runtime_config() chmod 0555 ${FREEBSD_UPDATE}/freebsd-update fi fi + + # Workaround to check for host /tmp sane permissions. + # This is because after working with Linux jails, this may be changed to 0777 but XigmaNAS wants 1777. + if [ -d "/tmp" ]; then + TMP_PERMS=$(stat -f "%Op" "/tmp") + if [ "${TMP_PERMS}" != "41777" ]; then + chmod 1777 /tmp + fi + fi } bastille_initial_download() diff --git a/version b/version index d547a65..6836cf1 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.1.07 +1.1.08