Commits
Wenbo.Zhu committed 1211c2b01c2
MA-12456 [Android] Fix selinux issue in Android 9. Add some sepolicies to fix some selinux errors when boot up board. avc: denied { write } for pid=1 comm="init" name="read_ahead_kb" dev="sysfs" ino=23581 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_dm:s0 tclass=file permissive=1 avc: denied { open } for pid=1 comm="init" path="/sys/devices/virtual/block/dm-0/ queue/read_ahead_kb" dev="sysfs" ino=23581 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_dm:s0 tclass=file permissive=1 avc: denied { map } for pid=2828 comm="vndservicemanag" path="/dev/event-log-tags" dev="tmpfs" ino=15502 scontext=u:r:vndservicemanager:s0 tcontext=u:object_r:runtime_event_log_tags_file:s0 tclass=file permissive=1 avc: denied { map } for pid=2838 comm="vold" path="/vendor/etc/selinux/vendor_file_contexts" dev="dm-1" ino=69 scontext=u:r:vold:s0 tcontext=u:object_r:vendor_configs_file:s0 tclass=file permissive=1 avc: denied { map } for pid=2914 comm="vold_prepare_su" path="/vendor/etc/selinux/vendor_file_contexts" dev="dm-1" ino=69 scontext=u:r:vold_prepare_subdirs:s0 tcontext=u:object_r:vendor_configs_file:s0 tclass=file permissive=1 avc: denied { map } for pid=2928 comm="android.hardwar" path="/dev/vndbinder" dev="tmpfs" ino=15346 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=1 avc: denied { write } for pid=1 comm="init" name="timer_rate" dev="sysfs" ino=24571 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1 avc: denied { map } for pid=2931 comm="MessageThread" path="/dev/galcore" dev="tmpfs" ino=10515 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1 Change-Id: I52962b14e58d1cb9310538c0dd0cf7908dd625b6 Signed-off-by: Wenbo.Zhu <wenbo.zhu_1@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/5548 Reviewed-by: zhang sanshan <sanshan.zhang@nxp.com> (cherry picked from commit 530855fbcb67fa8bae153863637fe079928aef85) Reviewed-on: http://androidsource.ap.freescale.net/project/5620