[FS#878] procd-ujail dnsmasq cmd-line missing the -n argument
LEDE Bugs
lede-bugs at lists.infradead.org
Fri Jun 30 10:01:48 PDT 2017
A new Flyspray task has been opened. Details are below.
User who did this - KPapad (kpv)
Attached to Project - LEDE Project
Summary - procd-ujail dnsmasq cmd-line missing the -n argument
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - lede-17.01
Due in Version - Undecided
Due Date - Undecided
Details - When procd restarts jailed dnsmasq (e.g. due to interface up/down events), the ujail dnsmasq command-line is missing the -n argument
root at OpenWrt:~# uname -a
Linux OpenWrt 4.4.74 #0 Thu Jun 29 08:02:14 2017 mips GNU/Linux
root at OpenWrt:~#
root at OpenWrt:~# cat /etc/openwrt_*
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='17.01-SNAPSHOT'
DISTRIB_REVISION='r3452-cca765f'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='ar71xx/generic'
DISTRIB_ARCH='mips_24kc'
DISTRIB_DESCRIPTION='LEDE Reboot 17.01-SNAPSHOT r3452-cca765f'
DISTRIB_TAINTS=''
r3452-cca765f
root at OpenWrt:~#
After reboot:
2290 root 2228 S {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsm
After some time (dnsmasq restarting due to interface up/down events):
6862 root 2228 S /sbin/ujail -n -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tmp/hos
root at OpenWrt:/tmp# ps
PID USER VSZ STAT COMMAND
1 root 1552 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
4 root 0 SW [kworker/0:0]
5 root 0 SW< [kworker/0:0H]
6 root 0 SW [kworker/u2:0]
7 root 0 SW< [netns]
8 root 0 SW [kworker/u2:1]
34 root 0 SW< [writeback]
71 root 0 SW< [crypto]
73 root 0 SW< [bioset]
75 root 0 SW< [kblockd]
101 root 0 SW [kworker/0:1]
108 root 0 SW [kswapd0]
161 root 0 SW [fsnotify_mark]
170 root 0 SW [spi0]
187 root 0 SW< [bioset]
192 root 0 SW< [bioset]
197 root 0 SW< [bioset]
202 root 0 SW< [bioset]
207 root 0 SW< [bioset]
212 root 0 SW< [bioset]
307 root 0 SW< [ipv6_addrconf]
314 root 0 SW< [deferwq]
316 root 0 SW< [kworker/0:1H]
406 root 0 SWN [jffs2_gcd_mtd3]
465 root 1192 S /sbin/ubusd
478 root 908 S /sbin/askfirst /bin/ash --login
741 root 0 SW< [cfg80211]
1007 root 1240 S /sbin/logd -S 64
1078 root 1720 S /sbin/netifd
1117 root 1412 S /usr/sbin/odhcpd
1151 root 1104 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
1868 root 1208 S udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
1870 root 1208 S udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
2290 root 2228 S {dnsmasq} /sbin/ujail -n dnsmasq -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsm
2296 dnsmasq 1448 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
2446 root 1172 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
2863 root 1780 S /usr/lib/ipsec/starter --daemon charon
2865 root 6296 S /usr/lib/ipsec/charon --use-syslog
2984 root 1212 S < /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
3462 root 1212 S -ash
3710 root 0 SW [kworker/u2:2]
3731 root 0 SW [kworker/0:2]
3795 root 1660 S /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant-wlan0-bak.pid -D nl80211 -i wlan0-bak -c /var/run/wpa_supplicant-wlan0-bak.conf -C /var/run/wpa_supplicant
3813 root 1208 S udhcpc -p /var/run/udhcpc-wlan0-bak.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0-bak -C -O 121
3818 root 1208 R ps
root at OpenWrt:/tmp#
root at OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1552 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 SW [ksoftirqd/0]
5 root 0 SW< [kworker/0:0H]
7 root 0 SW< [netns]
34 root 0 SW< [writeback]
71 root 0 SW< [crypto]
73 root 0 SW< [bioset]
75 root 0 SW< [kblockd]
101 root 0 SW [kworker/0:1]
108 root 0 SW [kswapd0]
161 root 0 SW [fsnotify_mark]
170 root 0 SW [spi0]
187 root 0 SW< [bioset]
192 root 0 SW< [bioset]
197 root 0 SW< [bioset]
202 root 0 SW< [bioset]
207 root 0 SW< [bioset]
212 root 0 SW< [bioset]
307 root 0 SW< [ipv6_addrconf]
314 root 0 SW< [deferwq]
316 root 0 SW< [kworker/0:1H]
406 root 0 SWN [jffs2_gcd_mtd3]
465 root 1200 S /sbin/ubusd
478 root 908 S /sbin/askfirst /bin/ash --login
741 root 0 SW< [cfg80211]
1007 root 1240 S /sbin/logd -S 64
1078 root 1720 S /sbin/netifd
1117 root 1412 S /usr/sbin/odhcpd
1151 root 1104 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
1868 root 1208 S udhcpc -p /var/run/udhcpc-eth0.3.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.3 -C -O 121
1870 root 1208 S udhcpc -p /var/run/udhcpc-eth0.2.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0.2 -C -O 121
2863 root 1780 S /usr/lib/ipsec/starter --daemon charon
2865 root 6296 S /usr/lib/ipsec/charon --use-syslog
2984 root 1212 S < /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 1.gr.pool.ntp.org -p 0.europe.pool.ntp.org -p 2.europe.pool.ntp.org
5899 root 0 SW [kworker/u2:1]
6440 root 1172 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
6441 root 1212 S -ash
6527 root 0 SW [kworker/u2:0]
6529 root 0 SW [kworker/0:0]
6593 root 1640 S /usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant-wlan0-bak.pid -D nl80211 -i wlan0-bak -c /var/run/wpa_supplicant-wlan0-bak.conf -C /var/run/wpa_supplicant
6611 root 1208 S udhcpc -p /var/run/udhcpc-wlan0-bak.pid -s /lib/netifd/dhcp.script -f -t 0 -i wlan0-bak -C -O 121
6862 root 2228 S /sbin/ujail -n -u -l -r /dev/null -r /dev/urandom -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tmp/hos
6863 dnsmasq 1448 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
7132 root 0 SW [kworker/u2:2]
7134 root 1208 R ps
root at OpenWrt:~#
root at OpenWrt:~# uptime
19:30:37 up 21:41, load average: 0.00, 0.03, 0.07
root at OpenWrt:~#
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=878
More information about the lede-bugs
mailing list