Preempt X11 keyboard grabs and window stacking when lockscreen is active
This commit is contained in:
1 parent
83dd79fe76
commit
f112b6ae72
78 files changed
+403
-53
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- **Passcode-based fullscreen phone locker (`locker.so` / `xlocker`) and GUI passcode configurator (`passcode.so` / `xpasscode`)**:
|
||||
- Added a fullscreen `240x320` (`X=0, Y=0`) override-redirect numeric passcode lock screen (`xlocker` / `locker.so`) verified against the current user's shadow password (`147147` by default, supporting any numeric passcode of `4+` digits) via `/usr/bin/bananarchy-verify-passcode`, activating automatically upon GUI startup on device boot.
|
||||
- Added a NeoUI-based **Passcode & Duress Configurator (`passcode.so` / `xpasscode`)** in the **Config** and **Applications** menus with two tabs (`User PIN` and `Duress PIN`) to change the real Linux `user` password in `/etc/shadow` (`4+` numeric digits, immediately updating `/etc/shadow` for SSH, TTY, and `doas`/`sudo` authentication after verifying the current PIN) and configure or clear a separate numeric duress passcode (`/etc/bananarchy/duress.hash`, rejecting collisions with the real user passcode).
|
||||
- Enforced zero keypad, softkey, slider, or power-button bypass across `dwm`, `dmenu`, `xdrawer`, `neoui`, and `sxmo_hook_inputhandler.sh` while locked (`/tmp/bananarchy_screen_locked`), allowing only incoming calls to temporarily raise `xcallscreen` and immediately restoring the passcode lock screen when the call ends.
|
||||
- Enforced zero keypad, softkey, slider, or power-button bypass across `dwm`, `dmenu`, `xdrawer`, `neoui`, and `sxmo_hook_inputhandler.sh` while locked (`/tmp/bananarchy_screen_locked`), preempting active X11 keyboard grabs and window stacking over any running application (`webarchy`, `remedy`, `gambatte`, `scoundrel`, `snake`, `tetris`, and all NeoUI plugins), allowing only incoming calls to temporarily raise `xcallscreen` and cleanly restoring the previously focused application upon unlock.
|
||||
- **Plausible-deniability duress mode (`bananarchy-duress-activate`)**:
|
||||
- Entering the configured duress passcode on the `xlocker` lock screen returns exit code `2` from `/usr/bin/bananarchy-verify-passcode` and triggers `/usr/bin/bananarchy-duress-activate`, transparently unlocking the phone into an isolated, non-destructive clean session (`/tmp/bananarchy_duress_mode` and RAM-backed profile `/tmp/duress_home`) that persists until the next reboot or poweroff.
|
||||
- Redirects `getHomeDir()` across all DWM plugins and games to `/tmp/duress_home` so **Contacts (`xcontacts`)**, **SMS (`xsms`)**, **Call Log (`xcalllog`)**, **Email (`xemail`)**, **Kopher (`xkopher`)**, **GPS waypoints (`xgps`)**, **Camera (`xcamera`)**, **Music (`xmusic`)**, and **Ringtones (`xringtones`)** operate against an empty profile with zero personal data while leaving the real `/home/user` untouched on disk.
|
||||
|
||||
Reference in new issue
Block a user