Android系统selinux 安全问题
系统从默认permissive安全级别修改为enforcing,enforcing模式下无法启动,selinux权限已经添加完毕,串口log中无权限问题提示,对比了两种模式下的串口log ,区别在在main函数之后,log如下,有经验的各路朋友一起分析一下[ 51.506588] capability: warning: `main' uses 32-bit capabilities (legacy support in use)
binder_alloc: 567: binder_alloc_buf, no vma
binder: 240:302 transaction failed 29189/-3, size 68-0 line 3071
init: Service 'zygote' (pid 248) killed by signal 9
init: Service 'zygote' (pid 248) killing any children in process group
init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
init: write_file: Unable to write to '/sys/power/state': Invalid argument
init: Service 'audioserver' is being killed...
init: Service 'cameraserver' is being killed...
init: Service 'media' is being killed...
init: Service 'netd' is being killed...
init: Starting service 'zygote'...
init: Service 'cameraserver' (pid 251) killed by signal 9
init: Service 'cameraserver' (pid 251) killing any children in process group
init: Starting service 'cameraserver'...
init: couldn't write 898 to /dev/cpuset/camera-daemon/tasks: No such file or directory
init: Service 'audioserver' (pid 250) killed by signal 9
init: Service 'audioserver' (pid 250) killing any children in process group
init: Service 'netd' (pid 259) killed by signal 9
init: Service 'netd' (pid 259) killing any children in process group
init: Service 'media' (pid 258) killed by signal 9
init: Service 'media' (pid 258) killing any children in process group
init: Starting service 'audioserver'...
init: Starting service 'media'...
init: Starting service 'netd'...
E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkouton device rockchip-pinctrl
RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6 log中有i2c的错误信息,我不用i2c,在permissive模式下有相同的log 该问题已解决,根据串口log 无法定位问题,可根据kernel . logcat日志进行进一步增加权限。
页:
[1]