Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
M95D opened this issue May 9, 2024 · 1 comment
Open

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

M95D opened this issue May 9, 2024 · 1 comment

Comments

@M95D
Copy link
Contributor

M95D commented May 9, 2024

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
Copy link
Contributor Author

M95D commented May 15, 2024

I was wrong. Busybox uses the same paths too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant