Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-10 Thread Tom Gundersen
On Fri, Oct 10, 2014 at 12:13 AM, James Lott ja...@lottspot.com wrote: Trying to start up an openvpn connection yields the following error: Thu Oct 9 15:01:52 2014 ERROR: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1) As requested by Lennart, attached you will find

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-10 Thread Tom Gundersen
On Fri, Oct 10, 2014 at 3:38 AM, Cameron Norman camerontnor...@gmail.com wrote: udev was indeed my first thought for ethtool, however how would the ethtool commands be hooked in on containers? Or is ethtool not relevant there? In a container you'll either have devices that you have moved in

Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-10 Thread James Lott
I am using a setup which retains the CAP_NET_ADMIN capability inside the container and allows openvpn to setup the device. No persistent devices are involved. Below, I have included a snippet from a shell session which shows the command used to invoke nspawn and then the openvpn command

Re: [systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

2014-10-10 Thread Jóhann B. Guðmundsson
On 10/09/2014 11:35 PM, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Oct 09, 2014 at 01:41:24AM +0200, Lennart Poettering wrote: The ExecStart=/bin/true we just add because current systemd versions refuse to run service units that have no ExecStart= set. It is on the TODO list to allow services

Re: [systemd-devel] [PATCH] socket-proxyd: Unchecked return value from library

2014-10-10 Thread Lennart Poettering
On Fri, 10.10.14 05:57, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Thu, Oct 09, 2014 at 07:01:11PM +0530, Susant Sahani wrote: CID 1237543 (#1 of 1): Unchecked return value from library (CHECKED_RETURN) --- src/socket-proxy/socket-proxyd.c | 2 +- 1 file changed, 1

Re: [systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

2014-10-10 Thread Lennart Poettering
On Thu, 09.10.14 20:28, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 10/09/2014 02:26 PM, Lennart Poettering wrote: On Thu, 09.10.14 12:14, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 10/08/2014 11:41 PM, Lennart Poettering wrote: TODO list to allow services also when

Re: [systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

2014-10-10 Thread Lennart Poettering
On Fri, 10.10.14 01:35, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Thu, Oct 09, 2014 at 01:41:24AM +0200, Lennart Poettering wrote: The ExecStart=/bin/true we just add because current systemd versions refuse to run service units that have no ExecStart= set. It is on the TODO

[systemd-devel] [PATCH] kdbus: fix buffer overflow in bus_get_owner_kdbus() function

2014-10-10 Thread Lukasz Skalski
Commit 710fc9779b7c (kdbus repo) introduced attaching items[] instead of name[] in kdbus_cmd_conn_info struct. Commit 581fe6c81 (systemd repo) caught up with this change, but item size was not properly calculated. --- src/libsystemd/sd-bus/bus-control.c | 11 +-- 1 file changed, 5

Re: [systemd-devel] [PATCH] kdbus: fix buffer overflow in bus_get_owner_kdbus() function

2014-10-10 Thread Daniel Mack
On 10/10/2014 12:29 PM, Lukasz Skalski wrote: Commit 710fc9779b7c (kdbus repo) introduced attaching items[] instead of name[] in kdbus_cmd_conn_info struct. Commit 581fe6c81 (systemd repo) caught up with this change, but item size was not properly calculated. Thanks for spotting this!

Re: [systemd-devel] [RFC 19/25] mount-setup: skip relabelling when SELinux and SMACK not supported

2014-10-10 Thread Lennart Poettering
On Thu, 18.09.14 15:24, Emil Renner Berthing (syst...@esmil.dk) wrote: This is also the only place where FTW_ACTIONRETVAL is used, so this makes systemd compile without SELinux or SMACK support when the standard library doesn't support this extension. I applied this one. It's probably a good

Re: [systemd-devel] [RFC 21/25] make sure basename that doesn't alter it's argument

2014-10-10 Thread Lennart Poettering
On Thu, 18.09.14 15:24, Emil Renner Berthing (syst...@esmil.dk) wrote: What's the rationale here? The GNU version of basename() appears a lot more useful than the POSIX. I am find with switching to the POSIX version of libc calls if both have more or less equivalent functionality or they are used

Re: [systemd-devel] [RFC 00/25] Compile against the musl libc

2014-10-10 Thread Lennart Poettering
On Thu, 18.09.14 21:21, Emil Renner Berthing (syst...@esmil.dk) wrote: Hi Tom, On 18 September 2014 18:29, Tom Gundersen t...@jklm.no wrote: In general, I don't think we should add patches for the sole purpose of non-glibc compatibility. You would in most cases be much better served by

Re: [systemd-devel] systemd service for kinit

2014-10-10 Thread Lennart Poettering
On Wed, 17.09.14 12:44, Günther J. Niederwimmer (g...@gjn.priv.at) wrote: Hello, I have a problem with kinit (krb5) before on my old system this works with a cron file @reboot root /usr/bin/sleep 120 /usr/bin/kinit -k host/. now with systemd I can't say why, the extra

Re: [systemd-devel] [PATCH] fstab-generator: Honor mount.usr*= on kernel command line

2014-10-10 Thread Tobias Hunger
Thanks to everybody for taking the time to review this (and to explain git over email to me!). I know all of you -- and especially Lennart -- are pressed for time with that LibreOffice merge:-) Best Regards, Tobias On Fri, Oct 10, 2014 at 12:57 PM, Lennart Poettering lenn...@poettering.net

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-10 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 09, 2014 at 07:24:07AM +0200, Marcel Holtmann wrote: For the wpa_supplicant, we are going to fix that one with a proper daemon soon. Interesting. Can you shed some light on this? Zbyszek ___ systemd-devel mailing list

[systemd-devel] [PATCH] bus-proxyd: fix compatibility with old dbus-1

2014-10-10 Thread Lukasz Skalski
'ListQueuedOwners' method should return 'NameHasNoOwner' error if chosen name is not available on bus. --- src/bus-proxyd/bus-proxyd.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c index 4f44825..52498f3 100644 ---

Re: [systemd-devel] Should user mode linux register with machined?

2014-10-10 Thread Lennart Poettering
On Wed, 17.09.14 10:24, Richard Weinberger (richard.weinber...@gmail.com) wrote: On Wed, Sep 17, 2014 at 1:09 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Tue, Sep 16, 2014 at 05:31:05PM +0200, Thomas Meyer wrote: Hi, I wrote a small patch for user-mode linux to register

Re: [systemd-devel] Should user mode linux register with machined?

2014-10-10 Thread Richard Weinberger
Lennart, Am 10.10.2014 um 18:44 schrieb Lennart Poettering: It's a bit more complex. While UML, qemu, kvm, currently don't, LXC, systemd-nspawn and libvirt-lxc all do talk directly to machined. (Note that LXC and libvirt-lxc are separate codebases, the latter is *not* a wrapper around the

Re: [systemd-devel] Bug? /dev/disk/by-path symlinks disappear for iSCSI targets

2014-10-10 Thread Lee Duncan
Ping? I will submit a patch that fixes this regression for SCSI, but I suspect other transports will have problems, too, since the by-path links will now be missing. On 10/07/2014, I wrote: Date: Tue, 07 Oct 2014 21:21:11 +0500 From: Lee Duncan ldun...@suse.com To:

[systemd-devel] Request for clarification of use implementation of new (systemd = v214) network-pre.target

2014-10-10 Thread PGNd
systemd v214 introduced the new network-related target, network-pre.target. It cleanly provides a convenient and timley pre-network state trigger for Before= use in unit ordering. As originally conceived, and currently implemented, it's of particular use for secure, early init of firewalls,

Re: [systemd-devel] Request for clarification of use implementation of new (systemd = v214) network-pre.target

2014-10-10 Thread Tom Gundersen
On Fri, Oct 10, 2014 at 7:14 PM, PGNd d...@pgnd.us wrote: (2) [systemd-networkd] does not appear to be required for either network.target, or network-online.target ... Correct. The point of network-pre.target is that whatever network manager you are using must be ordered After= it, so that

Re: [systemd-devel] Request for clarification of use implementation of new (systemd = v214) network-pre.target

2014-10-10 Thread Andrei Borzenkov
В Fri, 10 Oct 2014 10:14:47 -0700 PGNd d...@pgnd.us пишет: systemd v214 introduced the new network-related target, network-pre.target. It cleanly provides a convenient and timley pre-network state trigger for Before= use in unit ordering. As originally conceived, and currently

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-10 Thread Dale R. Worley
From: Tom Gundersen t...@jklm.no What we do, however, is to expose the configuration state using the sd-network C API, which external programs can watch and react on (see how timesyncd and resolved currently works). In a situation where one wants to do what a hook does, having a separate

Re: [systemd-devel] [PATCH] bus-proxyd: fix compatibility with old dbus-1

2014-10-10 Thread Daniel Mack
On 10/10/2014 04:42 PM, Lukasz Skalski wrote: 'ListQueuedOwners' method should return 'NameHasNoOwner' error if chosen name is not available on bus. Applied, thanks! --- src/bus-proxyd/bus-proxyd.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/bus-proxyd/bus-proxyd.c

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-10-10 Thread Anatol Pomozov
Hi On Fri, Sep 12, 2014 at 1:09 PM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: On Thu, Sep 11, 2014 at 10:48 PM, Tom Gundersen t...@jklm.no wrote: On Fri, Sep 12, 2014 at 12:26 AM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: On Thu, Sep 11, 2014 at 2:43 PM, Tom Gundersen

Re: [systemd-devel] [RFC v2 3/6] kthread: warn on kill signal if not OOM

2014-10-10 Thread Tom Gundersen
On Fri, Oct 10, 2014 at 11:54 PM, Anatol Pomozov anatol.pomo...@gmail.com wrote: 1) Why not to make the timeout configurable through config file? There is already udev.conf you can put config option there. Thus people with modprobe issues can easily fix the problem. And then decrease default