[systemd-devel] [PATCH] syslog: apply requested datagram size before sysctl

Kay Sievers kay at vrfy.org
Thu Jul 24 05:36:36 PDT 2014


On Thu, Jul 24, 2014 at 10:53 AM, Umut Tezduyar Lindskog
<umut.tezduyar at axis.com> wrote:
> systemd-sysctl runs after syslog.socket since syslog.socket
> has DefaultDependencies=no. Due to this, syslog.socket
> is created with default value of net.unix.max_dgram_qlen.
> ---
>  units/syslog.socket |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/units/syslog.socket b/units/syslog.socket
> index e6e9cf8..4e23953 100644
> --- a/units/syslog.socket
> +++ b/units/syslog.socket
> @@ -16,6 +16,7 @@ Before=sockets.target shutdown.target
>  Conflicts=shutdown.target
>
>  [Socket]
> +ExecStartPre=/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/unix/max_dgram_qlen

We should avoid execing binaries from default configuration like this.
Things should be fixed where they are broken.

The kernel needs a way to set that value, and we should introduce a
per-socket config option to be used in this file instead.

Kay


More information about the systemd-devel mailing list