Re: [systemd-devel] [PATCH 6/8] add GOP mode setting and splash drawing support

2013-12-11 Thread Joonas Lahtinen
Hi Greg, I sent another set of patches, this time from command line, and at least I do not observe any line-wrapping with them when viewing the e-mail source. Did they apply fine for you? Regards, Joonas On 10.12.2013 10:03, Greg KH wrote: On Tue, Dec 10, 2013 at 09:50:58AM +0200, Joonas La

[systemd-devel] [PATCH] shared: add missing include

2013-12-11 Thread Marc-Antoine Perennou
Needed for socketpair, recv --- src/shared/logs-show.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index c99fc75..0e3fd3d 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -23,6 +23,7 @@ #include #include #include +#in

Re: [systemd-devel] [PATCH] install: Assume *.wants symlinks have the same name as their target for scalability.

2013-12-11 Thread Andrey Borzenkov
В Wed, 11 Dec 2013 15:54:39 -0800 da...@davidstrauss.net пишет: > From: David Strauss > > --- > src/shared/install.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/shared/install.c b/src/shared/install.c > index 17e8a75..14c0f4b 100644 > --- a/src/shared/install.c > +++ b/sr

Re: [systemd-devel] No security on systemd-journal-gatewayd

2013-12-11 Thread Kay Sievers
On Wed, Dec 11, 2013 at 11:53 PM, Reindl Harald wrote: > Am 11.12.2013 22:41, schrieb Cecil Westerhof: >> I tried out systemd-journal-gatewayd. But it looks like that everyone that >> can >> contact, can get log info. Is that true, or am I overlooking something? > > as far as i remeber from older

Re: [systemd-devel] [PATCH] journal: pipe journalctl help output into a pager

2013-12-11 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 12, 2013 at 12:22:48AM +0100, Djalal Harouni wrote: > journalctl help output might run off the screen, so be consistent > as other systemd tools do and pipe it into a pager. Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.

Re: [systemd-devel] [HACK/RFC/PATCH] systemd-su: "su" on steroids

2013-12-11 Thread Shawn Landden
On Tue, Dec 10, 2013 at 3:18 PM, Lennart Poettering wrote: > On Mon, 02.12.13 21:47, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> 4h later, I present "systemd-su": >> >> If you want to give it a try, run: >> systemd-su -u david /bin/sh >> >> It requires the systemd-suexec helper interna

Re: [systemd-devel] [PATCH] test-fileio: replace mktemp with mkstemp to avoid warnings

2013-12-11 Thread Shawn Landden
Thank you for this! On Wed, Dec 11, 2013 at 5:55 PM, Thomas H.P. Andersen wrote: > On Thu, Dec 12, 2013 at 1:41 AM, Zbigniew Jędrzejewski-Szmek > wrote: >> On Thu, Dec 12, 2013 at 12:32:43AM +0100, Thomas H.P. Andersen wrote: >>> From: Thomas Hindoe Paaboel Andersen >>> >>> This is a fairly use

Re: [systemd-devel] [PATCH] test-fileio: replace mktemp with mkstemp to avoid warnings

2013-12-11 Thread Thomas H.P. Andersen
On Thu, Dec 12, 2013 at 1:41 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Dec 12, 2013 at 12:32:43AM +0100, Thomas H.P. Andersen wrote: >> From: Thomas Hindoe Paaboel Andersen >> >> This is a fairly useless thing to do but it makes the compilers >> and analyzers shut up about the use of mktem

Re: [systemd-devel] [PATCH] install: Assume *.wants symlinks have the same name as their target for scalability.

2013-12-11 Thread David Timothy Strauss
After watching the results for an hour or so, this massively improves the performance of is-enabled and several other systems on our heavily loaded boxes. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mail

Re: [systemd-devel] [PATCH] test-fileio: replace mktemp with mkstemp to avoid warnings

2013-12-11 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Dec 12, 2013 at 12:32:43AM +0100, Thomas H.P. Andersen wrote: > From: Thomas Hindoe Paaboel Andersen > > This is a fairly useless thing to do but it makes the compilers > and analyzers shut up about the use of mktemp. Please apply it. Spurious warnings are very annoying. Zbyszek

[systemd-devel] [PATCH] install: Assume *.wants symlinks have the same name as their target for scalability.

