Lines Matching refs:dir
42 static int set_system_de_policy_on(char const* dir);
59 int fscrypt_set_directory_policy(const char* dir) in fscrypt_set_directory_policy() argument
61 if (!dir || strncmp(dir, "/data/", 6)) { in fscrypt_set_directory_policy()
66 if (strcmp(dir, "/data/media/obb") == 0) { in fscrypt_set_directory_policy()
68 set_system_de_policy_on(dir); in fscrypt_set_directory_policy()
76 if (strchr(dir + 6, '/')) { in fscrypt_set_directory_policy()
95 if ((prefix + d) == dir) { in fscrypt_set_directory_policy()
96 LOG(INFO) << "Not setting policy on " << dir; in fscrypt_set_directory_policy()
100 return set_system_de_policy_on(dir); in fscrypt_set_directory_policy()
103 static int set_system_de_policy_on(char const* dir) { in set_system_de_policy_on() argument
107 LOG(ERROR) << "Unable to read system policy to set on " << dir; in set_system_de_policy_on()
124 LOG(INFO) << "Setting policy on " << dir; in set_system_de_policy_on()
125 int result = fscrypt_policy_ensure(dir, policy.c_str(), policy.length(), in set_system_de_policy_on()
132 policy[0], policy[1], policy[2], policy[3], dir); in set_system_de_policy_on()