diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-10-02 14:44:38 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-10-02 14:44:38 +0000 |
commit | 4338b66e3df5add2adfeea5a72770965b8a808dd (patch) | |
tree | beb0bb9050397c8e60bba303183e9e9ca09dbf05 /src | |
parent | ddd900a61dff3f902fa6b84bcf7f3e8d1a081575 (diff) | |
download | msec-4338b66e3df5add2adfeea5a72770965b8a808dd.tar msec-4338b66e3df5add2adfeea5a72770965b8a808dd.tar.gz msec-4338b66e3df5add2adfeea5a72770965b8a808dd.tar.bz2 msec-4338b66e3df5add2adfeea5a72770965b8a808dd.tar.xz msec-4338b66e3df5add2adfeea5a72770965b8a808dd.zip |
Added support for skipping checks when running on battery power.
Diffstat (limited to 'src')
-rw-r--r-- | src/msec/plugins/audit.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py index a345d52..94f79a9 100644 --- a/src/msec/plugins/audit.py +++ b/src/msec/plugins/audit.py @@ -58,13 +58,14 @@ class audit: config.SETTINGS['NOTIFY_WARN'] = ("audit.notify_warn", ['yes', 'no']) # security checks from audit plugins config.SETTINGS['CHECK_SECURITY'] = ("audit.check_security", ['yes', 'no']) + config.SETTINGS['CHECK_ON_BATTERY'] = ("audit.check_on_battery", ['yes', 'no']) # preparing msecgui menu for check in ["CHECK_PERMS", "CHECK_USER_FILES", "CHECK_SUID_ROOT", "CHECK_SUID_MD5", "CHECK_SGID", "CHECK_WRITABLE", "CHECK_UNOWNED", "FIX_UNOWNED", "CHECK_PROMISC", "CHECK_OPEN_PORT", "CHECK_FIREWALL", "CHECK_PASSWD", "CHECK_SHADOW", "CHECK_CHKROOTKIT", "CHECK_RPM_PACKAGES", "CHECK_RPM_INTEGRITY", "CHECK_SHOSTS", "CHECK_USERS", "CHECK_GROUPS", - "TTY_WARN", "SYSLOG_WARN", "MAIL_EMPTY_CONTENT"]: + "TTY_WARN", "SYSLOG_WARN", "MAIL_EMPTY_CONTENT", "CHECK_ON_BATTERY"]: config.SETTINGS_PERIODIC.append(check) # checks with exceptions @@ -173,6 +174,10 @@ class audit: """Show security notifications in system tray using libnotify.""" pass + def check_on_battery(self, param): + """Run security checks when machine is running on battery power.""" + pass + def check_promisc(self, param): ''' Activate ethernet cards promiscuity check.''' cron = self.configfiles.get_config_file(CRON) |