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
..
2016-11-21 13:15:12 +01:00
2019-11-05 12:12:14 +01:00
2019-06-20 17:01:44 +02:00
2019-08-29 12:46:33 +01:00
2017-10-16 10:22:34 +01:00
2019-12-20 12:25:42 -05:00
2019-12-20 12:25:42 -05:00
2019-12-23 10:08:05 +00:00
2019-08-28 13:39:26 +02:00
2018-12-17 17:52:46 +01:00
2019-12-04 15:48:28 +00:00
2017-08-02 15:00:28 -04:00
2019-07-09 10:42:39 -05:00