chiark / gitweb /
core: add new per-unit setting KeyringMode= for controlling kernel keyring setup
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Sep 2017 19:19:05 +0000 (21:19 +0200)
committerSven Eden <yamakuzure@gmx.net>
Thu, 14 Sep 2017 19:19:05 +0000 (21:19 +0200)
commitb8cf404aa0d2ad5826884fc03248f405ee91305e
tree0860eb356ed380a85af93e20c8b8169a6114fa80
parentaf2805e1412d56970eb1e735fe8dc954e572aa1c
core: add new per-unit setting KeyringMode= for controlling kernel keyring setup

Usually, it's a good thing that we isolate the kernel session keyring
for the various services and disconnect them from the user keyring.
However, in case of the cryptsetup key caching we actually want that
multiple instances of the cryptsetup service can share the keys in the
root user's user keyring, hence we need to be able to disable this logic
for them.

This adds KeyringMode=inherit|private|shared:

    inherit: don't do any keyring magic (this is the default in elogind --user)
    private: a private keyring as before (default in elogind --system)
    shared: the new setting
src/basic/missing.h