screen-locker/screen_locker
Krzysztof kuhy Rudnicki eafe933440 security: harden digital-wellbeing bypass vectors
- Screen locker: disable VT switching (Ctrl+Alt+Fn) via setxkbmap
  srvrkeys:none on startup; restore on close (production mode only).
  Gracefully skips if setxkbmap is not installed (shutil.which).
  Tests: 7 new tests, 100% branch coverage maintained.

- Midnight shutdown: restore real schedule values (Mon-Wed 21:00,
  Thu-Sun 22:00, morning end 05:00); re-enable the three commented-out
  leniency checks in check_schedule_protection(); self-lock script with
  chattr +i at end of enable_midnight_shutdown().

- Hosts install: add UNBLOCK_STATE_FILE tracking for whitelisted domains;
  check_unblock_entries_protection() blocks installation if the unblock
  list grows; save state after install; self-lock install.sh and
  generate_hosts_file.sh with chattr +i.
2026-05-16 15:41:40 +02:00
..
tests security: harden digital-wellbeing bypass vectors 2026-05-16 15:41:40 +02:00
__init__.py Fix test discovery and coverage for python_pkg modules 2025-12-02 22:33:34 +01:00
_constants.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
_log_integrity.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_phone_verification.py Apply focus-mode, screen-locker, and steam backlog updates 2026-05-03 22:41:53 +02:00
_shutdown.py Add tests and fix pre-commit issues across all projects 2026-04-12 20:45:24 +02:00
_sick_dialog.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
_sick_tracker.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
_time_check.py feat(screen_locker): harden bypass prevention 2026-04-09 21:44:13 +02:00
_ui_flows.py feat(screen-locker): add sick-day tracker and commitment debt flow 2026-05-14 19:52:15 +02:00
adjust_shutdown_schedule.sh Apply focus-mode, screen-locker, and steam backlog updates 2026-05-03 22:41:53 +02:00
early-bird-workout-check.timer feat(screen-locker): add early-bird workout checks and phone verification updates 2026-05-01 19:07:34 +02:00
install_autostart.sh feat: better screen lock checker 2026-03-08 21:39:39 +01:00
install_systemd.sh fix: PYTHONPATH in screen locker status check; sudo for steam enforcer install 2026-05-15 01:19:57 +02:00
remove_autostart.sh refactor: rename folders to fix N999, INP001, S311 linting rules 2025-11-30 21:20:17 +01:00
remove_systemd.sh refactor: remove manual workout forms, ADB-only verification + sick mode 2026-03-27 15:54:01 +01:00
run.sh refactor: split oversized SBE modules, extend screen locker, and enhance Horatio demo 2026-03-29 22:50:24 +02:00
screen_lock.py security: harden digital-wellbeing bypass vectors 2026-05-16 15:41:40 +02:00
workout-locker.service feat(screen_locker): harden bypass prevention 2026-04-09 21:44:13 +02:00