diff options
author | Frederic Lepied <flepied@mandriva.com> | 2005-11-14 15:04:27 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2005-11-14 15:04:27 +0000 |
commit | 41c152d836f302108c78908454c5966e7462a08a (patch) | |
tree | c974051f45984fcae631b5bd55743f8c7eb7e591 /share/libmsec.py | |
parent | 4a730b9c3f9826c79bdbf60448cae670852ca52a (diff) | |
download | msec-41c152d836f302108c78908454c5966e7462a08a.tar msec-41c152d836f302108c78908454c5966e7462a08a.tar.gz msec-41c152d836f302108c78908454c5966e7462a08a.tar.bz2 msec-41c152d836f302108c78908454c5966e7462a08a.tar.xz msec-41c152d836f302108c78908454c5966e7462a08a.zip |
fix #19206 by really generating /var/lib/msec/security.conf
Diffstat (limited to 'share/libmsec.py')
-rw-r--r-- | share/libmsec.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/share/libmsec.py b/share/libmsec.py index 7108844..10742fd 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -64,7 +64,8 @@ PASSWD = '/etc/pam.d/passwd' POWEROFF = '/usr/bin/poweroff' REBOOT = '/usr/bin/reboot' SECURETTY = '/etc/securetty' -SECURITYCONF = '/etc/security/msec/security.conf' +SECURITYCONF = '/var/lib/msec/security.conf' +SECURITYCONF2 = '/etc/security/msec/security.conf' SECURITYCRON = '/etc/cron.daily/msec' SECURITYSH = '/usr/share/msec/security.sh' SERVER = '/etc/security/msec/server' @@ -155,14 +156,14 @@ def get_secure_level(): def set_server_level(level): _interactive and log(_('Setting server level to %s') % level) - securityconf = ConfigFile.get_config_file(SECURITYCONF) + securityconf = ConfigFile.get_config_file(SECURITYCONF2) securityconf.set_shell_variable('SERVER_LEVEL', level) ################################################################################ def get_server_level(): 'D' - securityconf = ConfigFile.get_config_file(SECURITYCONF) + securityconf = ConfigFile.get_config_file(SECURITYCONF2) level = securityconf.get_shell_variable('SERVER_LEVEL') if level: return level msec = ConfigFile.get_config_file(MSEC) @@ -1312,7 +1313,7 @@ to the other users. See pam_xauth(8) for more details.''' def set_security_conf(var, value): '''1 Set the variable \\fIvar\\fP to the value \\fIvalue\\fP in /var/lib/msec/security.conf. -The best way to override the default setting is to use create /etc/security/msec/security.conf +The best way to override the default setting is to create /etc/security/msec/security.conf with the value you want. These settings are used to configure the daily check run each night. The following variables are currentrly recognized by msec: |