summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorSam Leonard <sam.leonard@codethink.co.uk>2024-01-22 17:12:39 +0100
committerSam Leonard <sam.leonard@codethink.co.uk>2024-02-15 15:08:20 +0100
commitb4d4ebe850d7de6c485a790c5334de1da0760ee1 (patch)
treef6df40088ebda5119f884b697e5c4b5434549885 /src/journal-remote
parentjournald: implement socket forwarding (diff)
downloadsystemd-b4d4ebe850d7de6c485a790c5334de1da0760ee1.tar.xz
systemd-b4d4ebe850d7de6c485a790c5334de1da0760ee1.zip
journal-remote: allow AF_VSOCK and AF_UNIX for --listen-raw
This allows log messages forwarded over an AF_UNIX or AF_VSOCK socket by journald to be received by systemd-journal-remote.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 2d309d1236..084a3d8c91 100644
--- a/src/journal-remote/journal-remote.c
+++ b/src/journal-remote/journal-remote.c
@@ -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;