diff options
author | 2018-04-12 17:38:24 -0700 | |
---|---|---|
committer | 2018-04-12 17:49:21 -0700 | |
commit | ad6aa21c43bb87c917e21416f3ba448b634a98f8 (patch) | |
tree | 2e2eea866e21d7f3484ef8efde82b5a6a6a2bfb0 /swaybar/ipc.c | |
parent | Merge branch 'master' of github.com:swaywm/sway (diff) | |
download | sway-ad6aa21c43bb87c917e21416f3ba448b634a98f8.tar.gz sway-ad6aa21c43bb87c917e21416f3ba448b634a98f8.tar.zst sway-ad6aa21c43bb87c917e21416f3ba448b634a98f8.zip |
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
Diffstat (limited to 'swaybar/ipc.c')
0 files changed, 0 insertions, 0 deletions