]> git.feebdaed.xyz Git - 0xmirror/strongswan.git/commit
nm: Pass back the username auth-dialog runs as to access ssh-agent socket
authorTobias Brunner <tobias@strongswan.org>
Thu, 4 Dec 2025 12:56:31 +0000 (13:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 10 Dec 2025 17:34:19 +0000 (18:34 +0100)
commitd7608ca1922152c07d5e3d4597c267cb84f0d7c0
treecea427606ea9a2c2c8706bd2b784f64a20342c31
parent7cc8973db70f70252ba6a59039c678e9933cf8c7
nm: Pass back the username auth-dialog runs as to access ssh-agent socket

This ensures we access the socket as user who NM ran the auth-dialog for,
especially for system-wide connections where the connection does not
mention a user.

We also make sure we don't use the cached socket and user of a previous
connection attempt, because system-wide connections might be used by
different users.
src/charon-nm/nm/nm_service.c
src/frontends/gnome/auth-dialog/main.c