[systemd-devel] [PATCH] autogen: Allow running autogen from a builddir != srcdir

2014-02-25 Thread Stef Walter
While the configure correctly supports being run outside of the top source directory by default, it's nice if autogen.sh does too: $ git clone git://anongit.freedesktop.org/systemd/systemd $ cd systemd $ mkdir $(uname -m) $ cd $(uname -m) $ ../autogen.sh a $ make --- autogen.sh | 18

[systemd-devel] [PATCH] cgroup: After MemmoryAccounting=yes running scope has no memusage

2014-04-08 Thread Stef Walter
Setting the 'MemoryAccounting' unit property to true, puts the unit into the right cgroup but does the memory.usage_in_bytes does not reflect the pages already allocated to the processes in that cgroup. This is because the memory.move_charge_at_immigrate needs to be set before migrating processes

Re: [systemd-devel] [PATCH] cgroup: After MemmoryAccounting=yes running scope has no memusage

2014-04-09 Thread Stef Walter
On 09.04.2014 23:45, Lennart Poettering wrote: On Tue, 08.04.14 12:11, Stef Walter (s...@thewalter.net) wrote: Setting the 'MemoryAccounting' unit property to true, puts the unit into the right cgroup but does the memory.usage_in_bytes does not reflect the pages already allocated

[systemd-devel] Polkit and systemd D-Bus API

2014-07-15 Thread Stef Walter
Cockpit, OpenLMI, and others want to use the systemd D-Bus API to manage system services/sockets etc. In addition we use polkit to authorize users and allow people to escalate privileges as needed. It seems that the D-Bus API of systemd doesn't support polkit:

Re: [systemd-devel] Polkit and systemd D-Bus API

2014-07-15 Thread Stef Walter
On 15.07.2014 15:15, Lennart Poettering wrote: On Tue, 15.07.14 13:35, Stef Walter (s...@thewalter.net) wrote: Cockpit, OpenLMI, and others want to use the systemd D-Bus API to manage system services/sockets etc. In addition we use polkit to authorize users and allow people to escalate

Re: [systemd-devel] Polkit and systemd D-Bus API

2014-07-15 Thread Stef Walter
On 15.07.2014 15:46, Jan Safranek wrote: On 07/15/2014 03:38 PM, Stef Walter wrote: Not sure about: * Halt(), PowerOff(), Reboot() OpenLMI is interested in these. They are already covered by logind, which is integrated with polkit just fine. Look for actions like org.freedesktop.login1

[systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Stef Walter
I've done initial work on adding polkit support to systemd1 DBus methods. You can see it here: https://github.com/stefwalter/systemd/commits/polkit-systemd1 Basic rules: * Read access for everyone * Methods that modifies running unit state is controlled by a polkit action:

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-06 Thread Stef Walter
On 06.08.2014 14:23, Colin Guthrie wrote: Stef Walter wrote on 06/08/14 12:23: I've done initial work on adding polkit support to systemd1 DBus methods. Hmmm, I thought this was deliberately not included as it meant a circular dep on polkit when talking to the system that's used to start

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-15 Thread Stef Walter
On 13.08.2014 20:27, Lennart Poettering wrote: On Wed, 06.08.14 13:23, Stef Walter (st...@redhat.com) wrote: I've done initial work on adding polkit support to systemd1 DBus methods. You can see it here: Thanks for the review. Worked on this a bit more. I might drop off the face

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-15 Thread Stef Walter
On 15.08.2014 18:56, Lennart Poettering wrote: On Fri, 15.08.14 18:25, Stef Walter (st...@redhat.com) wrote: On 13.08.2014 20:27, Lennart Poettering wrote: On Wed, 06.08.14 13:23, Stef Walter (st...@redhat.com) wrote: I've done initial work on adding polkit support to systemd1 DBus

[systemd-devel] Have 'session' keyrings per service

2013-08-08 Thread Stef Walter
Hey guys. I'm trying to figure out details for: http://www.freedesktop.org/wiki/Specifications/login-unlock/ Lennart we talked about this briefly in Brno ... basically the concept is that when systemd does cryptsetup, it'll stash away the password it successfully used in the kernel keyring, and

Re: [systemd-devel] Have 'session' keyrings per service

2013-08-09 Thread Stef Walter
On 09.08.2013 17:44, Lennart Poettering wrote: On Thu, 08.08.13 12:15, Stef Walter (st...@redhat.com) wrote: Hey guys. I'm trying to figure out details for: http://www.freedesktop.org/wiki/Specifications/login-unlock/ Lennart we talked about this briefly in Brno ... basically the concept

Re: [systemd-devel] Have 'session' keyrings per service

2013-08-09 Thread Stef Walter
On 10.08.2013 07:22, Stef Walter wrote: On 09.08.2013 17:44, Lennart Poettering wrote: On Thu, 08.08.13 12:15, Stef Walter (st...@redhat.com) wrote: Hey guys. I'm trying to figure out details for: http://www.freedesktop.org/wiki/Specifications/login-unlock/ Lennart we talked about

[systemd-devel] [PATCH] hostnamed: Fix the way that static and transient host names interact

2014-02-12 Thread Stef Walter
It is almost always incorrect to allow DHCP or other sources of transient host names to override an explicitly configured static host name. This commit changes things so that if a static host name is set, this will override the transient host name (eg: provided via DHCP). Transient host names can

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-09-01 Thread Stef Walter
On 18.08.2014 18:22, Lennart Poettering wrote: On Fri, 15.08.14 19:28, Stef Walter (st...@redhat.com) wrote: On 15.08.2014 18:56, Lennart Poettering wrote: On Fri, 15.08.14 18:25, Stef Walter (st...@redhat.com) wrote: On 13.08.2014 20:27, Lennart Poettering wrote: On Wed, 06.08.14 13:23

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-09-01 Thread Stef Walter
On 01.09.2014 11:47, David Herrmann wrote: Hi On Mon, Sep 1, 2014 at 9:51 AM, Stef Walter st...@redhat.com wrote: On 18.08.2014 18:22, Lennart Poettering wrote: I have now pushed this, after reworking this on top some major changes to bus_verify_polkit(), which avoids having to pass

[systemd-devel] Regression in v209: SIGKILL sent immediately after SIGTERM

2014-09-12 Thread Stef Walter
This commit breaks cockpit orderly shutdown: commit 743970d2ea6d08aa7c7bff8220f6b7702f2b1db7 Author: Lennart Poettering lenn...@poettering.net Date: Fri Feb 7 16:12:09 2014 +0100 core: one step back again, for nspawn we actually can't wait for cgroups running empty since systemd will

Re: [systemd-devel] Regression in v209: SIGKILL sent immediately after SIGTERM

2014-10-24 Thread Stef Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24.10.2014 01:51, Lennart Poettering wrote: On Fri, 12.09.14 11:57, Stef Walter (st...@redhat.com) wrote: This commit breaks cockpit orderly shutdown: commit 743970d2ea6d08aa7c7bff8220f6b7702f2b1db7 Author: Lennart Poettering lenn

[systemd-devel] systemd DBus services exit when they have clients

2014-11-14 Thread Stef Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is it intentional (or just laziness :D) that systemd DBus services like hostnamed, timedated and friends all exit after a timeout even while callers that have invoked their methods are still on the bus? Don't get me wrong, I like services that exit

Re: [systemd-devel] systemd DBus services exit when they have clients

2014-11-14 Thread Stef Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14.11.2014 14:41, Mantas Mikulėnas wrote: On Fri, Nov 14, 2014 at 3:43 PM, Stef Walter st...@redhat.com mailto:st...@redhat.com wrote: Is it intentional (or just laziness :D) that systemd DBus services like hostnamed, timedated and friends

Re: [systemd-devel] systemd DBus services exit when they have clients

2014-11-14 Thread Stef Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14.11.2014 16:39, Lennart Poettering wrote: On Fri, 14.11.14 16:06, Stef Walter (st...@redhat.com) wrote: I guess the idea is that many clients (e.g. gnome-settings-daemon) would make a few calls on startup and then continue running for days

[systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
This property is in usec (like the TimeUSec property) and allows retrieving the timezone offset for the machine. This is particularly usable for remote callers. --- src/timedate/timedated.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
On 19.03.2015 14:39, David Herrmann wrote: Hi On Thu, Mar 19, 2015 at 11:24 AM, Stef Walter st...@redhat.com wrote: This property is in usec (like the TimeUSec property) and allows retrieving the timezone offset for the machine. This is particularly usable for remote callers. --- src

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
On 19.03.2015 15:17, David Herrmann wrote: Hi On Thu, Mar 19, 2015 at 2:58 PM, Stef Walter st...@redhat.com wrote: On 19.03.2015 14:39, David Herrmann wrote: Hmm, so this is a convenience call. You could just set tm.tm_zone locally and use mktime() with the value retrieved by Timezone? Yeah

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-24 Thread Stef Walter
binNF286gWdVu.bin Description: PGP/MIME version identification encrypted.asc Description: OpenPGP encrypted message ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-24 Thread Stef Walter
On 24.03.2015 15:11, Kay Sievers wrote: On Tue, Mar 24, 2015 at 2:15 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: Exactly because they do not require being upgraded in lock-step, doing conversion to the local time locally is racy. Assuming we have up-to-date timezone database

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-24 Thread Stef Walter
/me hates the new thunderbird-enigmail On 24.03.2015 14:15, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Mar 24, 2015 at 01:59:40PM +0100, Tom Gundersen wrote: On Mon, Mar 23, 2015 at 8:13 PM, Stef Walter st...@redhat.com wrote: Sorry about the encrypted email ... I hit the wrong button

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-24 Thread Stef Walter
On 24.03.2015 15:22, Tom Gundersen wrote: On Tue, Mar 24, 2015 at 3:17 PM, Stef Walter st...@redhat.com wrote: On 24.03.2015 15:11, Kay Sievers wrote: On Tue, Mar 24, 2015 at 2:15 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: Exactly because they do not require being upgraded

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
On 23.03.2015 12:11, Shawn Landden wrote: On Sun, Mar 22, 2015 at 10:32 PM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: Hmm, so this is a convenience call. You could just set tm.tm_zone locally and use mktime() with

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
On 23.03.2015 15:26, Kay Sievers wrote: On Mon, Mar 23, 2015 at 1:46 PM, David Herrmann dh.herrm...@gmail.com wrote: Hi On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: Hmm, so this is a

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
Sorry about the encrypted email ... I hit the wrong button. On 23.03.2015 19:07, Shawn Landden wrote: On Mon, Mar 23, 2015 at 8:56 AM, Kay Sievers k...@vrfy.org wrote: On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter st...@redhat.com wrote: On 23.03.2015 15:26, Kay Sievers wrote: On Mon, Mar 23

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
binezjvUkOBeJ.bin Description: PGP/MIME version identification encrypted.asc Description: OpenPGP encrypted message ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Regression: 'jounalctl -f -t unmatched' does not block

2015-08-14 Thread Stef Walter
Hi, The Cockpit integration test suite caught a recent regression in systemd. Using journalctl -f to follow unmatched criteria is broken. More details here: https://bugzilla.redhat.com/show_bug.cgi?id=1253649 Here's a patch: https://github.com/systemd/systemd/pull/958 Stef signature.asc

Re: [systemd-devel] systemd-hostnamed/hostnamectl and transient hostname change

2020-04-30 Thread Stef Walter
ansient to the new static one, right ? > > The documentation is wrong. The code in hostnamed sets the kernel > hostname when setting the static one. This was changed in > https://github.com/systemd/systemd/commit/c779a44222: > > commit c779a44222161155c039a7fd2fd304c006590ac7 > Author: