dnsmasq ujail fs problem

Daniel Golle daniel at makrotopia.org
Fri Jul 30 04:54:34 PDT 2021


On Fri, Jul 30, 2021 at 01:28:17PM +0200, e9hack wrote:
> Hi,
> 
> I'm using dnsmasq together with ujail. Since some time, I got an error message in the log:
> 
> Fri Jul 30 13:05:10 2021 kern.warn kernel: [ 3149.592061] ext4 filesystem being remounted at /tmp/ujail-NOnHik/tmp/dhcp.leases supports timestamps until 2038 (0x7fffffff)
> Fri Jul 30 13:05:10 2021 user.err : jail: creat(/tmp/ujail-NOnHik/tmp/hosts/dhcp) failed: Read-only file system
> Fri Jul 30 13:05:10 2021 kern.warn kernel: [ 3149.631741] ext4 filesystem being remounted at /tmp/ujail-NOnHik/var/run/dnsmasq supports timestamps until 2038 (0x7fffffff)
> Fri Jul 30 13:05:10 2021 kern.warn kernel: [ 3149.668281] ext4 filesystem being remounted at /tmp/ujail-NOnHik/var/run/ubus/ubus.sock supports timestamps until 2038 (0x7fffffff)
> 
> The file /tmp/hosts/dhcp does exist and since dhcp does work, this file is used by dnsmasq.
> 
> This are the procd_add_jail_mount and procd_add_jail_mount_rw commands:
> 
> Fri Jul 30 13:05:07 2021 user.notice [DNSMASQ:19539]: procd_add_jail_mount /var/etc/dnsmasq.conf /etc/dnsmasq.conf /etc/config/dhcp.dnsmasq /usr/share/dnsmasq/trust-anchors.conf /usr/share/dnsmasq/dhcpbogushostname.conf /usr/share/dnsmasq/rfc6761.conf /tmp/hosts/dhcp /etc/passwd /etc/group /etc/TZ /dev/null /dev/urandom /tmp/dnsmasq.d   /etc/hosts /etc/ethers /sbin/hotplug-call  /usr/lib/dnsmasq/dhcp-script.sh /tmp/hosts/
> Fri Jul 30 13:05:07 2021 user.notice [DNSMASQ:19539]: procd_add_jail_mount_rw /var/run/dnsmasq/ /tmp/dhcp.leases
> 
> Any idea what triggers the error?

This is because /tmp/hosts/dhcp tries being mounted at /tmp/hosts which
already is a read-only mount. I guess mounting /tmp/hosts/dhcp became
unneeded now that /tmp/hosts is in the list already.

> 
> Regards,
> Hartmut
> 
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list