aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec/libmsec.py
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-05 21:19:13 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-05 21:19:13 +0000
commitd424120e150c2b10b44202c3cb3cd49424ef401c (patch)
tree1701bdcd692dd2d772dcaa4c7e01219f4eef5d6d /src/msec/libmsec.py
parentcb154062e7f56eb41da115bfbbe83cf48956fccc (diff)
downloadmsec-d424120e150c2b10b44202c3cb3cd49424ef401c.tar
msec-d424120e150c2b10b44202c3cb3cd49424ef401c.tar.gz
msec-d424120e150c2b10b44202c3cb3cd49424ef401c.tar.bz2
msec-d424120e150c2b10b44202c3cb3cd49424ef401c.tar.xz
msec-d424120e150c2b10b44202c3cb3cd49424ef401c.zip
Removed more dead code.
Diffstat (limited to 'src/msec/libmsec.py')
-rwxr-xr-xsrc/msec/libmsec.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 1cc4da3..98a022d 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -82,7 +82,6 @@ ISSUE = '/etc/issue'
ISSUENET = '/etc/issue.net'
KDE = '/etc/pam.d/kde'
KDMRC = '/usr/share/config/kdm/kdmrc'
-LDSOPRELOAD = '/etc/ld.so.preload'
LILOCONF = '/etc/lilo.conf'
LOGINDEFS = '/etc/login.defs'
MENULST = '/boot/grub/menu.lst'
@@ -722,8 +721,6 @@ class MSEC:
self.configfiles.add_config_assoc(SYSLOGCONF, '[ -f /var/lock/subsys/syslog ] && service syslog reload')
self.configfiles.add_config_assoc('^/etc/issue$', '/usr/bin/killall mingetty')
- # TODO: add a common function to check parameters
-
def reset(self):
"""Resets the configuration"""
self.log.debug("Resetting msec data.")
@@ -1103,7 +1100,7 @@ class MSEC:
'PermitRootLogin without-password', 1)
def enable_pam_wheel_for_su(self, arg):
- ''' Allow only users in whell grup to su to root.'''
+ ''' Allow only users in wheel grup to su to root.'''
su = self.configfiles.get_config_file(SU)
val = su.get_match('^auth\s+required\s+(?:/lib/security/)?pam_wheel.so\s+use_uid\s*$')
@@ -1423,7 +1420,6 @@ class MSEC:
self.log.info(_('Disabling sulogin in single user runlevel'))
inittab.remove_line_matching('~~:S:wait:/sbin/sulogin')
- # Do we need this?
def enable_msec_cron(self, arg):
''' Perform hourly security check for changes in system configuration.'''
mseccron = self.configfiles.get_config_file(MSECCRON)