[PC-BSD Commits] r17446 - pcbsd/current/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Tue Jun 26 06:13:36 PDT 2012


Author: kris
Date: 2012-06-26 13:13:34 +0000 (Tue, 26 Jun 2012)
New Revision: 17446

Modified:
   pcbsd/current/src-sh/warden/scripts/backend/chrootjail.sh
Log:

Fix chroot into jail when using linux jails



Modified: pcbsd/current/src-sh/warden/scripts/backend/chrootjail.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/chrootjail.sh	2012-06-26 11:24:46 UTC (rev 17445)
+++ pcbsd/current/src-sh/warden/scripts/backend/chrootjail.sh	2012-06-26 13:13:34 UTC (rev 17446)
@@ -58,7 +58,11 @@
 
 if [ -z "$2" ] ; then
   echo "Started shell session on ${IP}. Type exit when finished."
-  jailme ${JID} /bin/csh
+  if [ -e "${JMETADIR}/linuxjail" ] ; then
+    jailme ${JID} /bin/bash
+  else
+    jailme ${JID} /bin/csh
+  fi
   exit $?
 else
   jailme ${JID} ${2}



More information about the Commits mailing list