[systemd-devel] [PATCH] test-dhcp6-client: Fix option length

2014-08-28 Thread Patrik Flykt
The whole DHCPv6 test message length was incorrectly used as the length of DHCPv6 options causing the following bad memory access: $ build/test-dhcp6-client Assertion 'interface_index >= -1' failed at ../src/libsystemd-network/sd-dhcp6-client.c:129, function sd_dhcp6_client_set_index(). Ignoring

Re: [systemd-devel] [PATCHv6 0/3] hibernate-resume: implement support for resuming from hibernation

2014-08-28 Thread Andrei Borzenkov
В Thu, 28 Aug 2014 19:36:53 +0200 Jan Janssen пишет: > On Thursday 28 August 2014 11:33:44 Ivan Shapovalov wrote: > > On Thursday 28 August 2014 at 06:25:51, Jan Janssen wrote: > > > Ivan Shapovalov gmail.com> writes: > > > > On Wednesday 27 August 2014 at 03:16:10, Zbigniew Jędrzejewski-Szmek

Re: [systemd-devel] [PATCH 1/3] systemd-firstboot.service: fix man page section

2014-08-28 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Aug 28, 2014 at 10:01:44PM +0200, Marius Tessmann wrote: > Found with systemd-analyze verify. Heh. Applied all three. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/system

Re: [systemd-devel] Systemd-networkd doesn't add static routes anymore

