New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#878 - procd-ujail dnsmasq cmd-line missing the -n argument #7993
Comments
kpv: Same system, a few hours (and jailed dnsmasq restarts) later: 14194 root 2228 S {e} /sbin/ujail -n e -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 /tm
|
kpv: Problem remains, please check PID 8631:
|
kpv:
When procd restarts jailed dnsmasq (e.g. due to interface up/down events), the ujail dnsmasq command-line is missing the -n argument
root@OpenWrt:
# uname -a#Linux OpenWrt 4.4.74 #0 Thu Jun 29 08:02:14 2017 mips GNU/Linux
root@OpenWrt:
root@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@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@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@OpenWrt:/tmp#
root@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@OpenWrt:
root@OpenWrt:
# uptime#19:30:37 up 21:41, load average: 0.00, 0.03, 0.07
root@OpenWrt:
The text was updated successfully, but these errors were encountered: