#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):
{{{
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='Bleeding Edge'
DISTRIB_REVISION='r47459'
DISTRIB_CODENAME='designated_driver'
DISTRIB_TARGET='x86/kvm_guest'
DISTRIB_DESCRIPTION='OpenWrt Designated Driver r47459'
DISTRIB_TAINTS=''
root@OpenWrt:~#
}}}
{{{
root@OpenWrt:~# fgrep dnsm /tmp/1
open("/var/etc/dnsmasq.conf", O_RDONLY|O_LARGEFILE) = 6
[pid 5082] execve("/etc/init.d/dnsmasq", ["/etc/init.d/dnsmasq",
"running"], [/* 6 vars */]Process 5081 attached
[pid 5081] execve("/sbin/ujail", ["/sbin/ujail", "-n", "dnsmasq", "-P",
"/tmp/.jail/dnsmasq", "-u", "-l", "-r", "/dev/null", "-r", "/dev/urandom",
"-r", "/etc/TZ", "-r", "/etc/dnsmasq.conf", "-w", ...], [/* 6 vars */]
<unfinished ...>
[pid 5081] prctl(PR_SET_NAME, "dnsmasq\0-P\0/tmp/" <unfinished ...>
[pid 5081] mkdir("/tmp/.jail/dnsmasq", 0755) = 0
[pid 5082] open("/etc/init.d/dnsmasq", O_RDONLY|O_LARGEFILE) = 3
[pid 5082] <... read resumed> "\n\tpidof dnsmasq >/dev/null || \\\n"...,
511) = 511
[pid 5083] sethostname("dnsmasq", 7 <unfinished ...>
[pid 5083] mount("tmpfs", "/tmp/.jail/dnsmasq", "tmpfs", MS_NOATIME,
"mode=0755" <unfinished ...>
[pid 5083] chdir("/tmp/.jail/dnsmasq" <unfinished ...>
[pid 5083] open("/lib64//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE
<unfinished ...>
[pid 5083] open("/lib//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE
<unfinished ...>
[pid 5083] open("/usr/lib//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE
<unfinished ...>
[pid 5083] open("/usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE <unfinished
...>
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755 <unfinished ...>
[pid 5083] mkdir("/tmp/.jail/dnsmasq/usr", 0755 <unfinished ...>
[pid 5083] mkdir("/tmp/.jail/dnsmasq/usr/sbin", 0755 <unfinished ...>
[pid 5083] stat64("/usr/sbin/dnsmasq", <unfinished ...>
[pid 5083] open("/tmp/.jail/dnsmasq/usr/sbin/dnsmasq",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644 <unfinished ...>
[pid 5083] mount("/usr/sbin/dnsmasq",
"/tmp/.jail/dnsmasq/usr/sbin/dnsmasq", NULL, MS_BIND, NULL <unfinished
...>
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/usr/sbin/dnsmasq", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/lib", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/lib/libc.so",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/lib/libc.so", "/tmp/.jail/dnsmasq/lib/libc.so", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/lib/libc.so", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/lib", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/lib/libgcc_s.so.1",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/lib/libgcc_s.so.1",
"/tmp/.jail/dnsmasq/lib/libgcc_s.so.1", NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/lib/libgcc_s.so.1", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var", 0755) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/var/run/ubus.sock",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/var/run/ubus.sock",
"/tmp/.jail/dnsmasq/var/run/ubus.sock", NULL, MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/dev/log",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/dev/log", "/tmp/.jail/dnsmasq/dev/log", NULL, MS_BIND,
NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/dev/null",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/dev/null", "/tmp/.jail/dnsmasq/dev/null", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/dev/null", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/dev/urandom",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/dev/urandom", "/tmp/.jail/dnsmasq/dev/urandom", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/dev/urandom", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/etc/TZ",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/TZ", "/tmp/.jail/dnsmasq/etc/TZ", NULL, MS_BIND,
NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/TZ", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] stat64("/etc/dnsmasq.conf", {st_mode=S_IFREG|0644,
st_size=1368, ...}) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/etc/dnsmasq.conf",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/dnsmasq.conf",
"/tmp/.jail/dnsmasq/etc/dnsmasq.conf", NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/dnsmasq.conf", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] stat64("/etc/dnsmasq.time", {st_mode=S_IFREG|0644, st_size=0,
...}) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/etc/dnsmasq.time",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/dnsmasq.time",
"/tmp/.jail/dnsmasq/etc/dnsmasq.time", NULL, MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/etc/ethers",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/ethers", "/tmp/.jail/dnsmasq/etc/ethers", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/ethers", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/etc/group",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/group", "/tmp/.jail/dnsmasq/etc/group", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/group", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/etc/hosts",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/hosts", "/tmp/.jail/dnsmasq/etc/hosts", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/hosts", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/etc/passwd",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/etc/passwd", "/tmp/.jail/dnsmasq/etc/passwd", NULL,
MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/etc/passwd", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/tmp/dhcp.leases",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/tmp/dhcp.leases",
"/tmp/.jail/dnsmasq/tmp/dhcp.leases", NULL, MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5083] stat64("/tmp/dnsmasq.d", {st_mode=S_IFDIR|0755, st_size=40,
...}) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp/dnsmasq.d", 0755) = 0
[pid 5083] mount("/tmp/dnsmasq.d", "/tmp/.jail/dnsmasq/tmp/dnsmasq.d",
NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/tmp/dnsmasq.d", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp/hosts", 0755) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/tmp/hosts/dhcp",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/tmp/hosts/dhcp", "/tmp/.jail/dnsmasq/tmp/hosts/dhcp",
NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/tmp/hosts/dhcp", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5083] open("/tmp/.jail/dnsmasq/tmp/resolv.conf.auto",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5083] mount("/tmp/resolv.conf.auto",
"/tmp/.jail/dnsmasq/tmp/resolv.conf.auto", NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/tmp/resolv.conf.auto", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/usr", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/usr/share", 0755) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq/usr/share/dnsmasq", 0755) = 0
[pid 5083] stat64("/usr/share/dnsmasq/trust-anchors.conf", 0x814de4c) =
-1 ENOENT (No such file or directory)
[pid 5083] writev(2, [{"jail: /usr/share/dnsmasq/trust-a"..., 59}, {NULL,
0}], 2) = 59
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var/etc", 0755) = 0
[pid 5083] stat64("/var/etc/dnsmasq.conf", {st_mode=S_IFREG|0644,
st_size=503, ...}) = 0
[pid 5083] open("/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 5
[pid 5083] mount("/var/etc/dnsmasq.conf",
"/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf", NULL, MS_BIND, NULL) = 0
[pid 5083] mount(NULL, "/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = -1 EEXIST (File
exists)
[pid 5083] stat64("/var/run/dnsmasq", {st_mode=S_IFDIR|0755, st_size=40,
...}) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = -1 EEXIST (File
exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/var/run/dnsmasq", 0755) = 0
[pid 5083] mount("/var/run/dnsmasq",
"/tmp/.jail/dnsmasq/var/run/dnsmasq", NULL, MS_BIND, NULL) = 0
[pid 5083] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5083] mkdir("/tmp/.jail/dnsmasq/old", 0755) = 0
[pid 5083] pivot_root("/tmp/.jail/dnsmasq", "/tmp/.jail/dnsmasq/old") = 0
[pid 5083] writev(1, [{"jail: exec-ing /usr/sbin/dnsmasq", 32}, {"\n",
1}], 2) = 33
[pid 5083] execve("/usr/sbin/dnsmasq", ["/usr/sbin/dnsmasq", "-C",
"/var/etc/dnsmasq.conf", "-k", "-x", "/var/run/dnsmasq/dnsmasq.pid"], [/*
0 vars */]) = -1 ENOENT (No such file or directory)
[pid 5081] rmdir("/tmp/.jail/dnsmasq") = 0
[pid 5084] execve("/usr/bin/readlink", ["readlink",
"/etc/init.d/dnsmasq"], [/* 6 vars */]) = 0
[pid 5084] readlink("/etc/init.d/dnsmasq", 0xb76c8d90, 80) = -1 EINVAL
(Invalid argument)
[pid 5095] execve("/sbin/ujail", ["/sbin/ujail", "-n", "dnsmasq", "-P",
"/tmp/.jail/dnsmasq", "-u", "-l", "-r", "/dev/null", "-r", "/dev/urandom",
"-r", "/etc/TZ", "-r", "/etc/dnsmasq.conf", "-w", ...], [/* 6 vars */]) =
0
[pid 5095] prctl(PR_SET_NAME, "dnsmasq\0-P\0/tmp/") = 0
[pid 5095] mkdir("/tmp/.jail/dnsmasq", 0755) = 0
[pid 5096] sethostname("dnsmasq", 7) = 0
[pid 5096] mount("tmpfs", "/tmp/.jail/dnsmasq", "tmpfs", MS_NOATIME,
"mode=0755") = 0
[pid 5096] chdir("/tmp/.jail/dnsmasq") = 0
[pid 5096] open("/lib64//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
[pid 5096] open("/lib//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
[pid 5096] open("/usr/lib//usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
[pid 5096] open("/usr/sbin/dnsmasq", O_RDONLY|O_LARGEFILE) = 4
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/usr", 0755) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq/usr/sbin", 0755) = 0
[pid 5096] stat64("/usr/sbin/dnsmasq", {st_mode=S_IFREG|0755,
st_size=175021, ...}) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/usr/sbin/dnsmasq",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/usr/sbin/dnsmasq",
"/tmp/.jail/dnsmasq/usr/sbin/dnsmasq", NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/usr/sbin/dnsmasq", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/lib", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/lib/libc.so",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/lib/libc.so", "/tmp/.jail/dnsmasq/lib/libc.so", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/lib/libc.so", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/lib", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/lib/libgcc_s.so.1",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/lib/libgcc_s.so.1",
"/tmp/.jail/dnsmasq/lib/libgcc_s.so.1", NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/lib/libgcc_s.so.1", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var", 0755) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/var/run/ubus.sock",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/var/run/ubus.sock",
"/tmp/.jail/dnsmasq/var/run/ubus.sock", NULL, MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/dev/log",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/dev/log", "/tmp/.jail/dnsmasq/dev/log", NULL, MS_BIND,
NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/dev/null",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/dev/null", "/tmp/.jail/dnsmasq/dev/null", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/dev/null", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/dev", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/dev/urandom",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/dev/urandom", "/tmp/.jail/dnsmasq/dev/urandom", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/dev/urandom", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/etc/TZ",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/TZ", "/tmp/.jail/dnsmasq/etc/TZ", NULL, MS_BIND,
NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/TZ", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] stat64("/etc/dnsmasq.conf", {st_mode=S_IFREG|0644,
st_size=1368, ...}) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/etc/dnsmasq.conf",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/dnsmasq.conf",
"/tmp/.jail/dnsmasq/etc/dnsmasq.conf", NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/dnsmasq.conf", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] stat64("/etc/dnsmasq.time", {st_mode=S_IFREG|0644, st_size=0,
...}) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/etc/dnsmasq.time",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/dnsmasq.time",
"/tmp/.jail/dnsmasq/etc/dnsmasq.time", NULL, MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/etc/ethers",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/ethers", "/tmp/.jail/dnsmasq/etc/ethers", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/ethers", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/etc/group",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/group", "/tmp/.jail/dnsmasq/etc/group", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/group", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/etc/hosts",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/hosts", "/tmp/.jail/dnsmasq/etc/hosts", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/hosts", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/etc", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/etc/passwd",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/etc/passwd", "/tmp/.jail/dnsmasq/etc/passwd", NULL,
MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/etc/passwd", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/tmp/dhcp.leases",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/tmp/dhcp.leases",
"/tmp/.jail/dnsmasq/tmp/dhcp.leases", NULL, MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5096] stat64("/tmp/dnsmasq.d", {st_mode=S_IFDIR|0755, st_size=40,
...}) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp/dnsmasq.d", 0755) = 0
[pid 5096] mount("/tmp/dnsmasq.d", "/tmp/.jail/dnsmasq/tmp/dnsmasq.d",
NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/tmp/dnsmasq.d", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp/hosts", 0755) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/tmp/hosts/dhcp",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/tmp/hosts/dhcp", "/tmp/.jail/dnsmasq/tmp/hosts/dhcp",
NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/tmp/hosts/dhcp", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/tmp", 0755) = -1 EEXIST (File
exists)
[pid 5096] open("/tmp/.jail/dnsmasq/tmp/resolv.conf.auto",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4
[pid 5096] mount("/tmp/resolv.conf.auto",
"/tmp/.jail/dnsmasq/tmp/resolv.conf.auto", NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/tmp/resolv.conf.auto", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/usr", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/usr/share", 0755) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq/usr/share/dnsmasq", 0755) = 0
[pid 5096] stat64("/usr/share/dnsmasq/trust-anchors.conf", 0x814de4c) =
-1 ENOENT (No such file or directory)
[pid 5096] writev(2, [{"jail: /usr/share/dnsmasq/trust-a"..., 59}, {NULL,
0}], 2) = 59
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var/etc", 0755) = 0
[pid 5096] stat64("/var/etc/dnsmasq.conf", {st_mode=S_IFREG|0644,
st_size=503, ...}) = 0
[pid 5096] open("/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 5
[pid 5096] mount("/var/etc/dnsmasq.conf",
"/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf", NULL, MS_BIND, NULL) = 0
[pid 5096] mount(NULL, "/tmp/.jail/dnsmasq/var/etc/dnsmasq.conf", NULL,
MS_RDONLY|MS_REMOUNT|MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = -1 EEXIST (File
exists)
[pid 5096] stat64("/var/run/dnsmasq", {st_mode=S_IFDIR|0755, st_size=40,
...}) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var/run", 0755) = -1 EEXIST (File
exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/var/run/dnsmasq", 0755) = 0
[pid 5096] mount("/var/run/dnsmasq",
"/tmp/.jail/dnsmasq/var/run/dnsmasq", NULL, MS_BIND, NULL) = 0
[pid 5096] mkdir("/tmp/.jail/dnsmasq", 0755) = -1 EEXIST (File exists)
[pid 5096] mkdir("/tmp/.jail/dnsmasq/old", 0755) = 0
[pid 5096] pivot_root("/tmp/.jail/dnsmasq", "/tmp/.jail/dnsmasq/old") = 0
[pid 5096] writev(1, [{"jail: exec-ing /usr/sbin/dnsmasq", 32}, {"\n",
1}], 2) = 33
[pid 5096] execve("/usr/sbin/dnsmasq", ["/usr/sbin/dnsmasq", "-C",
"/var/etc/dnsmasq.conf", "-k", "-x", "/var/run/dnsmasq/dnsmasq.pid"], [/*
0 vars */]) = -1 ENOENT (No such file or directory)
[pid 5095] rmdir("/tmp/.jail/dnsmasq") = 0
root@OpenWrt:~# ls -la /tmp/.jail/
drwxr-xr-x 2 root root 40 Nov 11 21:24 .
drwxrwxrwt 15 root root 400 Nov 11 21:24 ..
root@OpenWrt:~#
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20785#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets