[systemd-devel] [PATCH] libudev-monitor: ensure proper string termination

2015-01-24 Thread Topi Miettinen
Leave space for the terminating zero when reading and make sure that the last byte is zero. This also makes the check for long packets equivalent to code before 9c89c1ca: reject also packets with size 8192. --- src/libudev/libudev-monitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[systemd-devel] PrivateDevices with more than basic set of devices?

2015-01-24 Thread Topi Miettinen
Hello, It would be useful to be able to use PrivateDevices with additional devices to the basic set (null, zero, urandom etc). For example, smartd only needs access to /dev/sd*. It would be a bit complex to do this without help of systemd, you would have to set up the private /dev filesystem by ha

[systemd-devel] Examples in man pages (was: Re: service.d/.conf files and multi-valued options)

2015-01-24 Thread Christian Seiler
Am 23.01.2015 um 15:20 schrieb Zbigniew Jędrzejewski-Szmek: > I think it would be great to have an Examples section in > systemd.{unit, service,socket,path,...} giving a semi-realistic > example of a unit that can serve as a template. For systemd.socket > there should be two: an Accept=yes and A

Re: [systemd-devel] Examples in man pages (was: Re: service.d/.conf files and multi-valued options)

2015-01-24 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Jan 24, 2015 at 02:13:00PM +0100, Christian Seiler wrote: > Am 23.01.2015 um 15:20 schrieb Zbigniew Jędrzejewski-Szmek: > > I think it would be great to have an Examples section in > > systemd.{unit, service,socket,path,...} giving a semi-realistic > > example of a unit that can serve as

Re: [systemd-devel] Examples in man pages

2015-01-24 Thread Christian Seiler
Am 24.01.2015 um 15:18 schrieb Zbigniew Jędrzejewski-Szmek: > On Sat, Jan 24, 2015 at 02:13:00PM +0100, Christian Seiler wrote: >> + >> +Making a unit enableable >> + >> +The following snippet makes a unit >> +(

Re: [systemd-devel] [PATCH] po: update Russian translation

2015-01-24 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Jan 23, 2015 at 09:04:31PM +0300, Sergey Ptashnick wrote: > Add strings for importd. > From 64baca737227adef94b9b02000ce018777b1c989 Mon Sep 17 00:00:00 2001 > From: Sergey Ptashnick <0comff...@inbox.ru> > Date: Fri, 23 Jan 2015 20:56:36 +0300 > Subject: [PATCH] po: update Russian translat

[systemd-devel] BUG: several bugs in core/main.c (v218)

2015-01-24 Thread Tomasz Pawlak
core/main.c:1519 /* Make sure we leave a core dump without panicing the * kernel. */ if (getpid() == 1) { install_crash_handler(); r = mount_cgroup_controllers(arg_join_controllers); if (r < 0) goto finish; }

Re: [systemd-devel] [PATCH] libudev-monitor: ensure proper string termination

2015-01-24 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Jan 24, 2015 at 10:39:56AM +0200, Topi Miettinen wrote: > Leave space for the terminating zero when reading and make sure > that the last byte is zero. This also makes the check for long packets > equivalent to code before 9c89c1ca: reject also packets with size 8192. > --- > src/libudev/l

Re: [systemd-devel] BUG: several bugs in core/main.c (v218)

2015-01-24 Thread Andrei Borzenkov
В Sun, 25 Jan 2015 03:37:09 +0100 "Tomasz Pawlak" пишет: > core/main.c:1519 > /* Make sure we leave a core dump without panicing the >* kernel. */ > if (getpid() == 1) { > install_crash_handler(); > > r = mount_cgroup_controllers(arg_join_controlle

Re: [systemd-devel] [PATCH] libudev-monitor: ensure proper string termination

2015-01-24 Thread Topi Miettinen
On 01/25/15 03:34, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Jan 24, 2015 at 10:39:56AM +0200, Topi Miettinen wrote: >> Leave space for the terminating zero when reading and make sure >> that the last byte is zero. This also makes the check for long packets >> equivalent to code before 9c89c1ca: