aboutsummaryrefslogtreecommitdiff
path: root/swaylock/meson.build
AgeCommit message (Collapse)AuthorLines
2019-01-13Split swaylock into separate projectDrew DeVault-55/+0
2018-10-06Fix swaylock w/shadow on glibc, improve securityDrew DeVault-0/+3
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-30Add support for installing binaries with DT_RPATHArkadiusz Hiler-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-28Add support for building swaylock without PAMDrew DeVault-19/+31
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-08-30Add FreeBSD-specific PAM configurationsghctoma-4/+13
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-04-20[swaylock] Install pam moduleBruno Pinto-0/+7
2018-04-04Add password buffer, refactor rendering/surfacesDrew DeVault-0/+2
2018-04-04Link swaylock to xkbcommonDrew DeVault-0/+1
2018-04-04Split seat code into its own fileDrew DeVault-2/+4
2018-04-04Initial swaylock portDrew DeVault-0/+18