Re: [systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-11-12 Thread Steven Noonan
On Wed, Nov 12, 2014 at 1:55 PM, Steven Noonan wrote: > On Wed, Nov 12, 2014 at 11:22 AM, "Jóhann B. Guðmundsson" > wrote: >> >> On 11/12/2014 07:00 PM, Steven Noonan wrote: >>> >>> >What's the best way to approach debugging this issue? Should I do a >>> >debug build to get a better core dump and

[systemd-devel] VLAN's not coming up "systemd-networkd.service loaded failed" + systemd-networkd seg fault

2014-11-12 Thread Brendan Horan
Hi, I am trying configure VLAN sub interfaces with networkd. When the machine boots the physical interface never seems to come UP. Thus all the sub interface VLAN's also do not get activated. I also notice systemd-networkd seg faults during boot, example message : ---

Re: [systemd-devel] Detecting inactive sessions

2014-11-12 Thread Bastien Nocera
On Tue, 2014-11-11 at 16:46 +0100, Lennart Poettering wrote: > On Wed, 29.10.14 15:45, Bastien Nocera (had...@hadess.net) wrote: > > > For a very specific definition of inactive. > > > > I'm looking at a way for the iio-sensor-proxy at: > > https://github.com/hadess/iio-sensor-proxy > > to suspen

[systemd-devel] [PATCH 2/2] keymap: Fix special keys on ThinkPad X60/X61 Tablet

2014-11-12 Thread Bastien Nocera
KEY_DIRECTION is mapped to XF86RotateWindows, to rotate the display: http://cgit.freedesktop.org/xkeyboard-config/commit/symbols/inet?id=ec875f6f9b7c4028e11d32b071989c682e6502bd And F13 is mapped to XF86Tools, which is closest to the original toolbox usage: http://cgit.freedesktop.org/xkeyboard-co

[systemd-devel] [PATCH 1/2] keymap: Add support for IBM ThinkPad X41 Tablet

2014-11-12 Thread Bastien Nocera
Scancode taken from: http://www.thinkwiki.org/wiki/Tablet_Hardware_Buttons#Linux_Support William Jon McCann provided the DMI match. IBM seems to have swapped the version and model of the system: Manufacturer: IBM Product Name: 18666TU Version: ThinkPad X41 Tablet --- hwdb/

Re: [systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-11-12 Thread Steven Noonan
On Wed, Nov 12, 2014 at 11:22 AM, "Jóhann B. Guðmundsson" wrote: > > On 11/12/2014 07:00 PM, Steven Noonan wrote: >> >> >What's the best way to approach debugging this issue? Should I do a >> >debug build to get a better core dump and wait for this to happen >> >again? >> > > > > Looks like a regr

Re: [systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-11-12 Thread Jóhann B. Guðmundsson
On 11/12/2014 07:00 PM, Steven Noonan wrote: >What's the best way to approach debugging this issue? Should I do a >debug build to get a better core dump and wait for this to happen >again? > Looks like a regression or dupe of [1] not sure why this bug has not been reopen since there is a rec

Re: [systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-11-12 Thread Steven Noonan
Forgot to explain my setup a bit: Arch Linux, x86_64, systemd 217 On Wed, Nov 12, 2014 at 9:57 AM, Steven Noonan wrote: > Hi all, > > I've been seeing this happen every now and then on a couple machines. > When I wake up in the morning and go to log in, I find X11 stopped, > and when I try to lo

[systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-11-12 Thread Steven Noonan
Hi all, I've been seeing this happen every now and then on a couple machines. When I wake up in the morning and go to log in, I find X11 stopped, and when I try to log in to the VT it hangs when trying to create a session. I am forced to reset the box and then dig through logs on the next boot. Th

Re: [systemd-devel] systemd-service for each user

2014-11-12 Thread Mantas Mikulėnas
On Wed, Nov 12, 2014 at 7:13 PM, Lutz Vieweg wrote: > On 11/11/2014 08:35 PM, Mantas Mikulėnas wrote: > >> Anyway, there is no command to "scan each user". To start multiple >> units at once, make the target want all of them individually: >> mailserver.target.wants/fetchmail@user1.service, and so

Re: [systemd-devel] [PATCH] udevadm: Use correct debug logging function

2014-11-12 Thread Kay Sievers
On Wed, Nov 12, 2014 at 10:59 AM, Martin Pitt wrote: > Hello all, > > while debugging a curious build failure of umockdev on our ARM > machines [1] I noticed a weird behaviour of udevadm wrt. debug logging > [2]. > > This patch fixes this (details are in the commit log). Kay, OK to > push? No, al

Re: [systemd-devel] systemd-service for each user

2014-11-12 Thread Lutz Vieweg
On 11/11/2014 08:35 PM, Mantas Mikulėnas wrote: Anyway, there is no command to "scan each user". To start multiple units at once, make the target want all of them individually: mailserver.target.wants/fetchmail@user1.service, and so on. That is inconvenient for > 5 and really annoying if you've

Re: [systemd-devel] [gummiboot][RFC] Add trusted boot (tboot) support to gummiboot

2014-11-12 Thread Kay Sievers
On Wed, Nov 12, 2014 at 10:30 AM, Minchev, Todor wrote: > > On Mon, 2014-11-10 at 14:20 +0500, Alexander E. Patrakov wrote: > > 10.11.2014 14:10, Minchev, Todor wrote: > > > Hello guys, > > > > > > I have been working on adding trusted boot (tboot) support to gummiboot > > > and since this require

Re: [systemd-devel] Commands started after "su - username" do not obey "systemctl set-property user.slice MemoryLimit=..."

2014-11-12 Thread Lutz Vieweg
On 11/11/2014 01:11 AM, Lennart Poettering wrote: Yet, when root uses "su - username" to change the user, no "user-xxx.slice" is created, not even a new "session" below "user-0.slice" is created, causing the wrong MemoryLimit to be applied: ... Using "su" doesn't really open a new session, it r

[systemd-devel] [PATCH v3 4/4] run: introduce timer support option

2014-11-12 Thread WaLyong Cho
Supported timer options --on-active=, --on-boot=, --on-startup=, --on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=, OnUnitInactiveSec= of timer respectively. --- man/systemd-run.xml | 42 +

[systemd-devel] [PATCH v3 2/4] timer: timer can be a transient unit

2014-11-12 Thread WaLyong Cho
--- src/core/dbus-timer.c | 159 ++ src/core/dbus-timer.h | 3 + src/core/timer.c | 4 ++ 3 files changed, 166 insertions(+) diff --git a/src/core/dbus-timer.c b/src/core/dbus-timer.c index f1f8c54..e916f5a 100644 --- a/src/core/dbus-timer.

[systemd-devel] [PATCH v3 1/4] bus: StartTransientUnit can have aux unit

2014-11-12 Thread WaLyong Cho
--- src/core/dbus-manager.c | 123 +--- 1 file changed, 105 insertions(+), 18 deletions(-) diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index c54abd3..bba4b27 100644 --- a/src/core/dbus-manager.c +++ b/src/core/dbus-manager.c @@ -615,6

[systemd-devel] [PATCH v3 3/4] unit: add UnitMask enum and get unit scope(mask) api from property

2014-11-12 Thread WaLyong Cho
--- Makefile.am | 7 ++ src/shared/.gitignore| 1 + src/shared/unit-name.c | 22 src/shared/unit-name.h | 26 + src/shared/unit-property-scope.gperf | 202 +++ 5 files changed, 258 i

[systemd-devel] [PATCH v7] tmpfiles, man: Add xattr support to tmpfiles

2014-11-12 Thread Maciej Wereski
This patch makes it possible to set extended attributes on files created by tmpfiles. This can be especially used to set SMACK security labels on volatile files and directories. It is done by adding new line of type "t". Such line should contain attributes in Argument field, using following format

[systemd-devel] [PATCH] units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN

2014-11-12 Thread Michal Sekletar
--- units/dev-hugepages.mount | 1 + 1 file changed, 1 insertion(+) diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount index d711fae..882adb4 100644 --- a/units/dev-hugepages.mount +++ b/units/dev-hugepages.mount @@ -12,6 +12,7 @@ Documentation=http://www.freedesktop.org/wiki/Sof

Re: [systemd-devel] systemd-machined sigterm, cgroups trimmed

2014-11-12 Thread Major Hayden
On Nov 6, 2014, at 11:24 AM, Lennart Poettering wrote: > > Right after the machine was started, but before machined dies, do you > see the machine's scope registered in "systemctl list-units"? Do you > see the machine show up in "machinectl"'s output? Hey Lennart, I can see the details about th

Re: [systemd-devel] [PATCHv6] tmpfiles, man: Add xattr support to tmpfiles

2014-11-12 Thread Lennart Poettering
On Wed, 12.11.14 14:01, Maciej Wereski (m.were...@partner.samsung.com) wrote: > >>+p = i->argument; > >>+ > >>+while ((n = unquote_first_word(&p, &xattr)) > 0) { > >>+if (strv_extend(&i->xattrs, xattr) < 0) > >>+return log_oom(); > >>+

Re: [systemd-devel] [PATCHv6] tmpfiles, man: Add xattr support to tmpfiles

2014-11-12 Thread Maciej Wereski
10.11.2014 at 23:55 Lennart Poettering wrote: On Thu, 30.10.14 12:21, Maciej Wereski (m.were...@partner.samsung.com) wrote: +static int get_xattrs_from_arg(Item *i) { +_cleanup_free_ char *xattr = NULL; +const char *p; +int n; + +assert(i); +if (i->t

[systemd-devel] [PATCH] selinux: figure out selinux context applied on exec() before closing all fds

2014-11-12 Thread Michal Sekletar
We need original socket_fd around otherwise mac_selinux_get_child_mls_label fails with -EINVAL return code. Also don't call setexeccon twice but rather pass context value of SELinuxContext option as an extra argument. --- src/core/execute.c| 31 ++- src/shared/s

Re: [systemd-devel] Should systemd-logind provide a DM-independent mechanism for handling guest accounts?

2014-11-12 Thread Laércio de Sousa
2014-11-11 20:56 GMT-02:00 Daniel J Walsh : > The problems would be > in having > multiple users get access to the machine at the same time. For this you > need something > that generates a UID on the fly for the user. I would expect a fairly > simple pam module > could be done for this. > One

[systemd-devel] [PATCH v2 2/2] bootchart: escape non printable process name

2014-11-12 Thread WaLyong Cho
--- src/bootchart/svg.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c index faf377e..e5569e1 100644 --- a/src/bootchart/svg.c +++ b/src/bootchart/svg.c @@ -39,6 +39,7 @@ #include "svg.h" #include "bootchart.h" #include "

[systemd-devel] [PATCH v2 1/2] utf8: intruduce utf8_escape_non_printable

2014-11-12 Thread WaLyong Cho
--- src/shared/utf8.c| 39 +++ src/shared/utf8.h| 1 + src/test/test-utf8.c | 25 + 3 files changed, 65 insertions(+) diff --git a/src/shared/utf8.c b/src/shared/utf8.c index 8702ceb..0b6c38e 100644 --- a/src/shared/utf8.c +++ b

[systemd-devel] [PATCH] udevadm: Use correct debug logging function

2014-11-12 Thread Martin Pitt
Hello all, while debugging a curious build failure of umockdev on our ARM machines [1] I noticed a weird behaviour of udevadm wrt. debug logging [2]. This patch fixes this (details are in the commit log). Kay, OK to push? Thanks, Martin [1] https://bugs.debian.org/767909 [2] https://bugs.debia

Re: [systemd-devel] [PATCH 5/5] calendar: parse months's names

2014-11-12 Thread Daniele Medri
> I am totally onboard with allowing a syntax where month names are > used, but this really should be translated into the normal chain stuff > internally, to avoid a redundant structure in memory! If you already know how to achieve the best solution for this need, lets do it! The use of month name

Re: [systemd-devel] [PATCH 2/5] man: reorganization of calendar specs

2014-11-12 Thread Daniele Medri
> > + > > + minutely → *-*-* *:*:00 > > +hourly → *-*-* *:00:00 > > + daily → *-*-* 00:00:00 > > +weekly → Mon *-*-* 00:00:00 > > + monthly → *-*-01 00:00:00 > > + quarterly → *

Re: [systemd-devel] [gummiboot][RFC] Add trusted boot (tboot) support to gummiboot

2014-11-12 Thread Minchev, Todor
On Mon, 2014-11-10 at 14:20 +0500, Alexander E. Patrakov wrote: > 10.11.2014 14:10, Minchev, Todor wrote: > > Hello guys, > > > > I have been working on adding trusted boot (tboot) support to gummiboot > > and since this requires quite a bit of new code to be added to the > > gummiboot code base I

Re: [systemd-devel] [PATCH 1/5] calendar: semesterly alias for semi-annually

2014-11-12 Thread Daniele Medri
> I am still not convinced that "semesterly" is really a good > addition. See previous comments about that: > > I am a bit conservative about that. "Semester" has a very > academic touch to it, and at least in germany the semester > usually starts in october, not in j