]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-id128: look for invocation id in environment first, keyring second
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2019 09:01:32 +0000 (10:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Mar 2019 11:06:15 +0000 (12:06 +0100)
commitc924888ffd4183083a5c2b37bc8b30aed7263f68
treec9600d2e36b7cee6e1d367d821937fdffabb2d28
parent17b70256f251905bcce9e7cdcd84e32213c8f5b4
sd-id128: look for invocation id in environment first, keyring second

As general principle, we generally check command line args first, the
enviroment second, and external configuration and system state only later.
In case of the invocation ID, checking the keyring before the environment
was implemented as a poor-man's security measure. But this is not really
useful, since we're moving within the same security boundary. So let's just
do the expected thing, and check environment first.

Prompted by https://github.com/systemd/systemd/pull/11991#issuecomment-474647652.
src/libsystemd/sd-id128/sd-id128.c