aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-06-29 12:53:37 -0400
committerBill Nottingham <notting@redhat.com>2010-06-29 12:58:31 -0400
commitf738fe3f561fbc53f356f10f8f77d5e5f3b86d84 (patch)
tree86e3f318b3c47bc684e020f4256045381b0206ce /init
parent33b0d230fa28b8548fa8734bda91d589503de7d3 (diff)
downloadinitscripts-f738fe3f561fbc53f356f10f8f77d5e5f3b86d84.tar
initscripts-f738fe3f561fbc53f356f10f8f77d5e5f3b86d84.tar.gz
initscripts-f738fe3f561fbc53f356f10f8f77d5e5f3b86d84.tar.bz2
initscripts-f738fe3f561fbc53f356f10f8f77d5e5f3b86d84.tar.xz
initscripts-f738fe3f561fbc53f356f10f8f77d5e5f3b86d84.zip
Don't directly execute bash for single-user mode, as that has SELinux issues. (#540216, #584443, #585053)
If upstart directly runs bash for single-user mode, there's no way for SELinux to set the proper context (to distinguish it from other init scripts). Inserting a helper binary in the way allows for this. While we're changing this, we make it configurable so it's easily possible for people to use sulogin if they so desire.
Diffstat (limited to 'init')
-rw-r--r--init/rcS-sulogin.conf4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/rcS-sulogin.conf b/init/rcS-sulogin.conf
index 9ce92ffa..818518de 100644
--- a/init/rcS-sulogin.conf
+++ b/init/rcS-sulogin.conf
@@ -9,8 +9,10 @@ stop on runlevel [!S]
console owner
script
+ . /etc/sysconfig/init
plymouth --hide-splash || true
- exec /bin/bash
+ [ -z "$SINGLE" ] && SINGLE=/sbin/sushell
+ exec $SINGLE
end script
post-stop script
if [ "$RUNLEVEL" = "S" ]; then