aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/flags.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-08-15 18:11:29 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-08-17 22:49:44 -0700
commit151e8965fa3a9c8f65e316430f9df0fa763fb02d (patch)
tree5be6cb1e1d617e60ba7624abc3c940c65715ba5e /cmd/fscrypt/flags.go
parentb4d51e0f4d34dbfd78e23662f3dfd90e86ae5e48 (diff)
cmd/fscrypt: purge command now clears cache
Diffstat (limited to 'cmd/fscrypt/flags.go')
-rw-r--r--cmd/fscrypt/flags.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/fscrypt/flags.go b/cmd/fscrypt/flags.go
index d54a3bd..a06b952 100644
--- a/cmd/fscrypt/flags.go
+++ b/cmd/fscrypt/flags.go
@@ -158,6 +158,14 @@ var (
"fscrypt unlock" will need to be run in order to use the
directory.`,
}
+ dropCachesFlag = &boolFlag{
+ Name: "drop-caches",
+ Usage: `After purging the keys from the keyring, drop the
+ inode and dentry cache for the purge to take effect.
+ Without this flag, cached encrypted files may still have
+ their plaintext visible. Requires root privileges.`,
+ Default: true,
+ }
)
// Option flags: used to specify options instead of being prompted for them