blob: 140f1e2dd8be0ae3e033c59f7a7b0b32bf479603 [file] [log] [blame]
OrdenKriegerbb6abee2019-08-05 23:51:15 +02001type 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.
5typeattribute hal_light_msmnile halclientdomain;
6typeattribute hal_light_msmnile hal_light_client;
7
8# HwBinder IPC from client to server, and callbacks
9binder_call(hal_light_client, hal_light_server)
10binder_call(hal_light_server, hal_light_client)
11
12add_hwservice(hal_light_server, hal_light_hwservice)
13allow hal_light_client hal_light_hwservice:hwservice_manager find;
14
15type hal_light_msmnile_exec, exec_type, file_type;
16init_daemon_domain(hal_light_msmnile)
17
18allow hal_light_msmnile { sysfs_graphics sysfs_rg_led }:lnk_file read;
19allow hal_light_msmnile { sysfs_graphics sysfs_rg_led }:file rw_file_perms;
20allow hal_light_msmnile { sysfs_graphics sysfs_leds sysfs_rg_led }:dir r_dir_perms;