summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2017-01-17 18:03:52 -0600
committerPraneeth Bajjuri <praneeth@ti.com>2017-01-17 18:05:06 -0600
commit0e2c9dcd536a41b1b9aec07c32841d9a7f47547c (patch)
tree69be365c577d3c8cf49173eca62a15d263a8db69
parent0ae05e7c46d1e66018ff408158219c437efdfb2e (diff)
downloadam57xevm-0e2c9dcd536a41b1b9aec07c32841d9a7f47547c.tar.gz
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. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com> [move from jacinto6evm to am57xevm] Signed-off-by: Praneeth Bajjuri <praneeth@ti.com> Change-Id: I10d955dfa9851050fab6f8eb6926599f4dfb9e8b
-rw-r--r--init.am57xevmboard.rc6
-rw-r--r--ueventd.am57xevmboard.rc6
2 files changed, 8 insertions, 4 deletions
diff --git a/init.am57xevmboard.rc b/init.am57xevmboard.rc
index c553bdd..7e6a44d 100644
--- a/init.am57xevmboard.rc
+++ b/init.am57xevmboard.rc
@@ -15,8 +15,8 @@ on post-fs-data
setprop vold.post_fs_data_done 1
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
- mkdir /data/lad 0770 system system
- mkdir /data/lad/LAD 0770 system system
+ mkdir /data/lad 0770 media system
+ mkdir /data/lad/LAD 0770 media system
# enabling thermal zone for mpu
write /sys/class/thermal/thermal_zone0/mode enabled
@@ -137,7 +137,7 @@ service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf
service lad_dra7xx /system/bin/logwrapper /system/bin/lad_dra7xx
class main
- user system
+ user media
group system
disabled
oneshot
diff --git a/ueventd.am57xevmboard.rc b/ueventd.am57xevmboard.rc
index bf1cd0e..9ca382c 100644
--- a/ueventd.am57xevmboard.rc
+++ b/ueventd.am57xevmboard.rc
@@ -24,7 +24,11 @@
/dev/i2c-4 0660 media system
# cmem
-/dev/cmem 0660 system system
+/dev/cmem 0660 media system
+
+# ipc
+/dev/uio0 0660 media system
+/dev/hwspinlock 0660 media system
# for GNSS
/dev/tigps 0666 root root