aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/status.go
diff options
context:
space:
mode:
authorebiggers <ebiggers@google.com>2019-09-09 14:10:11 -0700
committerJoseph Richey <joerichey@google.com>2019-09-09 14:10:11 -0700
commitd3a1991d4665578e5f315d4aab00b4e29c01df07 (patch)
treeae57363d0f2881f2c886bf7630b77723e905ed96 /cmd/fscrypt/status.go
parent237308a671bd2bbea2059bea9e75cb1272edbdbf (diff)
cmd/fscrypt: show encryption options with 'fscrypt status DIR' (#145)
Show the encryption options when running 'fscrypt status' on a directory. E.g.: Policy: 490515286453d3f7 Options: padding:32 contents:Adiantum filenames:Adiantum Unlocked: Yes
Diffstat (limited to 'cmd/fscrypt/status.go')
-rw-r--r--cmd/fscrypt/status.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/fscrypt/status.go b/cmd/fscrypt/status.go
index f911193..9959b54 100644
--- a/cmd/fscrypt/status.go
+++ b/cmd/fscrypt/status.go
@@ -178,6 +178,7 @@ func writePathStatus(w io.Writer, path string) error {
fmt.Fprintf(w, "%q is encrypted with fscrypt.\n", path)
fmt.Fprintln(w)
fmt.Fprintf(w, "Policy: %s\n", policy.Descriptor())
+ fmt.Fprintf(w, "Options: %s\n", policy.Options())
fmt.Fprintf(w, "Unlocked: %s\n", yesNoString(policy.IsProvisioned()))
fmt.Fprintln(w)