Commits
Wenbo.Zhu committed ebac174c5d2
MA-10676 Camera APP crash when take picture. Add selinux policies to make vpu work when camera take picture. Add policy about hal_audio_default for snapshot when video recording. selinux info: 1. avc: denied { read } for pid=269 comm="MessageThread" name="soc_id" dev="sysfs" ino=2489 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 2. avc: denied { open } for pid=269 comm="MessageThread" path="/sys/devices/soc0/ soc_id" dev="sysfs" ino=2489 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 3. avc: denied { getattr } for pid=269 comm="MessageThread" path="/sys/devices/ soc0/soc_id" dev="sysfs" ino=2489 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 4. avc: denied { read write } for pid=269 comm="MessageThread" name="vpu" dev="tmpfs" ino=14093 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:mediacodec_tmpfs:s0 tclass=file permissive=0 5. avc: denied { open } for pid=269 comm="MessageThread" path="/mnt/shm/vpu" dev="tmpfs" ino=14093 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:mediacodec_tmpfs:s0 tclass=file permissive=0 6. avc: denied { write } for pid=269 comm="provider@2.4-se" name="pxp_device" dev="tmpfs" ino=9589 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:pxp_device:s0 tclass=chr_file permissive=0 7. avc: denied { write } for pid=391 comm="Binder:391_3" name="timerslack_ns" dev="proc" ino=25019 scontext=u:r:system_server:s0 tcontext=u:r:hal_audio_default:s0 tclass=file permissive=0 Change-Id: I253da5267dc37aaffc7e5335ecc16ce2f2db5938 Signed-off-by: Wenbo.Zhu <wenbo.zhu_1@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/3378 Reviewed-by: guoyin.chen <guoyin.chen@nxp.com>