8fc7981885
Before, it was possible to access a hwservice without declaring that you were a client. This introduces the following macro: hal_attribute_hwservice_client(hal_foo, hal_foo_hwservice) which makes sure the above implication holds using a neverallow rule. Bug: 80319537 Test: boot + sanity Change-Id: Iededae68f14f0f3bd412c1205aa3b650a54d55c6
9 lines
348 B
Text
9 lines
348 B
Text
# HwBinder IPC from client to server
|
|
binder_call(hal_vibrator_client, hal_vibrator_server)
|
|
|
|
add_hwservice(hal_vibrator_server, hal_vibrator_hwservice)
|
|
hal_attribute_hwservice_client(hal_vibrator, hal_vibrator_hwservice)
|
|
|
|
# vibrator sysfs rw access
|
|
allow hal_vibrator sysfs_vibrator:file rw_file_perms;
|
|
allow hal_vibrator sysfs_vibrator:dir search;
|