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

2012-02-20 Thread Olav Vitters
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. if the journal itself crashes a coredump will be placed in > /var/lib/syste

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Jan Engelhardt
On Monday 2012-02-20 18:57, Dax Kelson wrote: >On Mon, 2012-02-20 at 17:54 +0100, Lennart Poettering wrote: > >> What is currently implemented is more like this: >> >> 1. On systems with graphical login: tty1 is always the DM >> >> 2. On systems without graphical login: tty1 is always a getty >

Re: [systemd-devel] [PATCH] Re: Requires too weak, BindTo too strong

2012-02-20 Thread Warpme
On 2/19/12 9:35 PM, David Ward wrote: On 01/02/12 19:07, Lennart Poettering wrote: On Wed, 01.02.12 18:54, Chris Paulson-Ellis ([email protected]) wrote: Is there some way to get the client to always restart when server restarts, for whatever reason? No, there isn't. But what you describe is s

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

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 20:06, Roberto Sassu ([email protected]) wrote: > >We moved SELinux loading out of the initrd into systemd, in order to > >support fully featured initrd-less boots. I don't think we should reopen > >this problem set by having IMA in the initrd. I believe IMA should be > >tre

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

2012-02-20 Thread Roberto Sassu
On 02/20/2012 07:52 PM, Lennart Poettering wrote: On Mon, 20.02.12 19:23, Roberto Sassu ([email protected]) wrote: + log_error("mmap() failed (%s), freezing", strerror(errno)); + result = -errno; + goto out; + } + + while(written< po

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

2012-02-20 Thread Roberto Sassu
On 02/20/2012 06:24 PM, Lennart Poettering wrote: On Thu, 16.02.12 19:50, Gustavo Sverzut Barbieri ([email protected]) wrote: Then I wonder: why not make an ima-init binary that: - does ima_setup() - exec systemd || upstart || ... this way you only have to audit this very small fi

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

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 19:36, Roberto Sassu ([email protected]) wrote: > > On 02/20/2012 06:14 PM, Lennart Poettering wrote: > >On Wed, 15.02.12 18:12, Roberto Sassu ([email protected]) wrote: > > > >>The location of the policy file is not IMA dependent. I chose that > >>because it seemed t

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

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 19:23, Roberto Sassu ([email protected]) wrote: > >>+ log_error("mmap() failed (%s), freezing", strerror(errno)); > >>+ result = -errno; > >>+ goto out; > >>+ } > >>+ > >>+ while(written< policy_size) { > >>+

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 18:28, Colin Guthrie ([email protected]) wrote: > > 3. On boot, on both kinds of systems: All ttys != tty1 are unallocated > > OK, not quite what I get here - getty's are not fully hotplugged I > guess, but all the same, but I accept this is the most sensible setup > and I'll

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

2012-02-20 Thread Roberto Sassu
On 02/20/2012 06:14 PM, Lennart Poettering wrote: On Wed, 15.02.12 18:12, Roberto Sassu ([email protected]) wrote: The location of the policy file is not IMA dependent. I chose that because it seemed to me the right place where to put this file. So, i can easily modify the location to be

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Colin Guthrie
'Twas brillig, and Lennart Poettering at 20/02/12 16:54 did gyre and gimble: > On Fri, 17.02.12 16:00, Colin Guthrie ([email protected]) wrote: > >> If you have your system setup for a server without a graphical display, >> you expect all (well 1 through 6 anyway) ttys to be text logins. I thin

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

2012-02-20 Thread Roberto Sassu
On 02/20/2012 06:12 PM, Lennart Poettering wrote: On Wed, 15.02.12 14:23, Roberto Sassu ([email protected]) wrote: The new function ima_setup() loads an IMA custom policy from a file in the default location '/etc/sysconfig/ima-policy', if present, and writes it to the path 'ima/policy' in

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 10:57, Dax Kelson ([email protected]) wrote: > > On Mon, 2012-02-20 at 17:54 +0100, Lennart Poettering wrote: > > > What is currently implemented is more like this: > > > > 1. On systems with graphical login: tty1 is always the DM > > > > 2. On systems without graphical log

Re: [systemd-devel] [PATCH 1/2] systemd: mount the securityfs filesystem at early stage

2012-02-20 Thread Roberto Sassu
On 02/20/2012 06:04 PM, Lennart Poettering wrote: On Wed, 15.02.12 14:23, Roberto Sassu ([email protected]) wrote: The mount of the securityfs filesystem is now performed in the main systemd executable as it is used by IMA to provide the interface for loading custom policies. The unit fil

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Dax Kelson
On Mon, 2012-02-20 at 17:54 +0100, Lennart Poettering wrote: > What is currently implemented is more like this: > > 1. On systems with graphical login: tty1 is always the DM > > 2. On systems without graphical login: tty1 is always a getty Is this the case even for the first boot after install?

[systemd-devel] StartLimitAction=none and Watchdog

2012-02-20 Thread Michael Olbrich
Hi, I noticed a problem with the current watchdog code. When the watchdog for a service triggers then the service is stopped with service_enter_dead(). Then the restart logic takes over and restarts the service. However, if the rate limit is exceeded and StartLimitAction=none, then the service jus

[systemd-devel] [PATCH 1/3] dbus: add data argument to BusPropertySetCallback

2012-02-20 Thread Michael Olbrich
BusPropertyCallback already has the argument. It is necesary for the callback to know what data to access. --- src/dbus-common.c |6 +- src/dbus-common.h |2 +- src/dbus-manager.c |4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/dbus-common.c b/src/dbus

[systemd-devel] [PATCH 3/3] dbus: make the service property StartLimitAction writeable

2012-02-20 Thread Michael Olbrich
--- src/dbus-service.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dbus-service.c b/src/dbus-service.c index 7809164..d840415 100644 --- a/src/dbus-service.c +++ b/src/dbus-service.c @@ -48,7 +48,7 @@ " \n" \ " \n" \ " \n" \ -

[systemd-devel] [PATCH 2/3] dbus: add generic DEFINE_BUS_PROPERTY_SET_ENUM() macro for enum properties

2012-02-20 Thread Michael Olbrich
The defined function can be used as BusPropertySetCallback. --- src/dbus-common.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/dbus-common.h b/src/dbus-common.h index 1dc0f59..892d129 100644 --- a/src/dbus-common.h +++ b/src/dbus-common.h @@ -160,6 +1

[systemd-devel] [PATCH 0/3] make the service property StartLimitAction writeable

2012-02-20 Thread Michael Olbrich
Hi, this patch series make the service property StartLimitAction writeable. The first two patches are preparation to make it posible. The third patch actually implements this. Why this is useful: Consider a service with rather strict watchdog settings. StartLimitAction=reboot-force and low StartLi

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

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 15:40, Tomasz Torcz ([email protected]) wrote: > > On Thu, Feb 16, 2012 at 12:30:31PM -0200, Gustavo Sverzut Barbieri wrote: > > On Thu, Feb 16, 2012 at 11:38 AM, Roberto Sassu > > wrote: > > > the reason for which the loading of IMA policies has been placed in > > > the mai

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

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 19:50, Gustavo Sverzut Barbieri ([email protected]) wrote: > >> Then I wonder: why not make an ima-init binary that: > >>   - does ima_setup() > >>   - exec systemd || upstart || ... > >> > >> this way you only have to audit this very small file and not systemd > >> itself,

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

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 12:30, Gustavo Sverzut Barbieri ([email protected]) wrote: > > Since the policy loading can be implemented in different ways depending > > on the init system (systemd, upstart, ...), an user must identify the > > components to be measured for each case. Instead, if the IMA

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

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 15:56, Michael Cassaniti ([email protected]) wrote: > Also, I certainly have no such things in my system and see no point in > calling ima_setup() on it. Or even compiling the source file in such > case. > > >>>Ok. I can enclose the code in ima-setup.c within

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

2012-02-20 Thread Lennart Poettering
On Wed, 15.02.12 18:12, Roberto Sassu ([email protected]) wrote: > The location of the policy file is not IMA dependent. I chose that > because it seemed to me the right place where to put this file. > So, i can easily modify the location to be distribution independent > but i don't known wh

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

2012-02-20 Thread Lennart Poettering
On Wed, 15.02.12 17:26, Roberto Sassu ([email protected]) wrote: > > On 02/15/2012 03:30 PM, Gustavo Sverzut Barbieri wrote: > >On Wed, Feb 15, 2012 at 11:23 AM, Roberto Sassu > >wrote: > >>The new function ima_setup() loads an IMA custom policy from a file in the > >>default location '/e

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

2012-02-20 Thread Lennart Poettering
On Wed, 15.02.12 14:23, Roberto Sassu ([email protected]) wrote: > The new function ima_setup() loads an IMA custom policy from a file in the > default location '/etc/sysconfig/ima-policy', if present, and writes it to > the path 'ima/policy' in the security filesystem. This function is exec

Re: [systemd-devel] [PATCH 1/2] systemd: mount the securityfs filesystem at early stage

2012-02-20 Thread Lennart Poettering
On Wed, 15.02.12 14:23, Roberto Sassu ([email protected]) wrote: > The mount of the securityfs filesystem is now performed in the main systemd > executable as it is used by IMA to provide the interface for loading custom > policies. The unit file 'units/sys-kernel-security.mount' has been re

Re: [systemd-devel] Rethinking getty and fast user switching

2012-02-20 Thread Lennart Poettering
On Fri, 17.02.12 16:00, Colin Guthrie ([email protected]) wrote: > If you have your system setup for a server without a graphical display, > you expect all (well 1 through 6 anyway) ttys to be text logins. I think > this is uncontroversial. > > Currently, if you have a graphical system, then t

Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2012-02-20 Thread Lennart Poettering
On Thu, 16.02.12 22:53, mokasin ([email protected]) wrote: > > failure exit codes) > > > > Lennart > > > > It seems also to ignore an exit code due to an error. > > If the service failed to start for an actual reason, wouldn't systemd > fail to recognize it? Yes, we prefixing with "-" ensu

