diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-06 21:31:46 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-01-06 21:31:46 +0000 |
commit | ff31c9236b1fd7465ea9687fc735e8af882e780e (patch) | |
tree | eec89033b4ad0b2459fbb91fa6dd39077eeaf407 /share/Config.py | |
parent | ab984707253940bf5ced3a379699e8d0dc757fa6 (diff) | |
download | msec-ff31c9236b1fd7465ea9687fc735e8af882e780e.tar msec-ff31c9236b1fd7465ea9687fc735e8af882e780e.tar.gz msec-ff31c9236b1fd7465ea9687fc735e8af882e780e.tar.bz2 msec-ff31c9236b1fd7465ea9687fc735e8af882e780e.tar.xz msec-ff31c9236b1fd7465ea9687fc735e8af882e780e.zip |
Updated to working version of new msec.
Conflicts:
Makefile
cron-sh/security_check.sh
share/msec.py
Diffstat (limited to 'share/Config.py')
-rw-r--r-- | share/Config.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/share/Config.py b/share/Config.py deleted file mode 100644 index 14699b4..0000000 --- a/share/Config.py +++ /dev/null @@ -1,44 +0,0 @@ -#--------------------------------------------------------------- -# Project : Mandriva Linux -# Module : msec -# File : Config.py -# Version : $Id$ -# Author : Frederic Lepied -# Created On : Thu Dec 6 19:54:35 2001 -# Purpose : configuration settings -#--------------------------------------------------------------- - -CONFIG='/etc/security/msec2.conf' - -_config={ 'root' : '', - 'run_commands': 1, - 'log': 'syslog', - } -try: - execfile(CONFIG, _config) -except IOError: - #sys.stderr.write("no config file in %s. Using default values.\n" % CONFIG) - pass - -def get_config(name, default=None): - try: - return _config[name] - except KeyError: - return default - -def set_config(name, value): - _config[name] = value - -# def converthexa(array): -# result="" -# for c in array: -# o=ord(c) -# d=int(o/16) -# u=o-(d*16) -# result=result + "%x%x" % (d, u) -# return result -# -# def hashstring(str): -# return converthexa(md5.new(str).digest()) - -# Config.py ends here |