Update SELinux policy to allow camera HAL to send Perfetto trace packets
Example denials: 03-04 04:25:37.524 823 823 I TracingMuxer: type=1400 audit(0.0:31): avc: denied { use } for path=2F6D656D66643A706572666574746F5F73686D656D202864656C6574656429 dev="tmpfs" ino=20229 scontext=u:r:hal_camera_default:s0 tcontext=u:r:tr aced:s0 tclass=fd permissive=1 03-04 04:25:37.524 823 823 I TracingMuxer: type=1400 audit(0.0:32): avc: denied { read write } for path=2F6D656D66643A706572666574746F5F73686D656D202864656C6574656429 dev="tmpfs" ino=20229 scontext=u:r:hal_camera_default:s0 tcontext =u:object_r:traced_tmpfs:s0 tclass=file permissive=1 03-04 04:25:37.524 823 823 I TracingMuxer: type=1400 audit(0.0:33): avc: denied { getattr } for path=2F6D656D66643A706572666574746F5F73686D656D202864656C6574656429 dev="tmpfs" ino=20229 scontext=u:r:hal_camera_default:s0 tcontext=u: object_r:traced_tmpfs:s0 tclass=file permissive=1 03-04 04:25:37.524 823 823 I TracingMuxer: type=1400 audit(0.0:34): avc: denied { map } for path=2F6D656D66643A706572666574746F5F73686D656D202864656C6574656429 dev="tmpfs" ino=20229 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:traced_tmpfs:s0 tclass=file permissive=1 Bug: 222684359 Test: Build and push new SELinux policy. Verify that trace packets are received by Perfetto. Change-Id: I443e84c5bcc701c1c983db19280719655ff02080
This commit is contained in:
parent
db1196932e
commit
07bf62c387
1 changed files with 4 additions and 1 deletions
|
@ -85,6 +85,9 @@ allow hal_camera_default apex_info_file:file r_file_perms;
|
||||||
# Allow camera HAL to query current device clock frequencies.
|
# Allow camera HAL to query current device clock frequencies.
|
||||||
allow hal_camera_default sysfs_devfreq_cur:file r_file_perms;
|
allow hal_camera_default sysfs_devfreq_cur:file r_file_perms;
|
||||||
|
|
||||||
# allow camera HAL to read backlight of display
|
# Allow camera HAL to read backlight of display
|
||||||
allow hal_camera_default sysfs_leds:dir r_dir_perms;
|
allow hal_camera_default sysfs_leds:dir r_dir_perms;
|
||||||
allow hal_camera_default sysfs_leds:file r_file_perms;
|
allow hal_camera_default sysfs_leds:file r_file_perms;
|
||||||
|
|
||||||
|
# Allow camera HAL to send trace packets to Perfetto
|
||||||
|
userdebug_or_eng(`perfetto_producer(hal_camera_default)')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue