]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: Pass GPG_TTY and TERM environment variables
authorAndrea Bolognani <abologna@redhat.com>
Thu, 16 Nov 2023 18:12:34 +0000 (19:12 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 20 Nov 2023 09:18:59 +0000 (10:18 +0100)
commit65bf8fc9cf5a2e3d33ddb4984f45e26524899312
treebc7bd634622a413768c226476f07eaa92ceb6b67
parent3ad5817053aa779c9536a624f260774b7afb64f6
rpc: Pass GPG_TTY and TERM environment variables

gpg-agent can be used instead of ssh-agent to authenticate
against an SSH server, but in order to do so the GPG_TTY and
TERM environment variables need to be passed through.

For obvious reasons, we avoid doing that when no_tty=1 is found
in the connection URI.

https://bugs.debian.org/843863
https://gitlab.com/libvirt/libvirt/-/merge_requests/290

Thanks: Guilhem Moulin <guilhem@guilhem.org>
Thanks: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/rpc/virnetsocket.c