swtpm/samples
Marc-André Lureau c5a3a4f2f9 swtpm-setup: follow XDG spec more closely for default config
According to the XDG spec,
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html:
"If $XDG_CONFIG_HOME is either not set or empty, a default equal to
$HOME/.config should be used."

This fixes setting up a TPM with libvirt running in a user session.

It works by checking if configuration files are readable in the
directory priority order (XDG_CONFIG_HOME, then HOME, then SYSCONFDIR).

When libvirt is running as a system instance, $HOME isn't set, so it
will fall back on @SYSCONFDIR@ (/etc usually)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-02-26 08:36:10 -05:00
..
Makefile.am samples: Add a script to create a TPM 1.2 intermediate CA 2018-10-15 20:45:48 -04:00
swtpm-create-tpmca samples: Enable support for well known SRK password (TPM 1.2) 2018-11-09 15:07:54 -05:00
swtpm-localca.conf.in build-sys: Adjust localstatedir and files using it 2019-01-17 11:28:40 -05:00
swtpm-localca.in swtpm-setup: follow XDG spec more closely for default config 2019-02-26 08:36:10 -05:00
swtpm-localca.options samples: remove the TPM attribute parameters from the options file 2018-05-05 01:09:46 -04:00