2014-08-28 Thread Moviuro
After git bisect-ing (following dreisner's instructions on #systemd), I get the following info: 38de08a does not add static routes ccf1c02 systemd-networkd is broken (does not run) (crash) 54cba0b systemd-networkd is broken (does not run) (crash) 3c9b886 systemd-networkd is broken (does not run)

Re: [systemd-devel] systemd-resolved, multi-home DNS resolution, VPNs, and privacy

2014-08-28 Thread Tom Gundersen
On Thu, Aug 28, 2014 at 10:08 PM, Josh Triplett wrote: > The documentation for systemd-resolved says it sends DNS queries on all > interfaces. That seems like a bug for privacy and security reasons: I > don't necessarily want a query for foo.internalhost.com going anywhere > other than my VPN for

[systemd-devel] systemd-resolved, multi-home DNS resolution, VPNs, and privacy

2014-08-28 Thread Josh Triplett
The documentation for systemd-resolved says it sends DNS queries on all interfaces. That seems like a bug for privacy and security reasons: I don't necessarily want a query for foo.internalhost.com going anywhere other than my VPN for internalhost.com, and if I run a VPN for privacy purposes then

[systemd-devel] [PATCH 2/3] systemd-firstboot: fix typo in man page

2014-08-28 Thread Marius Tessmann
--- man/systemd-firstboot.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/systemd-firstboot.xml b/man/systemd-firstboot.xml index 5da0a75..8d97302 100644 --- a/man/systemd-firstboot.xml +++ b/man/systemd-firstboot.xml @@ -101,7 +101,7 @@ allows systemd-

[systemd-devel] [PATCH 1/3] systemd-firstboot.service: fix man page section

2014-08-28 Thread Marius Tessmann
Found with systemd-analyze verify. --- units/systemd-firstboot.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/systemd-firstboot.service.in b/units/systemd-firstboot.service.in index a8719a8..6cdde5b 100644 --- a/units/systemd-firstboot.service.in +++ b/units/

[systemd-devel] [PATCH 3/3] systemd-journal-upload: fix invalid After=

2014-08-28 Thread Marius Tessmann
After= belongs into [Unit], not [Install]. Found with systemd-analyze verify. --- units/systemd-journal-upload.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/systemd-journal-upload.service.in b/units/systemd-journal-upload.service.in index e79f962..359ff10 10

Re: [systemd-devel] [PATCH 0/2] units: add and use ConditionInitrd= instead of checking for /etc/initrd-release.

2014-08-28 Thread Lennart Poettering
On Wed, 27.08.14 22:48, Thomas Bächler (tho...@archlinux.org) wrote: > Am 27.08.2014 um 20:25 schrieb Ivan Shapovalov: > > On Wednesday 27 August 2014 at 20:19:45, Lennart Poettering wrote: > >> On Wed, 27.08.14 20:26, Ivan Shapovalov (intelfx...@gmail.com) wrote: > >> > >>> This is as proposed

Re: [systemd-devel] [PATCH 0/2] units: add and use ConditionInitrd= instead of checking for /etc/initrd-release.

2014-08-28 Thread Lennart Poettering
On Thu, 28.08.14 19:44, Thomas Bächler (tho...@archlinux.org) wrote: > Am 27.08.2014 um 22:48 schrieb Thomas Bächler: > > Am 27.08.2014 um 20:25 schrieb Ivan Shapovalov: > >> On Wednesday 27 August 2014 at 20:19:45, Lennart Poettering wrote: > >>> On Wed, 27.08.14 20:26, Ivan Shapovalov (intelfx.

Re: [systemd-devel] [PATCH 0/2] units: add and use ConditionInitrd= instead of checking for /etc/initrd-release.

2014-08-28 Thread Thomas Bächler
Am 27.08.2014 um 22:48 schrieb Thomas Bächler: > Am 27.08.2014 um 20:25 schrieb Ivan Shapovalov: >> On Wednesday 27 August 2014 at 20:19:45, Lennart Poettering wrote: >>> On Wed, 27.08.14 20:26, Ivan Shapovalov (intelfx...@gmail.com) wrote: >>> This is as proposed by Thomas in review of my

Re: [systemd-devel] [PATCHv6 0/3] hibernate-resume: implement support for resuming from hibernation

2014-08-28 Thread Jan Janssen
On Thursday 28 August 2014 11:33:44 Ivan Shapovalov wrote: > On Thursday 28 August 2014 at 06:25:51, Jan Janssen wrote: > > Ivan Shapovalov gmail.com> writes: > > > On Wednesday 27 August 2014 at 03:16:10, Zbigniew Jędrzejewski-Szmek > > > wrote: > > > > On Tue, Aug 26, 2014 at 10:21:59PM +0200,

[systemd-devel] [PATCH] firstboot: remove extra paranoia in --root checking

2014-08-28 Thread Dave Reisner
Some package managers will chroot before running post-install and post-upgrade scripts. Doing this prevents systemd-firstboot from being used piecemeal at installation or upgrade time, as the --root=/ will be "cleverly" ignored. There's already enough sanity checks in this tool that we don't also

Re: [systemd-devel] Systemd-networkd doesn't add static routes anymore

2014-08-28 Thread Moviuro
So I downgraded to systemd 215-4 with the same kernel (3.16.1) and now I get my routes on tap0 as well as the 'tap0: link configured' message. Cheers, On Thursday 28 August 2014 17:27:12 you wrote: > Hi all, > > I'm using systemd 216 on Archlinux (uptodate). > Everything worked fine at last boot

[systemd-devel] Systemd-networkd doesn't add static routes anymore

2014-08-28 Thread Moviuro
Hi all, I'm using systemd 216 on Archlinux (uptodate). Everything worked fine at last boot (systemd 215, kernel 3.14.1) Here is my tap0.network: [Match] Name=tap0 [Network] DHCP=yes [Route] Gateway=10.3.16.1 Destination=10.3.14.0/24 [Route] Gateway=10.3.16.1 Destination=10.3.15.0/24 And the

[systemd-devel] bad memory access in test-dhcp6-client

2014-08-28 Thread Zbigniew Jędrzejewski-Szmek
Hi, when systemd is compiled with --enable-address-sanitizer, $subject happens: $ build/test-dhcp6-client Assertion 'interface_index >= -1' failed at ../src/libsystemd-network/sd-dhcp6-client.c:129, function sd_dhcp6_client_set_index(). Ignoring.

Re: [systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread Lennart Poettering
On Thu, 28.08.14 10:50, Koen Kooi (k...@dominion.thruhere.net) wrote: > Hi, Heya, > I am working on a system (http://www.acmesystems.it/arietta) where I > hooked up the button as a power key: > > > https://github.com/koenkooi/linux/commit/c823e0b046efcfff61e21fa4c89d5d68090ef6de > > Evt

Re: [systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread David Herrmann
Hi On Thu, Aug 28, 2014 at 10:50 AM, Koen Kooi wrote: > Hi, > > I am working on a system (http://www.acmesystems.it/arietta) where I hooked > up the button as a power key: > > > https://github.com/koenkooi/linux/commit/c823e0b046efcfff61e21fa4c89d5d68090ef6de > > Evtest shows it doing t

Re: [systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread Mantas Mikulėnas
On Thu, Aug 28, 2014 at 4:35 PM, Koen Kooi wrote: > > > Op 28 aug. 2014, om 11:06 heeft Mantas Mikulėnas het > volgende geschreven: > > > On Thu, Aug 28, 2014 at 11:50 AM, Koen Kooi > > wrote: > >> > >> Hi, > >> > >> I am working on a system (http://www.acmesystems.it/arietta) where I > >> ho

Re: [systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread Koen Kooi
Op 28 aug. 2014, om 11:06 heeft Mantas Mikulėnas het volgende geschreven: > On Thu, Aug 28, 2014 at 11:50 AM, Koen Kooi > wrote: >> >> Hi, >> >> I am working on a system (http://www.acmesystems.it/arietta) where I hooked >> up the button as a power key: >> >> >> https://github.com

Re: [systemd-devel] [RFC 03/12] bus: add two new bus_*_map_*_properties() helpers

2014-08-28 Thread David Herrmann
Hi On Wed, Dec 11, 2013 at 1:40 AM, Lennart Poettering wrote: > On Thu, 28.11.13 09:21, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> Hi >> >> On Wed, Nov 27, 2013 at 10:58 PM, Lennart Poettering >> wrote: >> > On Wed, 27.11.13 19:48, David Herrmann (dh.herrm...@gmail.com) wrote: >> > >>

Re: [systemd-devel] [PATCH V7] use the switch_root function in shutdown

2014-08-28 Thread Harald Hoyer
On 28.08.2014 15:24, Lennart Poettering wrote: > On Thu, 28.08.14 15:23, har...@redhat.com (har...@redhat.com) wrote: > >> From: Harald Hoyer >> >> removes code duplication >> >> also move switch-root to shared > > > Looks good! Please push! Thanks! > > Lennart > pushed, thanks!

Re: [systemd-devel] [PATCH V7] use the switch_root function in shutdown

2014-08-28 Thread Lennart Poettering
On Thu, 28.08.14 15:23, har...@redhat.com (har...@redhat.com) wrote: > From: Harald Hoyer > > removes code duplication > > also move switch-root to shared Looks good! Please push! Thanks! Lennart -- Lennart Poettering, Red Hat ___ systemd-devel m

[systemd-devel] [PATCH V7] use the switch_root function in shutdown

2014-08-28 Thread harald
From: Harald Hoyer removes code duplication also move switch-root to shared --- V2: - Removed all references to "/mnt" in switch_root() and the bogus comment. V3: - moved switch-root.[ch] to shared - added switch to mount MS_MOVE or MS_BIND the old dirs V4: - mkdir_p_label() in switch_root() V

Re: [systemd-devel] [PATCH 2/2 v3] socket: introduce SELinuxContextFromNet option

2014-08-28 Thread Lennart Poettering
On Thu, 28.08.14 12:56, Michal Sekletar (msekl...@redhat.com) wrote: > On Tue, Aug 26, 2014 at 08:54:01PM +0200, Lennart Poettering wrote: > > On Mon, 25.08.14 10:02, Michal Sekletar (msekl...@redhat.com) wrote: > > > > > +int label_get_our_label(char **label) { > > > +int r = 0; > > > +

Re: [systemd-devel] [PATCH] use the switch_root function in shutdown

2014-08-28 Thread Lennart Poettering
On Thu, 28.08.14 14:01, har...@redhat.com (har...@redhat.com) wrote: > > if (!in_container && !in_initrd() && > access("/run/initramfs/shutdown", X_OK) == 0) { > - > -if (prepare_new_root() >= 0 && > -pivot_to_new_root() >= 0) { > +

Re: [systemd-devel] [PATCH] journal: do server_vacuum for sigusr1

2014-08-28 Thread WaLyong Cho
On 08/28/2014 09:33 PM, WaLyong Cho wrote: > runtime journal is migrated to system journal when only > "/run/systemd/journal/flushed" exist. It's ok but according to this > the system journal directory size(max use) can be over the config. If > journal is not rotated during some time the journal di

[systemd-devel] [PATCH] journal: do server_vacuum for sigusr1

2014-08-28 Thread WaLyong Cho
runtime journal is migrated to system journal when only "/run/systemd/journal/flushed" exist. It's ok but according to this the system journal directory size(max use) can be over the config. If journal is not rotated during some time the journal directory can be remained as over the config(or defau

[systemd-devel] [PATCH] use the switch_root function in shutdown

2014-08-28 Thread harald
From: Harald Hoyer removes code duplication also move switch-root to shared --- V2: - Removed all references to "/mnt" in switch_root() and the bogus comment. V3: - moved switch-root.[ch] to shared - added switch to mount MS_MOVE or MS_BIND the old dirs V4: - mkdir_p_label() in switch_root() V

[systemd-devel] [PATCH V5] use the switch_root function in shutdown

2014-08-28 Thread harald
From: Harald Hoyer removes code duplication also move switch-root to shared --- V2: - Removed all references to "/mnt" in switch_root() and the bogus comment. V3: - moved switch-root.[ch] to shared - added switch to mount MS_MOVE or MS_BIND the old dirs V4: - mkdir_p_label() in switch_root() V5

Re: [systemd-devel] [PATCH 2/2 v3] socket: introduce SELinuxContextFromNet option

2014-08-28 Thread Michal Sekletar
On Tue, Aug 26, 2014 at 08:54:01PM +0200, Lennart Poettering wrote: > On Mon, 25.08.14 10:02, Michal Sekletar (msekl...@redhat.com) wrote: > > > +int label_get_our_label(char **label) { > > +int r = 0; > > +char *l = NULL; > > + > > +#ifdef HAVE_SELINUX > > +r = getcon(&l);

Re: [systemd-devel] [PATCH] tty-ask-password-agent: reset a signal handler for SIGTERM to the default

2014-08-28 Thread HATAYAMA, Daisuke
(2014/08/28 4:46), Lennart Poettering wrote: On Wed, 27.08.14 09:47, HATAYAMA, Daisuke (d.hatay...@jp.fujitsu.com) wrote: Sounds like the right option here... I have now added a slightly different patch (1dedb74a2e1d840b531b76b01a76979f3b57456b) that does this. Thanks! But this could still

Re: [systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread Mantas Mikulėnas
On Thu, Aug 28, 2014 at 11:50 AM, Koen Kooi wrote: > > Hi, > > I am working on a system (http://www.acmesystems.it/arietta) where I hooked > up the button as a power key: > > > https://github.com/koenkooi/linux/commit/c823e0b046efcfff61e21fa4c89d5d68090ef6de > > Evtest shows it doing the

[systemd-devel] Having systemd shutdown when pressing the power button

2014-08-28 Thread Koen Kooi
Hi, I am working on a system (http://www.acmesystems.it/arietta) where I hooked up the button as a power key: https://github.com/koenkooi/linux/commit/c823e0b046efcfff61e21fa4c89d5d68090ef6de Evtest shows it doing the right thing (issuing KEY_POWER) when being pressed, but systemd see

Re: [systemd-devel] Build errors with lto and compat-libs

2014-08-28 Thread Dan Horák
On Thu, 28 Aug 2014 09:53:27 +0200 Michael Olbrich wrote: > On Tue, Aug 26, 2014 at 09:42:38PM +0200, Lennart Poettering wrote: > > On Tue, 26.08.14 15:15, Michael Olbrich (m.olbr...@pengutronix.de) > > wrote: > > > On Mon, Aug 18, 2014 at 03:48:09PM +0200, Lennart Poettering > > > wrote: > > > >

Re: [systemd-devel] Build errors with lto and compat-libs

2014-08-28 Thread Michael Olbrich
On Tue, Aug 26, 2014 at 09:42:38PM +0200, Lennart Poettering wrote: > On Tue, 26.08.14 15:15, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > On Mon, Aug 18, 2014 at 03:48:09PM +0200, Lennart Poettering wrote: > > > On Sun, 17.08.14 09:54, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > >

Re: [systemd-devel] [PATCHv6 0/3] hibernate-resume: implement support for resuming from hibernation

2014-08-28 Thread Ivan Shapovalov
On Thursday 28 August 2014 at 06:25:51, Jan Janssen wrote: > Ivan Shapovalov gmail.com> writes: > > > > > On Wednesday 27 August 2014 at 03:16:10, Zbigniew Jędrzejewski-Szmek wrote: > > > On Tue, Aug 26, 2014 at 10:21:59PM +0200, Lennart Poettering wrote: > > > > On Wed, 27.08.14 00:17, I