sm7250-common: sepolicy: Allow hal_health_default required permissions

12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:807): avc: denied { read } for name="type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:808): avc: denied { open } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
12-24 22:38:09.476   502   502 I health@2.0-serv: type=1400 audit(0.0:809): avc: denied { getattr } for path="/sys/devices/platform/1101b000.i2c8/i2c-8/8-001d/power_supply/parallel/type" dev="sysfs" ino=37464 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: I697f92611a9c30b34872c792beb1c24c298bb0b1
Signed-off-by: SparXFusion <s2234nadar@gmail.com>
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Signed-off-by: Joey Huab <joey@evolution-x.org>
This commit is contained in:
Aayush Gupta 2020-12-25 11:28:44 +05:30 committed by mikairyuu
parent 8e6c6a2f49
commit 17a8740165

View File

@ -1,2 +1,3 @@
allow hal_health_default sysfs_wakeup:dir r_dir_perms; allow hal_health_default sysfs_wakeup:dir r_dir_perms;
allow hal_health_default sysfs_wakeup:file r_file_perms; allow hal_health_default sysfs_wakeup:file r_file_perms;
allow hal_health_default sysfs:file { getattr read open };