devices entries in chroot jail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freepops (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
The freepops jail create script (create_jail.sh) does not create devices for entropy. The start.sh it creates uses /bin/sh as interpreter and features from bash. /bin/sh is a symlink do dash when it is installed. So this fails. The following patch fixes the problems.
--- create_jail.sh.orig 2006-08-23 20:34:22.000000000 -0600
+++ create_jail.sh 2006-08-23 20:35:53.000000000 -0600
@@ -83,6 +83,8 @@
#make /dev/null
mknod -m 0666 dev/null c 1 3
+mknod -m 0666 dev/random c 1 8
+mknod -m 0666 dev/urandom c 1 9
#copy freepops files
@@ -97,7 +99,7 @@
export HOME=/home/$USER/
export USER=$USER
cd $CHROOTDIR
-exec -a chroot chroot . usr/bin/freepopsd \$@ -s $USER.$GROUP
+exec chroot . usr/bin/freepopsd \$@ -s $USER.$GROUP
EOT
chmod a+rx $CHROOTDIR/start.sh
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.