- 积分
- 13
贡献70
飞刀15 FD
注册时间2021-6-29
在线时间2 小时
扫一扫,手机访问本帖
|
通过jni调用c++ .so
.so里面要通过v4l2取数据,但是第一步查询状态就失败了。
提示avc: denied
网上查了一大堆都没办法解决。不知道各位大神有没办法。
[ 2456.730005] type=1400 audit(1638956391.976:15462): avc: denied { getattr } for comm="e.cameracap1207" path="/dev/video1" dev="tmpfs" ino=4500 scontext=u:r:system_app:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=0
[ 2456.753693] type=1400 audit(1638956391.976:15462): avc: denied { getattr } for comm="e.cameracap1207" path="/dev/video1" dev="tmpfs" ino=4500 scontext=u:r:system_app:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=0
[ 2456.777096] type=1400 audit(1638956391.976:15463): avc: denied { getattr } for comm="e.cameracap1207" path="/dev/video2" dev="tmpfs" ino=491 scontext=u:r:system_app:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=0
[ 2456.800643] type=1400 audit(1638956391.976:15463): avc: denied { getattr } for comm="e.cameracap1207" path="/dev/video2" dev="tmpfs" ino=491 scontext=u:r:system_app:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=0
[ 2456.824072] type=1400 audit(1638956391.976:15464): avc: denied { getattr } for comm="e.cameracap1207" path="/dev/video3" dev="tmpfs" ino=488 scontext=u:r:system_app:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=0
|
|