diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-28 12:18:54 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-09-28 13:53:01 +0200 |
commit | c9773491207d36d6f5e651adcb7a64c7a015bba3 (patch) | |
tree | ed2d195ac03609bdb1b3132d1ef748ad59132e8a /include/swaylock | |
parent | Merge pull request #2717 from ianyfan/tablet-config (diff) | |
download | sway-c9773491207d36d6f5e651adcb7a64c7a015bba3.tar.gz sway-c9773491207d36d6f5e651adcb7a64c7a015bba3.tar.zst sway-c9773491207d36d6f5e651adcb7a64c7a015bba3.zip |
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.
Diffstat (limited to 'include/swaylock')
-rw-r--r-- | include/swaylock/swaylock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index 2f0cd34d..970e3cc9 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h | |||
@@ -101,5 +101,8 @@ void render_frame(struct swaylock_surface *surface); | |||
101 | void render_frames(struct swaylock_state *state); | 101 | void render_frames(struct swaylock_state *state); |
102 | void damage_surface(struct swaylock_surface *surface); | 102 | void damage_surface(struct swaylock_surface *surface); |
103 | void damage_state(struct swaylock_state *state); | 103 | void damage_state(struct swaylock_state *state); |
104 | void initialize_pw_backend(void); | ||
105 | bool attempt_password(struct swaylock_password *pw); | ||
106 | void clear_password_buffer(struct swaylock_password *pw); | ||
104 | 107 | ||
105 | #endif | 108 | #endif |