aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec/libmsec.py
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-08-29 13:55:24 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-08-29 13:55:24 +0000
commit66355b4ef3ffcc0c078abb4aaea095bfe2876df2 (patch)
tree720e68487882ef2a9988bbab06c1c73b5ed3885c /src/msec/libmsec.py
parentb69f3860b435cba6938649738c517952507826a4 (diff)
downloadmsec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar
msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.gz
msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.bz2
msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.tar.xz
msec-66355b4ef3ffcc0c078abb4aaea095bfe2876df2.zip
added support for configuring inclusion of current directory into path
Diffstat (limited to 'src/msec/libmsec.py')
-rwxr-xr-xsrc/msec/libmsec.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 997d11c..8b6088b 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -1527,6 +1527,19 @@ class MSEC:
"""Enforce MSEC file directory permissions on system startup. If this parameter is set to 'enforce', system permissions will be enforced automatically, according to system security settings."""
pass
+ def allow_curdir_in_path(self, param):
+ """Include current directory into user PATH by default"""
+ msec = self.configfiles.get_config_file(SHELLCONF)
+
+ val = msec.get_shell_variable('ALLOW_CURDIR_IN_PATH')
+
+ if val != param:
+ if param == 'yes':
+ self.log.info(_('Allowing including current directory in path'))
+ msec.set_shell_variable('ALLOW_CURDIR_IN_PATH', param)
+ else:
+ self.log.info(_('Not allowing including current directory in path'))
+ msec.set_shell_variable('ALLOW_CURDIR_IN_PATH', param)
# }}}