mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
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.
This commit is contained in:
parent
58af001517
commit
c977349120
7 changed files with 233 additions and 76 deletions
|
|
@ -101,5 +101,8 @@ void render_frame(struct swaylock_surface *surface);
|
|||
void render_frames(struct swaylock_state *state);
|
||||
void damage_surface(struct swaylock_surface *surface);
|
||||
void damage_state(struct swaylock_state *state);
|
||||
void initialize_pw_backend(void);
|
||||
bool attempt_password(struct swaylock_password *pw);
|
||||
void clear_password_buffer(struct swaylock_password *pw);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue