The three OpenPhone system services (openphone_agent, openphone_context, openphone_assistant_data) are labelled system_api_service in patches/system_sepolicy/0001-0003 under private/service.te. That attribute exposes the services to any system_app domain, which is slightly broader than needed — the only intended caller is the platform-signed OpenPhoneAssistant app.
Fix
- Introduce dedicated types (e.g.
openphone_service) and allow rules specific to the assistant's domain, dropping the broad system_api_service grouping.
- Verify with
sepolicy_analyze neverallow that no unintended domain retains access.
Size: S
The three OpenPhone system services (
openphone_agent,openphone_context,openphone_assistant_data) are labelledsystem_api_serviceinpatches/system_sepolicy/0001-0003underprivate/service.te. That attribute exposes the services to anysystem_appdomain, which is slightly broader than needed — the only intended caller is the platform-signedOpenPhoneAssistantapp.Fix
openphone_service) and allow rules specific to the assistant's domain, dropping the broadsystem_api_servicegrouping.sepolicy_analyze neverallowthat no unintended domain retains access.Size: S