msm8916: only owner needs permissions to /firmware
Images in the /firmware directory are accessed only by
the owner. So set permissions accordingly.
BUG=24072709
Change-Id: Ib5e07cee6e664df502a462dfdd3ddd0e3ab9cc97
Signed-off-by: Sourabh Banerjee <[email protected]>
diff --git a/soc/msm8916/init.msm8916.rc b/soc/msm8916/init.msm8916.rc
index 85460d6..28399d1 100644
--- a/soc/msm8916/init.msm8916.rc
+++ b/soc/msm8916/init.msm8916.rc
@@ -14,9 +14,8 @@
# limitations under the License.
#
-# TODO(ralphnathan): Determine why 0771 (b/24072709)
on early-init
- mkdir /firmware 0771 system system
+ mkdir /firmware 0700 system system
on init
symlink /dev/block/platform/soc.0/7824900.sdhci/by-name /dev/block/by-name
@@ -29,7 +28,7 @@
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
write /sys/class/android_usb/android0/f_ffs/aliases adb
wait /dev/block/platform/soc.0/7824900.sdhci/by-name/modem
- mount vfat /dev/block/platform/soc.0/7824900.sdhci/by-name/modem /firmware ro context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
+ mount vfat /dev/block/platform/soc.0/7824900.sdhci/by-name/modem /firmware ro context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=277,fmask=337
chown bluetooth net_bt_stack /dev/smd2
chown bluetooth net_bt_stack /dev/smd3
chown system system /dev/ion