Re: [systemd-devel] Systemd: daemon listing

2012-02-20 Thread Lennart Poettering
On Wed, 15.02.12 17:33, ayoub ayoub ([email protected]) wrote: > Hi, > When systemd start executing ,i want to see the list of running services > ,one by one ,on my console , and witch files the service needs (binary , > script..) with details ? Booting in debug mode "systemd.log_level=debug

Re: [systemd-devel] [RFC] link against util-linux for fstab parsing

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 09:50, Dave Reisner ([email protected]) wrote: > > On Mon, Feb 20, 2012 at 03:31:01PM +0100, Lennart Poettering wrote: > > On Fri, 17.02.12 16:47, Dave Reisner ([email protected]) wrote: > > > > > Based on the premise that we shouldn't develop a case of NIH, link > > > again

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

2012-02-20 Thread Lennart Poettering
On Mon, 20.02.12 15:47, Santi Béjar ([email protected]) wrote: > > I think it is a good idea to make git work nicely with a natural flow of > > commits rather than adapt the flow of commits to git log. > > > > Or in short: a new --show-tags switch for git log sounds like an awesome > > solution he

Re: [systemd-devel] [RFC] link against util-linux for fstab parsing

2012-02-20 Thread Dave Reisner
On Mon, Feb 20, 2012 at 03:31:01PM +0100, Lennart Poettering wrote: > On Fri, 17.02.12 16:47, Dave Reisner ([email protected]) wrote: > > > Based on the premise that we shouldn't develop a case of NIH, link > > against a library whose sole purpose in life is parsing tab files. > > Hmmm, using t

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

