diff options
Diffstat (limited to 'src/msec/libmsec.py')
-rwxr-xr-x | src/msec/libmsec.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 24fa0dd..071402c 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -1505,6 +1505,20 @@ class MSEC: pass # bogus functions + def secure_tmp(self, param): + """Use secure location for temporary files. If this parameter is set to 'yes', user home directory will be used for temporary files. Otherwise, /tmp will be used.""" + shell = self.configfiles.get_config_file(SHELLCONF) + + val = shell.get_shell_variable('SECURE_TMP') + + if val != param: + if param == 'yes': + self.log.info(_('Using secure location for temporary files')) + else: + self.log.info(_('Not using secure location for temporary files')) + shell.set_shell_variable('SECURE_TMP', param) + pass + def enable_startup_msec(self, param): """Enforce MSEC settings on system startup""" pass |