diff options
| author | tv <tv@krebsco.de> | 2026-12-04 01:56:12 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-04 15:44:35 +0000 |
| commit | f269fdc2626228534c39292c288a63c19a4c779d (patch) | |
| tree | 48d88407f3c1285b02b0233e8e7f4b1c491dcd23 /lib | |
| parent | 6d2f40458c8ffd623f29ff6722cdcd9fc8c57415 (diff) | |
slock: password hash from enstate, else setuid
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
