diff options
author | Dan Walsh <dwalsh@redhat.com> | 2003-12-03 15:44:40 +0000 |
---|---|---|
committer | Dan Walsh <dwalsh@redhat.com> | 2003-12-03 15:44:40 +0000 |
commit | b40e99436b276bbc138923d3143c5f8b85de042b (patch) | |
tree | 1fb6a509ee6a57ebdd4cff5b1f5a7c8a90e4c1c1 | |
parent | 114aad540068cf3fae3c75d48301778218a9efe6 (diff) | |
download | initscripts-b40e99436b276bbc138923d3143c5f8b85de042b.tar initscripts-b40e99436b276bbc138923d3143c5f8b85de042b.tar.gz initscripts-b40e99436b276bbc138923d3143c5f8b85de042b.tar.bz2 initscripts-b40e99436b276bbc138923d3143c5f8b85de042b.tar.xz initscripts-b40e99436b276bbc138923d3143c5f8b85de042b.zip |
Add SELinux support
-rwxr-xr-x | service | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -60,8 +60,11 @@ while [ $# -gt 0 ]; do esac done +if test -x /usr/bin/selinuxenabled && `/usr/bin/selinuxenabled`; then + SELINUX_RUN_INIT="DISPLAY=$DISPLAY HOME=$HOME XAUTHORITY=$XAUTHORITY /usr/bin/run_init" +fi if [ -x "${SERVICEDIR}/${SERVICE}" ]; then - env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS} + env -i LANG=$LANG PATH=$PATH TERM=$TERM $SELINUX_RUN_INIT "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else echo $"${SERVICE}: unrecognized service" >&2 exit 1 |