[PATCH v9 1/2] Refactor common functions between POSIX and Windows implementation

2024-04-24 Thread aidan_leuck
From: aidaleuc Signed-off-by: Aidan Leuck --- qga/commands-common-ssh.c | 50 +++ qga/commands-common-ssh.h | 10 qga/commands-posix-ssh.c | 47 +--- qga/meson.build | 1 + 4 files changed, 62 insertions(+)

[PATCH v9 0/2] Implement SSH commands in QEMU GA for Windows

2024-04-24 Thread aidan_leuck
From: Aidan Leuck 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 Kubev

[PATCH v9 2/2] Implement SSH commands in QEMU GA for Windows

2024-04-24 Thread aidan_leuck
From: aidaleuc Signed-off-by: Aidan Leuck --- qga/commands-windows-ssh.c | 712 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 5 +- qga/qapi-schema.json | 17 +- 4 files changed, 749 insertions(+), 11 deletions(-) create mode 1

[PATCH v8 1/2] Refactor common functions between POSIX and Windows implementation

2024-04-23 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-common-ssh.c | 50 +++ qga/commands-common-ssh.h | 10 qga/commands-posix-ssh.c | 47 +--- qga/meson.build | 1 + 4 files changed, 62 insertions(+), 4

[PATCH v8 0/2] Implement SSH commands in QEMU GA for Windows

2024-04-23 Thread aidan_leuck
From: aidaleuc 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

[PATCH v8 2/2] Implement SSH commands in QEMU GA for Windows

2024-04-23 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 712 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 5 +- qga/qapi-schema.json | 17 +- 4 files changed, 749 insertions(+), 11 deletions(-) create mode 1006

[PATCH v7 2/2] Implement SSH commands in QEMU GA for Windows

2024-04-22 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 712 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 7 +- qga/qapi-schema.json | 17 +- 4 files changed, 750 insertions(+), 12 deletions(-) create mode 1006

[PATCH v7 1/2] Refactor common functions between POSIX and Windows implementation

2024-04-22 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-common-ssh.c | 50 +++ qga/commands-common-ssh.h | 10 qga/commands-posix-ssh.c | 47 +--- qga/meson.build | 1 + 4 files changed, 62 insertions(+), 4

[PATCH v7 0/2] Implement SSH commands in QEMU GA for Windows

2024-04-22 Thread aidan_leuck
From: aidaleuc Changes since v6 * Fixed issue with file permissions causing public keys to be rejected by the SSH server. credit (kkostiuk) Older versions of OpenSSH such as the one shipped with Windows Server 2022 are more stringent on file permissions. * Removed everyone group from create_ac

[PATCH v6 1/2] Refactor common functions between POSIX and Windows implementation

2024-03-29 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-common-ssh.c | 50 +++ qga/commands-common-ssh.h | 10 qga/commands-posix-ssh.c | 47 +--- qga/meson.build | 1 + 4 files changed, 62 insertions(+), 4

[PATCH v6 2/2] Implement SSH commands in QEMU GA for Windows

2024-03-29 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 789 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 5 +- qga/qapi-schema.json | 17 +- 4 files changed, 826 insertions(+), 11 deletions(-) create mode 1006

[PATCH v6 0/2] Implement SSH commands in QEMU GA for Windows

2024-03-29 Thread aidan_leuck
From: aidaleuc 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

[PATCH v5 0/2] Implement SSH commands in QEMU GA for Windows

2024-03-28 Thread aidan_leuck
From: aidaleuc 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

[PATCH v5 2/2] Implement SSH commands in QEMU GA for Windows

2024-03-28 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 789 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 5 +- qga/qapi-schema.json | 17 +- 4 files changed, 826 insertions(+), 11 deletions(-) create mode 1006

[PATCH v5 1/2] Refactor common functions between POSIX and Windows implementation

