Commits
wenbo.zhu committed 67975ed2600
MA-13864 Video can't play(vpu init failed) on imx6 platform. Vpu init failed due to selinux permission error and there isn't /mnt/shm created. Add related sepolicies to allow the operation. avc: denied { create } for pid=160 comm="init" name="shm" scontext=u:r: vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1 avc: denied { add_name } for pid=160 comm="init" name="shm" scontext=u:r: vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1 avc: denied { write } for pid=160 comm="init" name="storage" dev="rootfs" ino=5852 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 avc: denied { add_name } for pid=160 comm="init" name="sdcard0" scontext=u:r: vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 avc: denied { create } for pid=160 comm="init" name="device" scontext=u:r: vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 avc: denied { setattr } for pid=160 comm="init" name="device" dev="rootfs" ino=8285 scontext=u:r:vendor_init:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=1 avc: denied { write } for pid=160 comm="init" name="/" dev="tmpfs" ino=6912 scontext=u:r:vendor_init:s0 tcontext=u:object_r:tmpfs:s0 tclass=dir permissive=1 avc: denied { getattr } for pid=769 comm="ls" path="/mnt/media_rw" dev="tmpfs" ino=10906 scontext=u:r:shell:s0 tcontext=u:object_r:mnt_media_rw_file:s0 tclass=dir permissive=1 Change-Id: Ief619197a5e98bc6cb29c6dc6ce76c23c82564a8 Signed-off-by: wenbo.zhu <wenbo.zhu_1@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/6970 Reviewed-by: Xuegang Liu <xuegang.liu@nxp.com>