diff options
| author | Joseph Richey <joerichey@google.com> | 2018-08-30 13:41:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-30 13:41:49 -0700 |
| commit | 0f451a722918f39fa07bd9337e4a14ca154b13ae (patch) | |
| tree | 9868ffed8cb74357a06e63b88c56d71b13b415af /metadata/policy.go | |
| parent | 1e1b67dae6c3ae3b5acb5ce377b01b286c3e676b (diff) | |
| parent | 1c9bafdec78b8f238a82314b6d9c566a951486c2 (diff) | |
Merge pull request #107 from google/mod
Use Go Modules and support Go 1.11 building
Diffstat (limited to 'metadata/policy.go')
| -rw-r--r-- | metadata/policy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/metadata/policy.go b/metadata/policy.go index ce40f9c..d83aa9d 100644 --- a/metadata/policy.go +++ b/metadata/policy.go @@ -138,7 +138,7 @@ func SetPolicy(path string, data *PolicyData) error { Version: 0, // Version must always be zero Contents_encryption_mode: uint8(data.Options.Contents), Filenames_encryption_mode: uint8(data.Options.Filenames), - Flags: uint8(paddingFlag), + Flags: uint8(paddingFlag), } copy(policy.Master_key_descriptor[:], descriptorBytes) @@ -176,7 +176,7 @@ func CheckSupport(path string) error { Version: math.MaxUint8, Contents_encryption_mode: math.MaxUint8, Filenames_encryption_mode: math.MaxUint8, - Flags: math.MaxUint8, + Flags: math.MaxUint8, } err = policyIoctl(file, unix.FS_IOC_SET_ENCRYPTION_POLICY, &badPolicy) |