[FS#464] Syslog dnsmasq errors, where dnsmasq thinks it is running as pid 1 (procd) when using ujail/seccomp
LEDE Bugs
lede-bugs at lists.infradead.org
Sat Feb 4 16:11:32 PST 2017
The following task has a new comment added:
FS#464 - Syslog dnsmasq errors, where dnsmasq thinks it is running as pid 1 (procd) when using ujail/seccomp
User who did this - KPapad (kpv)
----------
Here is the same output from a more recent LEDE x86 trunk build (same diffconfig) with ujail still running:
BusyBox v1.26.2 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (SNAPSHOT, r3285-1a52d11)
\________\/ -----------------------------------------------------------
root at LEDE:~# ps
PID USER VSZ STAT COMMAND
1 root 1020 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 [rcu_sched]
8 root 0 SW [rcu_bh]
9 root 0 SW [migration/0]
10 root 0 SW< [netns]
11 root 0 SW< [perf]
12 root 0 SW [kworker/u2:1]
316 root 0 SW< [writeback]
318 root 0 SW< [crypto]
319 root 0 SW< [bioset]
321 root 0 SW< [kblockd]
384 root 0 SW< [ata_sff]
406 root 0 SW [kworker/u2:2]
497 root 0 SW [kworker/0:1]
510 root 0 SW [kswapd0]
511 root 0 SW< [vmstat]
581 root 0 SW [fsnotify_mark]
598 root 0 SW< [pencrypt]
600 root 0 SW< [pdecrypt]
620 root 0 SW< [acpi_thermal_pm]
658 root 0 SW< [bioset]
661 root 0 SW< [bioset]
664 root 0 SW< [bioset]
667 root 0 SW< [bioset]
670 root 0 SW< [bioset]
673 root 0 SW< [bioset]
676 root 0 SW< [bioset]
679 root 0 SW< [bioset]
693 root 0 SW [scsi_eh_0]
694 root 0 SW< [scsi_tmf_0]
697 root 0 SW [scsi_eh_1]
707 root 0 SW< [scsi_tmf_1]
710 root 0 SW [scsi_eh_2]
711 root 0 SW< [scsi_tmf_2]
714 root 0 SW< [kpsmoused]
715 root 0 SW [kworker/u2:3]
716 root 0 SW [kworker/u2:4]
771 root 0 SW< [ipv6_addrconf]
780 root 0 SW< [deferwq]
781 root 0 SW< [bioset]
785 root 0 SW< [bioset]
790 root 0 SW< [kworker/0:1H]
798 root 0 SW< [ext4-rsv-conver]
1054 root 776 S /sbin/ubusd
1072 root 968 S /bin/ash --login
1370 root 0 SW< [cfg80211]
1611 root 880 S /sbin/logd -S 64
1657 root 1172 S /sbin/netifd
1696 root 964 S /usr/sbin/odhcpd
1740 root 848 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
1937 root 964 S udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -C -O 121
1940 root 736 S odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth1
2033 root 1588 S /usr/lib/ipsec/starter --daemon charon
2035 root 4120 S /usr/lib/ipsec/charon --use-syslog
2118 root 964 S < /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.lede.pool.ntp.org -p 1.lede.pool.ntp.org -p 2.lede.pool.ntp.org -p 3.lede.pool.ntp.org
2406 root 968 S {mwan3track} /bin/sh /usr/sbin/mwan3track wan eth1 2 1 2 5 3 8 208.67.220.220 208.67.222.222 8.8.8.8 8.8.4.4
2700 root 1804 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
2703 dnsmasq 1024 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg02411c -k -x /var/run/dnsmasq/dnsmasq.cfg02411c.pid
3267 root 920 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
3274 root 964 S sleep 5
3282 root 968 S -ash
3293 root 964 R ps
root at LEDE:~#
root at LEDE:~# cat /var/run/dnsmasq/dnsmasq.cfg02411c.pid
1
root at LEDE:~# cat /var/etc/dnsmasq.conf.cfg02411c
# auto-generated config file from /etc/config/dhcp
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
domain-needed
localise-queries
read-ethers
bogus-priv
expand-hosts
local-service
domain=lan
server=/lan/
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
stop-dns-rebind
rebind-localhost-ok
dhcp-broadcast=tag:needs-broadcast
addn-hosts=/tmp/hosts
conf-dir=/tmp/dnsmasq.d
user=dnsmasq
group=dnsmasq
dhcp-range=set:lan,192.168.1.100,192.168.1.249,255.255.255.0,12h
no-dhcp-interface=eth1
root at LEDE:~#
root at LEDE:~# logread |fgrep dnsm
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: started, version 2.76 cachesize 150
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP conntrack ipset no-auth no-DNSSEC no-ID loop-detect inotify
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq-dhcp[1]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: using local addresses only for domain lan
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.auto
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: using local addresses only for domain lan
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: using nameserver 10.0.3.1#53
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: read /etc/hosts - 4 addresses
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg02411c - 2 addresses
Sun Feb 5 00:00:27 2017 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
root at LEDE:~#
----------
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=464#comment1613
More information about the lede-bugs
mailing list