Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-25 Thread Samuli Suominen
On 26/03/14 03:38, Kay Sievers wrote: > On Mon, Mar 17, 2014 at 1:43 AM, Lennart Poettering > wrote: >> On Sun, 16.03.14 19:49, Samuli Suominen (ssuomi...@gentoo.org) wrote: >> >>> On 16/03/14 15:52, Zbigniew Jędrzejewski-Szmek wrote: On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-25 Thread Kai Hendry
On 25 March 2014 18:01, Kai Hendry wrote: > Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device On #systemd IRC I was recommended After=, and I think it's working as it should! After=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device > Is Requires= incorrect? Is my escapi

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Stephan Raue
Am 26.03.2014 03:12, schrieb Kay Sievers: On Wed, Mar 26, 2014 at 2:40 AM, Kay Sievers wrote: On Wed, Mar 26, 2014 at 2:37 AM, Stephan Raue wrote: Am 26.03.2014 02:16, schrieb Kay Sievers: On Wed, Mar 26, 2014 at 1:45 AM, Stephan Raue wrote: systemd-212 breaks if we run autoreconf before

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Kay Sievers
On Wed, Mar 26, 2014 at 2:40 AM, Kay Sievers wrote: > On Wed, Mar 26, 2014 at 2:37 AM, Stephan Raue > wrote: >> Am 26.03.2014 02:16, schrieb Kay Sievers: >> >>> On Wed, Mar 26, 2014 at 1:45 AM, Stephan Raue >>> wrote: systemd-212 breaks if we run autoreconf before configuring and buil

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-25 Thread Kay Sievers
On Mon, Mar 17, 2014 at 1:43 AM, Lennart Poettering wrote: > On Sun, 16.03.14 19:49, Samuli Suominen (ssuomi...@gentoo.org) wrote: > >> >> On 16/03/14 15:52, Zbigniew Jędrzejewski-Szmek wrote: >> > On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: >> >> Since -Wl,-fuse-ld=gold addit

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Kay Sievers
On Wed, Mar 26, 2014 at 2:37 AM, Stephan Raue wrote: > Am 26.03.2014 02:16, schrieb Kay Sievers: > >> On Wed, Mar 26, 2014 at 1:45 AM, Stephan Raue >> wrote: >>> >>> systemd-212 breaks if we run autoreconf before configuring and building >>> with: >>> >>> autoreconf: running: >>> >>> /home/stepha

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Stephan Raue
Am 26.03.2014 02:16, schrieb Kay Sievers: On Wed, Mar 26, 2014 at 1:45 AM, Stephan Raue wrote: systemd-212 breaks if we run autoreconf before configuring and building with: autoreconf: running: /home/stephan/projects/openelec-master/build.OpenELEC-Generic.x86_64-devel/toolchain/bin/automake --

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Kay Sievers
On Wed, Mar 26, 2014 at 1:45 AM, Stephan Raue wrote: > systemd-212 breaks if we run autoreconf before configuring and building > with: > > autoreconf: running: > /home/stephan/projects/openelec-master/build.OpenELEC-Generic.x86_64-devel/toolchain/bin/automake > --add-missing --copy --force-missing

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Stephan Raue
Hi, systemd-212 breaks if we run autoreconf before configuring and building with: autoreconf: running: /home/stephan/projects/openelec-master/build.OpenELEC-Generic.x86_64-devel/toolchain/bin/automake --add-missing --copy --force-missing Makefile.am:36: warning: user target '.PRECIOUS' defi

Re: [systemd-devel] Topics for the Linux Storage, Filesystem & MM Summit

2014-03-25 Thread David Timothy Strauss
Other than for zswap discussions, I spent the whole time on the storage and file system side. I've filled in the topics that came up (or I could topically ask about), and I have some good contacts now if answering any others proves essential. Outside the file system/MM space, at least one Ganesha

[systemd-devel] [ANNOUNCE] systemd 212

2014-03-25 Thread Kay Sievers
Many bugfixes, and a number of new features: http://www.freedesktop.org/software/systemd/systemd-212.tar.xz CHANGES WITH 212: * When restoring the screen brightness at boot, stay away from the darkest setting or from the lowest 5% of the available range, depending on

Re: [systemd-devel] [PATCHv2] src/systemd: fix grammar and spelling errors in comments

2014-03-25 Thread Lennart Poettering
On Mon, 24.03.14 23:14, Jason St. John (jstj...@purdue.edu) wrote: THanks! Applied! > --- > This is a resubmit that now should apply cleanly on the latest master. > > > src/systemd/_sd-common.h | 4 +-- > src/systemd/sd-event.h | 6 ++-- > src/systemd/sd-id128.h | 2 +- > src/syst

