ssh-proxy: Support ssh machine/xxx for nspawn containers

This commit is contained in:
Daan De Meyer
2026-02-19 21:32:29 +01:00
committed by Daan De Meyer
parent 3b51529cbf
commit e6be5fb720
3 changed files with 57 additions and 11 deletions
+5
View File
@@ -157,6 +157,11 @@ int stat_verify_socket(const struct stat *st) {
return 0;
}
int is_socket(const char *path) {
assert(!isempty(path));
return verify_stat_at(AT_FDCWD, path, /* follow= */ true, stat_verify_socket, /* verify= */ false);
}
int stat_verify_linked(const struct stat *st) {
assert(st);
+1
View File
@@ -21,6 +21,7 @@ int fd_verify_symlink(int fd);
int is_symlink(const char *path);
int stat_verify_socket(const struct stat *st);
int is_socket(const char *path);
int stat_verify_linked(const struct stat *st);
int fd_verify_linked(int fd);