mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
After a user enters or clears a password, try to overwrite the buffer containing it. That way it's not sitting around in RAM for something else to read later. Also, mlock() the password buffer so that it is never swapped out. This also replaces the dynamically allocated buffer with a static char[1024]. Any characters past that are discarded until the user hits enter or escape. |
||
|---|---|---|
| .. | ||
| pam | ||
| CMakeLists.txt | ||
| main.c | ||
| swaylock.1.txt | ||