Re: [systemd-devel] [PATCH] build: change tcpwrappers support to disabled by default

2014-03-25 Thread David Timothy Strauss
On Mon, Mar 24, 2014 at 12:16 PM, Lennart Poettering wrote: > So on Fedora tcpwrap is unlikely to go away soon. Not necessarily. We just decided this morning in the server working group that we would only include it if base OS insists: http://meetbot.fedoraproject.org/fedora-meeting-1/2014-03-25

Re: [systemd-devel] [PATCH] build: change tcpwrappers support to disabled by default

2014-03-25 Thread Michael Biebl
2014-03-20 20:29 GMT+01:00 Lennart Poettering : > > TO figure out what we can do in Fedora I have now started a discussion > on fedora-devel, about getting rid of tcpwrap system-wide. Let's see > where this goes. Would be interested in feedback about this from other > distros too. I don't really h

Re: [systemd-devel] [PATCH] core: make parsing of chkconfig headers conditional

2014-03-25 Thread Michael Biebl
2014-03-25 0:14 GMT+01:00 Lennart Poettering : > On Mon, 24.03.14 23:59, Michael Biebl (mbi...@gmail.com) wrote: >> I think the priority information is irrelevant in this particular >> issue. It's the discrepancy regarding runlevel information. >> >> So I doubt your patch makes a difference, but I'

Re: [systemd-devel] sudo -u app_user systemctl --user

2014-03-25 Thread David Schmitt
On 25.03.2014 15:10, Mantas Mikulėnas wrote: >> What behavior do you want? > > > The requirement I initially asked about, is this: given the proper sudoers entry allow user alice to run > > $ sudo -u bob systemctl --user reload nginx.service > > and have it work. My analysis ended at th

[systemd-devel] System locale not set in tty

2014-03-25 Thread Armin K.
Hello there, I'm using stock systemd-211 release and I have noticed today that locale isn't set anymore in tty. My X session, which runs on tty1 has the locale correctly set up, but when I swich to tty2 and log in, the locale is set to POSIX, LANG isn't set at all. Is this expected behaviour or

Re: [systemd-devel] [PATCH 1/1] sd-rtnl: add support for tunnel attributes

2014-03-25 Thread Tom Gundersen
On Tue, Mar 25, 2014 at 9:43 AM, Susant Sahani wrote: > Added support for tunneling netlink attrributes (ipip, gre, sit). > These works with kernel module ipip, gre and sit . The test cases are > moved to a separate file and manual test as well because they require > respective kernel modules as w

Re: [systemd-devel] [PATCH] Fix permissions on new journal files

2014-03-25 Thread Dave Reisner
On Tue, Mar 25, 2014 at 09:09:57AM -0700, Greg KH wrote: > On Tue, Mar 25, 2014 at 12:01:01PM -0400, Dave Reisner wrote: > > On Tue, Mar 25, 2014 at 04:54:34PM +0100, Thomas Bächler wrote: > > > Am 25.03.2014 01:40, schrieb Lennart Poettering: > > > >> This is just a kludge... Why is system.journal

Re: [systemd-devel] [PATCH] Fix permissions on new journal files

2014-03-25 Thread Greg KH
On Tue, Mar 25, 2014 at 12:01:01PM -0400, Dave Reisner wrote: > On Tue, Mar 25, 2014 at 04:54:34PM +0100, Thomas Bächler wrote: > > Am 25.03.2014 01:40, schrieb Lennart Poettering: > > >> This is just a kludge... Why is system.journal to be treated differently? > > >> It seems that the proper fix i

Re: [systemd-devel] [PATCH] Fix permissions on new journal files

2014-03-25 Thread Dave Reisner
On Tue, Mar 25, 2014 at 04:54:34PM +0100, Thomas Bächler wrote: > Am 25.03.2014 01:40, schrieb Lennart Poettering: > >> This is just a kludge... Why is system.journal to be treated differently? > >> It seems that the proper fix is to set the mode on the directory properly > >> during installation.

Re: [systemd-devel] [PATCH] Fix permissions on new journal files

2014-03-25 Thread Thomas Bächler
Am 25.03.2014 01:40, schrieb Lennart Poettering: >> This is just a kludge... Why is system.journal to be treated differently? >> It seems that the proper fix is to set the mode on the directory properly >> during installation. > > Precisely, packaging script are expected to properly chown and setf

Re: [systemd-devel] [PATCH] Fix permissions on new journal files

