summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSangcheol Lee <goodsc.lee@samsung.com>2012-11-09 14:53:29 +0900
committerNick Kralevich <nnk@google.com>2012-11-20 12:52:30 -0800
commit15e10345d2facf2c0095e46bb7ae5990c1607553 (patch)
tree82220651101824a824bd915d52ba5bf7f6f9ec18
parent61cb19ada7a640c380adaf698282a9ddc89e2f3d (diff)
downloaddevice_samsung_tuna-15e10345d2facf2c0095e46bb7ae5990c1607553.zip
device_samsung_tuna-15e10345d2facf2c0095e46bb7ae5990c1607553.tar.gz
device_samsung_tuna-15e10345d2facf2c0095e46bb7ae5990c1607553.tar.bz2
[tuna] GPS: Fix security hole
Change a permssion for /proc/mcspi1_cs3_ctrl as 600. With this patch, there is no GPS operation issue. Bug ID : 7494980 Change-Id: I4446c2805a0d47a803f9f3ca1f5bce26371653d3 Signed-off-by: Sangcheol Lee <goodsc.lee@samsung.com>
-rwxr-xr-xinit.tuna.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 466ee7c..c5016d5 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -106,6 +106,8 @@ on fs
chmod 0660 /sys/class/sec/gps/GPS_PWR_EN/value
chown root system /sys/class/sec/gps/GPS_nRST/value
chmod 0660 /sys/class/sec/gps/GPS_nRST/value
+ chown system system /proc/mcspi1_cs3_ctrl
+ chmod 0600 /proc/mcspi1_cs3_ctrl
# ril control auto-suspend
chmod 0660 /sys/bus/usb/devices/usb1/power/control