[Scratchbox-devel] Temp folders in multi user mode
Eugene San
eugenesan at gmail.com
Tue May 13 13:14:03 EEST 2008
Hi all,
While trying to use sb1 in multi user environment, we found 2 issues:
1) /tmp binding for each user is the same and cause severe problems...
I am proposing next patch to solve the issue:
------------------------------------------------------------------------------------
--- /scratchbox.orig/sbin/sbox_mount 2008-05-13 12:48:16.000000000 +0300
+++ /scratchbox/sbin/sbox_mount 2008-05-13 12:34:35.000000000 +0300
@@ -59,7 +59,10 @@
ROOT=$SBOX_DIR/users/$1
do_mount --bind $SBOX_DIR $ROOT/scratchbox
-do_mount --bind /tmp $ROOT/tmp
+mkdir -p /tmp/.sboxtmp-$1
+chmod 777 /tmp/.sboxtmp-$1
+chown $1 /tmp/.sboxtmp-$1
+do_mount --bind /tmp/.sboxtmp-$1 $ROOT/tmp
do_mount --bind /proc $ROOT/proc
do_mount --bind $DEV_DIR $ROOT/dev
do_mount --bind /dev/pts $ROOT/dev/pts
------------------------------------------------------------------------------------
2) There is another issue with fakeroot sometimes loosing connections
while several user are actives. Any ideas what can it be?
Eugene
More information about the Scratchbox-devel
mailing list