mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-23 19:46:19 +01:00
Adds `block-gaming <days>`: uninstalls Steam, kills/uninstalls known game launchers, and blocks Steam + game-website domains (hosts + iptables) for a fixed number of days with no in-app way to lift it early. Enforcement is tamper-resistant via guard-lib's package-block (bind-mounted lock file) and re-asserted every enforce tick. Also migrates store_blocker.py's hosts-file locking from raw chattr/mount calls to guard-lib's file-guard, using the new `sync` subcommand (not `pacman-relock`) so our own legitimate edits aren't reverted as drift. Fixes found during live verification: - iptables never blocked real IPs because DNS was resolved after /etc/hosts already redirected every blocked domain to 0.0.0.0 locally - reordered so iptables resolves first. - Game-website blocks only covered bare apex domains; sites that 301-redirect to www (e.g. newgrounds.com) sailed right through - added automatic www. variant generation. - Launchers (e.g. prismlauncher) were only killed, never uninstalled - added best-effort pacman-package removal keyed off /proc/<pid>/exe. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFNiYQQgSLAkiBXswyimPq |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conftest.py | ||
| test_cmd_done_part2.py | ||
| test_config.py | ||
| test_enforce_loop_part2.py | ||
| test_enforce_loop_part3.py | ||
| test_enforce_loop.py | ||
| test_enforcer_part2.py | ||
| test_enforcer.py | ||
| test_game_install_part2.py | ||
| test_game_install_part3.py | ||
| test_game_install.py | ||
| test_hltb_detail.py | ||
| test_hltb_part2.py | ||
| test_hltb_part3.py | ||
| test_hltb_search_part2.py | ||
| test_hltb_search.py | ||
| test_hltb.py | ||
| test_library_hider_part2.py | ||
| test_library_hider.py | ||
| test_main_part2.py | ||
| test_main_part3.py | ||
| test_main_part4.py | ||
| test_main_part5.py | ||
| test_main.py | ||
| test_polls_tracking_part2.py | ||
| test_polls_tracking.py | ||
| test_protondb.py | ||
| test_scanning_part2.py | ||
| test_scanning_part3.py | ||
| test_scanning_part4.py | ||
| test_scanning.py | ||
| test_stats.py | ||
| test_steam_api.py | ||
| test_store_blocker_part2.py | ||
| test_store_blocker.py | ||
| test_total_block.py | ||
| test_web_dataset.py | ||
| test_web_server.py | ||
| test_whitelist.py | ||