Add security hardening, config system, and integration tests

- Password wiping after PAM auth (bytearray zeroed)
- TOML config loading (/etc/moonlock/ and ~/.config/moonlock/)
- Config controls fingerprint_enabled and background_path
- Integration tests for password/fingerprint auth flows
- Security tests for bypass prevention and data cleanup
- 51 tests passing
This commit is contained in:
2026-03-26 12:36:58 +01:00
parent dd4ef6aa1c
commit db05df36d4
8 changed files with 286 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
# Moonlock configuration
# Copy to /etc/moonlock/moonlock.toml or ~/.config/moonlock/moonlock.toml
# Path to background wallpaper image (optional)
# background_path = "/usr/share/wallpapers/moon.jpg"
# Enable fingerprint authentication via fprintd (default: true)
# fingerprint_enabled = true