[Issue#] N/A
[Bug/Feature] Add contact-service and email-service rule to read shared dirs.
[Cause] N/A
[Solution] N/A
[Verification] Build, run tests, check if "contats-service ~SHARED_DIR~ rx" and
"email-service ~SHARED_DIR~ rx" rules are pressent in system.
Change-Id: I0a54ac67a15e9dd5e6509eecd5bdffbc008379ce
free(app_ids[i]);
}
+ // TODO: This is only a quick fix. Should be re-write to use rule-config file.
+ ret = app_add_rule("contacts-service", label, "rx");
+ if (ret != PC_OPERATION_SUCCESS) {
+ C_LOGE("smack_accesses_new failed");
+ return ret;
+ }
+ ret = app_add_rule("email-service", label, "rx");
+ if (ret != PC_OPERATION_SUCCESS) {
+ C_LOGE("smack_accesses_new failed");
+ return ret;
+ }
+
return PC_OPERATION_SUCCESS;
}