2018-10-21 15:00:54 +00:00
|
|
|
# This really is necessary for init.qcom.rc to manually restorecon the
|
|
|
|
# /data/data/com.android.providers.telephony/(databases|shared_prefs)
|
|
|
|
# symlinks. Without the manual restorecon, we would have to allow rild
|
|
|
|
# to read any system_data_file:lnk_file.
|
|
|
|
selinux_check_context(init)
|
|
|
|
|
2018-11-15 02:57:03 +00:00
|
|
|
allow init {
|
|
|
|
sysfs_iio
|
|
|
|
sysfs_sec_tsp
|
2018-11-15 03:08:14 +00:00
|
|
|
sysfs_sensors
|
2020-03-11 07:57:11 +00:00
|
|
|
firmware_file
|
2018-11-15 02:57:03 +00:00
|
|
|
}:lnk_file read;
|
2018-11-16 14:25:43 +00:00
|
|
|
|
2018-10-21 14:21:25 +00:00
|
|
|
allow init {
|
2020-01-19 12:08:44 +00:00
|
|
|
proc
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_audio
|
2018-10-20 23:21:50 +00:00
|
|
|
sysfs_batteryinfo
|
2018-11-16 02:55:06 +00:00
|
|
|
sysfs_bluetooth_writable
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_camera
|
2018-10-21 14:21:25 +00:00
|
|
|
sysfs_graphics
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_hal_pwr
|
2018-11-16 14:25:43 +00:00
|
|
|
sysfs_iio
|
2018-11-16 14:27:03 +00:00
|
|
|
sysfs_input
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_kgsl
|
2018-11-14 14:21:38 +00:00
|
|
|
sysfs_leds
|
2019-10-12 07:31:06 +00:00
|
|
|
sysfs_mdnie
|
2018-11-17 00:39:18 +00:00
|
|
|
sysfs_msmuart_file
|
2018-11-15 02:57:03 +00:00
|
|
|
sysfs_sec_bamdmux
|
|
|
|
sysfs_sec_barcode_emul
|
|
|
|
sysfs_sec_epen
|
|
|
|
sysfs_sec_ir
|
|
|
|
sysfs_sec_key
|
|
|
|
sysfs_sec_led
|
|
|
|
sysfs_sec_switch
|
|
|
|
sysfs_sec_thermistor
|
|
|
|
sysfs_sec_touchkey
|
2018-11-15 03:08:14 +00:00
|
|
|
sysfs_sec_tsp
|
|
|
|
sysfs_sensors
|
2018-11-16 03:46:10 +00:00
|
|
|
sysfs_socinfo
|
2018-11-30 21:09:23 +00:00
|
|
|
sysfs_usb_otg
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_wifi_writeable
|
2020-03-11 07:57:11 +00:00
|
|
|
firmware_file
|
2018-10-21 14:21:25 +00:00
|
|
|
}:file setattr;
|
2018-11-14 05:09:58 +00:00
|
|
|
|
|
|
|
allow init {
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_cpu_boost
|
|
|
|
sysfs_devices_system_cpu
|
|
|
|
sysfs_lowmemorykiller
|
2018-11-16 22:45:08 +00:00
|
|
|
sysfs_mmc_host
|
2018-11-14 05:09:58 +00:00
|
|
|
sysfs_msm_perf
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_msm_power
|
2019-12-11 21:08:09 +00:00
|
|
|
sysfs_net
|
2018-11-14 05:09:58 +00:00
|
|
|
sysfs_sec_key
|
2018-10-21 15:00:54 +00:00
|
|
|
sysfs_thermal
|
2020-03-11 07:57:11 +00:00
|
|
|
firmware_file
|
2018-11-14 05:09:58 +00:00
|
|
|
}:file w_file_perms;
|
2019-12-11 21:08:09 +00:00
|
|
|
|
|
|
|
allow init {
|
|
|
|
wcnss_device
|
|
|
|
}:chr_file w_file_perms;
|
2020-01-04 16:45:01 +00:00
|
|
|
|
|
|
|
allow init sysfs:file setattr;
|
|
|
|
allow init sysfs_devfreq:file setattr;
|
2020-01-19 12:08:44 +00:00
|
|
|
allow init efs_file:dir mounton;
|
|
|
|
allow init init:capability2 block_suspend;
|
|
|
|
allow init system_file:file mounton;
|
|
|
|
allow init sysfs_leds:lnk_file read;
|
|
|
|
|