Roland0 wrote: > the sudo in the command posted above is merely used to execute a command > as the user MIP is run by, so in this context it's necessary. I switched to root and ran the cp command w/ sudo as the user MIP runs as and did not see any issues. The file copied correctly to /tmp.
> Run the MIP scan with 'strace' (https://linux.die.net/man/1/strace), > redirecting it's output to a file and check it for anything related to > the file(s) MIP can't access. I didn't see any access issues in the strace. I'm not a C dev, so a lot of this doesn't make much sense to me, but here is what I think is the relevant area: > [pid 22714] clone(strace: Process 22719 attached > child_stack=0xf73ff424, > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > parent_tidptr=0xf73ffba8, tls={entry_number=12, base_addr=0xf73ffb40, > limit=0x0fffff, seg_32bit=1, contents=0, read_exec_only=0, > limit_in_pages=1, seg_not_present=0, useable=1}, > child_tidptr=0xf73ffba8) = 22719 > [pid 22719] set_robust_list(0xf73ffbb0, 12 <unfinished ...> > [pid 22714] accept(3, <unfinished ...> > [pid 22719] <... set_robust_list resumed> ) = 0 > [pid 22718] mmap2(NULL, 8392704, PROT_NONE, > MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 <unfinished ...> > [pid 22719] recv(4, <unfinished ...> > [pid 22718] <... mmap2 resumed> ) = 0xf59ff000 > [pid 22718] mprotect(0xf5a00000, 8388608, > PROT_READ|PROT_WRITE|PROT_EXEC) = 0 > [pid 22718] clone(strace: Process 22720 attached > <unfinished ...> > [pid 22720] set_robust_list(0xf61ffbb0, 12 <unfinished ...> > [pid 22718] <... clone resumed> child_stack=0xf61ff424, > flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, > parent_tidptr=0xf61ffba8, tls={entry_number=12, base_addr=0xf61ffb40, > limit=0x0fffff, seg_32bit=1, contents=0, read_exec_only=0, > limit_in_pages=1, seg_not_present=0, useable=1}, > child_tidptr=0xf61ffba8) = 22720 > [pid 22720] <... set_robust_list resumed> ) = 0 > [pid 22718] send(7, "HTTP/1.0 302 Found\r\nLocation: /s"..., 41, 0 > <unfinished ...> > [pid 22720] time(NULL) = 1548612482 > (2019-01-27T10:08:02-0800) > [pid 22718] <... send resumed> ) = 41 > [pid 22720] openat(AT_FDCWD, "/sys/devices/system/cpu/online", > O_RDONLY|O_CLOEXEC <unfinished ...> > [pid 22718] close(7 <unfinished ...> > [pid 22720] <... openat resumed> ) = 8 > [pid 22718] <... close resumed> ) = 0 > [pid 22720] read(8, <unfinished ...> > [pid 22718] madvise(0xf63fe000, 8372224, MADV_DONTNEED <unfinished ...> > [pid 22720] <... read resumed> "0-3\n", 8192) = 4 > [pid 22718] <... madvise resumed> ) = 0 > [pid 22720] close(8 <unfinished ...> > [pid 22718] exit(0 <unfinished ...> > [pid 22720] <... close resumed> ) = 0 > [pid 22718] <... exit resumed>) = ? > [pid 22720] mmap2(NULL, 2097152, PROT_NONE, > MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...> > [pid 22718] +++ exited with 0 +++ > [pid 22720] <... mmap2 resumed> ) = 0xf57ff000 > [pid 22720] munmap(0xf57ff000, 4096) = 0 > [pid 22720] munmap(0xf5900000, 1044480) = 0 > [pid 22720] mprotect(0xf5800000, 135168, PROT_READ|PROT_WRITE) = 0 > [pid 22720] stat64("/storage/music/Weezer/2019 - Teal Album (flac)", > {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 > [pid 22720] madvise(0xf59ff000, 8372224, MADV_DONTNEED) = 0 > [pid 22720] exit(0) = ? > [pid 22720] +++ exited with 0 +++ > [pid 22719] <... recv resumed> "GET /server HTTP/1.1\r\nHost: 192."..., > 4095, 0) = 1448 > [pid 22719] stat64("/opt/MusicIP/server/index.html", > {st_mode=S_IFREG|0664, st_size=6561, ...}) = 0 > [pid 22719] openat(AT_FDCWD, "/opt/MusicIP/server/index.html", O_RDONLY) > = 7 > [pid 22719] read(7, "<HTML>\r\n<HEAD>\r\n<TITLE>MusicIP H"..., 6561) = > 6561 > [pid 22719] close(7) = 0 > [pid 22719] stat64("/home/administrator/.MusicMagic/default.m3lib", > {st_mode=S_IFREG|0600, st_size=10858025, ...}) = 0 > [pid 22719] send(4, "HTTP/1.0 200 OK\r\nCache-Control: "..., 7111, 0) = > 7111 > [pid 22719] close(4) = 0 > [pid 22719] madvise(0xf6bff000, 8372224, MADV_DONTNEED) = 0 > [pid 22719] exit(0) = ? > [pid 22719] +++ exited with 0 +++ > [pid 22715] <... _newselect resumed> ) = 0 (Timeout) > [pid 22715] sendto(5, "\0\0\204\0\0\0\0\6\0\0\0\0\33MusicMagic Mixer > on"..., 215, 0, {sa_family=AF_INET, sin_port=htons(5353), > sin_addr=inet_addr("224.0.0.251")}, 16) = 215 > pid 22720 is what seems to be looking for files in the directory I specified (Weezer's latest cover album). I'm guessing the = 0 is the return code of that function, which seems to indicate no errors, but once again I'm not totally sure what to make of this. ------------------------------------------------------------------------ BreakTheStatic's Profile: http://forums.slimdevices.com/member.php?userid=42048 View this thread: http://forums.slimdevices.com/showthread.php?t=110092 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
