diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-10-06 12:17:36 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2018-10-06 12:20:12 -0400 |
| commit | c7776e780425abb830c6b37c25cbd58ecc685680 (patch) | |
| tree | ff3c8f4b78f8507bea54e120a0aa151da1140059 /meson.build | |
| parent | ec35e9943ed396ccfe16fde02045bd0a37de2d74 (diff) | |
Fix swaylock w/shadow on glibc, improve security
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
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 6605340..f3321a7 100644 --- a/meson.build +++ b/meson.build @@ -26,6 +26,9 @@ else warning('The swaylock binary must be setuid when compiled without libpam') warning('You must do this manually post-install: chmod a+s /path/to/swaylock') sources += ['shadow.c'] + if crypt.found() + dependencies += [crypt] + endif endif executable('swaylock', |
