#20785: procd jails (e.g. dnsmasq) don't work on x86 trunk
--------------------------+------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: base system | Version: Trunk
Resolution: | Keywords: procd, jail, x86
--------------------------+------------------------------
Comment (by anonymous):
Replying to [comment:10 champetier.etienne@…]:
> hi all,
> please test trunk after r47669
jailed dnsmasq finally seems to start/run fine on trunk:
{{{
root@OpenWrt:~# logread |fgrep dnsm
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: started, version 2.75
cachesize 1000
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: compile time options:
IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-
conntrack ipset no-auth no-DNSSEC loop-detect inotify
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq-dhcp[1]: DHCP, IP range
192.168.100.66 -- 192.168.103.253, lease time 12h
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: using local addresses
only for domain lan
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: reading
/tmp/resolv.conf.auto
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: using local addresses
only for domain lan
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: using nameserver
10.0.3.1#53
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: using nameserver
10.0.3.1#53
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: read /etc/hosts - 1
addresses
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp - 1
addresses
Mon Nov 30 03:12:55 2015 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0
addresses
root@OpenWrt:~# uname -a
Linux OpenWrt 3.18.23 #1 SMP Mon Nov 30 02:24:30 EET 2015 i686 n
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r47670'
DISTRIB_CODENAME='designated_driver'
DISTRIB_TARGET='x86/kvm_guest'
DISTRIB_DESCRIPTION='OpenWrt Designated Driver r47670'
DISTRIB_TAINTS=''
root@OpenWrt:~#
}}}
However, both /tmp/.jail/dnsmasq/ and /tmp/dnsmasq.d/ directories seem
empty (I'm not sure if this is correct or not):
{{{
root@OpenWrt:~# ls -la /tmp/.jail/dnsmasq/
drwxr-xr-x 2 root root 40 Nov 30 03:12 .
drwxr-xr-x 3 root root 60 Nov 30 03:12 ..
root@OpenWrt:~# ls -la /tmp/dnsmasq.d/
drwxr-xr-x 2 root root 40 Nov 30 03:12 .
drwxrwxrwt 15 root root 380 Nov 30 03:13 ..
root@OpenWrt:~# ls -la /tmp/etc/dnsmasq.conf
-rw-r--r-- 1 root root 503 Nov 30 03:13
/tmp/etc/dnsmasq.conf
root@OpenWrt:~#
root@OpenWrt:~# ls -la /tmp
drwxrwxrwt 15 root root 380 Nov 30 03:13 .
drwxr-xr-x 17 root root 4096 Nov 30 03:12 ..
drwxr-xr-x 3 root root 60 Nov 30 03:12 .jail
drwx------ 2 root root 40 Nov 30 03:12 .uci
-rw-r--r-- 1 root root 29 Nov 30 03:12 TZ
-rw-r--r-- 1 root root 0 Nov 30 03:13 dhcp.leases
drwxr-xr-x 2 root root 40 Nov 30 03:12 dnsmasq.d
drwxr-xr-x 2 root root 40 Nov 30 03:12 empty
drwxr-xr-x 2 root root 60 Nov 30 03:12 etc
drwxr-xr-x 2 root root 60 Nov 30 03:12 hosts
drwxr-xr-x 3 root root 60 Nov 30 03:12 lib
drwxrwxrwx 2 root root 40 Nov 30 03:12 lock
drwxr-xr-x 3 root root 100 Nov 30 03:12 log
-rw-r--r-- 1 root root 32 Nov 30 03:13 resolv.conf
-rw-r--r-- 1 root root 109 Nov 30 03:12 resolv.conf.auto
drwxrwxrwx 4 root root 500 Nov 30 03:15 run
drwxrwxrwt 2 root root 40 Nov 30 03:12 shm
drwxrwxrwx 2 root root 60 Nov 30 03:12 state
drwxr-xr-x 2 root root 40 Nov 30 03:12 tmp
root@OpenWrt:~#
root@OpenWrt:~# find /tmp -name dnsm\* -print
/tmp/dnsmasq.d
/tmp/etc/dnsmasq.conf
/tmp/.jail/dnsmasq
/tmp/run/dnsmasq.eth0.dhcp
/tmp/run/dnsmasq
/tmp/run/dnsmasq/dnsmasq.pid
root@OpenWrt:~#
}}}
Thank you Etienne for solving the issue and please let me know if you need
any nire detailed feedback.
--
Ticket URL: <https://dev.openwrt.org/ticket/20785#comment:11>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets