summaryrefslogtreecommitdiffstats
path: root/swaylock/password.c
Commit message (Collapse)AuthorAge
* swaylock: Fix caps lock not updating immediatelyLibravatar Oscar Cowdery Lack2019-01-03
| | | | | | | | | Partially fixes #2788. This change makes it so the lock screen is redrawn whenever the caps lock modifier state changes, rather on relying on the keypress event. This didn't work because caps lock is disabled when the key is released, not pressed, so the caps lock indicator does not go away until the next keypress event.
* swaylock: Submit password on Ctrl-DLibravatar Milkey Mouse2018-12-23
| | | | | | | | | Ctrl-D functions as EOF in most cases on the terminal. login(1) & many other programs check the password on EOF, same as Enter. To make behavior consistent, have swaylock submit the password on Ctrl-D. This commit moves the handling for Enter into its own static function, which is now also called on Ctrl-D.
* swaylock: Clear password buffer on Ctrl-CLibravatar Milkey Mouse2018-12-23
| | | | | I've got in the habit of using Ctrl-C with login(1) to restart password entry. If Sway does the same thing I don't have to retrain my login muscle memory ;)
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* swaylock: exit on display errorLibravatar Ian Fan2018-10-23
|
* Remove timerfd from loop implementationLibravatar Ryan Dwyer2018-10-15
| | | | | timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
* swaylock: Don't wait too long for surface damage before verifyingLibravatar Ryan Dwyer2018-10-15
|
* swaylock: clear password after 10 secondsLibravatar Ryan Dwyer2018-10-15
|
* swaylock: Remove indicator after 3 secondsLibravatar Ryan Dwyer2018-10-15
|
* swaylock: fix clear_password_bufferLibravatar espkk2018-10-14
|
* Add support for building swaylock without PAMLibravatar Drew DeVault2018-09-28
| | | | | | This involves setuid'ing swaylock, which then forks and drops perms on the parent process. The child process remains root and listens on a pipe for requests to validate passwords against /etc/shadow.
* Implement swaylock customization flagsLibravatar Brian Ashworth2018-07-10
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* swaylock: fix the displaying of "verified"Libravatar Dominique Martinet2018-07-07
| | | | | Displaying verified after damaging state needs more than one roundtrip, so keep looping until surfaces are not dirty anymore
* swaylock: implement ^U to clear bufferLibravatar Dominique Martinet2018-06-08
| | | | | | | The whole state->xcb.modifiers thing didn't work at all (always 0) The xkb doc says "[xkb_state_serialize_mods] should not be used in regular clients; please use the xkb_state_mod_*_is_active API instead" so here it is
* swaylock: implement a proper render loopLibravatar emersion2018-05-27
|
* Improved key handling in swaylockLibravatar Mattias Eriksson2018-04-24
| | | | | | Make escape clear buffer Add indicator states for ctrl,shift,super et al Add CapsLock indicator
* swaylock: Securely zero-out password.Libravatar Geoff Greer2018-04-12
| | | | | | | | - 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
* Address review feedback from @emersionLibravatar Drew DeVault2018-04-04
|
* Move extra roundtrip into password.cLibravatar Drew DeVault2018-04-04
|
* Actually let's not do that TODOLibravatar Drew DeVault2018-04-04
|
* R E N D E R I N GLibravatar Drew DeVault2018-04-04
|
* Verify passwordsLibravatar Drew DeVault2018-04-04
|
* Add password buffer, refactor rendering/surfacesLibravatar Drew DeVault2018-04-04