-----------------------------------------------------------------
[*] Initial strace run with jchroot on the command ./usr/sbin/visudo to identify missing areas
[*] Emulating binary name: visudo in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract (1/1)
[*] Using CPU config:
1 brk(NULL) = 0x004357f0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e720) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libsudo_util.so.0",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/usr/lib/sudo/tls",0x4071e358) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/libsudo_util.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e4a4,512) = 512
1 prctl(46,7,1081205924,512,1073770496,0) = 0
1 fstat64(3,0x4071e368) = 0
1 mmap2(NULL,145552,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffa4000
1 mprotect(0x3ffb8000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc7000,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x13) = 0x3ffc7000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e48c,512) = 512
1 prctl(46,12,1081205900,512,1073770496,0) = 0
1 _llseek(3,0,768,0x4071e238,SEEK_SET) = 0
1 read(3,0x4071e268,32) = 32
1 fstat64(3,0x4071e350) = 0
1 mmap2(NULL,181232,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff77000
1 mprotect(0x3ff91000,61440,PROT_NONE) = 0
1 mmap2(0x3ffa0000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3ffa0000
1 mmap2(0x3ffa2000,5104,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ffa2000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libdl.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/libdl.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e474,512) = 512
1 prctl(46,9,1081205876,512,1073770496,0) = 0
1 _llseek(3,0,680,0x4071e228,SEEK_SET) = 0
1 read(3,0x4071e258,32) = 32
1 fstat64(3,0x4071e338) = 0
1 mmap2(NULL,73952,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff64000
1 mprotect(0x3ff66000,61440,PROT_NONE) = 0
1 mmap2(0x3ff75000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x1) = 0x3ff75000
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e45c,512) = 512
1 prctl(46,9,1081205852,512,1073770496,0) = 0
1 fstat64(3,0x4071e320) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff40000
1 mprotect(0x3ff53000,61440,PROT_NONE) = 0
1 mmap2(0x3ff62000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff62000
1 mprotect(0x4071e000,4096,PROT_EXEC|PROT_READ|PROT_WRITE|PROT_GROWSDOWN) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e444,512) = 512
1 prctl(46,13,1081205828,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e1f8,SEEK_SET) = 0
1 read(3,0x4071e228,32) = 32
1 fstat64(3,0x4071e308) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fdb1000
1 mprotect(0x3ff27000,61440,PROT_NONE) = 0
1 mmap2(0x3ff36000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff36000
1 mmap2(0x3ff3d000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff3d000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fdaf000
1 set_thread_area(0x3fdb66a0) = 0
1 mprotect(0x3ff36000,16384,PROT_READ) = 0
1 mprotect(0x3ff62000,4096,PROT_READ) = 0
1 mprotect(0x3ff75000,4096,PROT_READ) = 0
1 mprotect(0x3ffa0000,4096,PROT_READ) = 0
1 mprotect(0x00433000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 set_tid_address(0x3fdaf278) = 1
1 set_robust_list(0x3fdaf280,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x4071ed68,NULL) = 0
1 rt_sigaction(33,0x4071ed68,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x4071edb0,NULL,16) = 0
1 getrlimit(3,0x4071ee38) = 0
1 brk(NULL) = 0x004357f0
1 brk(0x004567f0) = 0x004567f0
1 brk(0x00457000) = 0x00457000
1 openat(AT_FDCWD,"/lib/locale/locale-archive",O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/share/locale/locale.alias",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C.UTF-8/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C.utf8/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/locale/C/LC_IDENTIFICATION",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 stat64("/etc/sudo.conf",0x4071eb20) = -1 errno=2 (No such file or directory)
1 geteuid() = 0
1 getuid() = 0
1 socket(PF_UNIX,SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK,IPPROTO_IP) = 3
1 connect(3,0x4071e860,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 socket(PF_UNIX,SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK,IPPROTO_IP) = 3
1 connect(3,0x4071e9a8,110) = -1 errno=2 (No such file or directory)
1 close(3) = 0
1 openat(AT_FDCWD,"/etc/nsswitch.conf",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x4071e978) = 0
1 read(3,0x4360e8,4096) = 185
1 read(3,0x4360e8,4096) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/usr/lib/sudo/tls/libnss_files.so.2",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/usr/lib/sudo/libnss_files.so.2",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e454,512) = 512
1 prctl(46,9,1081205844,512,1073770496,0) = 0
1 _llseek(3,0,648,0x4071e200,SEEK_SET) = 0
1 read(3,0x4071e230,32) = 32
1 fstat64(3,0x4071e318) = 0
1 mmap2(NULL,136032,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fd8d000
1 mprotect(0x3fd98000,61440,PROT_NONE) = 0
1 mmap2(0x3fda7000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0xa) = 0x3fda7000
1 mmap2(0x3fda9000,21344,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fda9000
1 close(3) = 0
1 mprotect(0x3fda7000,4096,PROT_READ) = 0
1 openat(AT_FDCWD,"/etc/passwd",O_RDONLY|O_CLOEXEC) = 3
1 fstat64(3,0x4071e900) = 0
1 read(3,0x437490,4096) = 456
1 close(3) = 0
1 uname(0x4071eb08) = 0
1 openat(AT_FDCWD,"/etc/sudoers",O_RDWR|O_CREAT|O_LARGEFILE,0440) = 3
1 fcntl64(3,F_SETLK64,0x4071ec48) = 0
1 fcntl64(3,F_GETFL) = 2
1 ioctl(3,TCGETS,0x4071eb38) = -1 errno=25 (Inappropriate ioctl for device)
1 fstat64(3,0x4071eac8) = 0
1 read(3,0x437df8,8192) = 3201
1 read(3,0x438a79,4096) = 0
1 stat64("/etc/sudoers.d",0x4071e978) = 0
1 openat(AT_FDCWD,"/etc/sudoers.d",O_RDONLY|O_DIRECTORY|O_LARGEFILE|O_NONBLOCK|O_CLOEXEC) = 4
1 fstat64(4,0x4071e9b0) = 0
1 getdents64(4,0x43ce28,32768) = 48
1 getdents64(4,0x43ce28,32768) = 0
1 close(4) = 0
1 read(3,0x437df8,8192) = 0
1 ioctl(3,TCGETS,0x4071eb30) = -1 errno=25 (Inappropriate ioctl for device)
1 stat64("/bin/vi",0x4071ebd8) = 0
1 write(2,0x4071fc57,6)visudo = 6
1 write(2,0x3ffb5e90,2): = 2
1 write(2,0x4071c290,39)no editor found (editor path = /bin/vi) = 39
1 write(2,0x3ff3ac7f,1)
= 1
1 exit_group(1)
[*] Identification of missing filesytem areas.
[*] Found missing area: /lib/locale/C.UTF-8/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/locale/C.UTF-8/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/C.utf8/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/locale/C.utf8/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/C/LC_IDENTIFICATION
[*] Trying to identify this missing file: LC_IDENTIFICATION
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/locale/C/LC_IDENTIFICATION
[*] Found missing area: /lib/locale/locale-archive
[*] Trying to identify this missing file: locale-archive
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/locale/locale-archive
[*] Found missing area: /share/locale/locale.alias
[*] Trying to identify this missing file: locale.alias
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/share/locale/locale.alias
[*] Found missing area: /usr/lib/sudo/tls/libc.so.6
[*] Trying to identify this missing file: libc.so.6
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libc.so.6
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libc.so.6 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
[*] Found missing area: /usr/lib/sudo/tls/libdl.so.2
[*] Trying to identify this missing file: libdl.so.2
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libdl.so.2
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libdl.so.2 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
[*] Found missing area: /usr/lib/sudo/tls/libgcc_s.so.1
[*] Trying to identify this missing file: libgcc_s.so.1
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libgcc_s.so.1
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libgcc_s.so.1 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
[*] Found missing area: /usr/lib/sudo/tls/libnss_files.so.2
[*] Trying to identify this missing file: libnss_files.so.2
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libnss_files.so.2
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libnss_files.so.2 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
[*] Found missing area: /usr/lib/sudo/tls/libpthread.so.0
[*] Trying to identify this missing file: libpthread.so.0
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libpthread.so.0
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libpthread.so.0 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
[*] Found missing area: /usr/lib/sudo/tls/libsudo_util.so.0
[*] Trying to identify this missing file: libsudo_util.so.0
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/libsudo_util.so.0
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/libsudo_util.so.0 to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/usr/lib/sudo/tls/
-----------------------------------------------------------------