OrdenKrieger | bb6abee | 2019-08-05 23:51:15 +0200 | [diff] [blame^] | 1 | type hal_light_msmnile, coredomain, domain; |
| 2 | |
| 3 | # Allow a base set of permissions required for a domain to offer a |
| 4 | # HAL implementation of the specified type over HwBinder. |
| 5 | typeattribute hal_light_msmnile halclientdomain; |
| 6 | typeattribute hal_light_msmnile hal_light_client; |
| 7 | |
| 8 | # HwBinder IPC from client to server, and callbacks |
| 9 | binder_call(hal_light_client, hal_light_server) |
| 10 | binder_call(hal_light_server, hal_light_client) |
| 11 | |
| 12 | add_hwservice(hal_light_server, hal_light_hwservice) |
| 13 | allow hal_light_client hal_light_hwservice:hwservice_manager find; |
| 14 | |
| 15 | type hal_light_msmnile_exec, exec_type, file_type; |
| 16 | init_daemon_domain(hal_light_msmnile) |
| 17 | |
| 18 | allow hal_light_msmnile { sysfs_graphics sysfs_rg_led }:lnk_file read; |
| 19 | allow hal_light_msmnile { sysfs_graphics sysfs_rg_led }:file rw_file_perms; |
| 20 | allow hal_light_msmnile { sysfs_graphics sysfs_leds sysfs_rg_led }:dir r_dir_perms; |