https://gitlab.synchro.net/main/sbbs/-/commit/a3ff74e5877848ff21e93655
Added Files:
src/ssh/key_algo/private-key-file-posix.c private-key-file-win32.c private-key-file.h
Modified Files:
src/ssh/CMakeLists.txt deucessh.pc.in src/ssh/key_algo/rsa-sha2-256-botan.cpp rsa-sha2-256-openssl.c rsa-sha2-512-botan.cpp rsa-sha2-512-openssl.c ssh-ed25519-botan.cpp ssh-ed25519-openssl.c src/ssh/test/CMakeLists.txt test_algo_key.c
Log Message:
ssh: restrict private key file permissions
Create private key files with owner-only access on POSIX and Windows, and tighten existing files before truncating them. Preserve the existing Windows owner when an elevated process rewrites a key so the original user does not lose access.
Co-Authored-By: OpenAI Codex <
noreply@openai.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net