Pawan Chilka | 300b38c | 2017-07-12 18:49:55 +0530 | [diff] [blame] | 1 | #allow access to sysfs to know HDMI repeater state |
| 2 | allow wfdservice sysfs_graphics:file rw_file_perms; |
Deepak Kushwah | f9d0b75 | 2017-07-26 15:14:12 +0530 | [diff] [blame] | 3 | allow wfdservice sysfs_graphics:dir r_dir_perms; |
Manu Prasad | 6b869a8 | 2014-12-05 18:53:01 +0530 | [diff] [blame] | 4 | |
| 5 | #Allow access to firmware files for HDCP session |
Avijit Kanti Das | 441bad4 | 2015-05-12 14:07:41 -0700 | [diff] [blame] | 6 | r_dir_file(wfdservice, firmware_file) |
Manu Prasad | 6b869a8 | 2014-12-05 18:53:01 +0530 | [diff] [blame] | 7 | |
Biswajit Paul | 28439f9 | 2015-07-15 13:28:27 -0700 | [diff] [blame] | 8 | |
Pawan Chilka | 300b38c | 2017-07-12 18:49:55 +0530 | [diff] [blame] | 9 | #Allow hardware binder use |
| 10 | hwbinder_use(wfdservice) |
| 11 | get_prop(wfdservice, hwservicemanager_prop) |
Lubin Yin | b73126b | 2017-05-24 18:05:10 -0700 | [diff] [blame] | 12 | |
| 13 | #Allow hal graphics mapper permissions |
| 14 | hal_client_domain(wfdservice, hal_graphics_composer); |
| 15 | |
| 16 | #Allow hal graphics allocator permissions |
| 17 | hal_client_domain(wfdservice, hal_graphics_allocator); |
| 18 | |
Deepak Kushwah | fb797d9 | 2017-06-30 18:53:23 +0530 | [diff] [blame] | 19 | hal_client_domain(wfdservice, wifidisplayhalservice); |
| 20 | |
| 21 | #Denial seen - SELinux : avc: denied { find } for interface=com.qualcomm.qti.wifidisplayhal::IHDCPSession |
| 22 | #pid=3530 scontext=u:r:wfdservice:s0 tcontext=u:object_r:wifidisplayhalservice_hwservice:s0 tclass=hwservice_manager |
| 23 | allow wfdservice wifidisplayhalservice_hwservice:hwservice_manager find; |
Manu Prasad | b18b626 | 2017-11-15 17:46:56 +0530 | [diff] [blame] | 24 | |
| 25 | # Denial seen - SELinux : avc: denied { find } for interface=vendor.display.config::IDisplayConfig |
| 26 | # pid=4252 scontext=u:r:wfdservice:s0 tcontext=u:object_r:hal_display_config_hwservice:s0 tclass=hwservice_manager |
| 27 | hal_client_domain(wfdservice, hal_display_config); |