Re: [systemd-devel] systemd39: journald segfault brings down some user services

2012-03-05 Thread Lennart Poettering
On Mon, 20.02.12 23:35, Olav Vitters ([email protected]) wrote: > > On Thu, Feb 09, 2012 at 08:12:55PM +0100, Lennart Poettering wrote: > > Now, of course, the journal shouldn't crash in the first place. This bug > > is still something to fix, but so far nobody managed to get me a bt of > > this. i

Re: [systemd-devel] [PATCH] mount: properly check return for mount_add_*

2012-03-05 Thread Lennart Poettering
On Fri, 17.02.12 12:17, Dave Reisner ([email protected]) wrote: > Previously, mount_load_etc_fstab() could never fail for reasons other > than a setmntent() or allocation failure. Applied. Thanks! > --- > src/mount.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --gi

Re: [systemd-devel] [PATCH v2] src/systemd-bash-completion.sh: get rid of awk, sed and grep

2012-03-05 Thread Lennart Poettering
On Tue, 21.02.12 15:48, [email protected] ([email protected]) wrote: > From: Harald Hoyer > > Get rid of "awk", "sed" and "grep" calls. > This can be done entirely in bash! Thanks! Applied! Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd

Re: [systemd-devel] [PATCH 1/1] nspawn: less cryptic error when clone() fails due to lack of adaquate namespace support in kernel

2012-03-05 Thread Lennart Poettering
On Tue, 28.02.12 11:40, shawn ([email protected]) wrote: > Running systemd-nspawn on a Linux kernel compiled without > > CONFIG_NAMESPACES=y > CONFIG_UTS_NS=y > CONFIG_IPC_NS=y > CONFIG_PID_NS=y > CONFIG_NET_NS=y > > fails with the cryptic error message > > clone() failed: Inva

[systemd-devel] [PATCH] nspawn: less cryptic error when clone() fails due to lack of adaquate namespace support in kernel

2012-03-05 Thread Shawn Landden
Running systemd-nspawn on a Linux kernel compiled without CONFIG_NAMESPACES=y CONFIG_UTS_NS=y CONFIG_IPC_NS=y CONFIG_PID_NS=y CONFIG_NET_NS=y fails with the cryptic error message clone() failed: Invalid argument Give user a more helpful error message when clone() fails --- src/nspa

Re: [systemd-devel] [PATCH] Circumvent autofs_v5_packet_union size bug

2012-03-05 Thread Thomas Meyer
Am Montag, den 05.03.2012, 16:20 +0100 schrieb Kay Sievers: > On Tue, Nov 15, 2011 at 16:52, Thomas Meyer wrote: > > Am 14.11.2011 um 03:35 schrieb Ian Kent : > > > Another solution would be to explicitly add 4 filler bytes to the structure > > to have an 8 byte alignment, like the compiler does

Re: [systemd-devel] [PATCH] Circumvent autofs_v5_packet_union size bug

2012-03-05 Thread Kay Sievers
On Mon, Mar 5, 2012 at 19:10, Thomas Meyer wrote: > Am Montag, den 05.03.2012, 16:20 +0100 schrieb Kay Sievers: >> On Tue, Nov 15, 2011 at 16:52, Thomas Meyer wrote: >> > Am 14.11.2011 um 03:35 schrieb Ian Kent : >> >> > Another solution would be to explicitly add 4 filler bytes to the >> > stru

Re: [systemd-devel] [PATCH 2/2] main: added support for loading IMA custom policies

2012-03-05 Thread Mimi Zohar
On Mon, 2012-03-05 at 17:15 +0100, Roberto Sassu wrote: > On 03/05/2012 03:39 PM, Lennart Poettering wrote: > > On Wed, 22.02.12 15:52, Roberto Sassu ([email protected]) wrote: > > > > Heya, > > > >> + policy = mmap(NULL, policy_size, PROT_READ, MAP_PRIVATE, policyfd, > >> 0); > >> +

Re: [systemd-devel] Regression in v40? User session inside a unit.

2012-03-05 Thread Lennart Poettering
On Mon, 20.02.12 01:27, Colin Guthrie ([email protected]) wrote: > Hi, > > Not sure if this is an intended regression or not but a user reported a > problem to me recently which I thought was a little strange. It's maybe > been fixed already in newer versions (we were in a beta semi-freeze and

Re: [systemd-devel] [PATCH 2/2] main: added support for loading IMA custom policies

