mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
rosemary: sepolicy: Allow batterysecret R/W to sysfs_batteryinfo
* audit(0.0:373): avc: denied { read write } for name="authentic" dev="sysfs" ino=46203 scontext=u:r:batterysecret:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
Change-Id: Ifd7a929419851e938f02397dc84fdfb1424e1283
Signed-off-by: bengris32 <bengris32@protonmail.ch>
This commit is contained in:
committed by
Matsvei Niaverau
parent
855569626e
commit
d1c908756b
2
sepolicy/vendor/batterysecret.te
vendored
2
sepolicy/vendor/batterysecret.te
vendored
@@ -3,7 +3,7 @@ type batterysecret_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(batterysecret)
|
||||
|
||||
r_dir_file(batterysecret, sysfs_batteryinfo)
|
||||
rw_dir_file(batterysecret, sysfs_batteryinfo)
|
||||
|
||||
allow batterysecret persist_data_file:dir { search };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user