Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Kay Sievers
On Tue, Dec 3, 2013 at 12:55 AM, Mantas Mikulėnas wrote: > > On Dec 3, 2013 1:51 AM, "Tom Gundersen" wrote: >> >> On Tue, Dec 3, 2013 at 12:04 AM, Kay Sievers wrote: >> > On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli >> > wrote: >> > >> >> I have ne question: what happens if a sysctl set

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Mantas Mikulėnas
On Dec 3, 2013 1:51 AM, "Tom Gundersen" wrote: > > On Tue, Dec 3, 2013 at 12:04 AM, Kay Sievers wrote: > > On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli wrote: > > > >> I have ne question: what happens if a sysctl setting is in more than > >> one file ? systemd-sysctl is smart enough to w

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Tom Gundersen
On Tue, Dec 3, 2013 at 12:04 AM, Kay Sievers wrote: > On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli > wrote: > >> I have ne question: what happens if a sysctl setting is in more than >> one file ? systemd-sysctl is smart enough to write the last value or >> perform several writes ? > > O

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Kay Sievers
On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli wrote: > I have ne question: what happens if a sysctl setting is in more than > one file ? systemd-sysctl is smart enough to write the last value or > perform several writes ? One write only, it logs at "info" level about overwritten values.

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
Hi Zbyszek On 2013-12-02 23:27, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Dec 02, 2013 at 10:27:45PM +0100, Goffredo Baroncelli wrote: [...] >> >> Yes am doing so. But IIRC the process order of the sysctl file was >> inverted near systemd 207... >> >> Because Debian uses 204, when it switches to

Re: [systemd-devel] Not authorized to perform operation

2013-12-02 Thread Michael Biebl
Also install policykit-1 from experimental, which is built with logind support. 2013/12/2 Floris : > Dear systemd maintainers, > > recently I upgraded Debian Testing to Gnome 3.8, but unfortunately gdm3.8 > is build without systemd support, so I installed gdm3.10 from experimental > with his depen

[systemd-devel] [PATCH] core: fix Unit.SetProperties argument parsing

2013-12-02 Thread David Herrmann
SetProperties has signature "ba(sv)", but the bus_unit_set_properties() helper already does a enter_container('a', "sv") so we have to skip it in bus_unit_method_set_properties(). --- Heyho I just stumbled over this. Don't have any test-case and it's too late here to be 100% sure about bus argume

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 10:27:45PM +0100, Goffredo Baroncelli wrote: > On 2013-12-02 21:38, Zbigniew Jędrzejewski-Szmek wrote: > > On Mon, Dec 02, 2013 at 09:15:37PM +0100, Goffredo Baroncelli wrote: > >> Hi all, > >> > >> currently systemd contains a sysctl default setting in a file called > >>

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
On 2013-12-02 21:32, Kay Sievers wrote: > On Mon, Dec 2, 2013 at 9:15 PM, Goffredo Baroncelli > wrote: >> currently systemd contains a sysctl default setting in a file called >> 50-default.conf >> The aim of this patch is to split the content of the sysctl setting in >> more files to allo

[systemd-devel] Not authorized to perform operation

2013-12-02 Thread Floris
Dear systemd maintainers, recently I upgraded Debian Testing to Gnome 3.8, but unfortunately gdm3.8 is build without systemd support, so I installed gdm3.10 from experimental with his dependencies. (So basically I run Gnome 3.10) gnome-shell --version GNOME Shell 3.10.1 When I try to mount a dr

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

2013-12-02 Thread David Herrmann
So people continue asking how to spawn a process in a new session from the command-line. Turns out, it's not as easy as you might think. I stopped at some point trying, but something like this should work: systemd-run --description="Test" -- /bin/sh -- XDG_SEAT=seat0 XDG_VTNR=5 su - david -- /so

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 09:15:37PM +0100, Goffredo Baroncelli wrote: > Hi all, > > currently systemd contains a sysctl default setting in a file called > 50-default.conf > The aim of this patch is to split the content of the sysctl setting in > more files to allow a more selective override

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Kay Sievers
On Mon, Dec 2, 2013 at 9:15 PM, Goffredo Baroncelli wrote: > currently systemd contains a sysctl default setting in a file called > 50-default.conf > The aim of this patch is to split the content of the sysctl setting in > more files to allow a more selective override. > > My need is to en

[systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
Hi all, currently systemd contains a sysctl default setting in a file called 50-default.conf The aim of this patch is to split the content of the sysctl setting in more files to allow a more selective override. My need is to enable all the sysrq key. Instead systemd defaults is to disallo

Re: [systemd-devel] [PATCH 2/7] Give the user permissions to their session's cgroup

2013-12-02 Thread Hristo Venev
See systemd src/core/execute.c:1299-1312, especially lines 1300 and 1307. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Mon, 02.12.13 19:25, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > I must say I really dislike mixing declarations and code. And I also > > know that by accident I did this in many cases myself and was thankful > > for the compiler to tell me about this. > > I never understood this

Re: [systemd-devel] The whole su/pkexec session debate

2013-12-02 Thread Colin Walters
On Mon, 2013-12-02 at 14:37 +0100, David Herrmann wrote: > But then gnome-session should simply call ReleaseSession() on the bus itself.. I'd rather have some sort of API where a particular process is the "session leader", and its exit implies closing. Something like a pid file in /run/systemd/s

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 04:58:40PM +0100, Lennart Poettering wrote: > On Sun, 01.12.13 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > > > On Fri, Nov 29, 2013 at 02:45:21PM -0500, Colin Walters wrote: > > > On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: > > > >

Re: [systemd-devel] [PATCH 1/2] nspawn: --populate to run static binaries on empty target directory

2013-12-02 Thread Shawn Landden
On Mon, Dec 2, 2013 at 8:27 AM, Lennart Poettering wrote: > On Sat, 30.11.13 10:20, Shawn Landden (sh...@churchofgit.com) wrote: > >> nspawn has been called "chroot on steroids". >> >> Continue that tradition by supporting target directories that >> are not root directories. >> >> This patch handl

Re: [systemd-devel] [RFC] xyzctl-common

2013-12-02 Thread Lennart Poettering
On Sat, 16.11.13 19:41, Peeters Simon (peeters.si...@gmail.com) wrote: > hello all, > > During the sd_bus porting I noted that the *ctl tools (and > systemd-analyze) contain a lot of common boilerplate code. > > So the basic idea is to split this boilerplate out into > xyzctl-common.[ch] so that

Re: [systemd-devel] [PATCH] Display synthetic message serial number in a more readable format than (uint32_t) -1

2013-12-02 Thread Lennart Poettering
On Mon, 02.12.13 16:31, Lukasz Skalski (l.skal...@partner.samsung.com) wrote: > Serial=4294967295 field in message dump generated by bus_message_dump() > function for synthetic messages isn't good readable. Thanks! Applied! > --- > src/libsystemd-bus/bus-dump.c | 12 +--- > 1 file chang

Re: [systemd-devel] [PATCH 1/4] nspawn: shorten conditional path

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 14:50, Shawn Landden (sh...@churchofgit.com) wrote: > --- > src/nspawn/nspawn.c | 19 +++ > 1 file changed, 7 insertions(+), 12 deletions(-) > > diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c > index dd7337b..0151cf3 100644 > --- a/src/nspawn/nspawn.c > +

Re: [systemd-devel] [PATCH 1/2] nspawn: --populate to run static binaries on empty target directory

2013-12-02 Thread Lennart Poettering
On Sat, 30.11.13 10:20, Shawn Landden (sh...@churchofgit.com) wrote: > nspawn has been called "chroot on steroids". > > Continue that tradition by supporting target directories that > are not root directories. > > This patch handles the simple case: a static binary. Hmm, I am not sure how I fee

Re: [systemd-devel] build broken on clang

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 00:38, Thomas H.P. Andersen (pho...@gmail.com) wrote: > Hi, > > Since 777d7a6123cbb192a8ff9e4ac5c05b1da84b4217 the build is broken on clang: > > src/libsystemd-bus/bus-control.c:686:41: error: fields must have a > constant size: 'variable length array in structure' extension wil

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 10:13, Colin Walters (walt...@verbum.org) wrote: > > On Sun, 2013-12-01 at 01:26 +0100, Zbigniew Jędrzejewski-Szmek wrote: > > > Actually I don't think we need to totally forbid declarations after > > statements. > > I don't have an opinion myself on making -Wdeclaration-after

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > On Fri, Nov 29, 2013 at 02:45:21PM -0500, Colin Walters wrote: > > On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: > > > On Thu, 28.11.13 00:54, Zbigniew Jędrzejewski-Szmek > > > (zbys...@kemper.freed

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Fri, 29.11.13 14:45, Colin Walters (walt...@verbum.org) wrote: > On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: > > On Thu, 28.11.13 00:54, Zbigniew Jędrzejewski-Szmek > > (zbys...@kemper.freedesktop.org) wrote: > > > Instead we should add some code to macro.h which turns off th

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-02 Thread David Herrmann
Hi >> The binary file contains all glyphs in a compressed 1-bit-per-pixel format >> for all 8x16 and 16x16 glyphs. It is linked directly into libsystemd-gfx >> via the *.bin makefile target. Binary size is 2.1MB, but thanks to paging, >> the kernel only loads required pages into memory. A ASCII-on

[systemd-devel] [PATCH] Display synthetic message serial number in a more readable format than (uint32_t) -1

2013-12-02 Thread Lukasz Skalski
Serial=4294967295 field in message dump generated by bus_message_dump() function for synthetic messages isn't good readable. --- src/libsystemd-bus/bus-dump.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/libsystemd-bus/bus-dump.c b/src/libsystemd-bus/bus-dum

[systemd-devel] [PATCH] Avoid a busy systemd-journald in LXC environments

2013-12-02 Thread Werner Fink
that is the systemd-journald may ignore /dec/kmsg which are not a valid device but a lint to /dev/null as done in LinuX Containers (LXC). This change adds straight forward a check for /dev/kmsg. Signed-off-by: Werner Fink --- src/journal/journald-kmsg.c | 27 ++- 1 fil

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-02 Thread Shawn Landden
On Wed, Nov 27, 2013 at 10:48 AM, David Herrmann wrote: > If we want to interact with a user in the initrd, during > emergency-situations, in single-user mode, or in any other rather limited > situation, we currently rely on the kernel to do input and graphics access > for us. More precisely, we r

Re: [systemd-devel] Thread level resource management

2013-12-02 Thread Umut Tezduyar Lindskog
Hi, > -Original Message- > From: Lennart Poettering [mailto:lenn...@poettering.net] > Sent: den 29 november 2013 13:49 > To: Umut Tezduyar Lindskog > Cc: David Timothy Strauss; systemd-devel@lists.freedesktop.org; Kay Sievers > Subject: Re: [systemd-devel] Thread level resource management

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lucas De Marchi
On Thu, Nov 28, 2013 at 11:39 PM, Lennart Poettering wrote: > On Thu, 28.11.13 00:54, Zbigniew Jędrzejewski-Szmek > (zbys...@kemper.freedesktop.org) wrote: > >> commit f1a1264d13b31b9f5521f482d9a5a9d78da55efb >> Author: Zbigniew J??drzejewski-Szmek >> Date: Thu Nov 28 03:41:33 2013 -0500 >> >>

Re: [systemd-devel] The whole su/pkexec session debate

2013-12-02 Thread David Herrmann
Hi On Mon, Dec 2, 2013 at 11:00 AM, Colin Guthrie wrote: > 'Twas brillig, and Martin Pitt at 02/12/13 05:48 did gyre and gimble: >>> > This way, screen will keep an "active" reference to the session and >>> > systemd-logind will not mark it as "closing". >> >> But that screen process would still

Re: [systemd-devel] [RFC] logind: introduce session "positions"

2013-12-02 Thread David Herrmann
Hi On Mon, Dec 2, 2013 at 10:57 AM, Colin Guthrie wrote: > 'Twas brillig, and David Herrmann at 01/12/13 11:43 did gyre and gimble: >> During session_load() or if two sessions have the same VTnr, we may end up >> with two sessions with the same position (this shouldn't happen, but lets >> be fail

Re: [systemd-devel] [RFC] logind: introduce session "positions"

2013-12-02 Thread David Herrmann
Hi On Sun, Dec 1, 2013 at 6:02 PM, Shawn Landden wrote: > On Sun, Dec 1, 2013 at 3:43 AM, David Herrmann wrote: >> logind has no concept of session ordering. Sessions have a unique name, >> some attributes about the capabilities and that's already it. There is >> currently no stable+total order

Re: [systemd-devel] [RFC] logind: introduce session "positions"

2013-12-02 Thread David Herrmann
Hi On Mon, Dec 2, 2013 at 1:09 PM, Tom Gundersen wrote: > On Sun, Dec 1, 2013 at 12:43 PM, David Herrmann wrote: >> logind has no concept of session ordering. Sessions have a unique name, >> some attributes about the capabilities and that's already it. There is >> currently no stable+total order

Re: [systemd-devel] [RFC] logind: introduce session "positions"

2013-12-02 Thread Tom Gundersen
On Sun, Dec 1, 2013 at 12:43 PM, David Herrmann wrote: > logind has no concept of session ordering. Sessions have a unique name, > some attributes about the capabilities and that's already it. There is > currently no stable+total order on sessions. If we use the logind API to > switch between sess

Re: [systemd-devel] The whole su/pkexec session debate

2013-12-02 Thread Colin Guthrie
'Twas brillig, and Martin Pitt at 02/12/13 05:48 did gyre and gimble: >> > This way, screen will keep an "active" reference to the session and >> > systemd-logind will not mark it as "closing". > > But that screen process would still be running in the user's logind > session cgroup, so logind can s

Re: [systemd-devel] [RFC] logind: introduce session "positions"

2013-12-02 Thread Colin Guthrie
'Twas brillig, and David Herrmann at 01/12/13 11:43 did gyre and gimble: > During session_load() or if two sessions have the same VTnr, we may end up > with two sessions with the same position (this shouldn't happen, but lets > be fail-safe in case some other part of the stack fails). I presume t