devices entries in chroot jail

Bug #57533 reported by Satya Mishra
2
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

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

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.

Changed in freepops:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Satya Mishra (snmishra) wrote :

I do not know if it is still a problem. I stopped using the chroot jail.

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in freepops:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.