Linux: sysfs

现在有如下报错: 01-22 07:26:33.695918 576 582 E android.system.suspend@1.0-service: Error opening event_count for wakeup20: Permission denied --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:165): avc: denied { read } for comm="Binder:576_2" name="event_count" dev="sysfs" ino=51762 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:165): avc: denied { read } for name="event_count" dev="sysfs" ino=51762 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 01-22 07:26:33.695976 576 582 E android.system.suspend@1.0-service: Error reading event_count for wakeup20: Bad file descriptor 01-22 07:26:33.696043 576 582 E android.system.suspend@1.0-service: Error opening max_time_ms for wakeup20: Permission denied 01-22 07:26:33.696052 576 582 E android.system.suspend@1.0-service: Error reading max_time_ms for wakeup20: Bad file descriptor 01-22 07:26:33.696112 576 582 E android.system.suspend@1.0-service: Error opening wakeup_count for wakeup20: Permission denied 01-22 07:26:33.696121 576 582 E android.system.suspend@1.0-service: Error reading wakeup_count for wakeup20: Bad file descriptor --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:166): avc: denied { read } for comm="Binder:576_2" name="max_time_ms" dev="sysfs" ino=51767 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.696163 576 582 E android.system.suspend@1.0-service: Error opening total_time_ms for wakeup20: Permission denied 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:166): avc: denied { read } for name="max_time_ms" dev="sysfs" ino=51767 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 01-22 07:26:33.696171 576 582 E android.system.suspend@1.0-service: Error reading total_time_ms for wakeup20: Bad file descriptor 01-22 07:26:33.696208 576 582 E android.system.suspend@1.0-service: Error opening expire_count for wakeup20: Permission denied 01-22 07:26:33.696216 576 582 E android.system.suspend@1.0-service: Error reading expire_count for wakeup20: Bad file descriptor 01-22 07:26:33.696255 576 582 E android.system.suspend@1.0-service: Error opening active_count for wakeup20: Permission denied 01-22 07:26:33.696263 576 582 E android.system.suspend@1.0-service: Error reading active_count for wakeup20: Bad file descriptor 01-22 07:26:33.696314 576 582 E android.system.suspend@1.0-service: Error opening last_change_ms for wakeup20: Permission denied --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:167): avc: denied { read } for comm="Binder:576_2" name="wakeup_count" dev="sysfs" ino=51763 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.696332 576 582 E android.system.suspend@1.0-service: Error reading last_change_ms for wakeup20: Bad file descriptor 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:167): avc: denied { read } for name="wakeup_count" dev="sysfs" ino=51763 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 01-22 07:26:33.696380 576 582 E android.system.suspend@1.0-service: Error opening prevent_suspend_time_ms for wakeup20: Permission denied 01-22 07:26:33.696388 576 582 E android.system.suspend@1.0-service: Error reading prevent_suspend_time_ms for wakeup20: Bad file descriptor --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:168): avc: denied { read } for comm="Binder:576_2" name="total_time_ms" dev="sysfs" ino=51766 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:168): avc: denied { read } for name="total_time_ms" dev="sysfs" ino=51766 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:169): avc: denied { read } for comm="Binder:576_2" name="expire_count" dev="sysfs" ino=51764 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:169): avc: denied { read } for name="expire_count" dev="sysfs" ino=51764 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 01-22 07:26:33.696438 576 582 E android.system.suspend@1.0-service: Error opening name for wakeup20: Permission denied 01-22 07:26:33.696458 576 582 E android.system.suspend@1.0-service: Error reading name for wakeup20: Bad file descriptor --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:170): avc: denied { read } for comm="Binder:576_2" name="active_count" dev="sysfs" ino=51761 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.696508 576 582 E android.system.suspend@1.0-service: Error opening active_time_ms for wakeup20: Permission denied 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:170): avc: denied { read } for name="active_count" dev="sysfs" ino=51761 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 01-22 07:26:33.696516 576 582 E android.system.suspend@1.0-service: Error reading active_time_ms for wakeup20: Bad file descriptor --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:171): avc: denied { read } for comm="Binder:576_2" name="last_change_ms" dev="sysfs" ino=51768 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:171): avc: denied { read } for name="last_change_ms" dev="sysfs" ino=51768 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:172): avc: denied { read } for comm="Binder:576_2" name="prevent_suspend_time_ms" dev="sysfs" ino=51769 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:172): avc: denied { read } for name="prevent_suspend_time_ms" dev="sysfs" ino=51769 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:173): avc: denied { read } for comm="Binder:576_2" name="name" dev="sysfs" ino=51760 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:173): avc: denied { read } for name="name" dev="sysfs" ino=51760 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to events 01-22 07:26:33.679000 576 576 I auditd : type=1400 audit(0.0:174): avc: denied { read } for comm="Binder:576_2" name="active_time_ms" dev="sysfs" ino=51765 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 --------- switch to main 01-22 07:26:33.679000 576 576 W Binder:576_2: type=1400 audit(0.0:174): avc: denied { read } for name="active_time_ms" dev="sysfs" ino=51765 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0 如果按照像是下面的te文件写法,怎么写新的代码,修复上面的报错呢? genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-00/1c40000.qcom,spmi:qcom,pm6125@0:qcom,pm6125_rtc/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-00/1c40000.qcom,spmi:qcom,pm6125@0:qcom,pm6125_rtc/rtc/rtc0/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,msm-audio-apr/soc:qcom,msm-audio-apr:qcom,q6core-audio/soc:qcom,msm-audio-apr:qcom,q6core-audio:bolero-cdc/tx-macro/tx_swr_ctrl/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:qcom,msm-audio-apr/soc:qcom,msm-audio-apr:qcom,q6core-audio/soc:qcom,msm-audio-apr:qcom,q6core-audio:bolero-cdc/rx-macro/rx_swr_ctrl/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/1c40000.qcom,spmi/spmi-0/spmi0-02/1c40000.qcom,spmi:qcom,pmi632@2:qcom,qpnp-smb5/dual_role_usb/otg_default/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/5c0c000.qcom,cci/5c0c000.qcom,cci:qcom,camera@0/video4linux/video3/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_g711mlaw/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/fastrpc/adsprpc-smd-secure/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/1610000.qcom,msm-eud/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_evrc/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_amrwbplus/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_amrnb/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_amrwb/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/fastrpc/adsprpc-smd/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/soc:gpio_keys/wakeup/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_aac/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_alac/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_ape/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_g711alaw/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_mp3/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/diag/diag/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_multi_aac/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_qcelp/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_wma/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/virtual/misc/msm_wmapro/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/soc/c800000.qcom,icnss/wakeup/wakeup u:object_r:sysfs_wakeup:s0 请你提供代码。
09-09
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值