2013-12-11 Thread david
From: David Strauss --- src/shared/install.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/shared/install.c b/src/shared/install.c index 17e8a75..14c0f4b 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -423,6 +423,11 @@ static int find_symlinks_fd(

[systemd-devel] [PATCH] test-fileio: replace mktemp with mkstemp to avoid warnings

2013-12-11 Thread Thomas H.P. Andersen
From: Thomas Hindoe Paaboel Andersen This is a fairly useless thing to do but it makes the compilers and analyzers shut up about the use of mktemp. --- src/test/test-fileio.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/test-fileio.c b/src/test/test-fileio

[systemd-devel] [PATCH] journal: pipe journalctl help output into a pager

2013-12-11 Thread Djalal Harouni
journalctl help output might run off the screen, so be consistent as other systemd tools do and pipe it into a pager. --- src/journal/journalctl.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 5d12c2b..

Re: [systemd-devel] No security on systemd-journal-gatewayd

2013-12-11 Thread Reindl Harald
Am 11.12.2013 22:41, schrieb Cecil Westerhof: > I tried out systemd-journal-gatewayd. But it looks like that everyone that > can > contact, can get log info. Is that true, or am I overlooking something? as far as i remeber from older posts about it the intention is that a) it is not on by def

Re: [systemd-devel] [RFC] Initial libsystemd-asyncns commit

2013-12-11 Thread Thomas H.P. Andersen
On Wed, Dec 11, 2013 at 2:41 AM, Lennart Poettering wrote: > On Wed, 11.12.13 02:13, Daniel Buch (boogiewasth...@gmail.com) wrote: > > Heya, > > Hmm, so thinking about it I have the suspicion this should probably be > linked into libsystemd-bus, and thus live in src/libsystemd-bus/. The > reason f

[systemd-devel] [PATCH] timedatectl: work with old timedated

2013-12-11 Thread Shawn Landden
Which does have TimeUSec. Should we specifically check for this method instead of assuming time=0 means it doesn't exist? Before: shawn@debian-T61:~/git/systemd$ ./timedatectl Local time: Wed 1969-12-31 16:00:00 PST Universal time: Thu 1970-01-01 00:00:00 UTC RTC time: n/a

[systemd-devel] No security on systemd-journal-gatewayd

2013-12-11 Thread Cecil Westerhof
I tried out systemd-journal-gatewayd. But it looks like that everyone that can contact, can get log info. Is that true, or am I overlooking something? ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailm

Re: [systemd-devel] [systemd-commits] TODO man/journalctl.xml man/sd_journal_open.xml src/journal src/libsystemd-bus src/shared src/systemd

2013-12-11 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Dec 11, 2013 at 01:05:33PM -0800, Lennart Poettering wrote: > journal: add ability to browse journals of running OS containers > > This adds the new library call sd_journal_open_container() and a new > "-M" switch to journalctl. Particular care is taken that journalctl's >

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Kay Sievers
On Wed, Dec 11, 2013 at 7:41 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Dec 11, 2013 at 08:24:34PM +0200, Mantas Mikulėnas wrote: >> On Dec 11, 2013 5:38 PM, "Cecil Westerhof" wrote: >> > >> > On 12/06/2013 01:18 PM, Mantas Mikulėnas wrote: >> >> >> >> > Is it possible to do an automatic s

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Cecil Westerhof
On 12/11/2013 07:24 PM, Mantas Mikulėnas wrote: >> > Is it possible to do an automatic shutdown when there is no more room >> to for journald to log? (They did not want to have logging removed.) >> >> Currently no. journald tries to never use more than the configured % of >> disk space and

Re: [systemd-devel] [PATCH] login: Don't stop a running user manager from garbage-collecting the user.

2013-12-11 Thread Thomas Bächler
Am 11.12.2013 19:56, schrieb Thomas Bächler: > With the current logic, a user will never be garbage-collected, since its > manager will always be around. Change the logic such that a user is > garbage-collected when it has no sessions and linger is disabled. This seems to fix my current problem.

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Bardur Arantsson
On 2013-12-11 19:41, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Dec 11, 2013 at 08:24:34PM +0200, Mantas Mikulėnas wrote: >> On Dec 11, 2013 5:38 PM, "Cecil Westerhof" wrote: >>> >>> On 12/06/2013 01:18 PM, Mantas Mikulėnas wrote: > Is it possible to do an automatic shutdown when ther

[systemd-devel] [PATCH] login: Don't stop a running user manager from garbage-collecting the user.

2013-12-11 Thread Thomas Bächler
With the current logic, a user will never be garbage-collected, since its manager will always be around. Change the logic such that a user is garbage-collected when it has no sessions and linger is disabled. --- src/login/logind-user.c | 12 1 file changed, 12 deletions(-) diff --git

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Dec 11, 2013 at 08:24:34PM +0200, Mantas Mikulėnas wrote: > On Dec 11, 2013 5:38 PM, "Cecil Westerhof" wrote: > > > > On 12/06/2013 01:18 PM, Mantas Mikulėnas wrote: > >> > >> > Is it possible to do an automatic shutdown when there is no more room > >> to for journald to log? (They did no

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Mantas Mikulėnas
On Dec 11, 2013 5:38 PM, "Cecil Westerhof" wrote: > > On 12/06/2013 01:18 PM, Mantas Mikulėnas wrote: >> >> > Is it possible to do an automatic shutdown when there is no more room >> to for journald to log? (They did not want to have logging removed.) >> >> Currently no. journald tries to never u

Re: [systemd-devel] [PATCH] core: support Distribute=n to distribute to n workers

2013-12-11 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Dec 10, 2013 at 06:53:33PM -0800, Shawn Landden wrote: Please add a commit message that says what the commit does. This part can remain, but please prefix it with "Some open questions remain:" or something. > Because it takes a while for the service to start up, and > until then we spin in

Re: [systemd-devel] Questions I got about systemd

2013-12-11 Thread Cecil Westerhof
On 12/06/2013 01:18 PM, Mantas Mikulėnas wrote: > Is it possible to do an automatic shutdown when there is no more room to for journald to log? (They did not want to have logging removed.) Currently no. journald tries to never use more than the configured % of disk space and rotates away old lo

Re: [systemd-devel] Last question about systemd before my presentation

2013-12-11 Thread Cecil Westerhof
On 12/05/2013 08:39 PM, Lennart Poettering wrote: When virtual machines are implementd as a service. You need to let the host define the limits per guest I suppose? Not following? You can pack as many services in a slice as you want, and you can create a tree of slices, so that you can run a c

Re: [systemd-devel] [HACK/RFC/PATCH] systemd-su: "su" on steroids

2013-12-11 Thread David Herrmann
Hey On Wed, Dec 11, 2013 at 3:27 PM, Lennart Poettering wrote: > On Wed, 11.12.13 13:54, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> Hi >> >> On Wed, Dec 11, 2013 at 12:18 AM, Lennart Poettering >> wrote: >> > On Mon, 02.12.13 21:47, David Herrmann (dh.herrm...@gmail.com) wrote: >> > >

Re: [systemd-devel] [HACK/RFC/PATCH] systemd-su: "su" on steroids

2013-12-11 Thread Lennart Poettering
On Wed, 11.12.13 13:54, David Herrmann (dh.herrm...@gmail.com) wrote: > > Hi > > On Wed, Dec 11, 2013 at 12:18 AM, Lennart Poettering > wrote: > > On Mon, 02.12.13 21:47, David Herrmann (dh.herrm...@gmail.com) wrote: > > > >> > >> 4h later, I present "systemd-su": > >> > >> If you want to give

[systemd-devel] [PATCH] libsystemd-bus: Add checking masks creds in bus_creds_dump() function

2013-12-11 Thread Lukasz Skalski
log_assert_failed_return macro generates a lot of logs when we use bus_message_dump() function without checking masks in creds. --- src/libsystemd-bus/bus-dump.c | 93 +++ 1 file changed, 59 insertions(+), 34 deletions(-) diff --git a/src/libsystemd-bus/bus

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Lennart Poettering
On Wed, 11.12.13 14:43, Cecil Westerhof (cecil.wester...@snow.nl) wrote: > > On 12/11/2013 02:25 PM, Cecil Westerhof wrote: > >>You can to centralized logging with the journal too, by simply making > >>the journal files you want to look at accessible on the same > >>machine. This could be done vi

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Lennart Poettering
On Wed, 11.12.13 14:25, Cecil Westerhof (cecil.wester...@snow.nl) wrote: > >Journald's primary job is local logging, for complex logging setups we > >recommend installing a logging services like rsyslog. > > Would you not loose some of the advantages of journald this way? I > understand that with

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

2013-12-11 Thread Lennart Poettering
On Wed, 11.12.13 14:24, Maciej Wereski (m.were...@partner.samsung.com) wrote: > >>+xattr = new0(char, strlen(i->argument)+1); > >>+if (!xattr) > >>+return log_oom(); > >>+ > >>+tmp = strv_split(i->argument, WHITESPACE); > >>+if (!tmp) > >>+

Re: [systemd-devel] [PATCH] core: support Distribute=n to distribute to n workers

2013-12-11 Thread Lennart Poettering
On Tue, 10.12.13 18:53, Shawn Landden (sh...@churchofgit.com) wrote: > @@ -116,6 +115,7 @@ const sd_bus_vtable bus_socket_vtable[] = { > SD_BUS_PROPERTY("MessageQueueMessageSize", "x", > bus_property_get_long, offsetof(Socket, mq_msgsize), 0), > SD_BUS_PROPERTY("Result", "s", pr

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Cecil Westerhof
On 12/11/2013 02:52 PM, Reindl Harald wrote: I just had a little check. Copying is not acceptable. Logging on the log-server should be real-time so just install rsyslog and you have the same as before rsyslog is running here on any machine and journald with Storage=none I already suggested t

Re: [systemd-devel] systemd unit review requested

2013-12-11 Thread Lennart Poettering
On Wed, 11.12.13 12:34, Peter Hutterer (peter.hutte...@who-t.net) wrote: > > If a module exposes those alias lines then the module is auto-loaded by > > udev as soon as matching hardware shows up. That's the preferable way to > > load kernel modules these days, instead of loading them explicitly t

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Cecil Westerhof
On 12/11/2013 02:25 PM, Cecil Westerhof wrote: Eventually journald should provide you with both a pull and a push model, however it currently onyl supports a pull model. Note that for Where can I information about that, or do you mean copying the files? You probably mend systemd-journal-gate

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Reindl Harald
Am 11.12.2013 14:43, schrieb Cecil Westerhof: > On 12/11/2013 02:25 PM, Cecil Westerhof wrote: >>> You can to centralized logging with the journal too, by simply making >>> the journal files you want to look at accessible on the same >>> machine. This could be done via NFS sharing, or by copying th

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Cecil Westerhof
On 12/11/2013 02:25 PM, Cecil Westerhof wrote: You can to centralized logging with the journal too, by simply making the journal files you want to look at accessible on the same machine. This could be done via NFS sharing, or by copying them to a central host via rsync or scp or even ftp, whateve

Re: [systemd-devel] Logging in an enterprise environment

2013-12-11 Thread Cecil Westerhof
On 12/10/2013 07:16 PM, Lennart Poettering wrote: As I understand it, journald is mend to log locally. Two methods to log centrally are, if I have understand it correctly: - mounting and merging through NFS - systemd-journal-gateway Whereby the first would be the preferred method. That would no

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

2013-12-11 Thread Maciej Wereski
10.12.2013 at 20:48 Lennart Poettering wrote: On Wed, 04.12.13 15:27, Maciej Wereski (m.were...@partner.samsung.com) wrote: +#ifdef HAVE_XATTR +static int get_xattrs_from_arg(Item *i){ +_cleanup_free_ char *xattr = NULL; +_cleanup_strv_free_ char **tmp = NULL; +char

Re: [systemd-devel] [HACK/RFC/PATCH] systemd-su: "su" on steroids

2013-12-11 Thread David Herrmann
Hi On Wed, Dec 11, 2013 at 12:18 AM, Lennart Poettering wrote: > On Mon, 02.12.13 21:47, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> 4h later, I present "systemd-su": >> >> If you want to give it a try, run: >> systemd-su -u david /bin/sh >> >> It requires the systemd-suexec helper in

Re: [systemd-devel] user@.service doesn't stop on logout

2013-12-11 Thread Thomas Bächler
Am 10.12.2013 22:55, schrieb Thomas Bächler: > # /run/systemd/users/1000 > # This is private data. Do not parse. > NAME=test > STATE=closing > RUNTIME=/run/user/1000 > SERVICE=user@1000.service > SLICE=user-1000.slice > REALTIME=1386712031039381 > MONOTONIC=14242584 > SESSIONS=1 > SEATS=seat0 > ACT

Re: [systemd-devel] [PATCH 1/3] tmpfiles: skip the path entirely if configured as type x

2013-12-11 Thread Václav Pavlín
On St 11. prosinec 2013, 03:02:48 CET, Lennart Poettering wrote: On Fri, 08.11.13 07:32, Michal Sekletar (msekl...@redhat.com) wrote: On Thu, Nov 07, 2013 at 10:39:19PM +0100, Lennart Poettering wrote: On Wed, 06.11.13 11:18, Michal Sekletar (msekl...@redhat.com) wrote: Type x in tmpfiles