Go to file
Krzysztof Rudnicki 6ec85106b7 Protect nsswitch.conf and resolved.conf from hosts bypass
- Add enforce-resolved.sh: validates ReadEtcHosts=yes, prevents
  DNSOverTLS bypass, removes drop-in overrides, locks drop-in dir
- Add resolved-guard.path/service: watches /etc/systemd/resolved.conf
  and its drop-in directory for tampering
- Update pacman hooks to unlock/relock nsswitch.conf and resolved.conf
  alongside /etc/hosts during package transactions
- Extend setup_hosts_guard.sh with --skip-resolved option, resolved
  canonical snapshot, drop-in directory locking, and enforcement
- Add resolved.conf checks to check_and_enable_services.sh: validates
  ReadEtcHosts, DNSOverTLS, drop-in overrides, immutable attribute,
  and resolved-guard.path status with auto-fix capability

Fixed on live system: ReadEtcHosts was set to 'no' and nsswitch.conf
was missing 'files' in the hosts line, completely bypassing /etc/hosts.
2026-02-20 23:21:25 +01:00
.github Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
.vscode fixes for existing scripts and pomodoro with local sync 2026-02-14 18:42:20 +01:00
articles feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
C feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
CPP feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
LaTeX fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
linux_configuration Protect nsswitch.conf and resolved.conf from hosts bypass 2026-02-20 23:21:25 +01:00
poker_modifier_app fix(lint): LOG015 - replace root logger with module loggers 2025-11-30 21:59:24 +01:00
pomodoro_app feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
python_pkg fix: install sh i3 2026-02-20 20:43:37 +01:00
sonic_pi feat: text learning pipe 2025-12-27 17:22:17 +01:00
TS feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
.fvmrc fixes for existing scripts and pomodoro with local sync 2026-02-14 18:42:20 +01:00
.gitignore feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
.pre-commit-config.yaml fix: install sh i3 2026-02-20 20:43:37 +01:00
eslint.config.mjs feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
lint_python.sh fix: resolve shellcheck warnings 2025-11-30 13:48:17 +01:00
package-lock.json feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
package.json feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
pyproject.toml feat: great beautiful fixes 2026-02-20 01:17:53 +01:00
pytest.ini feat: C engine 2025-09-06 18:26:31 +02:00
requirements-dev.txt fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
requirements.txt Add Anki flashcard generator for Warsaw districts using real OpenStreetMap boundaries (#1) 2026-01-07 22:50:59 +01:00
setup.sh feat: great beautiful fixes 2026-02-20 00:37:32 +01:00
test_input_clean.wav fix: getting rnnoise model 2025-10-12 18:57:55 +02:00
test_input.wav fix: getting rnnoise model 2025-10-12 18:57:55 +02:00