aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaylock
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-28 12:18:54 +0200
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-09-28 13:53:01 +0200
commitc9773491207d36d6f5e651adcb7a64c7a015bba3 (patch)
treeed2d195ac03609bdb1b3132d1ef748ad59132e8a /include/swaylock
parentMerge pull request #2717 from ianyfan/tablet-config (diff)
downloadsway-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.h3
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);
101void render_frames(struct swaylock_state *state); 101void render_frames(struct swaylock_state *state);
102void damage_surface(struct swaylock_surface *surface); 102void damage_surface(struct swaylock_surface *surface);
103void damage_state(struct swaylock_state *state); 103void damage_state(struct swaylock_state *state);
104void initialize_pw_backend(void);
105bool attempt_password(struct swaylock_password *pw);
106void clear_password_buffer(struct swaylock_password *pw);
104 107
105#endif 108#endif