]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
pid1: search for creds in LoadCredential=/LoadCredentialEncrypted=
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Apr 2022 13:32:21 +0000 (15:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Apr 2022 16:12:00 +0000 (18:12 +0200)
commit2ad591a3a3d0e0da43c0e3252cc15bd00af9bfb7
tree72be377551326e64391571d4a6cdeaa2f00fa09a
parent4b9a4b01793170b9b17467711195552ef1f25ab8
pid1: search for creds in LoadCredential=/LoadCredentialEncrypted=

This adds support for searching for credentials more comprehensively.

Specifically, unless an absolute source path is specified we'll now
search for the credentials in the system credentials first, and then in
/etc/credstore/, /run/credstore/, and /usr/lib/credstore, making these
dirs hence the recommended place for credentials to leave in the system.

For LoadCredentialEncrypted= we'll also look into
/etc/credstore.encrypted/, /run/credstore.encrypted/, …. These dirs are
hence suitable for credentials whose provenience isn't trusted (e.g.
UEFI creds from systemd-stub), and thus require to be authenticated
before use.
src/core/execute.c
src/core/execute.h
src/core/manager.c
src/core/manager.h
src/core/unit.c