dac_read_search与规避neverallow
The dac_override denial issue means that the offending process is trying to access a file with the wrong user/group permissions.The correct solution almost never grants dac_override policy,
becasue if this process is not in "dac_override_allowed" white list which is defined in "system/sepolicy/private/domain.te", this will lead neverallow building issue. We can change the permissions
of the corresponding file or process. The solution is that we set the domain and file, keep them the same user/group permissions.
One example.
I subsystem_ramdump: Attemping to create /sdcard/ramdump
E subsystem_ramdump: Unable to create /sdcard/ramdump
E subsystem_ramdump: Unable to create /sdcard/ramdump
E subsystem_ramdump: Failed to initialize ramdump
I auditd : type=1400 audit(0.0:154): avc: denied { dac_read_search } for comm="subsystem_ramdu" capability=2 scontext=u:r:subsystem_ramdump

最低0.47元/天 解锁文章
2956

被折叠的 条评论
为什么被折叠?



