diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-25 19:34:09 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-25 19:34:09 +0000 |
commit | 203decb15d6e52895fdfbfb45f66f88cd4022092 (patch) | |
tree | 8455e0dce822563188da565a0864fc5fa8202d29 /msec.init | |
parent | 5b4a435a4c6b941b5f7ad362f311e8f86479e1d6 (diff) | |
download | msec-203decb15d6e52895fdfbfb45f66f88cd4022092.tar msec-203decb15d6e52895fdfbfb45f66f88cd4022092.tar.gz msec-203decb15d6e52895fdfbfb45f66f88cd4022092.tar.bz2 msec-203decb15d6e52895fdfbfb45f66f88cd4022092.tar.xz msec-203decb15d6e52895fdfbfb45f66f88cd4022092.zip |
Added option to automatically enforce msec permissions on startup.
Diffstat (limited to 'msec.init')
-rwxr-xr-x | msec.init | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -34,6 +34,10 @@ case "$1" in gprintf "Setting and checking MSEC permissions" /usr/sbin/msecperms -q echo_success + elif [ "$ENABLE_STARTUP_PERMS" = "enforce" ]; then + gprintf "Setting and enforcing MSEC permissions" + /usr/sbin/msecperms -q + echo_success fi ;; stop) @@ -45,11 +49,15 @@ case "$1" in else gprintf "MSEC security policy on startup: disabled" fi + echo if [ "$ENABLE_STARTUP_PERMS" = "yes" ]; then gprintf "MSEC permissions on startup: enabled" + elif [ "$ENABLE_STARTUP_PERMS" = "enforce" ]; then + gprintf "MSEC permissions on startup: enforced" else gprintf "MSEC permissions on startup: disabled" fi + echo ;; restart) $0 stop |