Firefly开源社区

打印 上一主题 下一主题

[Android] firefly-rk3399-Industry如何彻底关闭selinux

11

积分

0

威望

0

贡献

技术小白

积分
11

firefly-rk3399-Industry如何彻底关闭selinux

发表于 2020-11-24 19:39:23      浏览:4116 | 回复:1        打印      只看该作者   [复制链接] 楼主
我们在适配RIL时,有如下打印
01-18 18:04:20.747 D/RILD    (  315): **RIL Daemon Started**
01-18 18:04:20.747 D/RILD    (  315): **RILd param count=3**
01-18 18:04:20.782 W/RILD    (  315): RIL_SAP_Init not defined or exported in /system/lib64/libreference-ril.so: undefined symbol: RIL_SAP_Init
01-18 18:04:20.782 D/RILD    (  315): RIL_Init argc = 5 clientId = 0
01-18 18:04:20.782 D/RILC    (  315): Quectel RIL Version: Quectel_Android_RIL_SR01A40V36
01-18 18:04:20.782 D/RILC    (  315): [ro.build.version.release]: [7.1.2]
01-18 18:04:20.782 E/RILC    (  315): Unsupport Android Version 71 by Quectel Now!!!!
01-18 18:04:20.782 D/RILC    (  315): Android Version: 71, RIL_VERSION: 12 / 12
01-18 18:04:20.782 D/RILC    (  315): [ro.build.description]: [rk3399_firefly-userdebug 7.1.2 NHG47K eng.server8.20201124.183736 test-keys]
01-18 18:04:20.782 D/RILC    (  315): [rild.libpath]: [/system/lib64/libreference-ril.so]
01-18 18:04:20.782 D/RILC    (  315): [rild.libargs]: [-d /dev/ttyUSB1]
01-18 18:04:20.782 D/RILC    (  315): selinux maybe set Enforcing mode, use command getenforce to check
01-18 18:04:20.782 D/RILC    (  315): selinux maybe set Enforcing mode, use command "setenforce 0" to disable
01-18 18:04:20.784 I/RILC    (  315): Opening tty device /dev/ttyUSB1
01-18 18:04:20.784 I/RILC    (  315): clientID = 0
01-18 18:04:20.784 D/RILC    (  315): you designate /dev/ttyUSB1 as AT port
01-18 18:04:20.785 D/RILC    (  315): i guess you designate a usb port as AT port
01-18 18:04:20.785 D/RILC    (  315): and the usb devices's idVendor = 2c7c, idProduct = 6026
01-18 18:04:20.785 D/RILD    (  315): RIL_Init rilInit completed
01-18 18:04:20.785 I/RILC    (  315): SIM_COUNT: 1
01-18 18:04:20.785 E/RILC    (  315): RIL_register: RIL version 12
01-18 18:04:20.785 I/RILC    (  315): s_registerCalled flag set, 1
01-18 18:04:20.785 I/RILC    (  315): Start to listen RIL_SOCKET_1
01-18 18:04:20.785 D/RILD    (  315): RIL_Init RIL_register completed
01-18 18:04:20.785 D/RILD    (  315): RIL_register_socket completed
01-18 18:04:20.785 D/RILD    (  315): RIL_Init starting sleep loop
01-18 18:04:20.789 I/RILC    (  315): mainLoop Start

其中提到selinux maybe set Enforcing mode
我们是指定了ttyUSB1作为AT命令口的,权限也是777.但仍报了这个问题。
请问是否有大神知道如何彻底关闭selinux
回复

使用道具 举报

11

积分

0

威望

0

贡献

技术小白

积分
11
发表于 2020-11-24 19:44:03        只看该作者  沙发
我用getenforce命令查了,显示是Permissive模式。但是在实际调用ttyUSB1时,
01-18 18:04:21.790 D/RILC    (  315): fd = 5
01-18 18:04:21.790 D/RILC    (  315): open device /dev/ttyUSB1 correctly
01-18 18:04:21.790 E/ATC     (  315): at_open s_tild_reader = 509274510416
01-18 18:04:21.791 I/RILC    (  315): [setRadioState]:oldState=1, newState=0
01-18 18:04:21.792 D/ATC     (  315): AT> ATE0Q0V1
01-18 18:04:21.793 W/MUXD    (  346): MUXD 1060:pseudo_device_read(): Write to a channel which wasn't acked to be open.
01-18 18:04:21.793 W/MUXD    (  346): MUXD 2847:poll_thread(): Device read function returned error
01-18 18:04:21.793 E/MUXD    (  346): MUXD 2875:poll_thread(): Device polling thread terminated
01-18 18:04:22.500 E/ATC     (  315): warnning - moderm no response, retry ATE0Q0V1
这里显示Write to a channel which wasn't acked to be open,但是我open这个节点时的fd都拿到了,为什么还会报这个问题呢?是否还是selinux的问题呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表