summaryrefslogtreecommitdiff
path: root/swaylock.1.scd
diff options
context:
space:
mode:
authorGeoff Greer <geoff@greer.fm>2018-04-12 17:38:24 -0700
committerGeoff Greer <geoff@greer.fm>2018-04-12 17:49:21 -0700
commitd8f0fb1378852e1acd4aaaccc51868d4349c3b77 (patch)
treeb45f0852d32a07a7091b4a701563636a19b25034 /swaylock.1.scd
parentb9afbf0bd3d49d2b5c2bb4ed5cfe12ca514bc9be (diff)
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 'swaylock.1.scd')
0 files changed, 0 insertions, 0 deletions