Files
mu300-linux/android
Abdurrahman Kaan DikeçandClaude Opus 5.5 728a56604f The password check runs nothing of the Linux system it checks
Review: android-pwcheck.sh ran the installed system's perl or openssl in a chroot as Android's root - a tampered
Linux system would get Android's root during the update. Now only the project's own tools compute the hash:

- tools/pwcheck/mu300-pwcheck.c: crypt_r() of libxcrypt, linked statically, built by make-release.sh with the
  other helpers (the build checks a real Ubuntu yescrypt hash) into the 5.4 kernel bundle beside busybox; the zips
  carry it as mu300/mu300-pwcheck when their release has it. Password and hash on standard input, one word out.
- android-pwcheck.sh: mu300-pwcheck, else the bundle's busybox mkpasswd (MD5-/SHA-crypt, a salt of crypt's
  alphabet only), else UNVERIFIABLE; no chroot; ROOT, etc and shadow must not be links.
- install.sh, install.ps1: the tools from the package, or from the release's kernel bundle fetched and checked
  before the question, pushed with the check.
- The check mounts with the journal replayed (MU300_RO=recover): OpenWrt's reboot leaves needs_recovery set, and
  a noload view can hold an older /etc/shadow.
- Tests: nothing under ROOT and no chroot may run (every program there says MATCH and leaves a mark), links,
  the checker built with -Werror against libcrypt; the Pester runs reset the fake between cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-16 08:50:43 +03:00
..