Files
device_google_wahoo/sepolicy/vendor/hal_usb_impl.te
Jie Song e8a3dcb674 Add SELinux permissions for vendor usb config
Bug: 74603740
Change-Id: I72adb62f6dc8c85ce265616cb13fc638a131e253
2018-03-26 22:53:36 -07:00

17 lines
615 B
Plaintext

type hal_usb_impl, domain;
hal_server_domain(hal_usb_impl, hal_usb)
hal_server_domain(hal_usb_impl, hal_usb_gadget)
type hal_usb_impl_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_usb_impl)
allow hal_usb_impl sysfs_msm_subsys:dir search;
allow hal_usb_impl sysfs_msm_subsys:file r_file_perms;
r_dir_file(hal_usb_impl, sysfs_usb_c)
allow hal_usb_impl sysfs_usb_c:file w_file_perms;
allow hal_usb_impl sysfs_usb_device:dir r_dir_perms;
allow hal_usb_impl sysfs_usb_device:file rw_file_perms;
allow hal_usb_impl configfs:file create_file_perms;
set_prop(hal_usb_impl, vendor_usb_config_prop)