summaryrefslogtreecommitdiff
path: root/shadow.c
AgeCommit message (Collapse)Author
2024-03-05Read password hash before forkSertonix
This ensures that the parent properly errors only if the password cannot be read.
2024-01-16Check setgid too after dropping rootSertonix
2022-09-26shadow: make the result of crypt() constSimon Ser
This should not be free'd.
2022-06-15Use mlock for password bufferRobin Ebert
2019-01-27Merge pull request #36 from c-edw/feature/ShadowBackendSleepDrew DeVault
Sleep on incorrect password with shadow backend.
2019-01-27Sleep on incorrect password with shadow backend.Connor E
2019-01-23Include stdlib.h in shadow.cJohn Axel Eriksson
2019-01-18Make setuid error clearer.Connor E
2019-01-17Move PAM into a child processemersion
2019-01-17shadow: fix return in initialize_pw_backendemersion
2019-01-16Make sure we can't restore root after setuidemersion
2019-01-15Fix swaylock.h include directiveJohn Axel Eriksson
2019-01-14Implement logging and remove wlroots dependencyBrian Ashworth
This implements a simpler version of the wlroots logger for swaylock. With this logger, the dependency on wlroots can be dropped. This also adds a debug flag and disables debugging output by default
2018-11-25Replace _XOPEN_SOURCE with _POSIX_C_SOURCEemersion
And make sure we don't define both in the same source file.
2018-10-06Fix swaylock w/shadow on glibc, improve securityDrew DeVault
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-09-28Add support for building swaylock without PAMDrew DeVault
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.