2012-03-05 Thread Roberto Sassu
On 03/05/2012 03:39 PM, Lennart Poettering wrote: On Wed, 22.02.12 15:52, Roberto Sassu ([email protected]) wrote: Heya, + policy = mmap(NULL, policy_size, PROT_READ, MAP_PRIVATE, policyfd, 0); + if (policy == MAP_FAILED) { + log_error("mmap() failed (%m), freez

Re: [systemd-devel] [PATCH] Circumvent autofs_v5_packet_union size bug

2012-03-05 Thread Kay Sievers
On Tue, Nov 15, 2011 at 16:52, Thomas Meyer wrote: > Am 14.11.2011 um 03:35 schrieb Ian Kent : > Another solution would be to explicitly add 4 filler bytes to the structure > to have an 8 byte alignment, like the compiler does it now implicitly on 64 > bit. Is this issue fixed with this commit

Re: [systemd-devel] [PATCH 2/2] main: added support for loading IMA custom policies

2012-03-05 Thread Lennart Poettering
On Wed, 22.02.12 15:52, Roberto Sassu ([email protected]) wrote: Heya, > + policy = mmap(NULL, policy_size, PROT_READ, MAP_PRIVATE, policyfd, 0); > + if (policy == MAP_FAILED) { > + log_error("mmap() failed (%m), freezing"); > + result = -errno; > +

Re: [systemd-devel] [PATCH] configure.ac: fix typo in distro help string

2012-03-05 Thread Lennart Poettering
On Wed, 15.02.12 08:00, Thierry Reding ([email protected]) wrote: > Signed-off-by: Thierry Reding Thanks! Applied! > --- > configure.ac |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 62e8cdf..87d2211 100644 > -

Re: [systemd-devel] Extracting a coredump from the journal

2012-03-05 Thread Lennart Poettering
On Wed, 15.02.12 09:16, Thierry Reding ([email protected]) wrote: > Hi, > > I've just had a service crash on one of my systems that runs with systemd 43 > so I had a look at the output from 'systemctl status' and looked through the > journal to find an entry saying that the process

Re: [systemd-devel] Display manager and logind interaction

2012-03-05 Thread Lennart Poettering
On Wed, 15.02.12 19:42, Robert Ancell ([email protected]) wrote: > > And on seats != "seat0" we currently don't have any kind of session > > multiplexing. Hence having a special VT for lock screens is really hard > > to do... (I have actually discussed this topic with the Wayland guys at > >

Re: [systemd-devel] PATCH: fix sparse warnings

2012-03-05 Thread Frederic Crozat
Le lundi 05 mars 2012 à 15:10 +0100, Lennart Poettering a écrit : > On Wed, 29.02.12 18:33, Frederic Crozat ([email protected]) wrote: > > > Le mercredi 29 février 2012 à 17:04 +, Frederic Crozat a écrit : > > > Hi, > > > > > > while trying to use sparse to detect potential endianness errors

Re: [systemd-devel] sd-login.h - g++ complains about 'class'

2012-03-05 Thread Lennart Poettering
On Sat, 25.02.12 01:36, Mantas M. ([email protected]) wrote: > When building gnome-system-monitor with systemd support, I get the following > error message and compilation stops: > > > In file included from proctable.cpp:49:0: > > /usr/include/systemd/sd-login.h:97:54: error: expected ‘,’ or ‘..

Re: [systemd-devel] [PATCH] systemd-analyze: call os.uname() once

2012-03-05 Thread Lennart Poettering
On Mon, 27.02.12 08:14, Dave Reisner ([email protected]) wrote: > Uses a format string, which is dependent on python 2.6. Thanks, applied. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list [email protected].

Re: [systemd-devel] PATCH: fix sparse warnings

2012-03-05 Thread Lennart Poettering
On Wed, 29.02.12 18:33, Frederic Crozat ([email protected]) wrote: > Le mercredi 29 février 2012 à 17:04 +, Frederic Crozat a écrit : > > Hi, > > > > while trying to use sparse to detect potential endianness errors in > > journald code (apparently, we can't use it for that), I found some othe

Re: [systemd-devel] customized shutdown service needed

2012-03-05 Thread Lennart Poettering
On Wed, 29.02.12 22:12, Burkhard Kayser ([email protected]) wrote: > > Hi Lennart, > based on your recommendation I tried the following service. > > [Unit] > Description=my private startup service > > Requires=local-fs.target syslog.service nfs.service > After=local-fs.target syslog.ser

Re: [systemd-devel] [PATCH] systemd-journald: fix endianess bug

2012-03-05 Thread Lennart Poettering
On Fri, 02.03.12 18:32, Frederic Crozat ([email protected]) wrote: > > Please review my current patch carefully, I'm not 100% sure my fix are > > accurate (this part of journald is a bit tricky to get right ;) They look correct to me. > Here is a new version of the patch, we are slowly getting th

Re: [systemd-devel] trust of kernel messages re-routed via journald

2012-03-05 Thread Lennart Poettering
On Mon, 05.03.12 14:29, Rainer Gerhards ([email protected]) wrote: > > Note that on F17 (and most likely for much longer) systemd does not take > > control of /proc/kmsg and leaves that to syslog-ng/rsyslog. > > Sure, but the question was with a bit broader scope, assuming this > will change in

Re: [systemd-devel] trust of kernel messages re-routed via journald

2012-03-05 Thread Rainer Gerhards
On Sun, Mar 4, 2012 at 11:37 PM, Lennart Poettering wrote: > On Thu, 23.02.12 17:54, Rainer Gerhards ([email protected]) wrote: > >> Hi, >> >> I am thinking on how to detect potential fake messages, claiming to be >> e.g. from the audit subsystem. Let's assume >> - auditd is stopped --> audit me

Re: [systemd-devel] [PATCH] corrected machine-info(5) man page to be in line with source

2012-03-05 Thread Lennart Poettering
On Mon, 05.03.12 00:29, Shawn Landden ([email protected]) wrote: > change conflicting man/machine-info.xml documentation to match functionality > in > src/hostname/hostnamed.c 114-119 > --- > man/machine-info.xml |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git

[systemd-devel] [PATCH] corrected machine-info(5) man page to be in line with source

2012-03-05 Thread Shawn Landden
change conflicting man/machine-info.xml documentation to match functionality in src/hostname/hostnamed.c 114-119 --- man/machine-info.xml |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/man/machine-info.xml b/man/machine-info.xml index c6d3e92..240da25 100644 --- a/man/ma