sepolicy: Add policies for USB HVDCP (quickcharge) daemon
Following warnings are fixed: type=1400 audit(14625.669:5): avc: denied { read write } for pid=307 comm="hvdcp" name="usb_ext_chg" dev="tmpfs" ino=10047 scontext=u:r:hvdcp:s0 tcontext=u:object_r:hvdcp_device:s0 tclass=chr_file type=1400 audit(14625.689:6): avc: denied { open } for pid=307 comm= "hvdcp" path="/dev/usb_ext_chg" dev="tmpfs" ino=10047 scontext=u:r:hvdcp:s0 tcontext=u:object_r:hvdcp_device:s0 tclass=chr_file type=1400 audit(14625.709:7): avc: denied { write } for pid=307 comm= "hvdcp" name="voltage_max" dev="sysfs" ino=22190 scontext=u:r:hvdcp:s0 tcontext=u:object_r:sysfs:s0 tclass=file type=1400 audit(14625.729:8): avc: denied { setgid } for pid=307 comm= "hvdcp" capability=6 scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=capability type=1400 audit(14625.739:9): avc: denied { add_name } for pid=307 comm="hvdcp" name="9999" scontext=u:r:hvdcp:s0 tcontext=u:object_r:cgroup:s0 tclass=dir type=1400 audit(14625.759:10): avc: denied { create } for pid=307 comm="hvdcp" name="9999" scontext=u:r:hvdcp:s0 tcontext=u:object_r:cgroup:s0 tclass=dir type=1400 audit(14625.769:11): avc: denied { setuid } for pid=307 comm="hvdcp" capability=7 scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=capability type=1400 audit(14625.000:12): avc: denied { ioctl } for pid=307 comm="hvdcp" path="/dev/usb_ext_chg" dev="tmpfs" ino=10047 scontext=u:r:hvdcp:s0 tcontext=u:object_r:hvdcp_device:s0 tclass=chr_file type=1400 audit(14625.019:13): avc: denied { create } for pid=307 comm="hvdcp" scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=netlink_kobject_uevent_socket type=1400 audit(86404.769:17): avc: denied { read } for pid=307 comm="hvdcp" scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=netlink_kobject_uevent_socket type=1400 audit(86542.809:873819): avc: denied { setopt } for pid=307 comm="hvdcp " scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=netlink_kobject_uevent_socket type=1400 audit(86542.819:873820): avc: denied { bind } for pid=307 comm="hvdcp" scontext=u:r:hvdcp:s0 tcontext=u:r:hvdcp:s0 tclass=netlink_kobject_uevent_socket type=1400 audit(86462.869:18): avc: denied { ioctl } for pid=307 comm="hvdcp" path="/dev/usb_ext_chg" dev="tmpfs" ino=10047 scontext=u:r:hvdcp:s0 tcontext=u:object_r:hvdcp_device:s0 tclass=chr_file type=1400 audit(86435.289:143): avc: denied { write } for pid=307 comm="hvdcp" name="input_current_max" dev="sysfs" ino=27645 scontext=u:r:hvdcp:s0 tcontext=u:object_r:sysfs:s0 tclass=file type=1400 audit(20903.139:39): avc: denied { search } for pid=307 comm="hvdcp" name="battery" dev="sysfs" ino=27626 scontext=u:r:hvdcp:s0 tcontext=u:object_r:sysfs_battery_supply:s0 tclass=dir Change-Id: I32e1b25eb0d98710434d33da692a42df6116d2fa
Loading
Please sign in to comment