firefly-rk3399-Industry如何彻底关闭selinux
我们在适配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): :
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): :
01-18 18:04:20.782 D/RILC (315): :
01-18 18:04:20.782 D/RILC (315): : [-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 我用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): :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的问题呢?
页:
[1]