aboutsummaryrefslogtreecommitdiff
path: root/actions/policy.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2018-08-30 13:41:49 -0700
committerGitHub <noreply@github.com>2018-08-30 13:41:49 -0700
commit0f451a722918f39fa07bd9337e4a14ca154b13ae (patch)
tree9868ffed8cb74357a06e63b88c56d71b13b415af /actions/policy.go
parent1e1b67dae6c3ae3b5acb5ce377b01b286c3e676b (diff)
parent1c9bafdec78b8f238a82314b6d9c566a951486c2 (diff)
Merge pull request #107 from google/mod
Use Go Modules and support Go 1.11 building
Diffstat (limited to 'actions/policy.go')
-rw-r--r--actions/policy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/policy.go b/actions/policy.go
index cbdcb3a..39c235d 100644
--- a/actions/policy.go
+++ b/actions/policy.go
@@ -22,8 +22,8 @@ package actions
import (
"fmt"
"log"
- "reflect"
+ "github.com/golang/protobuf/proto"
"github.com/pkg/errors"
"github.com/google/fscrypt/crypto"
@@ -153,7 +153,7 @@ func GetPolicyFromPath(ctx *Context, path string) (*Policy, error) {
}
log.Printf("found data for policy %s on %q", descriptor, ctx.Mount.Path)
- if !reflect.DeepEqual(pathData.Options, mountData.Options) {
+ if !proto.Equal(pathData.Options, mountData.Options) {
log.Printf("options from path: %+v", pathData.Options)
log.Printf("options from mount: %+v", mountData.Options)
return nil, errors.Wrapf(ErrPolicyMetadataMismatch, "policy %s", descriptor)