aboutsummaryrefslogtreecommitdiffstats
path: root/swaylock/shadow.c
Commit message (Collapse)AuthorAge
* Split swaylock into separate projectLibravatar Drew DeVault2019-01-13
|
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* Fix swaylock w/shadow on glibc, improve securityLibravatar Drew DeVault2018-10-06
| | | | | | | | | 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
* 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.