platform_system_sepolicy/public/system_suspend_server.te
Tri Vo a532088e7f Decouple system_suspend from hal attributes.
System suspend service is not a HAL, so avoid using HAL-specific macros
and attributes.

Use system_suspend_server attribute for ISystemSuspend.hal permissions.
Use system_suspend type directly for internal .aidl interface
permissions.

Bug: 126259100
Test: m selinux_policy
Test: blueline boots; wakelocks can still be acquired; device suspends
if left alone.
Change-Id: Ie811e7da46023705c93ff4d76d15709a56706714
2019-02-26 18:10:28 -08:00

6 lines
225 B
Text

# Required to export a HIDL interface.
hwbinder_use(system_suspend_server)
get_prop(system_suspend_server, hwservicemanager_prop)
# To serve ISystemSuspend.hal.
add_hwservice(system_suspend_server, system_suspend_hwservice)