2014-03-25 Thread Greg KH
On Tue, Mar 25, 2014 at 01:40:18AM +0100, Lennart Poettering wrote: > On Fri, 14.03.14 03:28, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > On Fri, Mar 14, 2014 at 12:07:35AM +, Greg KH wrote: > > > When starting up journald on a new system, set the proper permissions on >

Re: [systemd-devel] [PATCH] core: add startup resource control option

2014-03-25 Thread WaLyong Cho
On 03/25/2014 05:01 AM, Lennart Poettering wrote: > On Tue, 25.03.14 01:03, WaLyong Cho (walyong@samsung.com) wrote: > >> /* Figure out which controllers we need */ >> >> -if (c->cpu_accounting || c->cpu_shares != 1024) >> +if (c->cpu_accounting || >> +c-

Re: [systemd-devel] sudo -u app_user systemctl --user

2014-03-25 Thread Mantas Mikulėnas
On Mar 25, 2014 2:33 PM, "David Schmitt" wrote: > > On 25.03.2014 12:59, "Jóhann B. Guðmundsson" wrote: >> >> >> On 03/25/2014 08:42 AM, David Schmitt wrote: >>> >>> If that is a better supported way of achieving my goal of giving a set >>> of users the power to manage their own services... >> >>

Re: [systemd-devel] [PATCH 1/1] sd-rtnl: Introduce container parsing

2014-03-25 Thread Tom Gundersen
On Tue, Mar 25, 2014 at 3:16 AM, Susant Sahani wrote: >> I now pushed an alternative patch. Could you have a look if it makes >> sense to you? > > If am not wrong *sd_rtnl_message_enter_container* trying to parse > (rtnl_message_parse) > every time a attribute is requested which is inside nested a

Re: [systemd-devel] Documentation error for systemctl kill?

2014-03-25 Thread Alan Stern
On Tue, 25 Mar 2014, Lennart Poettering wrote: > On Thu, 13.03.14 14:54, Alan Stern (st...@rowland.harvard.edu) wrote: > > > In systemd 208 (the version currently distributed in Fedora 20), the > > man page for the systemctl(1) kill command says: > > > > Send a signal to one or more process

Re: [systemd-devel] [RFC PATCH] service: add Restart option to execute StartLimitAction immediately

2014-03-25 Thread Michael Olbrich
Hi, On Mon, Mar 24, 2014 at 08:30:09PM +0100, Lennart Poettering wrote: > On Thu, 20.03.14 12:52, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > The idea is to reboot immediately when a service crashes or the watchdog > > triggers. This is useful in embedded scenarios when there is only one

[systemd-devel] [PATCH 2/2] service: add support for reboot argument when triggered by StartLimitAction=

2014-03-25 Thread Michael Olbrich
When rebooting with systemctl, an optional argument can be passed to the reboot system call. This makes it possible the specify the argument in a service file and use it when the service triggers a restart. This is useful to distinguish between manual reboots and reboots caused by failing services.

[systemd-devel] [PATCH 1/2] systemctl: delete REBOOT_PARAM_FILE if no parameter is specified

2014-03-25 Thread Michael Olbrich
And move it to sperate function. --- src/shared/util.c | 16 src/shared/util.h | 2 ++ src/systemctl/systemctl.c | 9 +++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/shared/util.c b/src/shared/util.c index ffe6624..0260d17 100644 ---

Re: [systemd-devel] sudo -u app_user systemctl --user

2014-03-25 Thread David Schmitt
On 25.03.2014 12:59, "Jóhann B. Guðmundsson" wrote: On 03/25/2014 08:42 AM, David Schmitt wrote: If that is a better supported way of achieving my goal of giving a set of users the power to manage their own services... Can you further explain why you want to do that? What's the use case here

[systemd-devel] udevd-work: ressize 1024 too short

2014-03-25 Thread Robert Milasan
Hello, seems that under some conditions in udev_rules_apply_to_event (@TK_M_PROGRAM) the fact that result is 1024 bytes creates problems if the output of the running command/app is bigger then 1024 bytes. For example, having a VG with 1000 PVs, can create this issue. Actually the issue is created,

Re: [systemd-devel] sudo -u app_user systemctl --user

2014-03-25 Thread Jóhann B. Guðmundsson
On 03/25/2014 08:42 AM, David Schmitt wrote: If that is a better supported way of achieving my goal of giving a set of users the power to manage their own services... Can you further explain why you want to do that? What's the use case here for embedded/server/desktop? What are you trying t

[systemd-devel] [PATCH 1/2] Add more password agent information

2014-03-25 Thread David Härdeman
Add an (optional) "Id" key in the password agent .ask files. The Id is supposed to be a simple string in ":" form which is used to provide more information on what the requested passphrase is to be used for (which e.g. allows an agent to only react to cryptsetup requests). (v2: rebased, fixed inde

[systemd-devel] [PATCH 0/2] Password agent fixes

2014-03-25 Thread David Härdeman
The following series contains patch 1 - 2 of the previous patchset that I've posted, hopefully all of Lennart's comments should have been taken into account (patch 3 was already applied in a reworked fashion). I've left out the binary protocol patch until I've written unit tests. --- David Härde

[systemd-devel] [PATCH 2/2] Fix keysize handling in cryptsetup (bits vs. bytes)

2014-03-25 Thread David Härdeman
The command line key-size is in bits but the libcryptsetup API expects bytes. Note that the modulo 8 check is in the original cryptsetup binary as well, so it's no new limitation. (v2: changed the point at which the /= 8 is performed, rebased, removed tabs) --- src/cryptsetup/cryptsetup.c | 11

Re: [systemd-devel] [PATCH 1/3] Add more password agent information

2014-03-25 Thread David Härdeman
On Tue, Mar 25, 2014 at 09:50:10AM +0100, Benjamin SANS wrote: >* On Tuesday, 25 March 2014 01:46, David Härdeman wrote: >> Bejamin's approach does not seem to solve the binary key part of the >> puzzle either...(passing binary keys from the keyscript, as opposed to >> passphrases). > >Actually it

[systemd-devel] Requiring hardware device and escaping device names

2014-03-25 Thread Kai Hendry
Hi, I have a keyboard daemon that sometimes fails to come up, I guess because the device is not there. However my current attempt does not work: [hendry@alarmpi ~]$ cat /usr/lib/systemd/system/shkd.service [Unit] Description=Simple HotKey Daemon Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2deven

Re: [systemd-devel] [PATCH] systemctl: refuse to do kexec, if no kernel is loaded

2014-03-25 Thread Harald Hoyer
Am 24.03.2014 20:43, schrieb Lennart Poettering: > On Tue, 18.03.14 14:14, har...@redhat.com (har...@redhat.com) wrote: > >> From: Harald Hoyer >> >> Doing a kexec with no kernel loaded would currently issue a normal reboot. >> This might not be wanted, if the goal of kexec is to circumvent the b

Re: [systemd-devel] [PATCH 4/4] Add binary password agent protocol

2014-03-25 Thread David Härdeman
On Tue, Mar 25, 2014 at 01:58:27AM +0100, Lennart Poettering wrote: >On Tue, 04.02.14 00:57, David Härdeman (da...@hardeman.nu) wrote: > >Sorry for the later review! > >> Add binary string handling functions and extend the password agent >> protocol to support binary strings (using "=" as a string

Re: [systemd-devel] [PATCH 1/3] Add more password agent information

2014-03-25 Thread Benjamin SANS
Hi David * On Tuesday, 25 March 2014 01:46, David Härdeman wrote: > > I think Benjamin and I have basically both come up with the same > solution (though I haven't changed the option from "keyscript=" to > "keyhandler=" since that would break backwards compatibility...which is > partly the point

Re: [systemd-devel] sudo -u app_user systemctl --user

2014-03-25 Thread David Schmitt
On 24.03.2014 20:27, Lennart Poettering wrote: On Thu, 20.03.14 12:43, David Schmitt (da...@dasz.at) wrote: The systemd --user stuff is not complete yet, and will likely be complete only when kdbus support is completed too. Note that systemd --user is only for real login users though, and the s

[systemd-devel] [PATCH 1/1] sd-rtnl: add support for tunnel attributes

2014-03-25 Thread Susant Sahani
Added support for tunneling netlink attrributes (ipip, gre, sit). These works with kernel module ipip, gre and sit . The test cases are moved to a separate file and manual test as well because they require respective kernel modules as well. --- Makefile.am | 11 ++- src/

Re: [systemd-devel] [PATCH] add keyhandler support to cryptsetup

2014-03-25 Thread Benjamin SANS
* On Monday, 24 March 2014 23:24, Lennart Poettering wrote: > > No grokking what this is about really? What do you need the param for, > why isn't the existing agent logic good enough for this? Do you need > some identifier to pass across, or what is supposed to be included > there? > The goal

Re: [systemd-devel] [PATCH] core: make parsing of chkconfig headers conditional

2014-03-25 Thread Frederic Crozat
Le lundi 24 mars 2014 à 19:24 +0100, Lennart Poettering a écrit : > On Mon, 24.03.14 19:20, Frederic Crozat (fcro...@suse.com) wrote: > > > Le lundi 24 mars 2014 à 18:58 +0100, Lennart Poettering a écrit : > > > > > It's simply that the PID file info in the chkconfig header is just > > > increadi