diff options
| author | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-06-21 10:25:01 -0700 |
|---|---|---|
| committer | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-06-28 15:15:21 -0700 |
| commit | 3604132904fcd3ad49945d0930bbf20f1888a00b (patch) | |
| tree | 8c10d34a953d0d17c52e70c73dfa458ff4a0ba24 /cmd/fscrypt/fscrypt.go | |
| parent | 37c866e1e16a6d2dded11ba93c2e04af3764a139 (diff) | |
cmd/fscrypt: add in status and purge commands
This commit adds in the status command, which has 2 functions, allowing
the user to query the state of the entire system or a specific
filesystem.
This commit also adds in the purge command to remove all policy keys
corresponding to a filesystem. This (along with getting the unlock
status for the status commands) uses additional keyctl functionality in
the crypto and actions packages.
Change-Id: Ic8e097b335c044c0b91973eff19753f363f4525d
Diffstat (limited to 'cmd/fscrypt/fscrypt.go')
| -rw-r--r-- | cmd/fscrypt/fscrypt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fscrypt/fscrypt.go b/cmd/fscrypt/fscrypt.go index d3185fa..7f0c000 100644 --- a/cmd/fscrypt/fscrypt.go +++ b/cmd/fscrypt/fscrypt.go @@ -75,7 +75,7 @@ func main() { // Initialize command list and setup all of the commands. app.Action = defaultAction - app.Commands = []cli.Command{Setup, Encrypt, Unlock} + app.Commands = []cli.Command{Setup, Encrypt, Unlock, Purge, Status} for i := range app.Commands { setupCommand(&app.Commands[i]) } |