OSDN Git Service

Add methods to get and ensure encryption policy.
authorJeff Sharkey <jsharkey@android.com>
Wed, 3 Feb 2016 22:30:33 +0000 (15:30 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 5 Feb 2016 17:58:47 +0000 (10:58 -0700)
commit78efe41174950783e39782c71ff8382f851bb487
tree62993bdf0ca58f7086dde493692badc6b5aa7f40
parent59ffd6d9c7dd3ddaa036956d89c3e4d416769bf6
Add methods to get and ensure encryption policy.

The ensure call will either assign an encryption policy, or verify
that an existing policy matches the expected value.  Uses the new
logging library so that customers can pivot logs into whatever
location they want: vold into logcat and init into dmesg.

Also add new directories that will have user-specific encryption
policy set on them so we avoid setting the default policy.

Bug: 25796509
Change-Id: Ia535630092822c80cde0939d8e46e6b47d9be2d8
ext4_utils/Android.mk
ext4_utils/ext4_crypt.cpp
ext4_utils/ext4_crypt.h [new file with mode: 0644]
ext4_utils/ext4_crypt_init_extensions.cpp
ext4_utils/ext4_crypt_init_extensions.h