diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2015-11-20 15:59:36 -0600 |
---|---|---|
committer | Misael Lopez Cruz <misael.lopez@ti.com> | 2016-09-30 12:56:47 -0500 |
commit | c373d0bffa9cd6f9fe779d8ab67b4b6628663e84 (patch) | |
tree | fa0f3a6c4a1cfdcd1303a77e248ae42de2901320 | |
parent | 44c140477cab74666ad3dd67c5908d16e3cb2a9a (diff) | |
download | jacinto6evm-c373d0bffa9cd6f9fe779d8ab67b4b6628663e84.tar.gz |
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.rc | 6 | ||||
-rw-r--r-- | ueventd.jacinto6evmboard.rc | 6 |
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 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 @@ -138,7 +138,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.jacinto6evmboard.rc b/ueventd.jacinto6evmboard.rc index bf1cd0e..9ca382c 100644 --- a/ueventd.jacinto6evmboard.rc +++ b/ueventd.jacinto6evmboard.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 |