All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Implement SSH commands in QEMU GA for Windows
@ 2024-03-21 16:07 aidan_leuck
  2024-03-21 16:07 ` [PATCH v2 1/2] " aidan_leuck
  2024-03-21 16:07 ` [PATCH v2 2/2] Refactor common functions between POSIX and Windows implementation aidan_leuck
  0 siblings, 2 replies; 6+ messages in thread
From: aidan_leuck @ 2024-03-21 16:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: kkostiuk, aidaleuc

From: aidaleuc <aidan_leuck@selinc.com>

This patch aims to implement guest-ssh-add-authorized-keys, guest-ssh-remove-authorized-keys, and guest-ssh-get-authorized-keys
for Windows. This PR is based on Microsoft's OpenSSH implementation https://github.com/PowerShell/Win32-OpenSSH. The guest agents 
will support Kubevirt and allow guest agent propagation to be used to dynamically inject SSH keys. 
https://kubevirt.io/user-guide/virtual_machines/accessing_virtual_machines/#dynamic-ssh-public-key-injection-via-qemu-guest-agent

Changes since v1
* Fixed styling errors
* Moved from wcstombs to g_utf functions
* Removed unnecessary if checks on calls to free
* Fixed copyright headers
* Refactored create_acl functions into base function, admin function and user function
* Removed unused user count function
* Split up refactor of existing code into a separate patch

aidaleuc (2):
  Implement SSH commands in QEMU GA for Windows
  Refactor common functions between POSIX and Windows implementation

 qga/commands-posix-ssh.c   |  47 +--
 qga/commands-ssh-core.c    |  57 +++
 qga/commands-ssh-core.h    |   8 +
 qga/commands-windows-ssh.c | 784 +++++++++++++++++++++++++++++++++++++
 qga/commands-windows-ssh.h |  26 ++
 qga/meson.build            |   8 +-
 qga/qapi-schema.json       |  22 +-
 7 files changed, 894 insertions(+), 58 deletions(-)
 create mode 100644 qga/commands-ssh-core.c
 create mode 100644 qga/commands-ssh-core.h
 create mode 100644 qga/commands-windows-ssh.c
 create mode 100644 qga/commands-windows-ssh.h

-- 
2.44.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-22 14:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-21 16:07 [PATCH v2 0/2] Implement SSH commands in QEMU GA for Windows aidan_leuck
2024-03-21 16:07 ` [PATCH v2 1/2] " aidan_leuck
2024-03-22 10:31   ` Daniel P. Berrangé
2024-03-22 14:24     ` Aidan Leuck
2024-03-21 16:07 ` [PATCH v2 2/2] Refactor common functions between POSIX and Windows implementation aidan_leuck
2024-03-22 10:15   ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.