aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-01-29 14:41:55 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-01-29 14:41:55 +0000
commitf7f1e4f1f91ba0105350e0d085b01b810fc33738 (patch)
tree2e6f7148a15b74a027c14c897a9777d7557a7a02
parent65606235a6d2abc6c559ae22808c50738d3f67a0 (diff)
downloadmsec-f7f1e4f1f91ba0105350e0d085b01b810fc33738.tar
msec-f7f1e4f1f91ba0105350e0d085b01b810fc33738.tar.gz
msec-f7f1e4f1f91ba0105350e0d085b01b810fc33738.tar.bz2
msec-f7f1e4f1f91ba0105350e0d085b01b810fc33738.tar.xz
msec-f7f1e4f1f91ba0105350e0d085b01b810fc33738.zip
initial support for installing missing packages
-rw-r--r--src/msec/config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index 9561300..a6a9d12 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -58,6 +58,12 @@ SETTINGS = {
# text for disabled options
OPTION_DISABLED=_("System default")
+# some checks require installation of additional packages if a specific option was activated
+REQUIRE_PACKAGES = {
+ # the format is: 'OPTION_NAME': ('option value which requires package installation', 'list of packages')
+ # for example, 'CHECK_CHKROOTKIT': ('yes', 'chkrootkit')
+ }
+
# settings organizes by category
# system security settings - defined by 'msec' plugin
SETTINGS_SYSTEM = []
@@ -101,7 +107,6 @@ def find_doc(msec, option, cached=None):
cached[option] = doc
return doc
-
def find_callback(param):
'''Finds a callback for security option'''
if param not in SETTINGS: