Home GnuPG
Diffusion GnuPG 59e785b5434d

scd: Restrict use of DEVINFO --watch command for socket connection.

Description

scd: Restrict use of DEVINFO --watch command for socket connection.

* scd/app.c (app_send_devinfo): Return GPG_ERR_INV_HANDLE when
it's not socket when KEEP_LOOPING != 0.

(cherry picked from commit d98521b934ec6a5abb0ad18e39a26009a8806c52)

  • GnuPG-bug-id: T7151
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 26 2024, 4:13 AM
wernerCommitted on Jul 1 2024, 2:16 PM
Parents
rG6996e5f6ff5d: scd: Finish DEVINFO --watch command on input close.
Branches
Unknown
Tags
Unknown
Tasks
T7151: graceful shutdown: DEVINFO should be a gpg-agent command: also watching input close