summaryrefslogtreecommitdiffstats
path: root/common/ueventd.te
blob: 877f1c431627b4b34f9e896a292a08893c52702f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Allow firmware_file access to load Non-HLOS images
r_dir_file(ueventd, firmware_file)

# Allow persist_file access to wcnss bin
r_dir_file(ueventd, persist_file)

# For wifi to access wifi_data_file
r_dir_file(ueventd, wifi_data_file)

# For wifi to access wifi_vendor_data_file
r_dir_file(ueventd, wifi_vendor_data_file)

allow ueventd {
    { sysfs_type - usermodehelper }
    sysfs_battery_supply
    sysfs_thermal
    sysfs_usb_supply
    sysfs_socinfo
    sysfs_data
    sysfs_kgsl
}:file w_file_perms;

#allow ueventd mba_debug_dev:blk_file r_file_perms;

# For setting up various WIGIG files
allow ueventd sysfs_bond0:file rw_file_perms;