mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 08:02:40 +00:00
Android's system user is uid 1000, and gen-ueventd-perms.py took the number over: on Ubuntu uid 1000 is ubuntu, so the modem's calibration NV (nr_fixnv*), persist and the modem's control nodes were writable by the login user without sudo, and modem_control/refnotify ran as it. Several nodes were 0666. - mu300vnd system account: made in the images (assemble.sh, Arch) and, where missing, by android-vendor-start before the nodes are handed out; mu300-update's merge carries the image's account into updated systems - android-run starts modem_control and refnotify as mu300vnd via setpriv, with only the capabilities they keep on Android: their hardcoded setuid(1000) fails, logged and harmless; cp_diskserver stays root - the generator maps system/radio to the account, graphics to video, the rest to root; no bits for others on /dev, nothing world-writable; input, ttyGS and the firmware path left as Linux has them; the RTC root:<vendor group> - the generator's inputs are in android-vendor/ueventd/; a test checks the output Measured on F50-B (Ubuntu 24.04, 7.2.9): FINDINGS 40. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn