Skip to content

Commit

Permalink
journal-remote: allow AF_VSOCK and AF_UNIX for --listen-raw
Browse files Browse the repository at this point in the history
This allows log messages forwarded over an AF_UNIX or AF_VSOCK socket by
journald to be received by systemd-journal-remote.

(cherry picked from commit b4d4ebe)
  • Loading branch information
sam-leonard-ct authored and bluca committed Apr 23, 2024
1 parent 564692e commit cea50a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/journal-remote/journal-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,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;

Expand Down

0 comments on commit cea50a1

Please sign in to comment.