diff options
| author | Joe Richey <joerichey@google.com> | 2017-03-02 10:38:33 -0800 |
|---|---|---|
| committer | Joe Richey joerichey@google.com <joerichey@google.com> | 2017-05-02 13:39:18 -0700 |
| commit | a683ab55245aa44ada5059f8e9816adbd94198ff (patch) | |
| tree | 13b966a777803e1b2a870b89219c3440259e9ffb /metadata/metadata.pb.go | |
| parent | 06e86bde8886aca3e1cd8cbc948cff7a103f97ab (diff) | |
metadata: get and set policies from go
This commit adds in the ability to get and set policy data from go using
the GetPolicy and SetPolicy functions. This is done via a patch of the
x/sys/unix package that exposes the filesystem encryption structures.
Note that not all the fields of the PolicyData protocol buffer are
needed to get and set policies. The wrapped_policy_keys are not used and
will be written and read by other components of fscrypt.
To run the policy tests, the environment variable BASE_TEST_DIR must be
set to a directory for testing on a filesystem that supports encryption.
Change-Id: I13b1d983356845f3ffc1945cedf53234218f32e5
Diffstat (limited to 'metadata/metadata.pb.go')
| -rw-r--r-- | metadata/metadata.pb.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/metadata/metadata.pb.go b/metadata/metadata.pb.go index 68001e9..bf30309 100644 --- a/metadata/metadata.pb.go +++ b/metadata/metadata.pb.go @@ -62,7 +62,7 @@ func (x SourceType) String() string { } func (SourceType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -// Type of encryption, should match the declarations of FS_ENCRYPTION_MODE +// Type of encryption, should match the declarations of unix.FS_ENCRYPTION_MODE type EncryptionMode int32 const ( |