aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-25 19:29:56 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-25 19:29:56 +0000
commit5b4a435a4c6b941b5f7ad362f311e8f86479e1d6 (patch)
tree53ae3060c9b3cbf272c3e39c69ab610ccaf153cb /src
parentfb3973e7fcfd216f0fc1230dcbb2e4b310f20c46 (diff)
downloadmsec-5b4a435a4c6b941b5f7ad362f311e8f86479e1d6.tar
msec-5b4a435a4c6b941b5f7ad362f311e8f86479e1d6.tar.gz
msec-5b4a435a4c6b941b5f7ad362f311e8f86479e1d6.tar.bz2
msec-5b4a435a4c6b941b5f7ad362f311e8f86479e1d6.tar.xz
msec-5b4a435a4c6b941b5f7ad362f311e8f86479e1d6.zip
Added ENABLE_STARTUP_MSEC and ENABLE_STARTUP_PERMS variables.
Diffstat (limited to 'src')
-rw-r--r--src/msec/config.py4
-rwxr-xr-xsrc/msec/libmsec.py9
2 files changed, 12 insertions, 1 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index 03da2eb..c0042c2 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -108,13 +108,15 @@ SETTINGS = {'BASE_LEVEL': ("libmsec.base_level",
'PASSWORD_LENGTH': ("libmsec.password_length", ['*']),
'SHELL_HISTORY_SIZE': ("libmsec.set_shell_history_size", ['*']),
'SHELL_TIMEOUT': ("libmsec.set_shell_timeout", ['*']),
+ 'ENABLE_STARTUP_MSEC': ("libmsec.enable_startup_msec", ['yes', 'no']),
+ 'ENABLE_STARTUP_PERMS': ("libmsec.enable_startup_perms", ['yes', 'no']),
}
# text for disabled options
OPTION_DISABLED=_("System default")
# settings organizes by category
# system security settings
-SETTINGS_SYSTEM = ["ENABLE_POLICYKIT", "ENABLE_SUDO", "ENABLE_MSEC_CRON",
+SETTINGS_SYSTEM = ["ENABLE_STARTUP_MSEC", "ENABLE_STARTUP_PERMS", "ENABLE_MSEC_CRON",
"ENABLE_PAM_WHEEL_FOR_SU", "ENABLE_SULOGIN", "CREATE_SERVER_LINK", "ENABLE_AT_CRONTAB",
"ALLOW_ROOT_LOGIN", "ALLOW_USER_LIST", "ENABLE_PASSWORD", "ALLOW_AUTOLOGIN",
"ENABLE_CONSOLE_LOG", "ENABLE_PAM_WHEEL_FOR_SU", "CREATE_SERVER_LINK",
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py
index 1b2b834..f67ffdb 100755
--- a/src/msec/libmsec.py
+++ b/src/msec/libmsec.py
@@ -1643,6 +1643,15 @@ class MSEC:
"""Show security notifications in system tray using libnotify."""
pass
+ # bogus functions
+ def enable_startup_msec(self, param):
+ """Enforce MSEC settings on system startup"""
+ pass
+
+ def enable_startup_perms(self, param):
+ """Enforce MSEC file directory permissions on system startup"""
+ pass
+
# }}}