summaryrefslogtreecommitdiffstats
path: root/modules/slock/default.nix
Commit message (Collapse)AuthorAgeFilesLines
* slock: hash from the secret slock.hashed-passwordtv7 hours1-0/+1
|
* slock: password hash from enstate, else setuidtv7 hours1-0/+91
The hash no longer goes into the store. With enstate, it can come from the slot secrets/slock.hashed-password: then slock runs as its user, with that hash. Without a hash, the credential falls back to "none" and slock runs setuid root, reading /etc/shadow. A validator for text/x-crypt-hash checks the hash the way slock uses it, with crypt. The slot is optional, so enstate leaves out a hash the validator objects to, and slock runs setuid instead of locking with a hash no password matches.