Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kde/kwallet-pam
PAM Integration with KWallet - Unlock KWallet when you login
https://github.com/kde/kwallet-pam
Last synced: 4 days ago
JSON representation
PAM Integration with KWallet - Unlock KWallet when you login
- Host: GitHub
- URL: https://github.com/kde/kwallet-pam
- Owner: KDE
- Created: 2015-09-18T14:21:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-12T11:43:31.000Z (2 months ago)
- Last Synced: 2024-09-12T21:24:09.591Z (2 months ago)
- Language: C
- Homepage: https://invent.kde.org/plasma/kwallet-pam
- Size: 345 KB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSES/BSD-3-Clause.txt
Awesome Lists containing this project
README
How kwallet-pam works:
During the pam "auth" (pam_authenticate) stage the module gets the password in plain text.
It hashes it against a random salt previously generated by kwallet of random data and keeps it in memory.When we get to the "session" (pam_open_session) stage the pam module forks and launches kwalletd as the user with file descriptor AND a socket.
We send the salted password over the file descriptor after forking and write the socket address to an env variable.KWalletd recieves the pre-hashed key and then sits there doing nothing. (before the QApplication constructor)
Later after session startup (autostart apps phase 0) a small script passes the newly set environment from the user session to kwalletd over the socket.
kwalletd receives this, sets the environment variables and continues into the normal bootup.
The session env is needed as if we launch pre session various important env vars are not set and kwalletd is a graphical app.