diff options
author | Paul Lawrence <paullawrence@google.com> | 2015-04-29 16:24:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-29 16:24:25 +0000 |
commit | efd93b16b36d2aecc994c282317f37729bab7357 (patch) | |
tree | b19169278c19643d7df88c43659a020e54ef6e67 /ext4_utils/ext4_crypt_init_extensions.h | |
parent | cf461bced1ef97331e808ab0fb994a6ada93f2eb (diff) | |
parent | 377cd1957172c19ee21baa3d6bda0840f1ce020d (diff) | |
download | extras-efd93b16b36d2aecc994c282317f37729bab7357.tar.gz |
Merge "Securely encrypt the master key"master-soong
Diffstat (limited to 'ext4_utils/ext4_crypt_init_extensions.h')
-rw-r--r-- | ext4_utils/ext4_crypt_init_extensions.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext4_utils/ext4_crypt_init_extensions.h b/ext4_utils/ext4_crypt_init_extensions.h new file mode 100644 index 00000000..17f5b2e0 --- /dev/null +++ b/ext4_utils/ext4_crypt_init_extensions.h @@ -0,0 +1,15 @@ +#include <sys/cdefs.h> +#include <stdbool.h> + +__BEGIN_DECLS + +// These functions assume they are being called from init +// They will not operate properly outside of init +int e4crypt_install_keyring(); +int e4crypt_create_device_key(const char* path, + int ensure_dir_exists(const char* dir)); +int e4crypt_set_directory_policy(const char* path); +bool e4crypt_non_default_key(const char* path); +int do_policy_set(const char *directory, const char *policy); + +__END_DECLS |