當前位置:編程學習大全網 - 網站源碼 - Android 中怎樣查找SELinux導致的權限受限有關問題

Android 中怎樣查找SELinux導致的權限受限有關問題

首先運行命令:adb remount然後adb shell dmesg -C grep avc<36>[ 113.241627]<0> (0)[281:logd.auditd]type=1400 audit(1438851627.212:214): avc: denied { ioctl } for pid=5684 comm="adbd" path="/dev/block/mmcblk0p20" dev="tmpfs" ino=317 scontext=u:r:adbd:s0 tcontext=u:object_r:platformblk_device:s0 tclass=blk_file permissive=0<36>[ 113.242282]<0> (0)[281:logd.auditd]type=1400 audit(1438851627.212:215): avc: denied { remount } for pid=5684 comm="adbd" scontext=u:r:adbd:s0 tcontext=u:object_r:labeledfs:s0 tclass=filesystem permissive=0<36>[ 113.242551]<0> (0)[281:logd.auditd]type=1400 audit(1438851627.212:216): avc: denied { sys_admin } for pid=5684 comm="adbd" capability=21 scontext=u:r:adbd:s0 tcontext=u:r:adbd:s0 tclass=capability permissive=0從日誌中,我們發現類型為labeledfs, 缺少權限remount所以要在策略中配置allow adbd labeledfs:filesystem remount;其他兩條類似

  • 上一篇:LG P970 ROM的特性
  • 下一篇:關於股票軟件中“箱體指標”的問題?
  • copyright 2024編程學習大全網