OpenWrt 22.03.0-rc4 fourth release candidate

May this infobit be in intrest of someone. rc4 does not fix the problem running dnsmasq in ujail in an unprivileged lxc container.

Sat Jun 18 06:17:47 2022 daemon.crit dnsmasq[1]: failed to seed the random number generator: No such file or directory
Sat Jun 18 06:17:47 2022 daemon.crit dnsmasq[1]: FAILED to start up
Sat Jun 18 06:17:52 2022 daemon.crit dnsmasq[1]: failed to seed the random number generator: No such file or directory
...
Sat Jun 18 06:18:02 2022 daemon.info procd: Instance dnsmasq::cfg01411c s in a crash loop 6 crashes, 0 seconds since last crash

In rc1 release thread at the forum had few messages about the problem with different log messages and a bug report/patch already made. On the container system ntp service in ujail works fine. urandom and random devices are available in the container environment itself. dnsmasq process works fine without ujail (started with /etc/init.d/dnsmasq trace).

I briefly tried to understand how to get inside ujail setup in OpenWrt 22.03-rc1, if the problem is about a missing urandom or random device in ujail, but had no success. My understanding, ujail makes a sort of nested container inside lxc container. To debug ujail setup seems to require more engagement than I could provide now. If my memory serves me right, with rc1 I tested the same setup both in a privileged and unprivileged lxc container. Privileged vs. unprivileged system container setup did not affect to the problem.

References:
https://forum.openwrt.org/t/openwrt-22-03-0-rc1-first-release-candidate/126045/25
https://forum.openwrt.org/t/openwrt-22-03-0-rc1-first-release-candidate/126045/29
https://forum.openwrt.org/t/openwrt-22-03-0-rc1-first-release-candidate/126045/196

2 Likes