1、avc denied log 如下
01-01 00:00:47.476 517 517 W factory : type=1400 audit(0.0:100):
avc: denied { read write } for name="enable" dev="sysfs" ino=25554
scontext=u:r:factory:s0 tcontext=u:object_r:md_sysfs_temperature:s0 tclass=file
permissive=0
2、在相应的te文件中添加相应的权限
allow factory md_sysfs_temperature:file { read write };
3、对应字段关系如下:
factory -> scontext=u:r:factory:s0
md_sysfs_temperature -> tcontext=u:object_r:md_sysfs_temperature:s0
file -> tclass=file
{ read write } -> avc: denied { read write }
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)