Merge "wlc fwupdate implementation" into sc-dev
This commit is contained in:
commit
577f562727
3 changed files with 19 additions and 0 deletions
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -203,3 +203,6 @@ type uwb_vendor_data_file, file_type, data_file_type, app_data_file_type;
|
|||
|
||||
# PixelStats_vendor
|
||||
type sysfs_pixelstats, fs_type, sysfs_type;
|
||||
|
||||
# WLC FW
|
||||
type vendor_wlc_fwupdata_file, vendor_file_type, file_type;
|
||||
|
|
4
whitechapel/vendor/google/file_contexts
vendored
4
whitechapel/vendor/google/file_contexts
vendored
|
@ -448,3 +448,7 @@
|
|||
|
||||
# Wifi Firmware config update
|
||||
/data/vendor/firmware/wifi(/.*)? u:object_r:updated_wifi_firmware_data_file:s0
|
||||
|
||||
# WLC FW update
|
||||
/vendor/bin/wlc_upt/p9412_mtp u:object_r:vendor_wlc_fwupdata_file:s0
|
||||
/vendor/bin/wlc_upt/wlc_fw_update\.sh u:object_r:wlcfwupdate_exec:s0
|
||||
|
|
12
whitechapel/vendor/google/wlcfwupdate.te
vendored
Normal file
12
whitechapel/vendor/google/wlcfwupdate.te
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# wlcfwupdate service
|
||||
type wlcfwupdate, domain;
|
||||
type wlcfwupdate_exec, vendor_file_type, exec_type, file_type;
|
||||
|
||||
init_daemon_domain(wlcfwupdate)
|
||||
|
||||
allow wlcfwupdate sysfs_batteryinfo:dir search;
|
||||
allow wlcfwupdate sysfs_batteryinfo:file r_file_perms;
|
||||
allow wlcfwupdate sysfs_wlc:dir search;
|
||||
allow wlcfwupdate sysfs_wlc:file rw_file_perms;
|
||||
allow wlcfwupdate vendor_toolbox_exec:file execute_no_trans;
|
||||
allow wlcfwupdate vendor_wlc_fwupdata_file:file execute_no_trans;
|
Loading…
Add table
Add a link
Reference in a new issue