diff options
| author | Yaroslav <contact@yaroslavps.com> | 2020-07-13 03:12:20 +0300 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2020-07-13 15:49:10 +0200 |
| commit | c46a5197a24c7597404199165763239eb60fe714 (patch) | |
| tree | 2115b5a33a000a4012afb4b0057be88ed44b8f68 | |
| parent | a99afe6a7075c962da72b140f02e18318052d833 (diff) | |
refresh pam credentials after successful authentication
| -rw-r--r-- | pam.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -112,6 +112,8 @@ void run_pw_backend_child(void) { pw_buf = NULL; } + pam_setcred(auth_handle, PAM_REFRESH_CRED); + if (pam_end(auth_handle, pam_status) != PAM_SUCCESS) { swaylock_log(LOG_ERROR, "pam_end failed"); exit(EXIT_FAILURE); |
