feat: add ahfail-pam PAM module with cleanup-based failure detection

Implements a C-ABI PAM shared library that registers a pam_set_data
cleanup callback to detect auth failures and spawn/kill ahfail-display
via a double-fork, without ever touching credentials.
This commit is contained in:
Asger Geel Weirsøe
2026-05-06 12:00:24 +02:00
parent abf8aef1ef
commit c24bd26ba1
5 changed files with 214 additions and 2 deletions

4
Cargo.lock generated
View File

@@ -17,7 +17,6 @@ dependencies = [
"gdk",
"glib",
"gstreamer",
"gstreamer-player",
"gtk",
"libc",
"pkg-config",
@@ -41,6 +40,9 @@ dependencies = [
[[package]]
name = "ahfail-pam"
version = "0.1.0"
dependencies = [
"libc",
]
[[package]]
name = "ahfail-ui"