|
Android系统selinux 安全问题
发表于 2020-2-10 15:40:23
浏览:6358
|
回复:2
打印
只看该作者
[复制链接]
楼主
系统从默认permissive安全级别修改为enforcing,enforcing模式下无法启动,selinux权限已经添加完毕,串口log中无权限问题提示,对比了两种模式下的串口log ,区别在在main函数之后,log如下,有经验的各路朋友一起分析一下
[16:42:53.830] [ 51.506588] capability: warning: `main' uses 32-bit capabilities (legacy support in use)
[16:42:22.346]
[18:23:01.746] [ 114.991521] binder_alloc: 567: binder_alloc_buf, no vma
[18:23:01.746] [ 114.991612] binder: 240:302 transaction failed 29189/-3, size 68-0 line 3071
[18:23:01.756] [ 115.201073] init: Service 'zygote' (pid 248) killed by signal 9
[18:23:01.957] [ 115.201140] init: Service 'zygote' (pid 248) killing any children in process group
[18:23:01.957] [ 115.201327] init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
[18:23:01.957] [ 115.201462] init: write_file: Unable to write to '/sys/power/state': Invalid argument
[18:23:01.966] [ 115.201595] init: Service 'audioserver' is being killed...
[18:23:01.966] [ 115.201847] init: Service 'cameraserver' is being killed...
[18:23:01.966] [ 115.201992] init: Service 'media' is being killed...
[18:23:01.966] [ 115.202120] init: Service 'netd' is being killed...
[18:23:01.966] [ 115.204022] init: Starting service 'zygote'...
[18:23:01.966] [ 115.206625] init: Service 'cameraserver' (pid 251) killed by signal 9
[18:23:01.966] [ 115.206690] init: Service 'cameraserver' (pid 251) killing any children in process group
[18:23:01.966] [ 115.207371] init: Starting service 'cameraserver'...
[18:23:01.966] [ 115.211130] init: couldn't write 898 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[18:23:01.966] [ 115.211466] init: Service 'audioserver' (pid 250) killed by signal 9
[18:23:01.966] [ 115.211610] init: Service 'audioserver' (pid 250) killing any children in process group
[18:23:01.966] [ 115.212473] init: Service 'netd' (pid 259) killed by signal 9
[18:23:01.966] [ 115.212552] init: Service 'netd' (pid 259) killing any children in process group
[18:23:01.975] [ 115.213352] init: Service 'media' (pid 258) killed by signal 9
[18:23:01.975] [ 115.213424] init: Service 'media' (pid 258) killing any children in process group
[18:23:01.975] [ 115.214381] init: Starting service 'audioserver'...
[18:23:01.975] [ 115.215738] init: Starting service 'media'...
[18:23:01.975] [ 115.216640] init: Starting service 'netd'...
[18:23:01.975] [ 115.460413] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[18:23:02.217] [ 115.460506] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[18:23:02.217] [ 115.470333] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[18:23:02.237] [ 115.470345] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[18:23:02.237] [ 115.470353] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[18:23:02.237] [ 115.470358] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[18:23:02.237] [ 115.470363] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[18:23:02.237] [ 115.481056] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[18:23:02.237] [ 115.481146] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[18:23:02.248]
[18:23:02.260] [ 115.504345] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[18:23:02.260] [ 115.504432] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[18:23:02.260] [ 115.516332] rockchip-pinctrl pinctrl: pin gpio2-11 already requested by ff910000.isp; cannot claim for ff920000.isp
[18:23:02.285] [ 115.516345] rockchip-pinctrl pinctrl: pin-75 (ff920000.isp) status -22
[18:23:02.285] [ 115.516352] rockchip-pinctrl pinctrl: could not request pin 75 (gpio2-11) from group cif-clkout on device rockchip-pinctrl
[18:23:02.285] [ 115.516358] RockChip-CamSys ff920000.isp: Error applying setting, reverse things back
[18:23:02.285] [ 115.516363] E:camsys_mrv_iomux_cb(126): pinctrl_select_state failed!
[18:23:02.285] [ 115.529072] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6
[18:23:02.285] [ 115.529157] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[18:23:02.285] [ 115.609883] E:camsys_i2c_write(84): i2c write dev(addr:0x20) failed!,err = -6
[18:23:02.366] [ 115.609988] E:camsys_i2c_write(84): i2c write dev(addr:0x6c) failed!,err = -6 |
|