On 2023/03/24 18:06:03 +0800, Werner Boninsegna <wer...@dewrico.com> wrote:
> Hello,
> 
> fake /dev/random means I created a file with a string of text such as 
> "1234567890". This was a workaround to get the application running.

...

> Your suggestion is to chroot into /var/www and run "MAKEDEV random" ?

If you really must run bugzilla, you'd be way better off by just
running slowcgi outside the chroot. (i.e. slowcgi -p /)

There are various way to do so, from the simplest

        % doas rcctl set slowcgi flags -p /

to running a separate slowcgi service with that flag set.

Then, and just for the archive, please don't "fake" /dev/random or
whatever it means!  Sometimes "faking" /dev/null with an empty file
for the chroot is enough (like it is for cvsweb), but otherwise create
a real device.  You can even use a mfs over /var/www/dev to avoid
having to mount /var/www without `nodev'.  (I won't provide a recipe
for it but if you read mount_mfs(8), MAKEDEV(8), mknod(8) and fstab(5)
you should be able to do it.)

Or even better: don't force something that's not designed to be ran in
a chroot into it; it's a battle not worth fighting for.

Reply via email to