1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 23:14:03 +01:00
sway/include/swaylock
Geoff Greer ad6aa21c43 swaylock: Securely zero-out password.
- Replace char* with static array. Any chars > 1024 will be discarded.
- mlock() password buffer so it can't be written to swap.
- Clear password buffer after auth succeeds or fails.

This is basically the same treatment I gave the 0.15 branch in https://github.com/swaywm/sway/pull/1519
2018-04-12 17:49:21 -07:00
..
seat.h
swaylock.h swaylock: Securely zero-out password. 2018-04-12 17:49:21 -07:00