summaryrefslogtreecommitdiff
path: root/swaylock
AgeCommit message (Collapse)AuthorLines
2018-11-25Replace _XOPEN_SOURCE with _POSIX_C_SOURCEFurkan Sahin-6/+3
And make sure we don't define both in the same source file.
2018-10-27reordered swaylock manpageFurkan Sahin-12/+14
2018-10-24Merge pull request #2925 from ianyfan/swaylockFurkan Sahin-3/+18
swaylock: exit early if unable to get input inhibitor
2018-10-24Add multiseat support to swaylockFurkan Sahin-12/+15
2018-10-23swaylock: exit on display errorFurkan Sahin-3/+13
2018-10-22swaylock: exit early if unable to inhibit inputFurkan Sahin-0/+5
This stops the program from going into a spinlock without exiting
2018-10-19Change initial background mode before arg parse.Furkan Sahin-2/+1
2018-10-16Fix swaylock version stringFurkan Sahin-7/+3
The referenced constants were not defined so it always printed "version unknown". Also it would exit with code 1. It now exits with code 0.
2018-10-15Sway clients: Exit gracefully when compositor is unavailableFurkan Sahin-1/+5
2018-10-14Remove timerfd from loop implementationFurkan Sahin-5/+5
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.
2018-10-13swaylock: Don't wait too long for surface damage before verifyingFurkan Sahin-1/+18
2018-10-13swaylock: clear password after 10 secondsFurkan Sahin-0/+21
2018-10-13swaylock: Remove indicator after 3 secondsFurkan Sahin-0/+22
2018-10-13swaylock: Use common event loopFurkan Sahin-2/+12
2018-10-14swaylock: fix clear_password_bufferFurkan Sahin-1/+1
2018-10-06Fix swaylock w/shadow on glibc, improve securityFurkan Sahin-0/+30
Today I learned that GNU flaunts the POSIX standard in yet another creative way. Additionally, this adds some security improvements, namely: - Zeroing out password buffers in the privileged child process - setuid/setgid after reading /etc/shadow
2018-10-06swaylock: Support keyboard and pointer disconnects and reconnectsFurkan Sahin-5/+13
2018-09-30Add support for installing binaries with DT_RPATHFurkan Sahin-0/+1
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
2018-09-30Turn funcs() into funcs(void)Furkan Sahin-1/+1
If they really do not take undefined number of arguments.
2018-09-28Add support for building swaylock without PAMFurkan Sahin-72/+224
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.
2018-09-20swaybar, swaylock, & tree/container: Set cairo font options to render text ↵Furkan Sahin-2/+13
and lines with subpixel hinting (if available).
2018-08-30Add FreeBSD-specific PAM configurationFurkan Sahin-4/+19
The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock.
2018-07-17Fix swaylock argumentsFurkan Sahin-64/+123
2018-07-16Switch to using getopt_long for config flagFurkan Sahin-7/+10
2018-07-13Remove leftover parensFurkan Sahin-1/+1
2018-07-13Remove int cast after changing to size_tFurkan Sahin-1/+1
2018-07-13Change to size_t in swaylock's get_config_pathFurkan Sahin-1/+1
2018-07-13Implement swaylock configuration file parsingFurkan Sahin-57/+193
2018-07-10Change formatting of swaylock usage in the codeFurkan Sahin-57/+69
2018-07-10Implement swaylock customization flagsFurkan Sahin-94/+338
2018-07-09Update for swaywm/wlroots#1126Furkan Sahin-15/+15
2018-07-07swaylock: daemonize after lockingFurkan Sahin-2/+11
2018-06-08swaylock: fix the displaying of "verified"Furkan Sahin-1/+14
Displaying verified after damaging state needs more than one roundtrip, so keep looping until surfaces are not dirty anymore
2018-07-07Detect opaque lockscreen when using a solid colorFurkan Sahin-3/+6
2018-07-03Use infinite opaque region in swaylockFurkan Sahin-14/+14
2018-07-03Use opaque region to determine if frame done should be sentFurkan Sahin-0/+15
2018-07-04Fix transparency in background images in swaylockFurkan Sahin-2/+3
2018-07-04Fix #1857Furkan Sahin-0/+2
2018-07-01swaylock daemonize: fix leak of devnull fdFurkan Sahin-0/+1
2018-06-08swaylock: implement ^U to clear bufferFurkan Sahin-32/+15
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
2018-05-25swaylock: implement a proper render loopFurkan Sahin-57/+105
2018-05-25Delete old asciidoc man pagesFurkan Sahin-117/+0
2018-05-23swaylock: remove unused fieldFurkan Sahin-1/+0
2018-05-23swaylock: don't try to render unconfigured surfacesFurkan Sahin-0/+3
2018-05-23Merge branch 'master' into fix-swaylock-hotpluggingFurkan Sahin-20/+140
2018-05-20Swaylock: Use calloc instead of mallocFurkan Sahin-1/+1
2018-05-20Swaylock: Log error if multiple images are defined for the same outputFurkan Sahin-0/+17
2018-05-19Swaylock: Allow per-output imagesFurkan Sahin-21/+119
2018-05-18Fix output hotpluggingFurkan Sahin-31/+42
2018-05-18Fix swaylock crashing when unplugging outputFurkan Sahin-5/+25