Add types to tcsd config options.

This commit is contained in:
Alexander Kjeldaas
2014-04-22 14:05:09 +02:00
parent 5065802b3a
commit 4cca346d21
+7
View File
@@ -38,6 +38,7 @@ in
enable = mkOption { enable = mkOption {
default = false; default = false;
type = types.bool;
description = '' description = ''
Whether to enable tcsd, a Trusted Computing management service Whether to enable tcsd, a Trusted Computing management service
that provides TCG Software Stack (TSS). The tcsd daemon is that provides TCG Software Stack (TSS). The tcsd daemon is
@@ -48,16 +49,19 @@ in
user = mkOption { user = mkOption {
default = "tss"; default = "tss";
type = types.string;
description = "User account under which tcsd runs."; description = "User account under which tcsd runs.";
}; };
group = mkOption { group = mkOption {
default = "tss"; default = "tss";
type = types.string;
description = "Group account under which tcsd runs."; description = "Group account under which tcsd runs.";
}; };
stateDir = mkOption { stateDir = mkOption {
default = "/var/lib/tpm"; default = "/var/lib/tpm";
type = types.path;
description = '' description = ''
The location of the system persistent storage file. The location of the system persistent storage file.
The system persistent storage file holds keys and data across The system persistent storage file holds keys and data across
@@ -67,6 +71,7 @@ in
platformCred = mkOption { platformCred = mkOption {
default = "${cfg.stateDir}/platform.cert"; default = "${cfg.stateDir}/platform.cert";
type = types.path;
description = '' description = ''
Path to the platform credential for your TPM. Your TPM Path to the platform credential for your TPM. Your TPM
manufacturer may have provided you with a set of credentials manufacturer may have provided you with a set of credentials
@@ -79,6 +84,7 @@ in
conformanceCred = mkOption { conformanceCred = mkOption {
default = "${cfg.stateDir}/conformance.cert"; default = "${cfg.stateDir}/conformance.cert";
type = types.path;
description = '' description = ''
Path to the conformance credential for your TPM. Path to the conformance credential for your TPM.
See also the platformCred option''; See also the platformCred option'';
@@ -86,6 +92,7 @@ in
endorsementCred = mkOption { endorsementCred = mkOption {
default = "${cfg.stateDir}/endorsement.cert"; default = "${cfg.stateDir}/endorsement.cert";
type = types.path;
description = '' description = ''
Path to the endorsement credential for your TPM. Path to the endorsement credential for your TPM.
See also the platformCred option''; See also the platformCred option'';