diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-24 13:32:38 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-24 13:32:38 +0000 |
commit | 6cd98f7437e688fbc1436c9d671421215d99a4a7 (patch) | |
tree | fb0832e2b5373d5a1d666c4411611af3b3dedbf6 /msec.init | |
parent | 4d371961d574267b989ded83f699349c0bb8a450 (diff) | |
download | msec-6cd98f7437e688fbc1436c9d671421215d99a4a7.tar msec-6cd98f7437e688fbc1436c9d671421215d99a4a7.tar.gz msec-6cd98f7437e688fbc1436c9d671421215d99a4a7.tar.bz2 msec-6cd98f7437e688fbc1436c9d671421215d99a4a7.tar.xz msec-6cd98f7437e688fbc1436c9d671421215d99a4a7.zip |
Using correct logger.
Diffstat (limited to 'msec.init')
-rwxr-xr-x | msec.init | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/msec.init b/msec.init deleted file mode 100755 index f10e7e4..0000000 --- a/msec.init +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -# -# Enables MSEC policy on system startup -# -# description: Enables MSEC security policy on system startup -# chkconfig: 345 13 20 -# -### BEGIN INIT INFO -# Provides: msec -# Default-Start: 3 4 5 -# Short-Description: Enables MSEC security policy -# Description: Enables MSEC security settings, defined by current policy -### END INIT INFO - -# Source function library. -. /etc/rc.d/init.d/functions - -if [ ! -f /etc/security/msec/security.conf ] ; then - # no msec configuration, aborting - exit -fi - -. /etc/security/msec/security.conf - -# See how we were called. -case "$1" in - start) - if [ "$ENABLE_STARTUP_MSEC" = "yes" ]; then - gprintf "Enabling MSEC security policy" - /usr/sbin/msec -q - echo_success - echo - fi - if [ "$ENABLE_STARTUP_PERMS" = "yes" ]; then - gprintf "Setting and checking MSEC permissions" - /usr/sbin/msecperms -q - echo_success - echo - elif [ "$ENABLE_STARTUP_PERMS" = "enforce" ]; then - gprintf "Setting and enforcing MSEC permissions" - /usr/sbin/msecperms -q - echo_success - echo - fi - ;; - stop) - # nothing to do - ;; - status) - if [ "$ENABLE_STARTUP_MSEC" = "yes" ]; then - gprintf "MSEC security policy on startup: enabled" - 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 - $0 start - ;; - *) - gprintf "Usage: %s\n" "$0 {start|stop|restart|status}" - exit 1 -esac - -exit 0 |