Commit Graph

25 Commits

Author SHA1 Message Date
Jan Beich
c163f0a0c7 Add man-pages option like swaywm/sway@ba16f16e4d 2019-01-24 23:23:30 +01:00
Ian Fan
b87e2a4916 Remove references to pango 2019-01-23 12:20:24 +00:00
Drew DeVault
f0353900ae
Merge pull request #22 from swaywm/meson-options
Add Meson feature options
2019-01-22 09:11:36 -05:00
Connor E
2e330473eb Remove unused pango.c 2019-01-22 14:59:39 +01:00
Connor E
291bae1e44 Remove VLAs. 2019-01-18 12:27:42 +00:00
emersion
667fea6a8f
Add Meson feature options 2019-01-18 08:58:57 +01:00
Michael Weiss
710a711fd7
Replace old Sway references with swaylock 2019-01-17 17:18:20 +01:00
emersion
0c7932a3af
Move PAM into a child process 2019-01-17 09:53:23 +01:00
emersion
2e50a3cb96
Add a pam Meson option 2019-01-16 22:45:38 +01:00
Brian Ashworth
dff6b63725 Remove list.c
This replaces all occurrences of `list_t` with `wl_list` to eliminate
the need for `list.c`
2019-01-15 09:26:18 +01:00
Brian Ashworth
e3935ad143 Implement logging and remove wlroots dependency
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
2019-01-14 23:30:54 -05:00
Drew DeVault
fcf1bd4ebe Add datadir
And actually tested it as if I weren't a dumbass
2019-01-14 19:48:31 -05:00
Drew DeVault
1409f16aa6 Remove enable-tray properly 2019-01-14 19:44:09 -05:00
Drew DeVault
eba966c92b Add completions 2019-01-14 19:38:03 -05:00
Drew DeVault
4f44a3b2bd Add README.md, compile man pages 2019-01-13 21:24:33 -05:00
Drew DeVault
b90637e2a6 Convert swaylock into standalone project 2019-01-13 21:16:47 -05:00
Drew DeVault
c7776e7804 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
2018-10-06 12:20:12 -04:00
Arkadiusz Hiler
e184e5987f Add support for installing binaries with DT_RPATH
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-30 15:37:01 +03:00
Drew DeVault
64259db8d6 Add support for building swaylock without PAM
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-28 13:53:01 +02:00
sghctoma
2376a9c5d7 Add FreeBSD-specific PAM configuration
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-08-30 09:58:57 +02:00
Bruno Pinto
780b15be32 [swaylock] Install pam module 2018-04-20 01:29:47 +01:00
Drew DeVault
3f21cd441b Add password buffer, refactor rendering/surfaces 2018-04-04 18:47:48 -04:00
Drew DeVault
aead06f43c Link swaylock to xkbcommon 2018-04-04 18:47:48 -04:00
Drew DeVault
1ca6d92c34 Split seat code into its own file 2018-04-04 18:47:48 -04:00
Drew DeVault
2d1a44703b Initial swaylock port 2018-04-04 18:47:48 -04:00