Migrate SELinux related flo changes to deb.
Copy over the flo related SELinux changes to deb.
See https://android-review.googlesource.com/70190
Change-Id: Ie3a07b12ad6d12dedf2d0ccbfd8fb3211dcbe890
diff --git a/init.deb.rc b/init.deb.rc
index b1494ee..45aea8f 100644
--- a/init.deb.rc
+++ b/init.deb.rc
@@ -42,6 +42,7 @@
on fs
mount_all ./fstab.flo
+ restorecon_recursive /persist
setprop ro.crypto.fuse_sdcard true
write /sys/kernel/boot_adsp/boot 1
@@ -182,6 +183,9 @@
mkdir /persist/sensors
chmod 775 /persist/sensors
+ # Label in case file already exists
+ restorecon /data/fdAlbum
+
# Modify from 777 (for camera calibration) to 775
chmod 775 /persist/camera_calibration
@@ -211,8 +215,7 @@
chown system system /sys/class/leds/white/device/blink
# communicate with mpdecision and thermald
- mkdir /dev/socket/mpdecision 0770 system system
- chmod 2770 /dev/socket/mpdecision
+ mkdir /dev/socket/mpdecision 2770 root system
# adjust vibrator amplitude
write /sys/class/timed_output/vibrator/amp 70
@@ -277,7 +280,7 @@
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
-service irsc_util /system/bin/logwrapper /system/bin/irsc_util "/etc/sec_config"
+service irsc_util /system/bin/irsc_util "/etc/sec_config"
class main
user root
oneshot
@@ -285,11 +288,13 @@
service rmt_storage /system/bin/rmt_storage
class main
user root
+ group system
service hciattach /system/bin/sh /system/etc/init.flo.bt.sh
class late_start
user bluetooth
group qcom_oncrpc bluetooth net_bt_admin system net_bt_stack
+ seclabel u:r:bluetooth_loader:s0
disabled
oneshot
@@ -312,6 +317,7 @@
service ks_checker /system/bin/sh /system/etc/kickstart_checker.sh
class core
+ seclabel u:r:kickstart:s0
oneshot
service kickstart /system/bin/qcks -i /firmware/image/ -r /data/tombstones/mdm/
@@ -337,13 +343,14 @@
service netmgrd /system/bin/netmgrd
class main
+ group radio
service sensors /system/bin/sensors.qcom
class late_start
user root
group root
-service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
+service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin
@@ -356,7 +363,7 @@
disabled
oneshot
-service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
+service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
@@ -419,6 +426,7 @@
service thermald /system/bin/thermald
class main
+ group radio
service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
class main
@@ -427,7 +435,7 @@
class late_start
disabled
user system
- socket pps stream 0660 system system graphics
+ socket pps stream 0660 system system
group system graphics
service qcamerasvr /system/bin/mm-qcamera-daemon
@@ -439,6 +447,7 @@
class main
user system
group system wifi
+ seclabel u:r:conn_init:s0
oneshot
service bdAddrLoader /system/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x
@@ -460,7 +469,7 @@
user system
group system
-service diag_mdlog /system/bin/logwrapper /system/bin/diag_mdlog -s 100
+service diag_mdlog /system/bin/diag_mdlog -s 100
class late_start
disabled