Biswajit Paul | 6786a92 | 2017-03-16 11:53:53 -0700 | [diff] [blame] | 1 | type fidodaemon, domain; |
Ravi Kumar Siddojigari | c7def12 | 2017-06-13 00:49:19 +0530 | [diff] [blame] | 2 | type fidodaemon_exec, exec_type, vendor_file_type, file_type; |
Puneet Mishra | 7e568c9 | 2015-04-02 12:28:01 +0100 | [diff] [blame] | 3 | |
| 4 | #Allow for transition from init domain to fidodaemon |
| 5 | init_daemon_domain(fidodaemon) |
| 6 | |
| 7 | #Allow fidodaemon to use Binder IPC |
Ravi Kumar Siddojigari | c7def12 | 2017-06-13 00:49:19 +0530 | [diff] [blame] | 8 | #binder_use(fidodaemon) |
Puneet Mishra | 7e568c9 | 2015-04-02 12:28:01 +0100 | [diff] [blame] | 9 | |
| 10 | #Allow apps to interact with fidodaemon |
| 11 | binder_call(fidodaemon, platform_app) |
| 12 | binder_call(fidodaemon, system_app) |
| 13 | |
| 14 | #Mark fidodaemon as a Binder service domain |
Ravi Kumar Siddojigari | c7def12 | 2017-06-13 00:49:19 +0530 | [diff] [blame] | 15 | #binder_service(fidodaemon) |
Puneet Mishra | 7e568c9 | 2015-04-02 12:28:01 +0100 | [diff] [blame] | 16 | |
| 17 | #Allow fidodaemon to be registered with service manager |
| 18 | allow fidodaemon fidodaemon_service:service_manager add; |
| 19 | |
Puneet Mishra | 7e568c9 | 2015-04-02 12:28:01 +0100 | [diff] [blame] | 20 | #Allow access to tee device |
| 21 | allow fidodaemon tee_device:chr_file rw_file_perms; |
| 22 | |
| 23 | #Allow access to firmware |
Avijit Kanti Das | 441bad4 | 2015-05-12 14:07:41 -0700 | [diff] [blame] | 24 | r_dir_file(fidodaemon, firmware_file) |