The Sheer Terror of PAM
summary
Shows how Rust code actually hooks into PAM by building a Tailscale PAM module, debugs it with gdb by breaking on dlopen/dlsym instead of the module, and fixes Ubuntu quirks like stripped debug symbols and SSH’s ChallengeResponseAuthentication default off so the module can run. Demonstrates the module working, warns about leaking memory if handwritten FFI and recommends use bindgen, measures latency risk from slow auth, and gives concrete distro-specific pitfalls and fixes.
AI-written summary · about
chapters (5)
related talks
36mLinux-PAM demystified
35mAn intro to the world of auditing Rust code
02h 27mHow hacking works (Workshop edition)
25mTowards Understanding Spectre-PHT in Memory-Safe Languages
19mCounterexamples in Safe Rust
47mMinimum Viable Linux
45mThe Container Escape Room: An Exploration of Container Escapes
58mDemonstrating binary exploitation
