Move usb_serial_device to device.te

As suggested by nnk@, I have moved the definition for usb_serial_device
to system/sepolicy/public/device.te from
/system/sepolicy/public/hal_can.te.

See suggestion in aosp/1166865

Test: Manually bring up SLCAN device on test hardware with this change
in place

Change-Id: I0a11556a7eae0be2c9e4b090b051969566c2343e
This commit is contained in:
chrisweir 2019-12-13 17:01:27 -08:00
parent 5b1b423039
commit ccaaae4289
2 changed files with 1 additions and 3 deletions

View File

@ -51,6 +51,7 @@ type uio_device, dev_type;
type tun_device, dev_type, mlstrustedobject;
type usbaccessory_device, dev_type, mlstrustedobject;
type usb_device, dev_type, mlstrustedobject;
type usb_serial_device, dev_type;
type properties_device, dev_type;
type properties_serial, dev_type;
type property_info, dev_type;

View File

@ -7,6 +7,3 @@ allow hal_can_controller_client hal_can_controller_hwservice:hwservice_manager f
binder_call(hal_can_bus_client, hal_can_bus_server)
add_hwservice(hal_can_bus_server, hal_can_bus_hwservice)
allow hal_can_bus_client hal_can_bus_hwservice:hwservice_manager find;
# USB serial type for SLCAN
type usb_serial_device, dev_type;