16 lines
723 B
Text
16 lines
723 B
Text
# Domain for wireless_reprobe.sh: re-probes wireless drivers via sysfs after
|
|
# /vendor is mounted (see wifi/wireless_reprobe.sh). Runs once from init at
|
|
# post-fs as a oneshot service.
|
|
type wireless_reprobe, domain;
|
|
type wireless_reprobe_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
init_daemon_domain(wireless_reprobe)
|
|
|
|
# Execute the vendor shell and toybox for the script interpreter
|
|
allow wireless_reprobe vendor_shell_exec:file rx_file_perms;
|
|
allow wireless_reprobe vendor_toolbox_exec:file rx_file_perms;
|
|
|
|
# Walk /sys/bus/{usb,serial}/devices and write to drivers_probe/unbind
|
|
allow wireless_reprobe sysfs:dir r_dir_perms;
|
|
allow wireless_reprobe sysfs:file rw_file_perms;
|
|
allow wireless_reprobe sysfs:lnk_file read;
|