From 3604132904fcd3ad49945d0930bbf20f1888a00b Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Wed, 21 Jun 2017 10:25:01 -0700 Subject: 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 --- cmd/fscrypt/fscrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/fscrypt/fscrypt.go') 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]) } -- cgit v1.2.3