OSDN Git Service

DO NOT MERGE New ext4enc kernel switching from xattrs to ioctl
[android-x86/system-extras.git] / ext4_utils / ext4_crypt_init_extensions.h
1 #include <sys/cdefs.h>
2 #include <stdbool.h>
3
4 __BEGIN_DECLS
5
6 // These functions assume they are being called from init
7 // They will not operate properly outside of init
8 int e4crypt_install_keyring();
9 int e4crypt_create_device_key(const char* path,
10                               int ensure_dir_exists(const char* dir));
11 int e4crypt_set_directory_policy(const char* path);
12 bool e4crypt_non_default_key(const char* path);
13 int do_policy_set(const char *directory, const char *policy, int policy_length);
14
15 __END_DECLS