Re: [systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-21 Thread Piotr Wilczek
On 07/11/2014 01:16 PM, Lennart Poettering wrote: On Fri, 11.07.14 13:02, Piotr Wilczek (p.wilc...@samsung.com) wrote: B) Now, as a shortcut we use the same sock actually, via sendto() to also pass data to /run/systemd/journal/syslog, which is where a secondary syslog server should listen on,

Re: [systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-21 Thread Umut Tezduyar Lindskog
On Mon, Jul 21, 2014 at 1:04 PM, Piotr Wilczek p.wilc...@samsung.com wrote: On 07/11/2014 01:16 PM, Lennart Poettering wrote: On Fri, 11.07.14 13:02, Piotr Wilczek (p.wilc...@samsung.com) wrote: B) Now, as a shortcut we use the same sock actually, via sendto() to also pass data to

[systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-11 Thread Piotr Wilczek
Currently syslog socket is not correctly verified if is in connected state. This results in sending messages to a socket that is not connected which is not allowed. In this patch the socket is correctly checked. If the socket is not connected forwarding to syslog is disabled. This patch causes

Re: [systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-11 Thread Lennart Poettering
On Fri, 11.07.14 09:52, Piotr Wilczek (p.wilc...@samsung.com) wrote: Currently syslog socket is not correctly verified if is in connected state. This results in sending messages to a socket that is not connected which is not allowed. In this patch the socket is correctly checked. If the

Re: [systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-11 Thread Piotr Wilczek
-Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Friday, July 11, 2014 12:44 PM To: Piotr Wilczek Cc: systemd-devel@lists.freedesktop.org; Kyungmin Park; Lukasz Stelmach; Juho Son; Bartlomiej Zolnierkiewicz Subject: Re: [systemd-devel] [PATCH]

Re: [systemd-devel] [PATCH] journald: check if socket is in connected state before forwarding to syslog

2014-07-11 Thread Lennart Poettering
On Fri, 11.07.14 13:02, Piotr Wilczek (p.wilc...@samsung.com) wrote: B) Now, as a shortcut we use the same sock actually, via sendto() to also pass data to /run/systemd/journal/syslog, which is where a secondary syslog server should listen on, which will then also receieve the data. THis