2012-02-20 Thread Santi Béjar
On Mon, Feb 20, 2012 at 3:25 PM, Lennart Poettering wrote: > On Sat, 18.02.12 18:55, Colin Guthrie ([email protected]) wrote: > >> 'Twas brillig, and Jan Engelhardt at 09/02/12 03:43 did gyre and gimble: >> > On Thursday 2012-02-09 03:44, Lennart Poettering wrote: >> > >> >> Heya, >> >> >> >> h

Re: [systemd-devel] [RFC] link against util-linux for fstab parsing

2012-02-20 Thread Lennart Poettering
On Fri, 17.02.12 16:47, Dave Reisner ([email protected]) wrote: > Based on the premise that we shouldn't develop a case of NIH, link > against a library whose sole purpose in life is parsing tab files. Hmmm, using the glibc api setmntent() is hardly NIH, is it? I am not strictly against this,

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

2012-02-20 Thread Lennart Poettering
On Sat, 18.02.12 18:55, Colin Guthrie ([email protected]) wrote: > 'Twas brillig, and Jan Engelhardt at 09/02/12 03:43 did gyre and gimble: > > On Thursday 2012-02-09 03:44, Lennart Poettering wrote: > > > >> Heya, > >> > >> http://www.freedesktop.org/software/systemd/systemd-41.tar.xz > > >