首页 > 解决方案 > 如何为 android os 编写 SELinux Policy 以允许应用程序读/写

问题描述

2021-11-04 02:39:29.995 2142-2142/com.licheedev.serialtool I/edev.serialtool: type=1400 audit(0.0:505): avc: denied { read } for name="ttyS0" dev="tmpfs" ino=9955 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:tty_device:s0 tclass=chr_file permissive=1 app=com.licheedev.serialtool
2021-11-04 02:39:29.999 2142-2142/com.licheedev.serialtool I/edev.serialtool: type=1400 audit(0.0:506): avc: denied { write } for name="ttyS0" dev="tmpfs" ino=9955 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:tty_device:s0 tclass=chr_file permissive=1 app=com.licheedev.serialtool
2021-11-04 02:39:29.999 2142-2142/com.licheedev.serialtool I/edev.serialtool: type=1400 audit(0.0:507): avc: denied { open } for path="/dev/ttyS0" dev="tmpfs" ino=9955 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:tty_device:s0 tclass=chr_file permissive=1 app=com.licheedev.serialtool
2021-11-04 02:39:30.023 2142-2142/com.licheedev.serialtool I/edev.serialtool: type=1400 audit(0.0:508): avc: denied { ioctl } for path="/dev/ttyS0" dev="tmpfs" ino=9955 ioctlcmd=0x5401 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:tty_device:s0 tclass=chr_file permissive=1 app=com.licheedev.serialtool

标签: androidselinux

解决方案


推荐阅读