diff options
author | Misael Lopez Cruz | 2017-01-17 18:03:52 -0600 |
---|---|---|
committer | Praneeth Bajjuri | 2017-01-17 18:05:06 -0600 |
commit | 0e2c9dcd536a41b1b9aec07c32841d9a7f47547c (patch) | |
tree | 69be365c577d3c8cf49173eca62a15d263a8db69 | |
parent | 0ae05e7c46d1e66018ff408158219c437efdfb2e (diff) | |
download | device-ti-am57xevm-0e2c9dcd536a41b1b9aec07c32841d9a7f47547c.tar.gz device-ti-am57xevm-0e2c9dcd536a41b1b9aec07c32841d9a7f47547c.tar.xz device-ti-am57xevm-0e2c9dcd536a41b1b9aec07c32841d9a7f47547c.zip |
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.rc | 6 | ||||
-rw-r--r-- | ueventd.am57xevmboard.rc | 6 |
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 | |||
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 |
@@ -137,7 +137,7 @@ service hostapd_bin /system/bin/hostapd -d /data/misc/wifi/hostapd.conf | |||
137 | 137 | ||
138 | service lad_dra7xx /system/bin/logwrapper /system/bin/lad_dra7xx | 138 | service lad_dra7xx /system/bin/logwrapper /system/bin/lad_dra7xx |
139 | class main | 139 | class main |
140 | user system | 140 | user media |
141 | group system | 141 | group system |
142 | disabled | 142 | disabled |
143 | oneshot | 143 | 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 @@ | |||
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 |