From 8296e4b8b597ccd3f197c9fa489003d97951b6e9 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 28 Apr 2015 09:44:24 +0100 Subject: Check correct msec config file for SECURE_TMP config. Note: I think this is bogus. It doesn't deal properly with homedirs on NFS with SECURE_TMP set as many programs require filesystem behaviour that NFS cannot honour. If anything, the tmp folder should be mounted as tmpfs. Ultimately however this is what XDG_RUNTIME_DIR is meant to do and programs should generally move away from it. I'd suggest even that TMP and TMPDIR point to /run/user/603/tmp if you want a really secure TMPDIR system. Or at least something along those lines. mga#14778 --- mandriva/tmpdir.csh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mandriva/tmpdir.csh') diff --git a/mandriva/tmpdir.csh b/mandriva/tmpdir.csh index a2cc08da..c0deecab 100644 --- a/mandriva/tmpdir.csh +++ b/mandriva/tmpdir.csh @@ -1,8 +1,8 @@ # $Id$ # Set TMPDIR and TMP -if (-f /etc/sysconfig/shell) then - eval `cat /etc/sysconfig/shell | grep -v ^# | sed -re 's/^([^=]+=)/set \1/'` +if (-f /etc/security/shell) then + eval `cat /etc/security/shell | grep -v ^# | sed -re 's/^([^=]+=)/set \1/'` endif if ($?SECURE_TMP) then -- cgit v1.2.1