- bootcd doesn't support extended attribute bits, so "setattr --barrier
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 29 Nov 2004 21:56:45 +0000 (21:56 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 29 Nov 2004 21:56:45 +0000 (21:56 +0000)
  /vservers" in the rpm %post scriplet won't actually work during
  the initial install. Make sure it's set every time vcached is run.

scripts/vcached

index bed2211..19e0dff 100755 (executable)
@@ -17,7 +17,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (c) 2004  The Trustees of Princeton University (Trustees).
 #
-# $Id: vcached,v 1.8 2004/11/19 20:27:24 mlhuang Exp $
+# $Id: vcached,v 1.9 2004/11/23 14:47:35 mlhuang Exp $
 #
 
 # get configuration
@@ -57,6 +57,9 @@ test -e "$UTIL_VSERVER_VARS" || {
 }
 . "$UTIL_VSERVER_VARS"
 
+# make sure barrier bit is set on /vservers to prevent chroot() escapes
+$PKGLIBDIR/setattr --barrier $VROOTDIR
+
 # take out the trash
 rm -rf "$VROOTDIR/.vtmp"