Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
hi, maybe good to know that libgcrypt provides a function which offers "all in one": void gcry_md_hash_buffer (int algo, void *digest, const void *buffer, size_t length) digest can be an array created earlier using the function gcry_md_get_algo_dlen. Stef

Re: [systemd-devel] Race condition between udev rules and hwdb

2018-02-05 Thread Mantas Mikulėnas
On Mon, Feb 5, 2018 at 8:02 AM, Peter Hutterer wrote: > Hi all, > > I think there is some race conditions between the udev rules and the hwdb > and I cannot rely that udev rules are applied consistently on a device. > > For reference, after building libinput run >

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 10:47 schrieb Michael Chapman: On Mon, 5 Feb 2018, Reindl Harald wrote: Am 05.02.2018 um 06:56 schrieb Michael Chapman:  On Mon, 5 Feb 2018, Johannes Ernst wrote:  It appears systemd-sysusers does not create home directories. On the  other hand, it picks (largely

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Michael Chapman
On Mon, 5 Feb 2018, Reindl Harald wrote: Am 05.02.2018 um 06:56 schrieb Michael Chapman: On Mon, 5 Feb 2018, Johannes Ernst wrote: It appears systemd-sysusers does not create home directories. On the other hand, it picks (largely unpredictable) UIDs from a range. So I have to run

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Mantas Mikulėnas
On Mon, Feb 5, 2018 at 11:26 AM, Reindl Harald wrote: > > > Am 05.02.2018 um 06:56 schrieb Michael Chapman: > >> On Mon, 5 Feb 2018, Johannes Ernst wrote: >> >>> It appears systemd-sysusers does not create home directories. On the >>> other hand, it picks (largely

Re: [systemd-devel] set-property does not work properly

2018-02-05 Thread Lennart Poettering
On Fr, 02.02.18 19:09, worz (w...@tuta.io) wrote: Humm, your emails are really weirdly formatted. Generally, sending HTML email to technical mailing lists is frowned upon, as replying is very messy. We usually won't complain about this too much, but in this case I have trouble getting good old

Re: [systemd-devel] Why is systemd-run --scope synchronous?

2018-02-05 Thread Lennart Poettering
On Fr, 02.02.18 19:00, worz (w...@tuta.io) wrote: > Hello, I was wondering why systemd-run --scope needs to be > synchronous, it would be nice if someone could explain what happens > under the hood, and what prevents it from just putting the process > in the scope, and maybe just call the

Re: [systemd-devel] Why is systemd-run --scope synchronous?

2018-02-05 Thread Jérémy Rosen
I would understand the question as : "why is the foreground/background concept linked to the concept of scope ?" for most people --scope means "run in the background" which is only a side effect of what that command really does. Maybe there is a need of some doc clarification, or get

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
Same error here: (gcry_md_open without gcry_md_close) line 901 in src/resolve/resolved-dns-sec.c while in the same file at 1227 it's done the good way. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 05, 2018 at 09:17:52AM +0100, Stef Bon wrote: > Same error here: > (gcry_md_open without gcry_md_close) > line 901 in src/resolve/resolved-dns-sec.c > while in the same file at 1227 it's done the good way. Indeed. PR submitted: https://github.com/systemd/systemd/pull/8100. Zbyszek

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 06:56 schrieb Michael Chapman: On Mon, 5 Feb 2018, Johannes Ernst wrote: It appears systemd-sysusers does not create home directories. On the other hand, it picks (largely unpredictable) UIDs from a range. So I have to run systemd-sysusers, and after that, find the UID of

Re: [systemd-devel] Race condition between udev rules and hwdb

2018-02-05 Thread Peter Hutterer
On Mon, Feb 05, 2018 at 11:51:30AM +0200, Mantas Mikulėnas wrote: > On Mon, Feb 5, 2018 at 8:02 AM, Peter Hutterer > wrote: > > > Hi all, > > > > I think there is some race conditions between the udev rules and the hwdb > > and I cannot rely that udev rules are applied

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Johannes Ernst
> On Feb 4, 2018, at 21:56, Michael Chapman wrote: > > On Mon, 5 Feb 2018, Johannes Ernst wrote: >> It appears systemd-sysusers does not create home directories. On the other >> hand, it picks (largely unpredictable) UIDs from a range. >> >> So I have to run

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Feb 05, 2018 at 10:21:17AM -0800, Johannes Ernst wrote: > > > On Feb 4, 2018, at 21:56, Michael Chapman wrote: > > > > On Mon, 5 Feb 2018, Johannes Ernst wrote: > >> It appears systemd-sysusers does not create home directories. On the other > >> hand, it picks

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Reindl Harald
Am 05.02.2018 um 19:35 schrieb Johannes Ernst: On Feb 5, 2018, at 10:31, Zbigniew Jędrzejewski-Szmek wrote: systemd-sysusers [[ -d /var/lib/foo ]] && mkdir -m755 /var/lib/foo chown $(id -u foo):$(id -g foo) /var/lib/foo # /usr/lib/tmpfiles.d/foo.conf d /var/lib/foo

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Johannes Ernst
> On Feb 5, 2018, at 10:31, Zbigniew Jędrzejewski-Szmek > wrote: >> systemd-sysusers >> [[ -d /var/lib/foo ]] && mkdir -m755 /var/lib/foo >> chown $(id -u foo):$(id -g foo) /var/lib/foo > > # /usr/lib/tmpfiles.d/foo.conf > d /var/lib/foo 0755 foo foo - > > (BTW, chown

Re: [systemd-devel] Race condition between udev rules and hwdb

2018-02-05 Thread Mantas Mikulėnas
On Tue, Feb 6, 2018 at 1:21 AM, Peter Hutterer wrote: > On Mon, Feb 05, 2018 at 11:51:30AM +0200, Mantas Mikulėnas wrote: > > On Mon, Feb 5, 2018 at 8:02 AM, Peter Hutterer > > > wrote: > > > > > Hi all, > > > > > > I think there is some race

Re: [systemd-devel] systemd-sysusers

2018-02-05 Thread Lennart Poettering
On Mo, 05.02.18 10:21, Johannes Ernst (johannes.er...@gmail.com) wrote: > >> It appears systemd-sysusers does not create home directories. On > >> the other hand, it picks (largely unpredictable) UIDs from a > >> range. > >> > >> So I have to run systemd-sysusers, and after that, find the UID >