Enable CAN HAL to scan /sys/devices for USB CAN
CAN HAL needs access to /sys/devices to search for USB serial numbers for SocketCAN devices and for USB serial devices. Bug: 142654031 Test: Manual + VTS Change-Id: I3d9bff94f8d8f936f7d859c01b9ff920fcbc5130
This commit is contained in:
parent
aa6dba2770
commit
05e9a6545c
1 changed files with 2 additions and 0 deletions
2
vendor/hal_can_socketcan.te
vendored
2
vendor/hal_can_socketcan.te
vendored
|
@ -25,6 +25,8 @@ allowxperm hal_can_socketcan self:can_socket ioctl {
|
|||
# Un-publishing ICanBus interfaces
|
||||
allow hal_can_socketcan hidl_manager_hwservice:hwservice_manager find;
|
||||
|
||||
allow hal_can_socketcan sysfs:dir r_dir_perms;
|
||||
|
||||
allow hal_can_socketcan usb_serial_device:chr_file { ioctl read write open };
|
||||
allowxperm hal_can_socketcan usb_serial_device:chr_file ioctl {
|
||||
TCGETS
|
||||
|
|
Loading…
Reference in a new issue