summaryrefslogtreecommitdiff
path: root/ext4_utils/ext4_crypt_init_extensions.h
blob: f56435610159be740da06a504075196a71c7a7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <sys/cdefs.h>
#include <stdbool.h>
#include <cutils/multiuser.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);
int e4crypt_do_init_user0();
int do_policy_set(const char *directory, const char *policy, int policy_length);

static const char* e4crypt_unencrypted_folder = "/unencrypted";
static const char* e4crypt_key_ref = "/unencrypted/ref";

__END_DECLS