From edbe224afa7d6fe5a9cfccb1b49e661d364a5a01 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 29 Jun 2010 12:53:37 -0400 Subject: 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. --- init/rcS-sulogin.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init') 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 -- cgit v1.2.1