add argument: default_ssh_auth_sock and some fixes#35
Conversation
|
Thank you it solved my problem. I can use pam_ssh_auth_sock in polkit-1. #include "misc.h"
...
if(default_ssh_auth_sock && user) {
default_ssh_auth_sock = pamsshagentauth_percent_expand(default_ssh_auth_sock,
"h", getpwnam(user)->pw_dir,
"u", user, NULL);
}I'm not sure this is the way to achieve %h, %u expansion in code, but it does it's job. |
35feee2 to
a2dfbae
Compare
Allow user in default sock path
35caa32 to
0df053b
Compare
0df053b to
d7865aa
Compare
948d9dd to
3c8ab96
Compare
I found this very useful, also. Today, it was brought to my attention that Thanks @edward-p |
Useful when
SSH_AUTH_SOCKcan't be set in environment. For example: loging in from a Display Manager (such as SDDM).