Add hal_usb_impl permission
Add hal_usb_impl get below permission allow hal_usb_impl configfs:dir rw_dir_perms; allow hal_usb_impl configfs:file create_file_perms; avc denied 02-16 12:05:19.820 788 788 I android.hardwar: type=1400 audit(0.0:4882): avc: denied { search } for name="/" dev="configfs" ino=13419 scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:configfs:s0 tclass=dir permissive=1 02-16 12:05:19.820 788 788 I android.hardwar: type=1400 audit(0.0:4883): avc: denied { write } for name="g1" dev="configfs" ino=38003 scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:configfs:s0 tclass=dir permissive=1 02-16 12:05:19.820 788 788 I android.hardwar: type=1400 audit(0.0:4884): avc: denied { add_name } for name="UDC" scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:configfs:s0 tclass=dir permissive=1 02-16 12:05:19.820 788 788 I android.hardwar: type=1400 audit(0.0:4885): avc: denied { create } for name="UDC" scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:configfs:s0 tclass=file permissive=1 02-16 12:05:19.820 788 788 I android.hardwar: type=1400 audit(0.0:4886): avc: denied { write } for name="UDC" dev="configfs" ino=106988 scontext=u:r:hal_usb_impl:s0 tcontext=u:object_r:configfs:s0 tclass=file permissive=1 Bug: 218997592 Signed-off-by: Ricky Niu <rickyniu@google.com> Change-Id: I854479cef1a0b8ad518814fb9d20558cf52202e7
This commit is contained in:
parent
1b02510fce
commit
05eb29e217
1 changed files with 2 additions and 0 deletions
2
whitechapel/vendor/google/hal_usb_impl.te
vendored
2
whitechapel/vendor/google/hal_usb_impl.te
vendored
|
@ -4,6 +4,8 @@ hal_server_domain(hal_usb_impl, hal_usb)
|
||||||
type hal_usb_impl_exec, vendor_file_type, exec_type, file_type;
|
type hal_usb_impl_exec, vendor_file_type, exec_type, file_type;
|
||||||
init_daemon_domain(hal_usb_impl)
|
init_daemon_domain(hal_usb_impl)
|
||||||
|
|
||||||
|
allow hal_usb_impl configfs:dir rw_dir_perms;
|
||||||
|
allow hal_usb_impl configfs:file create_file_perms;
|
||||||
allow hal_usb_impl sysfs_batteryinfo:dir r_dir_perms;
|
allow hal_usb_impl sysfs_batteryinfo:dir r_dir_perms;
|
||||||
allow hal_usb_impl sysfs_batteryinfo:file rw_file_perms;
|
allow hal_usb_impl sysfs_batteryinfo:file rw_file_perms;
|
||||||
allow hal_usb_impl sysfs_extcon:dir search;
|
allow hal_usb_impl sysfs_extcon:dir search;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue