blob: 09cf00f3e6ce6857808066be32589ddc56b2aed3 [file] [log] [blame]
Pawan Chilka300b38c2017-07-12 18:49:55 +05301#allow access to sysfs to know HDMI repeater state
2allow wfdservice sysfs_graphics:file rw_file_perms;
Deepak Kushwahf9d0b752017-07-26 15:14:12 +05303allow wfdservice sysfs_graphics:dir r_dir_perms;
Manu Prasad6b869a82014-12-05 18:53:01 +05304
5#Allow access to firmware files for HDCP session
Avijit Kanti Das441bad42015-05-12 14:07:41 -07006r_dir_file(wfdservice, firmware_file)
Manu Prasad6b869a82014-12-05 18:53:01 +05307
Biswajit Paul28439f92015-07-15 13:28:27 -07008
Pawan Chilka300b38c2017-07-12 18:49:55 +05309#Allow hardware binder use
10hwbinder_use(wfdservice)
11get_prop(wfdservice, hwservicemanager_prop)
Lubin Yinb73126b2017-05-24 18:05:10 -070012
13#Allow hal graphics mapper permissions
14hal_client_domain(wfdservice, hal_graphics_composer);
15
16#Allow hal graphics allocator permissions
17hal_client_domain(wfdservice, hal_graphics_allocator);
18
Deepak Kushwahfb797d92017-06-30 18:53:23 +053019hal_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
23allow wfdservice wifidisplayhalservice_hwservice:hwservice_manager find;
Manu Prasadb18b6262017-11-15 17:46:56 +053024
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
27hal_client_domain(wfdservice, hal_display_config);