2024-03-28 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-common-ssh.c | 50 ++ qga/commands-common-ssh.h | 10 qga/commands-posix-ssh.c | 51 +++ qga/meson.build | 1 + 4 files changed, 64 insertions(+),

[PATCH v4 1/2] Refactor common functions between POSIX and Windows implementation

2024-03-27 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-common-ssh.c | 49 + qga/commands-common-ssh.h | 12 + qga/commands-posix-ssh.c | 51 +++ qga/meson.build | 1 + 4 files changed, 65 insertions(+),

[PATCH v4 0/2] Implement SSH commands in QEMU GA for Windows

2024-03-27 Thread aidan_leuck
From: aidaleuc 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

[PATCH v4 2/2] Implement SSH commands in QEMU GA for Windows

2024-03-27 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 789 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 7 +- qga/qapi-schema.json | 17 +- 4 files changed, 827 insertions(+), 12 deletions(-) create mode 1006

[PATCH v3 2/2] Implement SSH commands in QEMU GA for Windows

2024-03-22 Thread aidan_leuck
From: Aidan Leuck Signed-off-by: Aidan Leuck --- qga/commands-windows-ssh.c | 791 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 5 +- qga/qapi-schema.json | 17 +- 4 files changed, 828 insertions(+), 11 deletions(-) create mod

[PATCH v3 1/2] Refactor common functions between POSIX and Windows implementation

2024-03-22 Thread aidan_leuck
From: Aidan Leuck Signed-off-by: Aidan Leuck --- qga/commands-posix-ssh.c | 47 + qga/commands-ssh-core.c | 57 qga/commands-ssh-core.h | 8 ++ qga/meson.build | 1 + 4 files changed, 67 insertions(+), 46

[PATCH v3 0/2] Implement SSH commands in QEMU GA for Windows

2024-03-22 Thread aidan_leuck
From: Aidan Leuck 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 Kubev

[PATCH v2 2/2] Refactor common functions between POSIX and Windows implementation

2024-03-21 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-posix-ssh.c | 47 +-- qga/commands-ssh-core.c| 57 qga/commands-ssh-core.h| 8 + qga/commands-windows-ssh.c | 66 +- qga/meson.buil

[PATCH v2 1/2] Implement SSH commands in QEMU GA for Windows

2024-03-21 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-windows-ssh.c | 848 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 9 +- qga/qapi-schema.json | 22 +- 4 files changed, 892 insertions(+), 13 deletions(-) create mode 1006

[PATCH v2 0/2] Implement SSH commands in QEMU GA for Windows

2024-03-21 Thread aidan_leuck
From: aidaleuc 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

[PATCH v2 2/2] Implement QEMU GA commands for Windows

2024-03-20 Thread aidan_leuck
From: Aidan Leuck Signed-off-by: Aidan Leuck --- qga/commands-posix-ssh.c | 47 +--- qga/commands-ssh-core.c| 57 + qga/commands-ssh-core.h| 15 + qga/commands-windows-ssh.c | 64 -- qg

[PATCH v2 1/2] Implement QEMU GA commands for Windows

2024-03-20 Thread aidan_leuck
From: Aidan Leuck Signed-off-by: Aidan Leuck --- qga/commands-windows-ssh.c | 823 + qga/commands-windows-ssh.h | 26 ++ qga/meson.build| 9 +- qga/qapi-schema.json | 22 +- 4 files changed, 867 insertions(+), 13 deletions(-) create mod

[PATCH v2 0/2] Implement QEMU GA commands for Windows

2024-03-20 Thread aidan_leuck
From: Aidan Leuck * 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 refa

[PATCH] Implement SSH commands in QEMU GA for Windows

2024-03-19 Thread aidan_leuck
From: aidaleuc Signed-off-by: aidaleuc --- qga/commands-posix-ssh.c | 47 +-- qga/commands-ssh-core.c| 52 +++ qga/commands-ssh-core.h| 20 ++ qga/commands-windows-ssh.c | 686 + qga/meson.build| 6 +- qga/qapi-schema.json |