OSDN Git Service

Fail with an error if we can't read the policy for encryption
authorPaul Crowley <paulcrowley@google.com>
Wed, 27 Apr 2016 17:24:40 +0000 (10:24 -0700)
committerPaul Crowley <paulcrowley@google.com>
Tue, 10 May 2016 15:39:04 +0000 (08:39 -0700)
commit8d53b9619ba913354ffdb23acf0108f7445bb8bc
tree1d244af9eefcb0036326759ece1128eccbb6619a
parentf7124d6c955c0453361b0ff47c5c94619e68087f
Fail with an error if we can't read the policy for encryption

The absence of a policy reference in the unencrypted directory now
causes e4crypt_set_directory_policy to fail with an error. Callers
should call e4crypt_is_native (now moved into here) before calling this.

Bug: 28318405
Change-Id: I209292aba3abad3b19105c9afe2b84e8b3dd6874
ext4_utils/ext4_crypt.cpp
ext4_utils/ext4_crypt.h
ext4_utils/ext4_crypt_init_extensions.cpp