diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-12-02 01:54:41 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-13 20:59:10 +0100 |
commit | 74dd6b515fa968c5710b396a7664cac335e25ca8 (patch) | |
tree | 4aa9a78c228ce5e2833e2b3ed0bbee931895f653 /src/hwdb | |
parent | 9ef4e1e5a2d0a9cc50406f1cae05f3918d6f0c2a (diff) |
core: run each system service with a fresh session keyring
This patch ensures that each system service gets its own session kernel keyring
automatically, and implicitly. Without this a keyring is allocated for it
on-demand, but is then linked with the user's kernel keyring, which is OK
behaviour for logged in users, but not so much for system services.
With this change each service gets a session keyring that is specific to the
service and ceases to exist when the service is shut down. The session keyring
is not linked up with the user keyring and keys hence only search within the
session boundaries by default.
(This is useful in a later commit to store per-service material in the keyring,
for example the invocation ID)
(With input from David Howells)
Diffstat (limited to 'src/hwdb')
0 files changed, 0 insertions, 0 deletions