Files
device_google_wahoo/sepolicy/hal_usb_default.te
Badhri Jagan Sridharan ddc21e70ac Fix selinux denial for usb hal
Fixes the following denial:
avc: denied { write } for name="current_power_role"
dev="sysfs" ino=50970 scontext=u:r:hal_usb_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file
permissive=0

Bug: 38097623
Test: The denial message is not seen anymore.
Change-Id: I961a595a06211214142d3316abf7172f5e500347
2017-05-19 10:28:10 -07:00

6 lines
263 B
Plaintext

allow hal_usb_default sysfs_msm_subsys:dir search;
allow hal_usb_default sysfs_msm_subsys:file r_file_perms;
allow hal_usb_default sysfs_usb_c:dir r_dir_perms;
allow hal_usb_default sysfs_usb_c:lnk_file read;
allow hal_usb_default sysfs_usb_c:file rw_file_perms;