55e5c9b513
public/property split is landed to selectively export public types to
vendors. So rules happening within system should be in private. This
introduces private/property.te and moves all allow and neverallow rules
from any coredomains to system defiend properties.
Bug: 150331497
Test: system/sepolicy/tools/build_policies.sh
Change-Id: I0d929024ae9f4ae3830d4bf3d59e999febb22cbe
Merged-In: I0d929024ae9f4ae3830d4bf3d59e999febb22cbe
(cherry picked from commit 42c7d8966c
)
15 lines
328 B
Text
15 lines
328 B
Text
typeattribute usbd coredomain;
|
|
|
|
init_daemon_domain(usbd)
|
|
|
|
# Access usb gadget hal
|
|
hal_client_domain(usbd, hal_usb_gadget)
|
|
|
|
# Access persist.sys.usb.config
|
|
get_prop(usbd, system_prop)
|
|
|
|
# start adbd during boot if adb is enabled
|
|
set_prop(usbd, ctl_default_prop)
|
|
|
|
# Start/stop adbd via ctl.start adbd
|
|
set_prop(usbd, ctl_adbd_prop)
|