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:
chrisweir 2020-03-11 12:51:22 -07:00
parent aa6dba2770
commit 05e9a6545c

View file

@ -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