]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-remote: allow AF_VSOCK and AF_UNIX for --listen-raw
authorSam Leonard <sam.leonard@codethink.co.uk>
Mon, 22 Jan 2024 16:12:39 +0000 (16:12 +0000)
committerSam Leonard <sam.leonard@codethink.co.uk>
Thu, 15 Feb 2024 14:08:20 +0000 (14:08 +0000)
This allows log messages forwarded over an AF_UNIX or AF_VSOCK socket by
journald to be received by systemd-journal-remote.

src/journal-remote/journal-remote.c

index 2d309d12362ae02b1eb0fbeb5c6f807d9c0896aa..084a3d8c913ee4c1f9a51458af517dbef514d4c4 100644 (file)
@@ -516,7 +516,9 @@ static int accept_connection(
 
         switch (socket_address_family(addr)) {
         case AF_INET:
-        case AF_INET6: {
+        case AF_INET6:
+        case AF_VSOCK:
+        case AF_UNIX: {
                 _cleanup_free_ char *a = NULL;
                 char *b;