diff options
| author | ebiggers <ebiggers@google.com> | 2019-09-09 14:10:11 -0700 |
|---|---|---|
| committer | Joseph Richey <joerichey@google.com> | 2019-09-09 14:10:11 -0700 |
| commit | d3a1991d4665578e5f315d4aab00b4e29c01df07 (patch) | |
| tree | ae57363d0f2881f2c886bf7630b77723e905ed96 /actions/policy.go | |
| parent | 237308a671bd2bbea2059bea9e75cb1272edbdbf (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 'actions/policy.go')
| -rw-r--r-- | actions/policy.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/policy.go b/actions/policy.go index ef5f0a3..875a01f 100644 --- a/actions/policy.go +++ b/actions/policy.go @@ -194,6 +194,11 @@ func (policy *Policy) Description() string { return policy.Context.getService() + policy.Descriptor() } +// Options returns the encryption options of this policy. +func (policy *Policy) Options() *metadata.EncryptionOptions { + return policy.data.Options +} + // Destroy removes a policy from the filesystem. The internal key should still // be wiped with Lock(). func (policy *Policy) Destroy() error { |