summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2015-11-20 15:59:36 -0600
committerMisael Lopez Cruz2016-09-30 12:56:47 -0500
commitc373d0bffa9cd6f9fe779d8ab67b4b6628663e84 (patch)
treefa0f3a6c4a1cfdcd1303a77e248ae42de2901320
parent44c140477cab74666ad3dd67c5908d16e3cb2a9a (diff)
downloaddevice-ti-jacinto6evm-c373d0bffa9cd6f9fe779d8ab67b4b6628663e84.tar.gz
device-ti-jacinto6evm-c373d0bffa9cd6f9fe779d8ab67b4b6628663e84.tar.xz
device-ti-jacinto6evm-c373d0bffa9cd6f9fe779d8ab67b4b6628663e84.zip
jacinto6evm: Set permissions for IPC daemon and device files
Add permissions and user/group for: * /dev/hwspinlock. It's used to lock/unlock specific hwspinlock instances through ioctls * /dev/uio0: It's is assumed to be user-space I/O driver for the SR0 shared region. * /dev/cmem The user/group is set to media:system as the main users for these IPC related devices will be audio (which runs as the 'media' user) and radio (which is assumed to be a system app that runs in the 'system' group). The LAD daemon user also needs to be changed to 'media' for the same reasons described above. Change-Id: Icde29fd022ec83bb0ecc3f4edb185189c4ab3d16 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
-rw-r--r--init.jacinto6evmboard.rc6
-rw-r--r--ueventd.jacinto6evmboard.rc6
2 files changed, 8 insertions, 4 deletions
diff --git a/init.jacinto6evmboard.rc b/init.jacinto6evmboard.rc
index 318d6f4..f79c1de 100644
--- a/init.jacinto6evmboard.rc
+++ b/init.jacinto6evmboard.rc
@@ -15,8 +15,8 @@ on post-fs-data
15 setprop vold.post_fs_data_done 1 15 setprop vold.post_fs_data_done 1
16 mkdir /data/misc/dhcp 0770 dhcp dhcp 16 mkdir /data/misc/dhcp 0770 dhcp dhcp
17 chown dhcp dhcp /data/misc/dhcp 17 chown dhcp dhcp /data/misc/dhcp
18 mkdir /data/lad 0770 system system 18 mkdir /data/lad 0770 media system
19 mkdir /data/lad/LAD 0770 system system 19 mkdir /data/lad/LAD 0770 media system
20 20
21# enabling thermal zone for mpu 21# enabling thermal zone for mpu
22 write /sys/class/thermal/thermal_zone0/mode enabled 22 write /sys/class/thermal/thermal_zone0/mode enabled
@@ -138,7 +138,7 @@ service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
138 138
139service lad_dra7xx /system/bin/logwrapper /system/bin/lad_dra7xx 139service lad_dra7xx /system/bin/logwrapper /system/bin/lad_dra7xx
140 class main 140 class main
141 user system 141 user media
142 group system 142 group system
143 disabled 143 disabled
144 oneshot 144 oneshot
diff --git a/ueventd.jacinto6evmboard.rc b/ueventd.jacinto6evmboard.rc
index bf1cd0e..9ca382c 100644
--- a/ueventd.jacinto6evmboard.rc
+++ b/ueventd.jacinto6evmboard.rc
@@ -24,7 +24,11 @@
24/dev/i2c-4 0660 media system 24/dev/i2c-4 0660 media system
25 25
26# cmem 26# cmem
27/dev/cmem 0660 system system 27/dev/cmem 0660 media system
28
29# ipc
30/dev/uio0 0660 media system
31/dev/hwspinlock 0660 media system
28 32
29# for GNSS 33# for GNSS
30/dev/tigps 0666 root root 34/dev/tigps 0666 root root