dropbear icon indicating copy to clipboard operation
dropbear copied to clipboard

Dropear on musl uses utmp/wtmp invalidated paths from paths.h

Open M95D opened this issue 1 year ago • 1 comments

As I understand it, Dropbear built with musl and --disable-pututline should support direct write to wtmp (and utmp too, but that's another bug).

It seems that Dropbear takes the path to wtmp from musl's include/paths.h, which is #define _PATH_WTMP "/dev/null/wtmp", an intentionally invalid path. I'm not sure what the expected behaviour should be, but using that surely isn't good. Maybe look at busybox? (Busybox writes to /var/log/wtmp - I checked - , but I couldn't find where that path is defined.)

Thanks.

M95D avatar May 09 '24 12:05 M95D

I was wrong. Busybox uses the same paths too.

M95D avatar May 15 '24 19:05 M95D