libvirt/src/secret
Daniel P. Berrangé 3e9076e777 secrets: add support for running secret driver in embedded mode
This enables support for running the secret driver embedded to the
calling application process using a URI:

   secret:///embed?root=/some/path

When using the embedded mode with a root=/var/tmp/embed, the
driver will use the following paths:

       configDir: /var/tmp/embed/etc/secrets
        stateDir: /var/tmp/embed/run/secrets

These are identical whether the embedded driver is privileged
or unprivileged.

This compares with the system instance which uses

       configDir: /etc/libvirt/secrets
        stateDir: /var/lib/libvirt/secrets

When an embedded instance of the secret driver is open, any other
embedded drivers will automatically use the embedded secret driver.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-27 11:04:29 +00:00
..
Makefile.inc.am secret: move virSecretGetSecretString into virsecret 2020-01-17 15:52:37 +01:00
secret_driver.c secrets: add support for running secret driver in embedded mode 2020-01-27 11:04:29 +00:00
secret_driver.h src/secret: use #pragma once in headers 2019-06-19 17:12:31 +02:00
virtsecretd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtsecretd.service.in secret: introduce virtsecretd daemon 2019-08-09 14:06:31 +01:00