aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/flags.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2017-08-22 11:46:39 -0700
committerGitHub <noreply@github.com>2017-08-22 11:46:39 -0700
commit17794e94ebe140dc74f93abb8132f5295ee2004e (patch)
tree3e79eee2f6e266ea7cd4eab7473bde7faa01e585 /cmd/fscrypt/flags.go
parentb4d51e0f4d34dbfd78e23662f3dfd90e86ae5e48 (diff)
parent50256fab010adfde1b349160460659fb03d8c8ac (diff)
Merge pull request #39 from google/purge
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