allow camera HAL to talk to perf

avc: denied { connectto } path="/dev/socket/perfd"
scontext=u:r:hal_camera_default:s0 tcontext=u:r:perfd:s0
tclass=unix_stream_socket

Bug: 38200564
Change-Id: Ib68364976474200420c1b0d1953167a8594d4763
Test: policy builds
This commit is contained in:
Jeff Vander Stoep
2017-05-10 12:47:38 -07:00
parent c311fcaa79
commit e7729bc10e

View File

@@ -1,7 +1,6 @@
# communicate with perfd
#allow hal_camera perfd_data_file:dir search;
#allow hal_camera perfd:unix_stream_socket connectto;
#allow hal_camera perfd_data_file:sock_file write;
allow hal_camera perfd:unix_stream_socket connectto;
allow hal_camera perfd_socket:sock_file write;
allow hal_camera self:capability sys_nice;